Tannic
A C++ Tensor Library
|
Lazy reduction expression. More...
#include <reductions.hpp>
Public Member Functions | |
constexpr | Reduction (Reducer reducer, typename Trait< Operand >::Reference operand) |
constexpr type | dtype () const |
constexpr Shape const & | shape () const |
constexpr Strides const & | strides () const |
std::ptrdiff_t | offset () const |
Tensor | forward () const |
Public Attributes | |
Reducer | reducer |
Trait< Operand >::Reference | operand |
Lazy reduction expression.
Represents reductions like sum
, max
, or mean
that collapse tensors along an axis. Output shape/dtype are determined by the Reducer
's rules.
Reducer | Policy defining the reduction (e.g., Argmax ). |
Operand | Input satisfying the Expression concept.. |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
Trait<Operand>::Reference tannic::expression::Reduction< Reducer, Operand >::operand |
Reducer tannic::expression::Reduction< Reducer, Operand >::reducer |