Skip to main content

gemm

Function gemm 

Source
pub fn gemm<T>(
    backend: Option<&GemmBackendHandle>,
    transa: Transpose,
    transb: Transpose,
    m: usize,
    n: usize,
    k: usize,
    alpha: T,
    a: &[T],
    lda: usize,
    b: &[T],
    ldb: usize,
    beta: T,
    c: &mut [T],
    ldc: usize,
) -> Result<(), GemmError>
where T: GemmScalar,
Expand description

Safe column-major GEMM: C <- alpha * op(A) * op(B) + beta * C.

op(A) is m x k, op(B) is k x n, and C is m x n; the stored operands are addressed through their leading dimensions.

ยงErrors

Returns GemmError::InvalidArgument when a buffer is too short or a leading dimension is too small, and GemmError::DimensionOverflow when an LP64 backend cannot represent a dimension.