17#ifndef ROOFIT_BATCHCOMPUTE_BRACKETADAPTER_H
18#define ROOFIT_BATCHCOMPUTE_BRACKETADAPTER_H
28template <
class T =
double>
64 _mask(batch.size() > 1 ? ~static_cast<size_t>(0): 0)
75 _mask(batch.size() > 1 ? ~static_cast<size_t>(0): 0)
77 assert(batch.
size() > 0);
BracketAdapterWithMask(RooSpan< const double > batch)
Construct adapter from a batch of values.
const double *__restrict const _pointer
BracketAdapterWithMask(double payload, const RooSpan< const double > &batch) noexcept
Construct adapter from a fallback value and a batch of values.
BracketAdapterWithMask & operator=(const BracketAdapterWithMask &other)=delete
BracketAdapterWithMask(const BracketAdapterWithMask &other) noexcept
bool isBatch() const noexcept
double operator[](std::size_t i) const noexcept
Little adapter that gives a bracket operator to types that don't have one.
constexpr BracketAdapter(T payload) noexcept
constexpr bool isBatch() const noexcept
constexpr double operator[](std::size_t) const
constexpr BracketAdapter(RooSpan< const T > payload) noexcept
A simple container to hold a batch of data values.
constexpr std::span< T >::index_type size() const noexcept
Namespace for dispatching RooFit computations to various backends.