-
- Downloads
[MaL] Pass args by value to PiecewiseLinInterpol.
Reasoning: The vector's move operation is cheap and it covers the two cases of passed l-values and r-values w/o code duplication and templates. According to "Effective modern c++" Item 41: "Consider pass by value for copyable parameters that are cheap to move and always copied."
Showing
- MathLib/InterpolationAlgorithms/PiecewiseLinearInterpolation.cpp 15 additions, 10 deletions.../InterpolationAlgorithms/PiecewiseLinearInterpolation.cpp
- MathLib/InterpolationAlgorithms/PiecewiseLinearInterpolation.h 4 additions, 4 deletions...ib/InterpolationAlgorithms/PiecewiseLinearInterpolation.h
Please register or sign in to comment