 LinearAlgebra - Maple Programming Help

Home : Support : Online Help : Mathematics : Linear Algebra : LinearAlgebra Package : SubOperations : LinearAlgebra/Row

LinearAlgebra

 Row
 return a sequence of row Vector(s) from a Matrix
 Column
 return a sequence of column Vector(s) from a Matrix

 Calling Sequence Row(A, L, options) Column(A, L, options)

Parameters

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

Description

 • The Row(A, L) (Column(A, L)) function returns an expression sequence of one or more row (column) Vectors corresponding to the specified rows (columns) of Matrix A, as 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 Vector 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).
 If constructor options are specified in the calling sequence, each resulting Vector has the same specified options.
 • This function is part of the LinearAlgebra package, and so it can be used in the form Row(..) only after executing the command with(LinearAlgebra). However, it can always be accessed through the long form of the command by using LinearAlgebra[Row](..).

Examples

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