Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Math Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWGenFact<T>

Module:  Essential Math    Group:  LU Factorization classes


Does not inherit

Local Index

Members

Non-Members

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, bool ce = true);
RWGenFact(const RWGenFact<T>&);

Public Member Functions

double
condition() const;
bool
fail() const;
void
factor(const RWGenMat<T>& m, bool ce = true);
bool
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 DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.