18 int main(
int argc,
char *argv[])
27 r = Eigen::internal::random<int>(0,10);
28 c = Eigen::internal::random<int>(0,10);
29 nr = Eigen::internal::random<int>(50,80);
30 nc = Eigen::internal::random<int>(50,80);
31 m.block(r,c,nr,nc) += Mat::Ones(nr,nc);
32 m.block(r,c,nr,nc) *=
SCALAR(10);
33 m.block(r,c,nr,nc) -= Mat::constant(nr,nc,10);
34 m.block(r,c,nr,nc) /=
SCALAR(10);
Namespace containing all symbols from the Eigen library.
Matrix< Scalar, Dynamic, Dynamic > Mat
int main(int argc, char *argv[])
The matrix class, also used for vectors and row-vectors.
Derived & setRandom(Index size)