hazy_sgd_wrapper.h

Go to the documentation of this file.
00001 #include "hazy_sgd.h"
00002 
00003 class Hazy_Sgd_Wrapper {
00004  protected:
00005   bool is_dense;
00006   
00007  public:
00008   bool is_sgd_dense() {return is_dense;}
00009 };
00010 
00011 class Hazy_Sgd_FVector : public Hazy_Sgd_Wrapper {
00012   Hazy_Sgd<FVector> *sgd;
00013 
00014  public:
00015   Hazy_Sgd_FVector(Hazy_Sgd<FVector> *_sgd) {
00016     this->is_dense = true;
00017     sgd = _sgd;
00018   }
00019 
00020   Hazy_Sgd<FVector>* get_Hazy_Sgd() {return sgd;}
00021 };
00022 
00023 class Hazy_Sgd_SVector : public Hazy_Sgd_Wrapper {
00024   Hazy_Sgd<SVector> *sgd;
00025 
00026  public:
00027   Hazy_Sgd_SVector(Hazy_Sgd<SVector> *_sgd) {
00028     this->is_dense = false;
00029     sgd = _sgd;
00030   }
00031 
00032   Hazy_Sgd<SVector>* get_Hazy_Sgd() {return sgd;}
00033 };

Generated on Wed Dec 15 10:46:15 2010 for Hazy_System by  doxygen 1.4.7