KrisLibrary
1.0.0
|
Compute reduced row-eschelon form for a matrix A. More...
#include <RowEchelon.h>
Public Types | |
typedef MatrixTemplate< T > | MatrixT |
typedef VectorTemplate< T > | VectorT |
Public Member Functions | |
RowEchelon (const MatrixT &A) | |
RowEchelon (const MatrixT &A, const VectorT &b) | |
RowEchelon (const MatrixT &A, const MatrixT &B) | |
void | set (const MatrixT &A) |
void | set (const MatrixT &A, const VectorT &b) |
void | set (const MatrixT &A, const MatrixT &B) |
void | backSub (VectorT &x) const |
int | getRank () const |
int | getNull () const |
void | getNullspace (MatrixT &N) const |
Returns a orthonormal basis for the nullspace in the columns of N. | |
void | getAllSolutions (VectorT &x0, MatrixT &N) const |
Calculates a pseudoinverse x0 as well as a nullspace matrix N. | |
void | calcFirstEntries () |
Public Attributes | |
MatrixT | R |
MatrixT | EB |
std::vector< int > | firstEntry |
indexes the first entry in each row of r | |
Compute reduced row-eschelon form for a matrix A.
Back-substitution of Ax=b is done by providing b at initialization.