00001 #ifndef __F_CBB_LS_H__ 00002 #define __F_CBB_LS_H__ 00003 00036 #include <stdio.h> 00037 #include "F_IterativeLS.hpp" 00038 00039 00040 class F_CBB_LS : public F_IterativeLS 00041 { 00042 private: 00043 00044 double alpha; 00045 00046 FloatVector* g; 00047 FloatVector* h; 00048 00049 protected: 00050 00051 virtual FloatVector* singleSolve(AFloatMatrix* A, FloatVector* b, FloatVector* x=0); 00052 00053 public: 00054 F_CBB_LS(int maxIterations, double epsilon=1.0e-4):F_IterativeLS(maxIterations, epsilon) 00055 { g=h= 0; } 00056 virtual ~F_CBB_LS(){} 00057 00058 virtual FloatVector* solve(AFloatMatrix* m, FloatVector* b, FloatVector* dest); 00059 }; 00060 00061 #endif 00062 00063 00064