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

Go to the source code of this file.

Namespaces

namespace  pRC
 

Functions

template<class F , class... Xs, If< All< IsTensorish< RemoveReference< Xs > >... > > = 0, If< All< IsInvocable< View, Xs >... > > = 0, If< IsSame< typename RemoveReference< Xs >::Sizes... > > = 0, If< IsInvocable< F, ResultOf< Xs, typename RemoveReference< Xs >::Subscripts >... > > = 0>
static constexpr auto pRC::loop (F &&f, Xs &&...args)
 Applies a function element-wise to Tensors.
 
template<class F , class... Xs, If< All< IsTensorish< RemoveReference< Xs > >... > > = 0, If< All< IsInvocable< View, Xs >... > > = 0, If< IsSame< typename RemoveReference< Xs >::Sizes... > > = 0, If< IsInvocable< F, ResultOf< Xs, typename RemoveReference< Xs >::Subscripts >... > > = 0>
static constexpr auto pRC::loop (Xs &&...args)
 Applies a function element-wise to Tensors.
 
template<class F , class... Xs, If< All< IsTensorish< RemoveReference< Xs > >... > > = 0, If< Not< All< IsInvocable< View, Xs >... > > > = 0, If< IsInvocable< Loop< F >, F, Xs &... > > = 0>
static constexpr auto pRC::loop (F &&f, Xs &&...args)
 Applies a function element-wise to Tensors.
 
template<class F , class... Xs, If< All< IsTensorish< RemoveReference< Xs > >... > > = 0, If< Not< All< IsInvocable< View, Xs >... > > > = 0, If< IsInvocable< Loop< F >, Xs &... > > = 0>
static constexpr auto pRC::loop (Xs &&...args)
 Applies a function element-wise to Tensors.