Commit c5ea7fd8 authored by sw440870's avatar sw440870

added std namespace for size_t once more

parent ffdb8c1e
...@@ -15,7 +15,7 @@ monotonic_interpolator::monotonic_interpolator(const std::vector<double>& x, con ...@@ -15,7 +15,7 @@ monotonic_interpolator::monotonic_interpolator(const std::vector<double>& x, con
} }
m_[0] = d[0]; m_[0] = d[0];
m_[x.size()-1] = d[x.size()-2]; m_[x.size()-1] = d[x.size()-2];
for(st::size_t i = 1; i < x.size()-1; i++) { for(std::size_t i = 1; i < x.size()-1; i++) {
m_[i] = (d[i-1]+d[i])/2; m_[i] = (d[i-1]+d[i])/2;
if(d[i-1]*d[i] <= 0) { if(d[i-1]*d[i] <= 0) {
......
Markdown is supported
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