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

Generator of Bernoulli distribution. More...

#include <Basic.h>

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

Public Types

using Scalar = _Scalar
 

Public Member Functions

 BernoulliGen (double _p=0.5)
 
 BernoulliGen (const BernoulliGen &)=default
 
 BernoulliGen (BernoulliGen &&)=default
 
BernoulliGenoperator= (const BernoulliGen &)=default
 
BernoulliGenoperator= (BernoulliGen &&)=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< BernoulliGen< _Scalar >, _Scalar >
const CwiseNullaryOp< internal::scalar_rng_adaptor< BernoulliGen< _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< BernoulliGen< _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::BernoulliGen< _Scalar >

Generator of Bernoulli distribution.

Template Parameters
_Scalar

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