Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWGenFact<T>



Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Synopsis

#include <rw/math/genfact.h>
#include <rw/math/genmat.h>
RWGenMat<T> matrix;
template <class T>
RWGenFact<T> LUFactor(matrix);

Description

Class RWGenFact<T> is a templatized LU factorization class. This class holds the LU factorization of a general square matrix of type T. Once such a factorization is built, it can be used to invert a matrix, calculate its determinant, or solve a set of simultaneous linear equations.

Optionally, a condition number can be calculated and then recovered via member function condition(), which returns the reciprocal of the standard definition for the condition number of a matrix.

The result is in the range [0,1]. The closer the result is to 0, the closer the matrix is to being singular. See Dongarra et al. (1979) for additional information.

Public Constructors

RWGenFact();
RWGenFact(const RWGenMat<T>& m, RWBoolean ce = TRUE);
RWGenFact(const RWGenFact<T>&);

Public Member Functions

double
condition() const;
RWBoolean
fail() const;
void
factor(const RWGenMat<T>& m, RWBoolean ce = TRUE);
RWBoolean
good() const;
int
isSingular() const;
unsigned
order() const;

Related Global Functions

double 
condition(const RWGenFact<T>& m);
double 
condition(const RWGenMat<T>& A);
T
determinant(const RWGenFact<T>& m);
RWGenMat<T>
inverse(const RWGenFact<T>& m);
RWGenMat<T>
inverse(const RWGenMat<T>& A);
RWMathVec<T>
solve(const RWGenFact<T>& m, const RWMathVec<T>& b);
RWGenMat<T>
solve(const RWGenFact<T>& m, const RWGenMat<T>& b);
RWMathVec<T>
solve(const RWGenMat<T>& A, const RWMathVec<T>& b);
RWGenMat<T>
solve(const RWGenMat<T>& A, const RWGenMat<T>& b);


Previous fileTop of DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.