Skip to content

Commit

Permalink
xxx weight manager
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-iob committed May 27, 2024
1 parent 541991b commit 2f5af4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/discretization/stencil_weight.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ class DiscreteStencilWeightManager

template<typename W>
bool isNegligible(const W &weight, const weight_t &zero, double tolerance = 1e-12) const;
template<typename W = weight_t, typename V = value_t, long unsigned int D = std::tuple_size<W>::value, typename std::enable_if<std::is_same<std::array<V, D>, W>::value>::type * = nullptr>
template<typename W = weight_t, typename V = value_t, std::size_t D = std::tuple_size<W>::value, typename std::enable_if<std::is_same<std::array<V, D>, W>::value>::type * = nullptr>
bool isNegligible(const std::array<V, D> &weight, const weight_t &zero, double tolerance = 1e-12) const;
template<typename W = weight_t, typename V = value_t, typename std::enable_if<std::is_same<std::vector<V>, W>::value>::type * = nullptr>
bool isNegligible(const std::vector<V> &weight, const weight_t &zero, double tolerance = 1e-12) const;

template<typename W>
void sum(const W &weight, double factor, W *target) const;
template<typename W = weight_t, typename V = value_t, long unsigned int D = std::tuple_size<W>::value, typename std::enable_if<std::is_same<std::array<V, D>, W>::value>::type * = nullptr>
template<typename W = weight_t, typename V = value_t, std::size_t D = std::tuple_size<W>::value, typename std::enable_if<std::is_same<std::array<V, D>, W>::value>::type * = nullptr>
void sum(const std::array<V, D> &weight, double factor, std::array<V, D> *target) const;
template<typename W = weight_t, typename V = value_t, typename std::enable_if<std::is_same<std::vector<V>, W>::value>::type * = nullptr>
void sum(const std::vector<V> &weight, double factor, std::vector<V> *target) const;
Expand Down

0 comments on commit 2f5af4b

Please sign in to comment.