Gadget
ludecomposition.h
Go to the documentation of this file.
1 #ifndef ludecomposition_h
2 #define ludecomposition_h
3 
4 #include "doublematrix.h"
5 
11 public:
20  LUDecomposition(const DoubleMatrix& A);
35  double getLogDet() { return logdet; };
40  int isIllegal() { return illegal; };
41 private:
45  DoubleMatrix L;
49  DoubleMatrix U;
53  double logdet;
57  int size;
61  int illegal;
62 };
63 
64 #endif
This class implements a dynamic vector of DoubleVector values.
Definition: doublematrix.h:11
This class implements a dynamic vector of double values.
Definition: doublevector.h:11
This is the class used to calculate a LU decomposition of a rectangular matrix to solve the matrix eq...
Definition: ludecomposition.h:10
~LUDecomposition()
This is the default LUDecomposition destructor.
Definition: ludecomposition.h:24
DoubleVector Solve(const DoubleVector &b)
This function will solve the matrix equation A = bx and return the resulting DoubleVector.
Definition: ludecomposition.cc:50
LUDecomposition()
This is the default LUDecomposition constructor.
Definition: ludecomposition.h:15
double getLogDet()
This function will return the log of the determinate of the matrix.
Definition: ludecomposition.h:35
int isIllegal()
This function will return the flag to denote whether the algorithm will fail.
Definition: ludecomposition.h:40