m*1/det ( matrix -- matrix' )
Extra matrix operations

Prev:1/det ( matrix -- 1/det )
Next:>minors ( matrix -- matrix' )


Vocabulary
math.matrices.extras

Inputs
matrixa square-matrix


Outputs
matrix'a square-matrix


Word description
Multiply the input matrix by the inverse (recip) of its determinant.

Notes
This word is used to implement recip for square-matrix.
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:
determinant ( matrix -- determinant )

recip ( x -- y )


Examples
USING: math.matrices.extras prettyprint ; { { -14 0 -13 7 } { -4 11 7 -12 } { -3 2 9 -14 } { 3 -5 10 -2 } } m*1/det .
{ { 7/6855 0 13/13710 -7/13710 } { 2/6855 -11/13710 -7/13710 2/2285 } { 1/4570 -1/6855 -3/4570 7/6855 } { -1/4570 1/2742 -1/1371 1/6855 } }


Definition