aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/examples
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-02-29 13:56:40 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-02-29 13:56:40 +0000
commitf12e9c53ac6c5157133219f54e95496773d32d3f (patch)
tree660b00e78abe67c3ad1f2f61d20b9129fb3f61e2 /doc/examples
parentb3268a6e2fd985bd1abfda0f19f266eaed1c018a (diff)
Patch by Gael Guennebaud: unify fixed-size and dynamic-size Block
expressions, update documentation.
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/class_FixedBlock.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/examples/class_FixedBlock.cpp b/doc/examples/class_FixedBlock.cpp
index b34cf13ad..a6025231e 100644
--- a/doc/examples/class_FixedBlock.cpp
+++ b/doc/examples/class_FixedBlock.cpp
@@ -3,17 +3,17 @@ USING_PART_OF_NAMESPACE_EIGEN
using namespace std;
template<typename Scalar, typename Derived>
-Eigen::FixedBlock<Derived, 2, 2>
+Eigen::Block<Derived, 2, 2>
topLeft2x2Corner(MatrixBase<Scalar, Derived>& m)
{
- return Eigen::FixedBlock<Derived, 2, 2>(m.ref(), 0, 0);
+ return Eigen::Block<Derived, 2, 2>(m.ref(), 0, 0);
}
template<typename Scalar, typename Derived>
-const Eigen::FixedBlock<Derived, 2, 2>
+const Eigen::Block<Derived, 2, 2>
topLeft2x2Corner(const MatrixBase<Scalar, Derived>& m)
{
- return Eigen::FixedBlock<Derived, 2, 2>(m.ref(), 0, 0);
+ return Eigen::Block<Derived, 2, 2>(m.ref(), 0, 0);
}
int main(int, char**)