Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

GaussJordan Class Reference

#include <GaussJordan.h>

List of all members.

Static Public Member Functions

bool Solve (TNT::Matrix< double > &A, TNT::Vector< double > &b)
 Solves the equation Ax=b using Gauss-Jordan method.

bool Invert (TNT::Matrix< double > &A, TNT::Matrix< double > &AInv)
 Inverts the matrix A which is returned in AInv.


Member Function Documentation

bool GaussJordan::Invert TNT::Matrix< double > &  A,
TNT::Matrix< double > &  AInv
[static]
 

Inverts the matrix A which is returned in AInv.

This method leaves A untouched. If there is some problem with the input matrix A, we return false.

Parameters:
A The input matrix to be inverted.
AInv The resulting inverted matrix.
Returns:
False if there was some problem during the inversion process. Otherwise, True upon success.

Definition at line 112 of file GaussJordan.cpp.

References Solve().

Referenced by NewtonDegenerate::NewtonEquation(), and NewtonCritical::NewtonEquation().

bool GaussJordan::Solve TNT::Matrix< double > &  A,
TNT::Vector< double > &  b
[static]
 

Solves the equation Ax=b using Gauss-Jordan method.

You pass in the matrix A and the vector b. Upon return, A holds the inverse of the original matrix A and b holds the solution x = A^-1 * b. In other words, this method destroys both input A and b.

Parameters:
A Input Matrix, set to the inverse of A upon return.
b Input vector, set to the solution x upon return.
Returns:
False If matrix A is singular or some other problem arises.

Definition at line 24 of file GaussJordan.cpp.

Referenced by Invert().


The documentation for this class was generated from the following files:
Generated on Mon Jun 28 15:02:16 2004 for Advanced Surface Library by doxygen 1.3.4