DeleteColumn - Maple Help

LinearAlgebra

 DeleteRow
 delete row(s) of a Matrix
 DeleteColumn
 delete column(s) of a Matrix

 Calling Sequence DeleteRow(A, L, options) DeleteColumn(A, L, options)

Parameters

 A - Matrix L - integer, range with integer endpoints, or list of integers and/or ranges with integer endpoints; row (column) selection options - (optional); constructor options for the result object

Description

 • The DeleteRow(A, L) (DeleteColumn(A, L)) function returns a submatrix of A obtained by deleting the rows (columns) determined by the selection parameter L. For more information regarding parameter L, see Matrix and Vector Entry Selection.
 • The constructor options provide additional information (readonly, shape, storage, order, datatype, and attributes) to the Matrix constructor that builds the result. These options may also be provided in the form outputoptions=[...], where [...] represents a Maple list.  If a constructor option is provided in both the calling sequence directly and in an outputoptions option, the latter takes precedence (regardless of the order).
 • These functions are part of the LinearAlgebra package, and so they can be used in the form DeleteRow(..) or DeleteColumn(..) only after executing the command with(LinearAlgebra). However, it can always be accessed through the long form of the command by using LinearAlgebra[DeleteRow](..) or LinearAlgebra[DeleteColumn](..).

Examples

 > $\mathrm{with}\left(\mathrm{LinearAlgebra}\right):$
 > $A≔⟨⟨1,2,3⟩|⟨4,5,6⟩|⟨7,8,9⟩⟩$
 ${A}{≔}\left[\begin{array}{ccc}{1}& {4}& {7}\\ {2}& {5}& {8}\\ {3}& {6}& {9}\end{array}\right]$ (1)
 > $\mathrm{DeleteRow}\left(A,-2..3\right)$
 $\left[\begin{array}{ccc}{1}& {4}& {7}\end{array}\right]$ (2)
 > $\mathrm{DeleteColumn}\left(A,\left[1,3\right]\right)$
 $\left[\begin{array}{c}{4}\\ {5}\\ {6}\end{array}\right]$ (3)
 > $\mathrm{DeleteRow}\left(A,3\right)$
 $\left[\begin{array}{ccc}{1}& {4}& {7}\\ {2}& {5}& {8}\end{array}\right]$ (4)