10 #ifndef EIGEN_RANDOM_H 11 #define EIGEN_RANDOM_H 19 template<
typename Index>
20 inline const Scalar
operator() (Index, Index = 0)
const {
return random<Scalar>(); }
23 template<
typename Scalar>
47 template<
typename Derived>
74 template<
typename Derived>
95 template<
typename Derived>
109 template<
typename Derived>
112 return *
this = Random(rows(), cols());
124 template<
typename Derived>
142 template<
typename Derived>
146 resize(nbRows, nbCols);
152 #endif // EIGEN_RANDOM_H Generic expression of a matrix where all coefficients are defined by a functor.
#define EIGEN_EMPTY_STRUCT_CTOR(X)
#define EIGEN_STRONG_INLINE
internal::traits< Derived >::Index Index
The type of indices.
internal::traits< Derived >::Index Index
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
static const CwiseNullaryOp< internal::scalar_random_op< Scalar >, Derived > Random()
const Scalar operator()(Index, Index=0) const
Derived & setRandom(Index size)