Actual source code: taomatselfsolver.c

  1: #include "tao_general.h"    /*I "tao_solver.h"  I*/
  2: #include "taomatselfsolver.h"
  3: #include "taomat.h"

  7: int TaoMatSelfSolver::PreSolve(TaoMat* M){
  8:   int info;
  9:   TaoFunctionBegin;
 10:   this->tmoperator=M;
 11:   info=M->Presolve(); CHKERRQ(info);
 12:   TaoFunctionReturn(0);
 13: }

 17: int TaoMatSelfSolver::Solve(TaoVec* b, TaoVec* x, TaoTruth *flag){
 18:   int info;
 19:   TaoFunctionBegin;
 20:   if (!this->tmoperator){
 21:     SETERRQ(56,"No PreSolve() operation called or invalide matrix.");
 22:   }
 23:   info = this->tmoperator->Solve(b,x,flag);CHKERRQ(info);
 24:   TaoFunctionReturn(0);
 25: }

 29: int TaoMatSelfSolver::GetNumberIterations(int * iters){
 30:   TaoFunctionBegin;
 31:   *iters=1;
 32:   TaoFunctionReturn(0);
 33: }

 37: int TaoMatSelfSolver::SetTolerances(double rtol, double atol, double dtol, int maxits){
 38:   TaoFunctionBegin;
 39:   TaoFunctionReturn(0);
 40: }

 44: int TaoMatSelfSolver::SetOptions(){
 45:   TaoFunctionBegin;
 46:   TaoFunctionReturn(0);
 47: }

 51: int TaoMatSelfSolver::View(){
 52:   TaoFunctionBegin;
 53:   TaoFunctionReturn(0);
 54: }