mtimes

General matrix-matrix multiplication. Allocates result to using Mir refcounted arrays.

  1. Slice!(RCI!T, 2) mtimes(Slice!(const(T)*, 2, kindA) a, Slice!(const(T)*, 2, kindB) b)
    @safe pure nothrow @nogc
    Slice!(RCI!T, 2)
    mtimes
    (
    T
    SliceKind kindA
    SliceKind kindB
    )
    (
    Slice!(const(T)*, 2, kindA) a
    ,
    Slice!(const(T)*, 2, kindB) b
    )
    if (
    isFloatingPoint!T ||
    isComplex!T
    )
    out (c) { assert (c.length!0 == a.length!0); assert (c.length!1 == b.length!1); }
  2. Slice!(RCI!(Unqual!A), 2) mtimes(Slice!(RCI!A, 2, kindA) a, Slice!(RCI!B, 2, kindB) b)
  3. Slice!(RCI!(Unqual!A), 2) mtimes(Slice!(RCI!A, 2, kindA) a, Slice!(const(B)*, 2, kindB) b)
  4. Slice!(RCI!(Unqual!A), 2) mtimes(Slice!(const(A)*, 2, kindA) a, Slice!(RCI!B, 2, kindB) b)

Parameters

a Slice!(const(T)*, 2, kindA)

m(rows) x k(cols) matrix

b Slice!(const(T)*, 2, kindB)

k(rows) x n(cols) matrix Result: m(rows) x n(cols)

Meta