mdot ( m m -- m )
Matrix operations

Prev:mdotv ( m v -- p )
Next:dimension ( matrix -- dimension )


Vocabulary
math.matrices

Inputs
ma matrix


Outputs
ma matrix


Word description
Computes the dot product of two matrices, i.e multiplies them.

Notes
This word is intended for use with "flat" (2-dimensional) matrices.
This word assumes that elements of the input matrix are compatible with the following words:
* ( x y -- z )

+ ( x y -- z )


Examples
USING: math.matrices prettyprint ; { { 1 -1 2 } { 0 -3 1 } } { { 3 7 } { 9 12 } } mdot .
{ { -6 -5 } { -27 -36 } }


Definition