powered by
Get inverse of matrisx or solve Ax=b.
ginv(G, x, tol = 1e-12)
Design Matrix
right hand side
tolerance
inverse as a N by 1 matrix.
This function used as alternative to matlab code that does this h = G\x to get the inverse
solve, Ainv
# NOT RUN { 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 # }
Run the code above in your browser using DataLab