Get inverse
Get inverse of matrisx or solve Ax=b.
ginv(G, x, tol = 1e-12)
G |
Design Matrix |
x |
right hand side |
tol |
tolerance |
This function used as alternative to matlab code that does this h = G\x to get the inverse
inverse as a N by 1 matrix.
Be careful about the usage of tolerance
Jonathan M. Lees<jonathan.lees@unc.edu>
solve, Ainv
set.seed(2015) GAB = matrix(runif(36), ncol=6) truex =rnorm(ncol(GAB)) rhs = GAB %*% truex rhs = as.vector(rhs ) tout = ginv(GAB, rhs, tol = 1e-12) tout - truex
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.