mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Add and update manual pages for slicing, indexing, and reshaping.
This commit is contained in:
5
doc/snippets/Slicing_rawarray_cxx11.cpp
Normal file
5
doc/snippets/Slicing_rawarray_cxx11.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user