>minors ( matrix -- matrix' )
Extra matrix operations

Prev:m*1/det ( matrix -- matrix' )
Next:>cofactors ( matrix -- matrix' )


Vocabulary
math.matrices.extras

Inputs
matrixa square-matrix


Outputs
matrix'a square-matrix


Word description
Calculate the matrix of minors of the input matrix. See minor on Wikipedia.

Notes
The shape of the input matrix is preserved in the output.
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 )


Errors
non-square-determinant if the input matrix is not a square-matrix.

Examples
USING: math.matrices.extras prettyprint ; { { -8 0 7 -11 } { 15 0 -3 -11 } { 1 -10 -4 6 } { 11 -15 3 -15 } } >minors .
{ { 1710 -130 2555 -1635 } { -690 -286 -2965 1385 } { 1650 -754 3795 -1215 } { 1100 416 2530 -810 } }


Definition