Skip to content

gemm

Module: strata.core • Kind: function
Source: strata/core/linalg.mojo

def gemm[dtype: DType = DType.float64](
A: Matrix[dtype],
B: Matrix[dtype],
) -> Matrix[dtype]
from strata.core import gemm

Compute dense matrix product C=ABC = A B.

Hardware-vectorized with SIMD registers and scalar tail handling, supporting arbitrary matrix dimensions and numeric types with zero external dependencies.

Returns: Matrix[dtype] — Matrix[dtype]: Output matrix product CC of shape (M,N)(M, N).