Since | 18.0 |
void svddecomp(matrix3 input_M, matrix3 &output_U, vector &output_S, matrix3 &output_V)
vector svddecomp(matrix3 input_M)
Computes the
singular value decomposition
of a
3×3 matrix. More precisely, computes U
, S
, V
such that
M = U*T*transpose(V)
, where T
is the diagonal matrix constructed from S
,
the vector of singular values.
The second form of this function simply returns the vector of singular values.
matrix |