extract row(s) of a matrix as vector(s)
extract column(s) of a matrix as vectors(s)
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](..).
A ≔ matrix⁡3,3,1,2,3,4,5,6,7,8,9
A ≔ 123456789
Download Help Document
What kind of issue would you like to report? (Optional)
Thank you for submitting feedback on this help document. Your feedback will be used
to improve Maple's help in the future.