rStats.js v1.3.0
    Preparing search index...

    Function matMul

    • Matrix product. Equivalent to R's %*%. A vector is taken as a row or a column so that the product is defined (two vectors give their inner product as a 1 x 1 matrix).

      Parameters

      Returns number[][]

      matMul([[1, 2], [3, 4]], [[5], [6]]); // [[17], [39]]
      matMul([1, 2, 3], [4, 5, 6]); // [[32]]