Learn R Programming

MultiATSM (version 0.3.6)

mult__inv: Inverts an array of matrices so that: inva[,,i] = inv(a[,,i])

Description

Inverts an array of matrices so that: inva[,,i] = inv(a[,,i])

Usage

mult__inv(a, whichoutput, nargout)

Value

"nargout == 1" returns inva -> matrix array: a^(-1) (N x N x T)

"nargout == 2" returns inva -> matrix array: a^(-1) (N x N x T) and logabsdet -> vector of log(abs(det(a))) (1 x T)

Arguments

a

matrix array (N x N x T)

whichoutput

if = 'lobabsdet' computes the log(abs(det(a))) only (text).

nargout

"nargout == 1" or "nargout == 2"(scalar)

References

This function is modified version of the "mult__inv" function by Le and Singleton (2018).
"A Small Package of Matlab Routines for the Estimation of Some Term Structure Models."
(Euro Area Business Cycle Network Training School - Term Structure Modelling). Available at: https://cepr.org/40029