65,189
社区成员




template <typename Val_Type>
class DnMat :public Matrix<Val_Type, -1, -1>, private Matrix2_base
{
public:
Val_Type* Val;
int Rows, Cols;
int ValType, ValSize;
private:
void VarInit(void);
void VarUpdate(void);
//
public:
};
template <typename Val_Type>
void DnMat<Val_Type>::VarUpdate(void)
{
Val = Eigen::template Matrix<Val_Type, -1, -1>(0,0);
Rows = this->rows();
Cols = this->cols();
};
class B {
public:
bool operator()(int a, int b)
{
return a > b;
}
};
//调用是
B b;
bool res = b(3,2);