commit | 14c32c60f3857a3b696689284147d0d7b879ad2f | [log] [tgz] |
---|---|---|
author | Erik Schultheis <erik.schultheis@aalto.fi> | Sun Dec 05 17:31:12 2021 +0000 |
committer | Antonio Sánchez <cantonios@google.com> | Sun Dec 05 17:31:12 2021 +0000 |
tree | 0d7b766f968bd6306d0edec96a45f54bd8b72634 | |
parent | cd83f34d3a709d4e89c98a96342b075742816d3f [diff] [blame] |
fixed snippets
diff --git a/doc/snippets/Slicing_arrayexpr.cpp b/doc/snippets/Slicing_arrayexpr.cpp index 2df8180..6d09980 100644 --- a/doc/snippets/Slicing_arrayexpr.cpp +++ b/doc/snippets/Slicing_arrayexpr.cpp
@@ -1,4 +1,4 @@ ArrayXi ind(5); ind<<4,2,5,5,3; MatrixXi A = MatrixXi::Random(4,6); cout << "Initial matrix A:\n" << A << "\n\n"; -cout << "A(all,ind-1):\n" << A(all,ind-1) << "\n\n"; +cout << "A(all,ind-1):\n" << A(Eigen::placeholders::all,ind-1) << "\n\n";