cMHN 1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
pRC::TensorViews::Random< T, N, URNG, D > Class Template Reference

#include <random.hpp>

Inheritance diagram for pRC::TensorViews::Random< T, N, URNG, D >:
pRC::TensorViews::View< T, N, Random< T, N, URNG, D > >

Public Member Functions

 Random (URNG &rng, D< Value< T > > &distribution)
 
template<IsConvertible< Index >... Is>
requires (sizeof...(Is) == Base::Dimension)
constexpr decltype(auto) operator() (Is const ... indices)
 
constexpr decltype(auto) operator() (typename Base::Subscripts const &subscripts)
 
constexpr decltype(auto) operator[] (Index const index)
 

Constructor & Destructor Documentation

◆ Random()

template<class T , class N , class URNG , template< class... > class D>
pRC::TensorViews::Random< T, N, URNG, D >::Random ( URNG & rng,
D< Value< T > > & distribution )
inline

Member Function Documentation

◆ operator()() [1/2]

template<class T , class N , class URNG , template< class... > class D>
template<IsConvertible< Index >... Is>
requires (sizeof...(Is) == Base::Dimension)
decltype(auto) pRC::TensorViews::Random< T, N, URNG, D >::operator() ( Is const ... indices)
inlineconstexpr

◆ operator()() [2/2]

template<class T , class N , class URNG , template< class... > class D>
decltype(auto) pRC::TensorViews::Random< T, N, URNG, D >::operator() ( typename Base::Subscripts const & subscripts)
inlineconstexpr

◆ operator[]()

template<class T , class N , class URNG , template< class... > class D>
decltype(auto) pRC::TensorViews::Random< T, N, URNG, D >::operator[] ( Index const index)
inlineconstexpr

The documentation for this class was generated from the following file: