Graph Framework
Loading...
Searching...
No Matches
random.hpp File Reference

Random constants and distributions. More...

#include "node.hpp"

Go to the source code of this file.

Classes

class  graph::random_state_node< T, SAFE_MATH >
 Random state. More...
 
struct  graph::random_state_node< T, SAFE_MATH >::mt_state
 Random state structure. More...
 
class  graph::random_node< T, SAFE_MATH >
 Class representing a random_node leaf. More...
 

Namespaces

namespace  graph
 Name space for graph nodes.
 

Typedefs

template<jit::float_scalar T, bool SAFE_MATH = false>
using graph::shared_random_state = std::shared_ptr< random_state_node< T, SAFE_MATH > >
 Convenience type alias for shared sqrt nodes.
 
template<jit::float_scalar T, bool SAFE_MATH = false>
using graph::shared_random = std::shared_ptr< random_node< T, SAFE_MATH > >
 Convenience type alias for shared sqrt nodes.
 

Functions

template<jit::float_scalar T, bool SAFE_MATH = false>
shared_leaf< T, SAFE_MATHgraph::random_state (const size_t size, const uint32_t seed=0)
 Define random_state convience function.
 
template<jit::float_scalar T, bool SAFE_MATH = false>
shared_random_state< T, SAFE_MATHgraph::random_state_cast (shared_leaf< T, SAFE_MATH > x)
 Cast to a random_state node.
 
template<jit::float_scalar T, bool SAFE_MATH = false>
shared_leaf< T, SAFE_MATHgraph::random (shared_random_state< T, SAFE_MATH > state)
 Define random convience function.
 
template<jit::float_scalar T, bool SAFE_MATH = false>
shared_random< T, SAFE_MATHgraph::random_cast (shared_leaf< T, SAFE_MATH > x)
 Cast to a random node.
 
template<jit::float_scalar T, bool SAFE_MATH = false>
constexpr shared_leaf< T, SAFE_MATHgraph::random_scale ()
 Create a random_scale constant.
 

Detailed Description

Random constants and distributions.

Defines random operations.