Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

SystemSolver Class Reference

#include <SystemSolver.h>

List of all members.

Public Member Functions

Static Public Member Functions


Detailed Description

Functions for solving linear systems of equations. After Numerical Recipes (Press et al.)

Definition at line 12 of file SystemSolver.h.


Constructor & Destructor Documentation

SystemSolver::SystemSolver  ) 
 

Definition at line 12 of file SystemSolver.cpp.

SystemSolver::~SystemSolver  )  [virtual]
 

Definition at line 15 of file SystemSolver.cpp.


Member Function Documentation

void SystemSolver::luDecompose real **  a,
int  n,
int *  index,
real tempVector
[static]
 

Given a square matrix a of dimension n, the routine replaces it by the LU decomposition of a rowwise permutation of itself. The original a matrix is destroyed and replaced with the output. index[0..n-1] is an output vector that records the row permutation. tempVector is a temporary vector, it may be preallocated to a size at least n.

Definition at line 18 of file SystemSolver.cpp.

References real.

void SystemSolver::luSubstitute real **  a,
int  n,
int *  index,
real b
[static]
 

Solves the set of equations a x=b. a should previously be decomposed with luDecompose. index is the vector provided by luDecompose. b is destroyed and replaced with the solution vector.

Definition at line 66 of file SystemSolver.cpp.

References real.

void SystemSolver::svDecompose real **  a,
int  n,
real w,
real **  v,
real tempVector
[static]
 

Singular value decomposition of square matrix a of dimension n as u w vT. The data in the original matrix is destroyed, and is replaced with u.

Definition at line 86 of file SystemSolver.cpp.

References MathTools::max(), MathTools::modulus(), real, and MathTools::setSign().

Referenced by ContactSolver::driveToZero().

void SystemSolver::svSubstitute real **  u,
int  n,
real w,
real **  v,
real b,
real tempVector
[static]
 

Solves the set of equations u w vT x=b. u, w, v should previously be generated with svDecompose. w is replaced with the solution vector.

Definition at line 262 of file SystemSolver.cpp.

References real.

Referenced by ContactSolver::driveToZero().


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

Thyrix homepageUsers' guide

(C) Arxia 2004-2005