Learn R Programming

QRFCCA (version 1.0)

myinv: Generailized inverse

Description

Calculate the generalized inverse of a matrix

Usage

myinv(A)

Arguments

A

A is the input data matrix.

Value

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

Details

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

See Also

p_ginv

Examples

Run this code
# NOT RUN {
 X = matrix(rnorm(25,0,1),nrow=5,ncol=5);
 X_inv = myinv(X);
# }

Run the code above in your browser using DataLab