matrix_rank: Calculates the rank of a matrix.

Description Usage Arguments Value See Also Examples

View source: R/homology_calculation.R

Description

This function calculates the rank of a matrix, using Gaussian elimination.

Usage

1

Arguments

A

A matrix, the rank of which one wants to know.

Value

An integer, the rank of the matrix.

See Also

GaussianElimination

Examples

1
2
3
4
test_mat <- matrix(c(2,4,4, -6,6,12, 10,-4,-16), nrow=3, ncol=3, byrow=TRUE)
matrix_rank(test_mat)
#output:
# 2

quhomology documentation built on May 1, 2019, 8:44 p.m.