10 #ifndef EIGEN_RANDOM_H 11 #define EIGEN_RANDOM_H 19 inline const Scalar operator() ()
const {
return random<Scalar>(); }
22 template<
typename Scalar>
54 template<
typename Derived>
85 template<
typename Derived>
111 template<
typename Derived>
130 template<
typename Derived>
133 return *
this = Random(rows(), cols());
149 template<
typename Derived>
150 EIGEN_STRONG_INLINE Derived&
172 template<
typename Derived>
173 EIGEN_STRONG_INLINE Derived&
182 #endif // EIGEN_RANDOM_H Generic expression of a matrix where all coefficients are defined by a functor.
Definition: CwiseNullaryOp.h:60
EIGEN_DEVICE_FUNC Derived & setRandom()
Sets all coefficients in this expression to random values.
Definition: Random.h:131
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:85
Holds information about the various numeric (i.e.
Definition: NumTraits.h:150
static const RandomReturnType Random()
Definition: Random.h:113
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:33
Definition: BandTriangularSolver.h:13
Definition: XprHelper.h:146
Derived & setRandom(Index size)
Resizes to the given newSize, and sets all coefficients in this expression to random values...
Definition: Random.h:151