We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fc9559 commit 90cf65cCopy full SHA for 90cf65c
unittest/eigen_ref.cpp
@@ -41,7 +41,7 @@ template <typename MatType>
41
Eigen::Ref<MatType> editBlock(Eigen::Ref<MatType> mat, Eigen::DenseIndex i,
42
Eigen::DenseIndex j, Eigen::DenseIndex n,
43
Eigen::DenseIndex m) {
44
- auto B = mat.block(i, j, n, m);
+ typename Eigen::Ref<MatType>::BlockXpr B = mat.block(i, j, n, m);
45
Eigen::Map<VectorXd> view(B.data(), B.size());
46
view.setLinSpaced(0., (double)view.size() - 1.);
47
return mat;
0 commit comments