diff options
Diffstat (limited to 'doc/snippets/Eval_MatrixType.cpp')
-rw-r--r-- | doc/snippets/Eval_MatrixType.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/snippets/Eval_MatrixType.cpp b/doc/snippets/Eval_MatrixType.cpp index 0af4c64e4..ccff677ac 100644 --- a/doc/snippets/Eval_MatrixType.cpp +++ b/doc/snippets/Eval_MatrixType.cpp @@ -1,7 +1,7 @@ typedef Matrix3i MyMatrixType; MyMatrixType m = MyMatrixType::random(3, 3); cout << "Here's the matrix m:" << endl << m << endl; -typedef Eigen::Eval<Eigen::Row<MyMatrixType> >::MatrixType MyRowType; +typedef Eigen::Eval<Eigen::Block<MyMatrixType,1,MyMatrixType::ColsAtCompileTime> >::MatrixType MyRowType; // now MyRowType is just the same typedef as RowVector3i MyRowType r = m.row(0); cout << "Here's r:" << endl << r << endl; |