Parameter bag for a single matrix-multiplication call.
Carries the logical shape and transposition flags for one a @ b
product. Dimensions are interpreted in logical (not transposed)
order so the result is always regardless of the transA / transB flags.
See Also
IBackend::matmul — consumes this struct.
Attributes
transAboolIf
true the dispatched kernel treats the left operand as transposed before contraction.transBboolIf
true the dispatched kernel treats the right operand as transposed before contraction.MintNumber of rows of the (post-transpose) left operand.
KintContracted inner dimension.
NintNumber of columns of the (post-transpose) right operand.
batchstd::size_tNumber of independent matmuls stacked along the leading axis.
batch == 1 is the standard 2-D case; batch > 1 indicates a batched matmul where the same A/B strides repeat batch times.