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

Go to the source code of this file.

Namespaces

namespace  pRC
 

Functions

template<Position P, class X , class R = RemoveReference<X>, If< IsTensorish< R > > = 0, If< IsSatisfied<(typename R::Dimension{} > 1)> , If< IsSatisfied<(P==Position::Left||P==Position::Right)> > = 0, If< All< IsInvocable< Unfolding< typename R::Dimension() - 2 >, X >, IsInvocable< Unfolding< 0 >, X > > > = 0>
static constexpr auto pRC::folding (X &&a)
 Reshapes a Tensor into a matrix.