class reducer_impl
Declaration
template <typename Scalar, typename BinaryOp>
class reducer_impl : public reducer { /* full declaration omitted */ };
Inherits from: reducer
Template Parameters
- Scalar
- BinaryOp
Member Variables
- BinaryOp m_op
- Scalar m_identity
Member Function Overview
- fill_identity(void * dest, size_t count) const → void
- reduce(void * dest, const void * src, size_t src_count) const → void
- reducer_impl(const BinaryOp & op, const Scalar & identity)
Inherited from reducer:
Member Functions
¶void fill_identity(void* dest, size_t count) const
void fill_identity(void* dest, size_t count) const
Description
Fills count
values starting at dest
with the reduction's identity value. dest
is considered uninitialized, operand size is implicit.
Parameters
- void* dest
- size_t count
¶void reduce(void* dest,
const void* src,
size_t src_count) const
void reduce(void* dest,
const void* src,
size_t src_count) const
Description
Reduces src_count
values starting at src
and stores the result in dest
. Operand size is implicit.
Parameters
- void* dest
- const void* src
- size_t src_count
¶reducer_impl(const BinaryOp& op,
const Scalar& identity)
reducer_impl(const BinaryOp& op,
const Scalar& identity)
Parameters
- const BinaryOp& op
- const Scalar& identity