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

Go to the source code of this file.

Namespaces

namespace  pRC
 

Functions

template<Index K, class X , class R = RemoveReference<X>, If< IsTensorish< R > > = 0, If< IsInvocable< View, X > > = 0, If< IsSatisfied<(typename R::Dimension{} > 1)> , If< IsSatisfied<(K< typename R::Dimension{})> > = 0>
static constexpr auto pRC::flatten (X &&a)
 Flatten every dimension of a Tensor except for one.