Template Struct HaarCoefficients

Nested Relationships

Nested Types

Struct Documentation

template<typename ValueT, int dim>
struct HaarCoefficients

Public Types

using ValueType = ValueT
using CoefficientsArray = std::array<ValueType, kNumCoefficients>
using Scale = ValueType

Public Static Attributes

static constexpr int kDim = dim
static constexpr int kNumCoefficients = int_math::exp2(dim)
static constexpr int kNumDetailCoefficients = kNumCoefficients - 1
class Details : public std::array<ValueType, kNumDetailCoefficients>

Public Functions

inline Details &operator+=(const Details &rhs)
inline Details &operator-=(const Details &rhs)
inline Details &operator*=(ValueType rhs)
inline std::string toString() const

Friends

inline friend Details operator+(const Details &lhs, const Details &rhs)
inline friend Details operator-(const Details &lhs, const Details &rhs)
inline friend Details operator*(ValueType lhs, const Details &rhs)
inline friend Details operator*(const Details &lhs, ValueType rhs)
class Parent

Public Functions

Parent() = default
inline Parent(Scale scale, Details details)
inline Parent(const CoefficientsArray &array)
inline operator CoefficientsArray() const
inline ValueType &operator[](size_t index)
inline const ValueType &operator[](size_t index) const
inline Parent &operator+=(const Parent &rhs)
inline Parent &operator-=(const Parent &rhs)
inline Parent &operator*=(ValueType rhs)
inline std::string toString() const

Public Members

Scale scale = {}
Details details = {}

Friends

inline friend bool operator==(const Parent &lhs, const Parent &rhs)
inline friend Parent operator+(const Parent &lhs, const Parent &rhs)
inline friend Parent operator-(const Parent &lhs, const Parent &rhs)
inline friend Parent operator*(ValueType lhs, const Parent &rhs)
inline friend Parent operator*(const Parent &lhs, ValueType rhs)