Skip to content
Snippets Groups Projects
Commit 65fd2439 authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

[polynomial] fix safe_check method : correctly throw the execptions

parent 82891d3c
No related branches found
No related tags found
No related merge requests found
...@@ -233,11 +233,11 @@ namespace curves ...@@ -233,11 +233,11 @@ namespace curves
{ {
if(T_min_ > T_max_) if(T_min_ > T_max_)
{ {
std::invalid_argument("Tmin should be inferior to Tmax"); throw std::invalid_argument("Tmin should be inferior to Tmax");
} }
if(coefficients_.size() != int(degree_+1)) if(coefficients_.cols() != int(degree_+1))
{ {
std::runtime_error("Spline order and coefficients do not match"); throw std::runtime_error("Spline order and coefficients do not match");
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment