Stratax 0.2.0
Loading...
Searching...
No Matches
Reductions.hpp File Reference
#include <stratax/core/Concepts.hpp>
#include <stratax/core/Exceptions.hpp>
#include <stratax/core/containers/Shape.hpp>
#include <stratax/core/validation/Validation.hpp>
#include <stratax/core/containers/Tensor.hpp>
#include <stratax/core/containers/Matrix.hpp>
#include <stratax/core/containers/Vector.hpp>
#include <stratax/core/Slice.hpp>
#include <stratax/core/ops/Slice.hpp>
#include "Conversions.hpp"
#include <numeric>
#include <algorithm>
#include <cmath>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  reduction

Functions

bool reduction::advance (const stratax::core::Shape &shape, std::vector< std::size_t > &indices)
template<Array A>
int reduction::normalize_axis (const A &arr, int axis)
template<Array A>
std::vector< std::size_t > reduction::result_shape (const A &arr, int axis, bool keepdims)
template<Array A, typename Func>
auto reduction::axis_reduce (const A &array, int axis, Func func, bool keepdims=false)
template<Array A>
A::value_type reduction::sum (const A &arr)
template<Array A>
A::value_type reduction::prod (const A &arr)
template<Array A>
A::value_type reduction::max (const A &arr)
template<Array A>
A::value_type reduction::min (const A &arr)
template<Array A>
std::size_t reduction::argmax (const A &arr)
template<Array A>
std::size_t reduction::argmin (const A &arr)
template<Array A>
double reduction::mean (const A &arr)
template<Array A>
double reduction::var (const A &arr)
template<Array A>
double reduction::std (const A &arr)
template<Array A>
stratax::container::Tensor< typename A::value_type > reduction::sum (const A &arr, int axis)
template<Array A>
stratax::container::Tensor< typename A::value_type > reduction::sum (const A &arr, int axis, bool keepdims)
template<Array A>
stratax::container::Tensor< typename A::value_type > reduction::prod (const A &arr, int axis)
template<Array A>
stratax::container::Tensor< typename A::value_type > reduction::prod (const A &arr, int axis, bool keepdims)
template<Array A>
stratax::container::Tensor< typename A::value_type > reduction::max (const A &arr, int axis)
template<Array A>
stratax::container::Tensor< typename A::value_type > reduction::max (const A &arr, int axis, bool keepdims)
template<Array A>
stratax::container::Tensor< typename A::value_type > reduction::min (const A &arr, int axis)
template<Array A>
stratax::container::Tensor< typename A::value_type > reduction::min (const A &arr, int axis, bool keepdims)
template<Array A>
stratax::container::Tensor< std::size_t > reduction::argmax (const A &arr, int axis)
template<Array A>
stratax::container::Tensor< std::size_t > reduction::argmax (const A &arr, int axis, bool keepdims)
template<Array A>
stratax::container::Tensor< std::size_t > reduction::argmin (const A &arr, int axis)
template<Array A>
stratax::container::Tensor< std::size_t > reduction::argmin (const A &arr, int axis, bool keepdims)
template<Array A>
stratax::container::Tensor< double > reduction::mean (const A &arr, int axis, bool keepdims)
template<Array A>
stratax::container::Tensor< double > reduction::mean (const A &arr, int axis)
template<Array A>
stratax::container::Tensor< double > reduction::var (const A &arr, int axis, bool keepdims)
template<Array A>
stratax::container::Tensor< double > reduction::var (const A &arr, int axis)
template<Array A>
stratax::container::Tensor< double > reduction::std (const A &arr, int axis, bool keepdims)
template<Array A>
stratax::container::Tensor< double > reduction::std (const A &arr, int axis)