Compute a Matrix Decomposition.
Compute sgn, scale, M such that .
.decomp_quad(P, cond = NA, rcond = NA)
P
: A real symmetric positive or negative (semi)definite input matrixcond
: Cutoff for small eigenvalues. Singular values smaller than rcond * largest_eigenvalue are considered negligible.rcond
: Cutoff for small eigenvalues. Singular values smaller than rcond * largest_eigenvalue are considered negligible.A list consisting of induced matrix 2-norm of P and a rectangular matrix such that P = scale * (dot(M1, t(M1)) - dot(M2, t(M2)))