Commit d5e30de7 authored by JasonChmn's avatar JasonChmn Committed by Pierre Fernbach
Browse files

[polynomial] Fix warning

parent fd9f3b64
......@@ -203,8 +203,8 @@ namespace curves
coeff_t deriv_coeff(coeff_t coeff) const
coeff_t coeff_derivated(coeff.rows(), coeff.cols()-1);
for (std::size_t i=0; i<coeff_derivated.cols(); i++) {
coeff_derivated.col(i) = coeff.col(i+1)*(i+1);
for (std::size_t i=0; i<std::size_t(coeff_derivated.cols()); i++) {
coeff_derivated.col(i) = coeff.col(i+1)*(num_t)(i+1);
return coeff_derivated;
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