cMHN 1.1
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
Namespaces | Functions
from_diagonal.hpp File Reference
#include <prc/core/basic/functions/is_even.hpp>
#include <prc/core/functors/view.hpp>
#include <prc/core/tensor/operator/views/from_diagonal.hpp>

Go to the source code of this file.

Namespaces

namespace  pRC
 

Functions

template<Size... Ds, class X , class R = RemoveReference<X>, If< IsTensorish< R > > = 0, If< IsInvocable< View, X > > = 0, If< IsSatisfied<(isEven(sizeof...(Ds)))> > = 0, If< IsSatisfied<(sizeof...(Ds)/2==typename R::Dimension())> > = 0, If< IsSatisfied<(cut< 2, 0 >(Sizes< Ds... >()) >=typename R::Sizes())> , If< IsSatisfied<(cut< 2, 1 >(Sizes< Ds... >()) >=typename R::Sizes())> >
static constexpr auto pRC::fromDiagonal (X &&a)
 
template<Size... Ds, class X , class R = RemoveReference<X>, If< IsTensorish< R > > = 0, If< Not< IsInvocable< View, X > > > = 0, If< IsInvocable< FromDiagonal< Ds... >, X & > > = 0>
static constexpr auto pRC::fromDiagonal (X &&a)
 
template<class X , class R = RemoveReference<X>, If< IsTensorish< R > > = 0>
static constexpr auto pRC::fromDiagonal (X &&a)