Learn R Programming

BioPhysConnectoR (version 1.6-10)

get.svd: Singular Value Decomposition

Description

Computation of the singular value decomposition for a matrix. Sorts the eigenvalues in ascending order by maintaining their original order in an index array.

Usage

get.svd(hessian.mat, linpack = TRUE)

Arguments

hessian.mat
input matrix is a Hessian matrix
linpack
logical, specifies whether LINPACK or LAPACK routines are used

Value

Return value is a list with the following components:
$v
matrix with eigenvectors in each column
$indx
index array for the sorted eigenvalues
$ev
vector with the sorted eigenvalues
$u
matrix with eigenvectors in each column

See Also

mat.sort, build.hess

Examples

Run this code
a<-matrix(round(runif(9, 1, 5)), 3, 3)
out<-get.svd(a)

Run the code above in your browser using DataLab