1 #ifndef EIGENUTILITIES_H
2 #define EIGENUTILITIES_H
9 template<
typename ScalarType>
12 bool operator()(Eigen::Matrix<ScalarType, Eigen::Dynamic,1>
const& left,
13 Eigen::Matrix<ScalarType, Eigen::Dynamic,1>
const& right)
const
15 if(left.size()!=right.size())
16 return left.size()<right.size();
18 for(
unsigned int i=0; i<left.size(); ++i){
19 if(left[i]<right[i]-5.0*std::numeric_limits<double>::epsilon())
return true;
20 if(left[i]>right[i]+5.0*std::numeric_limits<double>::epsilon())
return false;
bool operator()(Eigen::Matrix< ScalarType, Eigen::Dynamic, 1 > const &left, Eigen::Matrix< ScalarType, Eigen::Dynamic, 1 > const &right) const