Learn R Programming

limSolve (version 1.5.1)

resolution: Row and column resolution of a matrix.

Description

Given an input matrix or its singular value decomposition,

calculates the resolution of the equations (rows) and of the unknowns (columns) of the matrix.

Usage

resolution ( s, tol=sqrt(.Machine$double.eps))

Arguments

s
either a matrix or its singular value decomposition.
tol
tolerance for the singular values.

Value

  • a list containing:
  • rowresolution of the rows (equations).
  • colresolution of the columns (variables).
  • nsolvablenumber of solvable unknowns - the rank of the matrix.

References

Menke, W., 1989. Geophysical Data Analysis: Discrete Inverse Theory. Revised edition. International Geophysics Series. Academic Press, London.

See Also

svd, the singluar value decomposition

Examples

Run this code
resolution(matrix(nr=3,runif(9)))  #3rows,3columns
resolution(matrix(nr=3,runif(12))) #3rows,4columns
resolution(matrix(nr=3,runif(6)))  #3rows,2columns
resolution(cbind(c(1,2,3),c(2,3,4),c(3,5,7))) # r3=r1+r2,c3=c1+c2

Run the code above in your browser using DataLab