Vocabularymath.
matricesInputsOutputsWord descriptionFind every possible submatrix of
matrix by using
matrix-except for every value's row-column pair.
ExamplesThere 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