Base class of all univariate random generators.
More...
#include <Basic.h>
|
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...
|
|
template<typename DerivedGen, typename Scalar>
class Eigen::Rand::GenBase< DerivedGen, Scalar >
Base class of all univariate random generators.
- Template Parameters
-
◆ 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
-
- Parameters
-
rows | the number of rows being generated |
cols | the number of columns being generated |
urng | c++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
-
- Parameters
-
o | an instance of any type of Eigen::DenseBase |
urng | c++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: