mirror of
https://github.com/opencv/opencv.git
synced 2026-11-21 00:35:35 -06:00
* core: support 1D Mat inputs in gemm A 1D Mat is a single row, but its step[0] is the element size, not the row size, so gemm passed a too-small row step to the HAL kernels and failed with "_step >= minstep". Give 1D A, B and C an ordinary 2D one-row header before calling the kernels. Fixes #30703 * core: support preallocated 1D output in gemm When the caller passes a 1D Mat of the right size as the output, _matD.create() keeps it as is, so D still had step[0] == elemSize() and the kernel failed with "_step >= minstep". Give a 1D D a 2D one-row header too. The result is still written into the caller's buffer. * core: use TEST_P for the 1D gemm test