EigenRand  0.3.0
Eigen::Rand::GenBase< DerivedGen, Scalar > Class Template Reference

Base class of all univariate random generators. More...

#include <Basic.h>

Public Member Functions

template<typename Derived , typename Urng >
const CwiseNullaryOp< internal::scalar_rng_adaptor< DerivedGen &, Scalar, Urng >, const Derived > generate (Index rows, Index cols, Urng &&urng)
 generate random values from its distribution More...
 
template<typename Derived , typename Urng >
const CwiseNullaryOp< internal::scalar_rng_adaptor< DerivedGen &, Scalar, Urng >, const Derived > generateLike (const Derived &o, Urng &&urng)
 generate random values from its distribution More...
 

Detailed Description

template<typename DerivedGen, typename Scalar>
class Eigen::Rand::GenBase< DerivedGen, Scalar >

Base class of all univariate random generators.

Template Parameters
DerivedGen
Scalar

Member Function Documentation

◆ generate()

template<typename DerivedGen , typename Scalar >
template<typename Derived , typename Urng >
const CwiseNullaryOp<internal::scalar_rng_adaptor<DerivedGen&, Scalar, Urng>, const Derived> Eigen::Rand::GenBase< DerivedGen, Scalar >::generate ( Index  rows,
Index  cols,
Urng &&  urng 
)
inline

generate random values from its distribution

Template Parameters
Derived
Urng
Parameters
rowsthe number of rows being generated
colsthe number of columns being generated
urngc++11-style random number generator
Returns
a random matrix expression with a shape (rows, cols)

◆ generateLike()

template<typename DerivedGen , typename Scalar >
template<typename Derived , typename Urng >
const CwiseNullaryOp<internal::scalar_rng_adaptor<DerivedGen&, Scalar, Urng>, const Derived> Eigen::Rand::GenBase< DerivedGen, Scalar >::generateLike ( const Derived &  o,
Urng &&  urng 
)
inline

generate random values from its distribution

Template Parameters
Derived
Urng
Parameters
oan instance of any type of Eigen::DenseBase
urngc++11-style random number generator
Returns
a random matrix expression of the same shape as o

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