Exponential-matrix covariance link function

Description

Given a matrix U the function mc_expm returns the exponential-matrix expm(U) and some auxiliares matrices to compute its derivatives. This function is based on the eigen-value decomposition it means that it is very slow.

Usage

1
mc_expm(U, n = dim(U)[1], sparse = FALSE, inverse = FALSE)

Arguments

U

A matrix.

n

A number specifing the dimension of the matrix U. Default n = dim(U)[1].

sparse

Logical defining the class of the output matrix. If sparse = TRUE the output class will be 'dgCMatrix' if sparse = FALSE the class will be 'dgMatrix'.

inverse

Logical defining if the inverse will be computed or not.

Value

A list with Ω = expm(U) its inverse (if inverse = TRUE) and auxiliares matrices to compute the derivatives.

Author(s)

Wagner Hugo Bonat

See Also

expm, eigen, link[mcglm]{mc_dexp_gold}.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.