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

Generator of reals in a range [a, b] More...

#include <Basic.h>

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

Public Types

using Scalar = _Scalar
 

Public Member Functions

 Balanced2Gen (_Scalar _a=-1, _Scalar _b=1)
 Construct a new balanced generator. More...
 
template<typename Rng >
EIGEN_STRONG_INLINE const _Scalar operator() (Rng &&rng)
 
template<typename Packet , typename Rng >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Packet packetOp (Rng &&rng)
 
- Public Member Functions inherited from Eigen::Rand::GenBase< Balanced2Gen< _Scalar >, _Scalar >
const CwiseNullaryOp< internal::scalar_rng_adaptor< Balanced2Gen< _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< Balanced2Gen< _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::Balanced2Gen< _Scalar >

Generator of reals in a range [a, b]

Template Parameters
_Scalarany real type

Constructor & Destructor Documentation

◆ Balanced2Gen()

template<typename _Scalar >
Eigen::Rand::Balanced2Gen< _Scalar >::Balanced2Gen ( _Scalar  _a = -1,
_Scalar  _b = 1 
)
inline

Construct a new balanced generator.

Parameters
_a,_bleft and right boundary

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