EigenRand  0.3.0
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, _Scalar _max)
 Construct a new UniformInt Generator. More...
 
 UniformIntGen (const UniformIntGen &)=default
 
 UniformIntGen (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,
_Scalar  _max 
)
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: