Handbook
Glossary
matrix-except ( matrix exclude-pair -- submatrix )
Matrix operations
Prev:
cols-except ( matrix desc -- others )
Next:
matrix-except-all ( matrix -- submatrices )
Vocabulary
math
.
matrices
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
USING:
kernel
sequences
;
IN:
math.matrices
:
matrix-except
( matrix exclude-pair -- submatrix )
first2
[
rows-except
]
dip
cols-except
;