xref: /aosp_15_r20/external/eigen/doc/snippets/MatrixBase_replicate.cpp (revision bf2c37156dfe67e5dfebd6d394bad8b2ab5804d4)
1 MatrixXi m = MatrixXi::Random(2,3);
2 cout << "Here is the matrix m:" << endl << m << endl;
3 cout << "m.replicate<3,2>() = ..." << endl;
4 cout << m.replicate<3,2>() << endl;
5