LCOV - code coverage report
Current view: top level - functionals - Constraint.cpp (source / functions) Hit Total Coverage
Test: test_coverage.info.cleaned Lines: 0 19 0.0 %
Date: 2022-08-04 03:43:28 Functions: 0 24 0.0 %

          Line data    Source code
       1             : #include "Constraint.h"
       2             : 
       3             : namespace elsa
       4             : {
       5             :     template <typename data_t>
       6           0 :     Constraint<data_t>::Constraint(const LinearOperator<data_t>& A, const LinearOperator<data_t>& B,
       7             :                                    const DataContainer<data_t>& c)
       8           0 :         : _A{A.clone()}, _B{B.clone()}, _c{c}
       9             :     {
      10           0 :     }
      11             : 
      12             :     template <typename data_t>
      13           0 :     auto Constraint<data_t>::getOperatorA() const -> const LinearOperator<data_t>&
      14             :     {
      15           0 :         return *_A;
      16             :     }
      17             : 
      18             :     template <typename data_t>
      19           0 :     auto Constraint<data_t>::getOperatorB() const -> const LinearOperator<data_t>&
      20             :     {
      21           0 :         return *_B;
      22             :     }
      23             : 
      24             :     template <typename data_t>
      25           0 :     auto Constraint<data_t>::getDataVectorC() const -> const DataContainer<data_t>&
      26             :     {
      27           0 :         return _c;
      28             :     }
      29             : 
      30             :     template <typename data_t>
      31           0 :     auto Constraint<data_t>::cloneImpl() const -> Constraint<data_t>*
      32             :     {
      33           0 :         return new Constraint<data_t>(*_A, *_B, _c);
      34             :     }
      35             : 
      36             :     template <typename data_t>
      37           0 :     auto Constraint<data_t>::isEqual(const Constraint<data_t>& other) const -> bool
      38             :     {
      39           0 :         if (other.getOperatorA() != *_A) {
      40           0 :             return false;
      41             :         }
      42             : 
      43           0 :         if (other.getOperatorB() != *_B) {
      44           0 :             return false;
      45             :         }
      46             : 
      47           0 :         if (other.getDataVectorC() != _c) {
      48           0 :             return false;
      49             :         }
      50             : 
      51           0 :         return true;
      52             :     }
      53             : 
      54             :     // ------------------------------------------
      55             :     // explicit template instantiation
      56             :     template class Constraint<float>;
      57             :     template class Constraint<complex<float>>;
      58             :     template class Constraint<double>;
      59             :     template class Constraint<complex<double>>;
      60             : } // namespace elsa

Generated by: LCOV version 1.14