diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-12-30 04:52:20 -0500 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-12-30 04:52:20 -0500 |
commit | 26c2afd55a16b2868e6776797e33c11bd28f3ffc (patch) | |
tree | 483d2184afa001ecf45e9f6fa8414bb356e97d0b /doc/examples | |
parent | dbd9c5fd50cde5d5beaae44147eca3ba11934721 (diff) |
fix compile errors in Tridiagonalization and in doc examples
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/class_FixedVectorBlock.cpp | 4 | ||||
-rw-r--r-- | doc/examples/class_VectorBlock.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/examples/class_FixedVectorBlock.cpp b/doc/examples/class_FixedVectorBlock.cpp index 9be7d8d71..c88c9fbf1 100644 --- a/doc/examples/class_FixedVectorBlock.cpp +++ b/doc/examples/class_FixedVectorBlock.cpp @@ -11,10 +11,10 @@ firstTwo(MatrixBase<Derived>& v) } template<typename Derived> -const Eigen::VectorBlock<Derived, 2> +const Eigen::VectorBlock<const Derived, 2> firstTwo(const MatrixBase<Derived>& v) { - return Eigen::VectorBlock<Derived, 2>(v.derived(), 0); + return Eigen::VectorBlock<const Derived, 2>(v.derived(), 0); } int main(int, char**) 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**) |