linalg(deprecated)
rowspan
compute spanning vectors for the row space
colspan
compute spanning vectors for the column space
Calling Sequence
Parameters
Description
Examples
rowspan(A)
rowspan(A, 'dim')
colspan(A)
colspan(A, 'dim')
A
-
matrix of multivariate polynomials over the rationals
'dim'
assigned the dimension of the row space of A
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](..).
with⁡linalg:
A≔matrix⁡2,2,a,b,c,d
A≔abcd
rowspan⁡A
0a⁢d−b⁢c,ab
colspan⁡A
ac,0a⁢d−b⁢c
B≔matrix⁡3,2,x+y,y+2⁢z,x,y,y,2⁢z
B≔x+yy+2⁢zxyy2⁢z
rowspan⁡B,d
xy,02⁢x⁢z−y2
d
2
See Also
linalg(deprecated)[gausselim]
linalg(deprecated)[rowspace]
LinearAlgebra
Download Help Document