17template<
typename Scalar>
struct scalar_random_op {
18 EIGEN_EMPTY_STRUCT_CTOR(scalar_random_op)
19 inline const Scalar operator() ()
const {
return random<Scalar>(); }
22template<
typename Scalar>
23struct functor_traits<scalar_random_op<Scalar> >
24{
enum { Cost = 5 * NumTraits<Scalar>::MulCost, PacketAccess =
false, IsRepeatable =
false }; };
54template<
typename Derived>
55inline const typename DenseBase<Derived>::RandomReturnType
58 return NullaryExpr(rows, cols, internal::scalar_random_op<Scalar>());
85template<
typename Derived>
86inline const typename DenseBase<Derived>::RandomReturnType
89 return NullaryExpr(size, internal::scalar_random_op<Scalar>());
111template<
typename Derived>
112inline const typename DenseBase<Derived>::RandomReturnType
130template<
typename Derived>
133 return *
this =
Random(rows(), cols());
149template<
typename Derived>
150EIGEN_STRONG_INLINE Derived&
172template<
typename Derived>
173EIGEN_STRONG_INLINE Derived&
@ ColsAtCompileTime
Definition DenseBase.h:106
@ RowsAtCompileTime
Definition DenseBase.h:100
Derived & setRandom()
Definition Random.h:131
static const RandomReturnType Random()
Definition Random.h:113
static const RandomReturnType Random(Index rows, Index cols)
Definition Random.h:56
Derived & setRandom(Index size)
Definition Random.h:151
void resize(Index rows, Index cols)
Definition PlainObjectBase.h:279
Namespace containing all symbols from the Eigen library.
Definition A05_PortingFrom2To3.dox:1
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition Meta.h:65