#include <svd.h>
It can also solve systems of linear equations using the SVD method. In doing so it eliminates small singular values to improve matrix conditioning.
Definition at line 40 of file svd.h.
Public Member Functions | |
| SVD (int l=CONVERGE_LIMIT) | |
| Constructor. | |
| bool | compute (TNT::Matrix< double > &A, TNT::Vector< double > &W, TNT::Matrix< double > &V) |
| Computes SVD using TNT Matrices. | |
| void | solve (TNT::Matrix< double > &U, TNT::Vector< double > &W, TNT::Matrix< double > &V, TNT::Vector< double > b, TNT::Vector< double > &x) |
| Solves a system of equations using SVD components. | |
| bool | solve (TNT::Matrix< double > A, TNT::Vector< double > &x, TNT::Vector< double > b) |
| Solves a system of equations. | |
Private Member Functions | |
| double | pythag (double a, double b) |
| Computes sqrt(a^2 + b^2 ). | |
| void | condition (TNT::Vector< double > &w) |
| Fixes ill-conditioning by removing small singular values. | |
Private Attributes | |
| int | limit |
| Maximum number of iterations for convergance. | |
|
|
Constructor.
Definition at line 58 of file svd.h. References limit. |
|
||||||||||||||||
|
Computes SVD using TNT Matrices.
Definition at line 93 of file svd.cpp. References FMAX, IMIN, limit, pythag(), and SIGN. Referenced by solve(). |
|
|
Fixes ill-conditioning by removing small singular values.
Definition at line 33 of file svd.cpp. Referenced by solve(). |
|
||||||||||||
|
Computes sqrt(a^2 + b^2 ). No destructive underflow or overflow. Definition at line 16 of file svd.cpp. References SQR. Referenced by compute(). |
|
||||||||||||||||
|
Solves a system of equations.
Definition at line 323 of file svd.cpp. References compute(), condition(), and solve(). |
|
||||||||||||||||||||||||
|
Solves a system of equations using SVD components.
Definition at line 287 of file svd.cpp. Referenced by SurfacePropagation::applyConstraint(), Implicit::interpolate(), and solve(). |
|
|
Maximum number of iterations for convergance.
|
1.3.4