mirror of https://github.com/CGAL/cgal
Fix ambiguous call to std::pow after one of its arguments was
converted to size_t.
This commit is contained in:
parent
714149267e
commit
9805a957d1
|
|
@ -422,9 +422,16 @@ fill_matrix(InputIterator begin, InputIterator end,
|
||||||
y = itb->y();
|
y = itb->y();
|
||||||
// Z[line_count] = itb->z();
|
// Z[line_count] = itb->z();
|
||||||
Z.set(line_count,itb->z());
|
Z.set(line_count,itb->z());
|
||||||
for (std::size_t k=0; k <= d; k++) for (std::size_t i=0; i<=k; i++)
|
for (std::size_t k=0; k <= d; k++) {
|
||||||
M.set(line_count, k*(k+1)/2+i, std::pow(x,k-i)*std::pow(y,i)
|
for (std::size_t i=0; i<=k; i++) {
|
||||||
/(fact(i)*fact(k-i)*std::pow(this->preconditionning,k)));
|
M.set(line_count, k*(k+1)/2+i,
|
||||||
|
std::pow(x,static_cast<double>(k-i))
|
||||||
|
* std::pow(y,static_cast<double>(i))
|
||||||
|
/( fact(i) *
|
||||||
|
fact(k-i)
|
||||||
|
*std::pow(this->preconditionning,static_cast<double>(k))));
|
||||||
|
}
|
||||||
|
}
|
||||||
line_count++;
|
line_count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue