00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef KERNELMATRIXORACLE_H_
00015 #define KERNELMATRIXORACLE_H_
00016
00017 #include "WeightOracle.h"
00018 #include "utils.h"
00019
00025 class BipartiteMatrixOracle: public WeightOracle {
00026 public:
00032 BipartiteMatrixOracle(double ** kernel, int r, int c);
00033 virtual ~BipartiteMatrixOracle();
00034
00035 int getSize();
00036
00037 double computeWeight(int row, int col);
00038
00039 private:
00040 int rows;
00041 int cols;
00042 double **K;
00043 int **index;
00044 double **cache;
00045 };
00046
00047 #endif