00001 /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ 00002 /* ******** *** SparseLib++ */ 00003 /* ******* ** *** *** *** */ 00004 /* ***** *** ******** ******** */ 00005 /* ***** *** ******** ******** R. Pozo */ 00006 /* ** ******* *** ** *** *** K. Remington */ 00007 /* ******** ******** A. Lumsdaine */ 00008 /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ 00009 /* */ 00010 /* */ 00011 /* SparseLib++ : Sparse Matrix Library */ 00012 /* */ 00013 /* National Institute of Standards and Technology */ 00014 /* University of Notre Dame */ 00015 /* Authors: R. Pozo, K. Remington, A. Lumsdaine */ 00016 /* */ 00017 /* NOTICE */ 00018 /* */ 00019 /* Permission to use, copy, modify, and distribute this software and */ 00020 /* its documentation for any purpose and without fee is hereby granted */ 00021 /* provided that the above notice appear in all copies and supporting */ 00022 /* documentation. */ 00023 /* */ 00024 /* Neither the Institutions (National Institute of Standards and Technology, */ 00025 /* University of Notre Dame) nor the Authors make any representations about */ 00026 /* the suitability of this software for any purpose. This software is */ 00027 /* provided ``as is'' without expressed or implied warranty. */ 00028 /* */ 00029 /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ 00030 00031 #ifndef ICPRE_H 00032 #define ICPRE_H 00033 00034 #include "vecdefs.h" 00035 #include VECTOR_H 00036 #include "comprow_double.h" 00037 #include "compcol_double.h" 00038 00039 00040 class ICPreconditioner_double { 00041 00042 private: 00043 VECTOR_double val_; 00044 VECTOR_int pntr_; 00045 VECTOR_int indx_; 00046 int nz_; 00047 int dim_[2]; 00048 00049 public: 00050 ICPreconditioner_double(const CompCol_Mat_double &A); 00051 ICPreconditioner_double(const CompRow_Mat_double &A); 00052 ~ICPreconditioner_double(void){}; 00053 00054 VECTOR_double solve(const VECTOR_double &x) const; 00055 VECTOR_double trans_solve(const VECTOR_double &x) const; 00056 }; 00057 00058 #endif