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

Go to the source code of this file.

Namespaces

namespace  pRC
 

Functions

template<Size... Bs, class X , class... Os, class R = RemoveReference<X>, If< IsTensorish< R > > = 0, If< IsInvocable< View, X > > = 0, If< All< IsConvertible< Os, Index >... > > = 0, If< IsSatisfied<(sizeof...(Bs)==typename R::Dimension())> > = 0, If< IsSatisfied<(sizeof...(Os)==typename R::Dimension())> > = 0, If< IsSatisfied<(typename R::Sizes() % Sizes< Bs... >()==Constant< Size, 0 >())> >
static constexpr auto pRC::block (X &&a, Os const ... offsets)
 Splits a Tensor into equal-sized blocks and returns one block specified by indices.
 
template<Size... Bs, class X , class... Os, class R = RemoveReference<X>, If< IsTensorish< R > > = 0, If< Not< IsInvocable< View, X > > > = 0, If< IsInvocable< Block< Bs... >, X &, Os... > > = 0>
static constexpr auto pRC::block (X &&a, Os const ... offsets)
 Splits a Tensor into equal-sized blocks and returns one block specified by indices.