EigenRand  0.5.0
 
Loading...
Searching...
No Matches
Eigen::Rand::UniformIntGen< _Scalar > Class Template Reference

Generator of integers with a given range [min, max] More...

#include <Discrete.h>

Inheritance diagram for Eigen::Rand::UniformIntGen< _Scalar >:
Collaboration diagram for Eigen::Rand::UniformIntGen< _Scalar >:

Public Types

using Scalar = _Scalar
 

Public Member Functions

 UniformIntGen (_Scalar _min=0, _Scalar _max=0)
 Construct a new UniformInt Generator. More...
 
 UniformIntGen (const UniformIntGen &)=default
 
 UniformIntGen (UniformIntGen &&)=default
 
UniformIntGenoperator= (const UniformIntGen &)=default
 
UniformIntGenoperator= (UniformIntGen &&)=default
 
template<typename Rng >
EIGEN_STRONG_INLINE const _Scalar operator() (Rng &&rng)
 
template<typename Packet , typename Rng >
EIGEN_STRONG_INLINE const Packet packetOp (Rng &&rng)
 
- Public Member Functions inherited from Eigen::Rand::GenBase< UniformIntGen< _Scalar >, _Scalar >
const CwiseNullaryOp< internal::scalar_rng_adaptor< UniformIntGen< _Scalar > &, _Scalar, Urng >, const Derived > generate (Index rows, Index cols, Urng &&urng)
 generate random values from its distribution More...
 
const CwiseNullaryOp< internal::scalar_rng_adaptor< UniformIntGen< _Scalar > &, _Scalar, Urng >, const Derived > generateLike (const Derived &o, Urng &&urng)
 generate random values from its distribution More...
 

Detailed Description

template<typename _Scalar>
class Eigen::Rand::UniformIntGen< _Scalar >

Generator of integers with a given range [min, max]

Template Parameters
_Scalarany integral type

Constructor & Destructor Documentation

◆ UniformIntGen()

template<typename _Scalar >
Eigen::Rand::UniformIntGen< _Scalar >::UniformIntGen ( _Scalar  _min = 0,
_Scalar  _max = 0 
)
inline

Construct a new UniformInt Generator.

Parameters
_min,_maxthe range of integers being generated

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