Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Return a basis for the subspace spanned by the columns of a matrix
ResourceFunction["ColumnSpaceBasis"][mat] returns a basis for the column space of mat. |
Define a matrix:
| In[1]:= |
| Out[1]= |
The first and third columns of the matrix are pivot columns:
| In[2]:= |
| Out[2]= |
Therefore, the first and third columns of the matrix form a basis for the column space:
| In[3]:= |
| Out[3]= |
Define a complex matrix:
| In[4]:= | ![]() |
| Out[4]= | ![]() |
The first three columns are all pivot columns:
| In[5]:= |
| Out[5]= | ![]() |
Therefore, the first three columns of the matrix form a basis for its column space:
| In[6]:= |
| Out[6]= |
RowReduce[ColumnSpaceBasis[mat]] gives the same result as RangeSpace[mat]:
| In[7]:= |
| Out[7]= |
| In[8]:= |
| Out[8]= |
This work is licensed under a Creative Commons Attribution 4.0 International License