1
0
mirror of https://gitlab.com/libeigen/eigen.git synced 2025-05-08 22:09:06 +08:00
eigen/doc/snippets/Slicing_rawarray_cxx11.cpp
Aaron Franke 5c22c7a7de Make file formatting comply with POSIX and Unix standards
UTF-8, LF, no BOM, and newlines at the end of files
2020-03-23 18:09:02 +00:00

6 lines
190 B
C++

#if EIGEN_HAS_STATIC_ARRAY_TEMPLATE
MatrixXi A = MatrixXi::Random(4,6);
cout << "Initial matrix A:\n" << A << "\n\n";
cout << "A(all,{4,2,5,5,3}):\n" << A(all,{4,2,5,5,3}) << "\n\n";
#endif