Learn R Programming

quhomology (version 1.1.1)

row_space: Row Space of a Matrix.

Description

This calculates the space spanned by the rows of a matrix, or, more precisely, a basis for it. This is done via calculation of the Hermite Normal Form of said matrix.

Usage

row_space(B)

Arguments

B

The matrix whose row space one wants to know.

Value

A Matrix, consisting of the basis of the space spanned by the rows, plus potentially rows of zeros, so the dimensions of this matrix are the same as of the matrix $B$.

Details

Calculates row space of a matrix via its hermite normal form.

See Also

hermiteNF

Examples

Run this code
# NOT RUN {
test_mat <- matrix(c(2,4,4, -6,6,12, 10,-4,-16), nrow=3, ncol=3, byrow=TRUE)
row_space(test_mat)
# }

Run the code above in your browser using DataLab