1 #pragma clang diagnostic push
2 #pragma clang diagnostic ignored "-Wdocumentation-unknown-command"
7 #pragma clang diagnostic pop
21 template <
typename... Args>
26 MSG_ERROR(std::string(
"Error setting element: ") + e.what() + std::string(
" Element not set."));
30 template <
typename... Args>
35 template <
typename... Args>
40 template <
typename... Args>
const Tensor & getWeight(Args...rest) const
get the value of a histogram bin based on an index of the bin
const Tensor & getSquaredWeight(Args...rest) const
get the value of a histogram bin based on an index of the bin
size_t getNumEvents(Args...rest) const
get the value of a histogram bin based on an index of the bin
size_t getNumEvents() const
the number of entries in the bin (number of times addWeight has been called)
Message logging routines.
const Tensor & getWeight() const
the sum of tensor weights contained in the bin
void addWeight(const Tensor &t)
add the values of a tensor to the current bin.
Hammer exception definitions.
Bin & element(const IndexList &indices)
convert the indices into the position in the flattened contents into vector organized as row-major ...
const Tensor & getSquaredWeight() const
the sum of (outer) squared tensor weights contained in the bin, or an empty tensor if the errors are ...
Multidimensional tensor class with complex numbers as elements.
void fillBin(const Tensor &value, Args...rest)
set the value of a histogram bin based on the bin indices
Out-of-range error class.