matrix-except ( matrix exclude-pair -- submatrix ) (original) (raw)
matrix-except ( matrix exclude-pair -- submatrix )
Matrix operations
Prev: | cols-except ( matrix desc -- others ) |
---|---|
Next: | matrix-except-all ( matrix -- submatrices ) |
Inputs
matrix | a matrix |
---|---|
exclude-pair | a pair |
Outputs
submatrix | a matrix |
---|
Word description
Get all the rows and columns from matrix except the row and column given in exclude-pair. The result is the submatrix containing no values from the given row and column.
Examples
USING: math.matrices prettyprint ; { { 0 1 } { 2 3 } } { 0 1 } matrix-except .
{ { 2 } }
Definition
: matrix-except ( matrix exclude-pair -- submatrix )
first2 [ rows-except ] dip cols-except ;