LCOV - code coverage report
Current view: top level - elsa/storage/transforms - InplaceMul.h (source / functions) Hit Total Coverage
Test: coverage-all.lcov Lines: 6 6 100.0 %
Date: 2024-05-16 04:22:26 Functions: 12 12 100.0 %

          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       10254 :     {
      13       10254 :         elsa::mul(xfirst, xlast, yfirst, xfirst);
      14       10254 :     }
      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

Generated by: LCOV version 1.14