Skip to main content

dot_blas

Macro dot_blas 

Source
macro_rules! dot_blas {
    ($a:expr, $b:expr $(,)?) => { ... };
    ($a:expr, $b:expr, $($c:expr),+ $(,)?) => { ... };
}
Expand description

BLAS-backed multiplication between compatible dense arrays.

It always allocates a new array for the result. For general dense matrices, dot_blas! is significantly faster than dot! and is the recommended choice for matrix multiplication.

Call as res = dot_blas!(a, b, c) to multiply the matrices a, b,, and c. The product of arbitrary numbers of matrices is supported. For more than two arguments the product is evaluated from back to front.