Matrix inverse and pseudo-inverse by the Armadillo C++ library.
ainv(x) apinv(x)
x
a numeric matrix, must be square for ainv.
ainv
The matrix-inverse or pseudo-inverse.
ainv(crossprod(diff(EuStockMarkets)))