Files
opencv-MIRROR/modules/core
Shiven Solanki fcfa24dfb7 core: support 1D Mat inputs in gemm (#30704)
* 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
2026-11-13 08:17:17 +05:30
..