Line data Source code
1 : #pragma once 2 : 3 : #include "transforms/Mul.h" 4 : 5 : namespace elsa 6 : { 7 : /// @brief Multiply the two ranges together, while the first is the output range at the same 8 : /// time 9 : /// @ingroup transforms 10 : template <class InOutIter, class InputIter> 11 : void inplaceMul(InOutIter xfirst, InOutIter xlast, InputIter yfirst) 12 10246 : { 13 10246 : elsa::mul(xfirst, xlast, yfirst, xfirst); 14 10246 : } 15 : 16 : /// @brief Multiply a range to a scalar, while the given range is also the output range 17 : /// @ingroup transforms 18 : template <class InOutIter, class Scalar> 19 : void inplaceMulScalar(InOutIter xfirst, InOutIter xlast, const Scalar& scalar) 20 5790 : { 21 5790 : elsa::mulScalar(xfirst, xlast, scalar, xfirst); 22 5790 : } 23 : } // namespace elsa