#include <matrix/matrixMat.h>
Inheritance diagram for PLib::LUMatrix:
Public Methods | |
LUMatrix (int r, int c) | |
LUMatrix () | |
LUMatrix (const LUMatrix< T > &lu) | |
LUMatrix (const Matrix< T > &a) | |
void | resize (const int r, const int c) |
LUMatrix & | operator= (const LUMatrix< T > &) |
LUMatrix & | decompose (const Matrix< T > &a) |
T | determinant () |
Matrix< T > | inverse () |
void | inverseIn (Matrix< T > &) |
Public Attributes | |
const Vector< int > & | pivot |
Protected Attributes | |
int | errval |
int | sign |
This class was adapted from a class in the Kalman library written by Skip Carter (skip@taygeta.oc.nps.navy.mil
It performs the LU decomposition of a matrix. It can be used to find it's inverse and to solve linear systems.
This class can only be used with floating point values (float or double).
Definition at line 62 of file matrixMat.h.
|
Generetes a LU matrix from a matrix a.
Generetes a LU matrix from a matrix a.
Definition at line 70 of file matrixMat.cpp. References resize. |
|
Finds the determinant of a LU matrix.
Finds the determinant of a LU matrix.
Definition at line 198 of file matrixMat.cpp. References PLib::Basic2DArray::rows. |
|
Finds the inverse of the LU matrix.
Finds the inverse of the LU matrix.
Definition at line 339 of file matrixMat.cpp. References PLib::Basic2DArray::cols, inverse, inverseIn, and PLib::Basic2DArray::rows. Referenced by inverse. |
|
Finds the inverse of the LU matrix.
Finds the inverse of the LU matrix.
Definition at line 251 of file matrixMat.cpp. References PLib::Basic2DArray::cols, and PLib::Basic2DArray::rows. Referenced by inverse. |
|
assignment operator.
Assignment operator
Definition at line 49 of file matrixMat.cpp. References PLib::Basic2DArray::cols, resize, and PLib::Basic2DArray::rows. |
|
a destructive resize of the matrix dimensions.
Changes the matrix dimensions and intialize it to 0.
Reimplemented from PLib::Basic2DArray. Definition at line 70 of file matrixMat.h. |