Logo Search packages:      
Sourcecode: inkscape version File versions

Inkscape::Extension::Internal::SingularValueDecomposition Class Reference

List of all members.

Detailed Description


NOTE: This class is ported almost verbatim from the public domain JAMA Matrix package. It is modified to handle only 3x3 matrices and our Geom::Matrix affine transform class. We give full attribution to them, along with many thanks. JAMA can be found at: http://math.nist.gov/javanumerics/jama


Singular Value Decomposition.

For an m-by-n matrix A with m >= n, the singular value decomposition is an m-by-n orthogonal matrix U, an n-by-n diagonal matrix S, and an n-by-n orthogonal matrix V so that A = U*S*V'.

The singular values, sigma[k] = S[k][k], are ordered so that sigma[0] >= sigma[1] >= ... >= sigma[n-1].

The singular value decompostion always exists, so the constructor will never fail. The matrix condition number and the effective numerical rank can be computed from this decomposition.

Definition at line 280 of file odf.cpp.

Public Member Functions

double cond ()
double getS (unsigned int index)
SVDMatrix & getU ()
SVDMatrix & getV ()
double norm2 ()
int rank ()
 SingularValueDecomposition (const SVDMatrix &mat)

Private Member Functions

void calculate ()

Private Attributes

SVDMatrix A
double * s
unsigned int s_size
SVDMatrix U
SVDMatrix V

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index