myinv: Generailized inverse

Description Usage Arguments Details Value See Also Examples

View source: R/myinv.R

Description

Calculate the generalized inverse of a matrix

Usage

1
myinv(A)

Arguments

A

A is the input data matrix.

Details

Calculate the generalized inverse of input matrix A by using singular value decomposition.

Value

A matrix which is the generalized inverse of the input matrix.

See Also

p_ginv

Examples

1
2
 X = matrix(rnorm(25,0,1),nrow=5,ncol=5);
 X_inv = myinv(X);

QRFCCA documentation built on Nov. 17, 2017, 7:20 a.m.