rows-except ( matrix desc -- others ) (original) (raw)
rows-except ( matrix desc -- others )
Matrix operations
Prev: | rows ( seq matrix -- rows ) |
---|---|
Next: | col ( n matrix -- col ) |
Inputs
matrix | a matrix |
---|---|
desc | an integer or a sequence |
Outputs
others | a matrix |
---|
Generic word contract
Get all the rows from matrix not described by desc.
Examples
USING: math.matrices prettyprint ; { { 2 7 12 2 } { 8 9 10 0 } { 1 3 3 5 } { 8 13 7 12 } } { 1 3 } rows-except .
{ { 2 7 12 2 } { 1 3 3 5 } }
Definition
GENERIC: rows-except ( matrix desc -- others )
Methods
USING: math math.matrices math.matrices.private ;
M: integer rows-except scalar-except-quot simple-rows-except ;
USING: math.matrices math.matrices.private sequences ;
M: sequence rows-except
sequence-except-quot simple-rows-except ;