|
Tannic
A C++ Tensor Library
|
Defines reduction operations for tensor expressions. More...
#include <array>#include <cassert>#include "concepts.hpp"#include "types.hpp"#include "traits.hpp"#include "shape.hpp"#include "tensor.hpp"#include "indexing.hpp"#include "exceptions.hpp"
Go to the source code of this file.
Classes | |
| class | tannic::expression::Reduction< Reducer, Operand > |
| Lazy reduction expression. More... | |
| struct | tannic::expression::Argmax |
| Finds the indices of maximum values along an axis. More... | |
| struct | tannic::expression::Argmin |
| Finds the indexes of minimum values along an axis. More... | |
| struct | tannic::expression::Argsum |
| Sums tensor values along an axis. More... | |
| struct | tannic::expression::Argmean |
| Computes the mean along an axis. More... | |
Namespaces | |
| namespace | tannic |
| namespace | tannic::expression |
Functions | |
| template<Expression Source> | |
| constexpr auto | tannic::expression::argmax (Source &&source, int axis, bool keepdim=false) |
| Creates an Argmax reduction. | |
| template<Expression Source> | |
| constexpr auto | tannic::expression::argmin (Source &&source, int axis, bool keepdim=false) |
| Creates an Argmin reduction. | |
| template<Expression Source> | |
| constexpr auto | tannic::expression::sum (Source &&source, int axis, bool keepdim=false) |
| Creates a sum reduction. | |
| template<Expression Source> | |
| constexpr auto | tannic::expression::mean (Source &&source, int axis, bool keepdim=false) |
| Creates a mean reduction. | |
Defines reduction operations for tensor expressions.
This header provides reduction operations for tensor-like objects, implemented as expression templates. Currently supports:
All reductions are lazy-evaluated and maintain proper shape/dtype transformations. Part of the Tannic Tensor Library.