Learn R Programming

dfms (version 0.2.2)

ainv: Armadillo's Inverse Functions

Description

Matrix inverse and pseudo-inverse by the Armadillo C++ library.

Usage

ainv(x)

apinv(x)

Value

The matrix-inverse or pseudo-inverse.

Arguments

x

a numeric matrix, must be square for ainv.

Examples

Run this code
ainv(crossprod(diff(EuStockMarkets)))

Run the code above in your browser using DataLab