template
class
LUMatrix<class>
(Return to index)
Triangle decomposition of a matrix.
A templated representation of a LU-decomposition.
Constructed from a Matrix<T>, this class remembers the triangular
decomposition and can return the back-substitution or the inverse.
When LUMatrix is used on a complex matrix, then the statement
include std::abs;
is required in the calling file, so as to inject the abs()
function to the global namespace.
Type: |
Instantiable |
Include file: |
./Algebra/LUMatrix.hh |
Synopsis (including inherited members):
- Public members:
-
LUMatrix
(const Matrix<T>&)
;
-
LUMatrix
()
;
-
LUMatrix
(const LUMatrix<T>&)
;
-
~LUMatrix
()
;
-
LUMatrix<T>& operator=
(const LUMatrix<T>&)
;
-
void backSubstitute
(Vector<T>&)const
;
-
void backSubstitute
(Matrix<T>&)const
;
-
Matrix<T> inverse
()const
;
- template <class>
void backSubstitute
(Iterator)const
;
Documentation:
- Public members:
-
LUMatrix
(const Matrix<T>&)
;
- Constructor.
Construct triangular decomposition of m.
Throw SingularMatrixError if the m is singular.
-
void backSubstitute
(Vector<T>&)const
;
- Back substitution.
Perform back substitution on the vector B.
The new B is the old B, pre-multiplied by the inverse.
-
void backSubstitute
(Matrix<T>&)const
;
- Back substitution.
Perform back substitution on the matrix M.
The new M is the old M, pre-multiplied by the inverse.
-
Matrix<T> inverse
()const
;
- Get inverse.
Construct and return the inverse.
Documentation generated by fci on Mon Feb 7 11:41:41 2000