pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
Namespaces | Functions
reduce.hpp File Reference
#include <prc/core/functors/less.hpp>
#include <prc/core/functors/view.hpp>
#include <prc/core/tensor/views/reduce.hpp>

Go to the source code of this file.

Namespaces

namespace  pRC
 

Functions

template<class F , Index... Is, class X , class R = RemoveReference<X>, If< IsTensorish< R > > = 0, If< IsInvocable< View, X > > = 0, If< IsSatisfied<(sizeof...(Is)<=typename R::Dimension())> > = 0, If< IsUnique< Constant< Index, Is >... > > = 0, If< IsSatisfied<(max(Is...)< typename R::Dimension())> > = 0, class E = ResultOf<X, typename R::Subscripts>, If< IsInvocable< F, E, E > > = 0, If< IsInvocable< F, decltype(F::template Identity< typename R::Type >()), E > >
static constexpr auto pRC::reduce (X &&a)
 Reduces a Tensor's dimensions by performing an operation along some of its axes.
 
template<class F , class X , class R = RemoveReference<X>, If< IsTensorish< R > > = 0, If< IsInvocable< View, X > > = 0, class E = ResultOf<X, typename R::Subscripts>, If< IsInvocable< F, E, E > > = 0, If< IsInvocable< F, decltype(F::template Identity< typename R::Type >()), E > >
static constexpr auto pRC::reduce (X &&a)
 Reduces a Tensor's dimensions by performing an operation along all of its axes.
 
template<class F , Index... Is, class X , class R = RemoveReference<X>, If< IsTensorish< R > > = 0, If< Not< IsInvocable< View, X > > > = 0, If< IsInvocable< Reduce< F, Is... >, X & > > = 0>
static constexpr auto pRC::reduce (X &&a)
 Reduces a Tensor's dimensions by performing an operation along some of its axes.