aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/examples/class_VectorBlock.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2010-12-30 04:52:20 -0500
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2010-12-30 04:52:20 -0500
commit26c2afd55a16b2868e6776797e33c11bd28f3ffc (patch)
tree483d2184afa001ecf45e9f6fa8414bb356e97d0b /doc/examples/class_VectorBlock.cpp
parentdbd9c5fd50cde5d5beaae44147eca3ba11934721 (diff)
fix compile errors in Tridiagonalization and in doc examples
Diffstat (limited to 'doc/examples/class_VectorBlock.cpp')
-rw-r--r--doc/examples/class_VectorBlock.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/class_VectorBlock.cpp b/doc/examples/class_VectorBlock.cpp
index 2f02c8f69..dc213df20 100644
--- a/doc/examples/class_VectorBlock.cpp
+++ b/doc/examples/class_VectorBlock.cpp
@@ -11,10 +11,10 @@ segmentFromRange(MatrixBase<Derived>& v, int start, int end)
}
template<typename Derived>
-const Eigen::VectorBlock<Derived>
+const Eigen::VectorBlock<const Derived>
segmentFromRange(const MatrixBase<Derived>& v, int start, int end)
{
- return Eigen::VectorBlock<Derived>(v.derived(), start, end-start);
+ return Eigen::VectorBlock<const Derived>(v.derived(), start, end-start);
}
int main(int, char**)