Skip to contents

Computes the eigenvalues of a symmetric matrix and tests the smallest against a tolerance.

Usage

morie_gsplat_psd(S, tol = -1e-09)

Arguments

S

3x3 symmetric matrix.

tol

Tolerance for min_eigenvalue >= tol.

Value

A list with eigenvalues, min_eigenvalue and psd.

References

Kerbl, B. et al. (2023).

Examples

morie_gsplat_psd(diag(c(1, 2, 3)))$psd
#> [1] TRUE
morie_gsplat_psd(matrix(c(1, 2, 0, 2, 1, 0, 0, 0, 1), 3))$psd
#> [1] FALSE