Line data Source code
1 : #pragma once 2 : 3 : #include "TypeTraits.hpp" 4 : #include "transforms/Div.h" 5 : 6 : namespace elsa 7 : { 8 : /// @brief Divide the two ranges coefficient wise, while the first is the output range at the 9 : /// same time 10 : /// @ingroup transforms 11 : template <class InOutIter, class InputIter> 12 : void inplaceDiv(InOutIter xfirst, InOutIter xlast, InputIter yfirst) 13 25 : { 14 25 : elsa::div(xfirst, xlast, yfirst, xfirst); 15 25 : } 16 : 17 : /// @brief Divide the range coefficient wise with a scalar, while the first is the output 18 : /// range at the same time 19 : /// @ingroup transforms 20 : template <class InOutIter, class Scalar> 21 : void inplaceDivScalar(InOutIter xfirst, InOutIter xlast, Scalar scalar) 22 332 : { 23 332 : elsa::divScalar(xfirst, xlast, scalar, xfirst); 24 332 : } 25 : } // namespace elsa