Commit 0580ad07 authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

linear_variables : add const qualifiers to isApprox method

parent e7ac44d2
......@@ -81,7 +81,7 @@ struct linear_variable : public serialization::Serializable {
Numeric norm() const { return isZero() ? 0 : (B_.norm() + c_.norm()); }
bool isApprox(const linear_variable_t& other,const double prec = Eigen::NumTraits<Numeric>::dummy_precision()){
bool isApprox(const linear_variable_t& other,const double prec = Eigen::NumTraits<Numeric>::dummy_precision()) const{
return (*this - other).norm() < prec;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment