Commit ba96448a authored by Lukas Riedel's avatar Lukas Riedel 📝

Update linear interpolator docstrings and fix call to minus

GCC cannot deduce the template type.
parent 7fd2e3f2
......@@ -11,7 +11,6 @@
#include <string_view>
#include <dune/common/fvector.hh>
#include <dune/common/fmatrix.hh>
#include <dune/common/exceptions.hh>
#include <dune/common/parametertree.hh>
......@@ -165,10 +164,13 @@ public:
};
/// Linear interpolator for 2D and 3D.
/**
/** The implementation is based on articles
* https://en.wikipedia.org/wiki/Bilinear_interpolation
* and https://en.wikipedia.org/wiki/Trilinear_interpolation
*
* \ingroup Interpolators
* \author Lukas Riedel
* \date 2018
* \date 2019
*/
template<typename DataType, int dim>
class LinearInterpolator : public Interpolator<DataType, dim>
......@@ -208,7 +210,7 @@ private:
std::transform(pos_unit.begin(), pos_unit.end(),
begin(indices),
pos_diff.begin(),
std::minus());
std::minus<DF>());
return pos_diff;
}
......
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