m+ ( m1 m2 -- m )
Matrix operations

Prev:n/m ( n m -- m )
Next:m- ( m1 m2 -- m )


Vocabulary
math.matrices

Inputs
m1a matrix
m2a matrix


Outputs
ma matrix


Word description
Adds two matrices element-wise.

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 )


Examples
USING: math.matrices prettyprint ; { { 1 2 3 } { 3 2 1 } } { { 4 5 6 } { 6 5 4 } } m+ .
{ { 5 7 9 } { 9 7 5 } }


Definition