
Last chance! 50% off unlimited learning
Sale ends in
Get inverse of matrisx or solve Ax=b.
ginv(G, x, tol = 1e-12)
inverse as a N by 1 matrix.
Design Matrix
right hand side
tolerance
Jonathan M. Lees<jonathan.lees@unc.edu>
This function used as alternative to matlab code that does this h = G\x to get the inverse
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
Run the code above in your browser using DataLab