00001 #ifndef __NEW_MAT_LINEAR_EQUATION_SOLVER_H__ 00002 #define __NEW_MAT_LINEAR_EQUATION_SOLVER_H__ 00003 00004 // ******************** linear equation solving ****************************/ 00005 00010 class LinearEquationSolver : public BaseMatrix 00011 { 00012 GeneralMatrix* gm; 00013 int search(const BaseMatrix*) const { return 0; } 00014 friend class BaseMatrix; 00015 public: 00016 LinearEquationSolver(const BaseMatrix& bm); 00017 ~LinearEquationSolver() { delete gm; } 00018 void cleanup() { delete gm; } 00019 GeneralMatrix* Evaluate(MatrixType) { return gm; } 00020 // probably should have an error message if MatrixType != UnSp 00021 NEW_DELETE(LinearEquationSolver) 00022 }; 00023 00024 #endif 00025