linalg(deprecated)/rowspan - Maple Help

linalg(deprecated)

 rowspan
 compute spanning vectors for the row space
 colspan
 compute spanning vectors for the column space

 Calling Sequence rowspan(A) rowspan(A, 'dim') colspan(A) colspan(A, 'dim')

Parameters

 A - matrix of multivariate polynomials over the rationals 'dim' - assigned the dimension of the row space of A

Description

 • Important: The linalg package has been deprecated. Use the superseding packages, LinearAlgebra and VectorCalculus, instead.
 - For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
 • The functions rowspan and colspan compute a spanning set for the row space and column space respectively of the matrix A. The matrix A must be a matrix of multivariate polynomials over the rationals.  The spanning set returned is a set of vectors (one-dimensional arrays) of polynomials.
 • If the optional second argument is given, it will be assigned the rank of A, which is the dimension of the row space and column space.
 • These functions use fraction-free'' Gaussian elimination to triangularize the matrix.  Hence, unlike linalg[rowspace] and linalg[colspace], no rational expressions are introduced during the elimination; as a result, if variables are later assigned particular values, division by zero cannot occur.
 • These functions are part of the linalg package, and so can be used in the form rowspan(..) only after performing the command with(linalg) or with(linalg, rowspan).  These functions can always be accessed in the long form linalg[rowspan](..).

Examples

Important: The linalg package has been deprecated. Use the superseding packages, LinearAlgebra and VectorCalculus, instead.

 > $\mathrm{with}\left(\mathrm{linalg}\right):$
 > $A≔\mathrm{matrix}\left(2,2,\left[a,b,c,d\right]\right)$
 ${A}{≔}\left[\begin{array}{cc}{a}& {b}\\ {c}& {d}\end{array}\right]$ (1)
 > $\mathrm{rowspan}\left(A\right)$
 $\left\{\left[\begin{array}{cc}{a}& {b}\end{array}\right]{,}\left[\begin{array}{cc}{0}& {a}{}{d}{-}{b}{}{c}\end{array}\right]\right\}$ (2)
 > $\mathrm{colspan}\left(A\right)$
 $\left\{\left[\begin{array}{cc}{a}& {c}\end{array}\right]{,}\left[\begin{array}{cc}{0}& {a}{}{d}{-}{b}{}{c}\end{array}\right]\right\}$ (3)
 > $B≔\mathrm{matrix}\left(3,2,\left[x+y,y+2z,x,y,y,2z\right]\right)$
 ${B}{≔}\left[\begin{array}{cc}{x}{+}{y}& {y}{+}{2}{}{z}\\ {x}& {y}\\ {y}& {2}{}{z}\end{array}\right]$ (4)
 > $\mathrm{rowspan}\left(B,'d'\right)$
 $\left\{\left[\begin{array}{cc}{0}& {2}{}{x}{}{z}{-}{{y}}^{{2}}\end{array}\right]{,}\left[\begin{array}{cc}{x}& {y}\end{array}\right]\right\}$ (5)
 > $d$
 ${2}$ (6)