 linalg(deprecated)/row - Maple Help

linalg(deprecated)

 row
 extract row(s) of a matrix as vector(s)
 col
 extract column(s) of a matrix as vectors(s) Calling Sequence row(A, i) row(A, i..k) col(A, i) col(A, i..k) Parameters

 A - matrix i, k - positive integers Description

 • Important: The linalg package has been deprecated. Use the superseding commands LinearAlgebra[Row] and LinearAlgebra[Column], instead.
 - For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
 • The function col(A, i) (row(A, i)) extracts the ith column (row) of the matrix A. The result is returned as a vector.
 • More generally, col(A, i.. k) (row(A, i.. k)) extracts a sequence of columns (rows) i..k of the matrix A.  The result is returned as a sequence of vectors.
 These functions are part of the linalg package, and so can be used in the form row(..) only after performing the command with(linalg) or with(linalg,row).  These functions can always be accessed in the long form linalg[row](..). Examples

Important: The linalg package has been deprecated. Use the superseding commands LinearAlgebra[Row] and LinearAlgebra[Column], 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{row}\left(A,2\right)$
 $\left[\begin{array}{ccc}{4}& {5}& {6}\end{array}\right]$ (2)
 > $\mathrm{col}\left(A,2..3\right)$
 $\left[\begin{array}{ccc}{2}& {5}& {8}\end{array}\right]{,}\left[\begin{array}{ccc}{3}& {6}& {9}\end{array}\right]$ (3)