linalg(deprecated)
rowspace
compute a basis for the row space
colspace
compute a basis for the column space
Calling Sequence
Parameters
Description
Examples
rowspace(A)
colspace(A)
rowspace(A, 'dim')
colspace(A, 'dim')
A
-
matrix
'dim'
(optional) unevaluated name
Important: The linalg package has been deprecated. Use the superseding packages LinearAlgebra[RowSpace] and LinearAlgebra[ColumnSpace], instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
The functions rowspace(A) and colspace(A) return a set of vectors that form a basis for the vector space spanned by the rows and columns of the matrix A, respectively. The vectors are returned in a canonical form with leading entries 1.
The optional second parameter 'dim' is assigned the rank of A, which is the dimension of the row and column space.
These functions are part of the linalg package, and so can be used in the form rowspace(..) only after performing the command with(linalg) or with(linalg, rowspace). They can always be accessed in the long form linalg[rowspace](..).
with⁡linalg:
A≔matrix⁡3,2,2,0,3,4,0,5
A≔203405
rowspace⁡A
01,10
colspace⁡A
10−158,0154
B≔array⁡0,0,0,1,0,0,x,0,0,0,0,0,y,y,0,0,x,0,1,0
B≔000100x00000yy00x010
rowspace⁡B,d
00100,00010,01000
C≔matrix⁡3,3,154,−34⁢sqrt⁡10,14⁢sqrt⁡165,−34⁢sqrt⁡10,32,−14⁢sqrt⁡66,14⁢sqrt⁡165,−14⁢sqrt⁡66,114
C≔154−3⁢1041654−3⁢10432−6641654−664114
colspace⁡C
010,001,100
See Also
linalg(deprecated)[gaussjord]
linalg(deprecated)[hermite]
linalg(deprecated)[rowspan]
LinearAlgebra
Download Help Document