Learn R Programming

RationalMatrix (version 1.0.0)

Qkernel: Kernel of a rational matrix

Description

Kernel (null-space) of a rational matrix.

Usage

Qkernel(M)

Value

A character matrix representing a basis of the kernel of M. Note that this basis is not orthogonal.

Arguments

M

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

Examples

Run this code
library(RationalMatrix)
set.seed(666L)
M <- matrix(rpois(30L, 6), 10L, 3L)
M <- cbind(M, M[,1] + M[,2], M[,2] + 2L*M[,3])
Qkernel(M)

Run the code above in your browser using DataLab