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>
172 template<
typename Derived>
182 #endif // EIGEN_RANDOM_H Generic expression of a matrix where all coefficients are defined by a functor.
#define EIGEN_STRONG_INLINE
#define EIGEN_EMPTY_STRUCT_CTOR(X)
EIGEN_DEVICE_FUNC Derived & setRandom()
static constexpr size_t size(Tuple< Args... > &)
Provides access to the number of elements in a tuple as a compile-time constant expression.
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
static const RandomReturnType Random()
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Derived & setRandom(Index size)