n-m ( n m -- m )
Matrix operations

Prev:n+m ( n m -- m )
Next:n*m ( n m -- m )


Vocabulary
math.matrices

Inputs
nan object
ma matrix


Outputs
ma matrix


Word description
n is treated as a scalar and subtracted from each element of the matrix m.

Notes
This word is the swapped variant of m-n.
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: kernel math.matrices prettyprint ; 1 3 <identity-matrix> n-m .
{ { 0 1 1 } { 1 0 1 } { 1 1 0 } }


Definition