tesseract++ 0.0.1
N-dimensional tensor library for embedded systems
Loading...
Searching...
No Matches
reductions.h
Go to the documentation of this file.
1#pragma once
2#include "config.h"
3#include "fused/BaseExpr.h"
6
7// ===============================
8// Min/Max/Sum Reduction Functions
9// ===============================
10
11template <typename Expr>
14typename Expr::value_type min(const BaseExpr<Expr> &expr)
15{
17}
18
19template <typename Expr>
22typename Expr::value_type max(const BaseExpr<Expr> &expr)
23{
25}
26
27template <typename Expr>
30typename Expr::value_type sum(const BaseExpr<Expr> &expr)
31{
33}
Definition BaseExpr.h:15
const Derived & derived() const
Definition BaseExpr.h:17
Global configuration for the tesseract tensor library.
Façade for higher-level kernel operations built on top of microkernels.
constexpr bool is_vector_space_v
Definition basic_algebraic_traits.h:123
Expr::value_type min(const BaseExpr< Expr > &expr)
Definition reductions.h:14
Expr::value_type sum(const BaseExpr< Expr > &expr)
Definition reductions.h:30
Expr::value_type max(const BaseExpr< Expr > &expr)
Definition reductions.h:22
static FORCE_INLINE T reduce_min(const Expr &expr) noexcept
Definition kernel_ops.h:51
static FORCE_INLINE T reduce_max(const Expr &expr) noexcept
Definition kernel_ops.h:57
static FORCE_INLINE T reduce_sum(const Expr &expr) noexcept
Definition kernel_ops.h:63