- use Matrix, linear algebra library Eigen 3.2.2
git-svn-id: http://moon:8086/svn/software/trunk/projects/RBM@23 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -30,6 +30,9 @@ public:
|
||||
virtual ~DrawListener() {}
|
||||
virtual void onDraw(DrawComponent &obj) = 0;
|
||||
};
|
||||
#include <Eigen/Dense>
|
||||
|
||||
using namespace Eigen;
|
||||
//[/Headers]
|
||||
|
||||
|
||||
@@ -53,8 +56,8 @@ public:
|
||||
//[UserMethods] -- You can add your own custom methods in this section.
|
||||
void setListener(DrawListener *pListener);
|
||||
void drawAt(int x, int y, bool setColor);
|
||||
void setData(const double *pData);
|
||||
const double* getData();
|
||||
void setData(const VectorXd& data);
|
||||
const VectorXd& getData();
|
||||
void clear();
|
||||
//[/UserMethods]
|
||||
|
||||
@@ -79,7 +82,7 @@ private:
|
||||
float m_scaleX;
|
||||
float m_scaleY;
|
||||
ScopedPointer<Graphics>m_pG;
|
||||
ScopedPointer<double>m_pData;
|
||||
VectorXd m_data;
|
||||
Image m_image;
|
||||
double m_currData;
|
||||
Colour m_currColor;
|
||||
|
||||
Reference in New Issue
Block a user