Qrank {RationalMatrix}R Documentation

Rank of a rational matrix

Description

Returns the rank of a rational matrix.

Usage

Qrank(M)

Arguments

M

a matrix such that as.character(Mij) is a quoted integer or a quoted fraction for each entry Mij

Value

An integer, the rank of M.

Examples

library(RationalMatrix)
M <- cbind(c("1/2", "3", "1"), c("5/3", "-2/7", "10/3"), c("1", "1", "2"))
Qrank(M)

[Package RationalMatrix version 1.0.0 Index]