Function Repository Resource:

# RowSpaceBasis

Return a basis for the subspace spanned by the rows of the matrix

Contributed by: Dennis M Schneider
 ResourceFunction["RowSpaceBasis"][mat] returns the reduced-echelon basis of the row space of mat.

## Details and Options

The vectors returned by ResourceFunction["RowSpaceBasis"] are the nonzero rows in the reduced echelon form of the matrix. In general, these vectors will be different from the rows of the matrix, but they will span the same subspace as the rows of the matrix.
To find a basis for the row space comprised of rows of the original matrix, use the fact that the row space of a matrix is equal to the column space of the transpose of the matrix. Since ColumnSpaceBasis[Transpose[mat]] returns a subset of the original columns of Transpose[mat] that span the column space, these basis vectors will span the rowspace of mat.

## Examples

### Basic Examples (2)

Compute the row space basis of an input matrix:

 In:= Out= Check that the reduced echelon forms have the same nonzero vectors:

 In:= Out= In:= Out= ### Basic Scope (3)

Define a matrix with complex entries:

 In:= Out= Find the row space basis of it:

 In:= Out= Check the result:

 In:= Out= In:= Out= ## Publisher

Dennis M Schneider

## Version History

• 1.0.0 – 08 August 2019