linalg(deprecated)
delrows
delete rows of a matrix
delcols
delete columns of a matrix
Calling Sequence
Parameters
Description
Examples
delrows(A, r..s)
delcols(A, r..s)
A
-
matrix
r..s
integer range
Important: The linalg package has been deprecated. Use the superseding commands, LinearAlgebra[DeleteRow] and LinearAlgebra[DeleteColumn], instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
The function delrows(A, r..s) returns the submatrix of the matrix A obtained by deleting rows r through s. Similarly delcols(A, r..s) returns the submatrix of A obtained by deleting columns r through s.
These functions are part of the linalg package, and so can be used in the form delrows(..) only after performing the command with(linalg) or with(linalg,delrows). These functions can always be accessed in the long form linalg[delrows](..).
with⁡linalg:
a≔matrix⁡3,3,1,2,3,4,5,6,7,8,9
a≔123456789
delrows⁡a,2..3
123
delcols⁡a,1..1
235689
See Also
linalg(deprecated)[row]
linalg(deprecated)[submatrix]
LinearAlgebra
Download Help Document