cols-except ( matrix desc -- others ) (original) (raw)

cols-except ( matrix desc -- others )
Matrix operations

Prev: cols ( seq matrix -- cols )
Next: matrix-except ( matrix exclude-pair -- submatrix )

Vocabulary
math.matrices

Inputs

matrix a matrix
desc an integer or a sequence

Outputs

others a matrix

Generic word contract
Get all the columns 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 } cols-except .
{ { 2 12 } { 8 10 } { 1 3 } { 8 7 } }

Definition

IN: math.matrices

GENERIC: cols-except ( matrix desc -- others )

Methods

USING: math math.matrices math.matrices.private ;

M: integer cols-except scalar-except-quot simple-cols-except ;

USING: math.matrices math.matrices.private sequences ;

M: sequence cols-except
sequence-except-quot simple-cols-except ;