invsqrt_psd_matrix: 'invsqrt_psd_matrix': inverse square root of a positive...

Description Usage Arguments Details Value See Also

View source: R/utils.R

Description

invsqrt_psd_matrix takes a square, positive semi-definite matrix and returns the inverse square root of that matrix (via the eigenvalue decomposition by way of tolerance_eigen).

Usage

1

Arguments

x

A square matrix (presumably positive semi-definite)

Details

Note that invsqrt_psd_matrix uses tolerance_eigen(...,tol=1e-13) with the tolerance fixed at 1e-13. This enforces an "acceptably zero" value for eigenvalues, and also stops the computation if any eigenvalues are not zero or positive (within the tolerance parameter). If the computation is halted, that means the matrix was not positive semi-definite.

Value

A matrix. The inverse square root of the x matrix

See Also

tolerance_eigen


derekbeaton/GSVD documentation built on Jan. 2, 2021, 9:21 p.m.