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

Go to the source code of this file.

Namespaces

namespace  pRC
 

Functions

template<Index... Ns, class F , class... Xs, If< All< IsTensorish< RemoveReference< Xs > >... > > = 0, If< IsSame< decltype(chip< Ns... >(typename RemoveReference< Xs >::Sizes()))... > , If< True< decltype(chip< Ns... >(makeSeries< Index, Common< typename RemoveReference< Xs >::Dimension... >{}>()))> >
static constexpr auto pRC::narrow (F &&f, Xs &&...args)
 Performs an operation only along given dimensions of Tensors.
 
template<class F , Index... Ns, class... Xs, If< All< IsTensorish< RemoveReference< Xs > >... > > = 0, If< IsSame< decltype(chip< Ns... >(typename RemoveReference< Xs >::Sizes()))... > , If< True< decltype(chip< Ns... >(makeSeries< Index, Common< typename RemoveReference< Xs >::Dimension... >{}>()))> >
static constexpr auto pRC::narrow (Xs &&...args)
 Performs an operation only along given dimensions of Tensors.