linalg(deprecated)/delrows - Maple Help

linalg(deprecated)

 delrows
 delete rows of a matrix
 delcols
 delete columns of a matrix

 Calling Sequence delrows(A, r..s) delcols(A, r..s)

Parameters

 A - matrix r..s - integer range

Description

 • 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](..).

Examples

Important: The linalg package has been deprecated. Use the superseding commands, LinearAlgebra[DeleteRow] and LinearAlgebra[DeleteColumn], instead.

 > $\mathrm{with}\left(\mathrm{linalg}\right):$
 > $a≔\mathrm{matrix}\left(3,3,\left[1,2,3,4,5,6,7,8,9\right]\right)$
 ${a}{≔}\left[\begin{array}{ccc}{1}& {2}& {3}\\ {4}& {5}& {6}\\ {7}& {8}& {9}\end{array}\right]$ (1)
 > $\mathrm{delrows}\left(a,2..3\right)$
 $\left[\begin{array}{ccc}{1}& {2}& {3}\end{array}\right]$ (2)
 > $\mathrm{delcols}\left(a,1..1\right)$
 $\left[\begin{array}{cc}{2}& {3}\\ {5}& {6}\\ {8}& {9}\end{array}\right]$ (3)