00001 #ifndef __F_ChebychevIteration_H__ 00002 #define __F_ChebychevIteration_H__ 00003 00004 00033 #include <stdio.h> 00034 #include "F_IterativeLS.hpp" 00035 00036 00037 class F_ChebychevIteration : public F_IterativeLS 00038 { 00039 private: 00040 00041 double lambdaMin; 00042 double lambdaMax; 00043 00044 double c,d; 00045 00046 double alpha; 00047 double beta; 00048 00049 FloatVector* r; 00050 FloatVector* p; 00051 00052 FloatVector* ap; 00053 00054 protected: 00055 00056 virtual FloatVector* singleSolve(AFloatMatrix* A, FloatVector* b, FloatVector* x=0); 00057 00058 public: 00059 F_ChebychevIteration(int maxIterations, double lMax, double lMin, double epsilon=1.0e-4); 00060 virtual ~F_ChebychevIteration(){} 00061 00062 virtual FloatVector* solve(AFloatMatrix* m, FloatVector* b, FloatVector* dest); 00063 }; 00064 00065 #endif 00066 00067