matrix-except-all ( matrix -- submatrices )
Matrix operations

Prev:matrix-except ( matrix exclude-pair -- submatrix )
Next:matrix-map ( matrix quot: ( ... elt -- ... elt' ) -- matrix' )


Vocabulary
math.matrices

Inputs
matrixa matrix


Outputs
submatricesa sequence of matrixs


Word description
Find every possible submatrix of matrix by using matrix-except for every value's row-column pair.

Examples
There are 9 possible 2x2 submatrices of a 3x3 matrix with 9 indices, because there are 9 indices to exclude creating a new submatrix.
USING: math.matrices prettyprint ; { { 0 1 2 } { 3 4 5 } { 6 7 8 } } matrix-except-all .
{ { { { 4 5 } { 7 8 } } { { 3 5 } { 6 8 } } { { 3 4 } { 6 7 } } } { { { 1 2 } { 7 8 } } { { 0 2 } { 6 8 } } { { 0 1 } { 6 7 } } } { { { 1 2 } { 4 5 } } { { 0 2 } { 3 5 } } { { 0 1 } { 3 4 } } } }


Definition