aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-01-13 20:19:14 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-01-13 20:19:14 +0000
commit95dc68dc8682605651583dfd83aef742f87170f4 (patch)
treee1cbeeacd794f767dcdf2a24993bd2e5d9cd3393 /doc
parent89a134ba0b40b7cfc4554e3f06813fd32bbe2ede (diff)
renaming:
Block -> FixedBlock DynBlock -> Block indeed, previous commit solves the main issue with DynBlock so is should now be the more commonly used one.
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/class_Block.cpp8
-rw-r--r--doc/examples/class_DynBlock.cpp8
-rw-r--r--doc/snippets/MatrixBase_block.cpp4
-rw-r--r--doc/snippets/MatrixBase_dynBlock.cpp4
-rw-r--r--doc/snippets/MatrixBase_setIdentity.cpp2
-rw-r--r--doc/tutorial.cpp8
6 files changed, 17 insertions, 17 deletions
diff --git a/doc/examples/class_Block.cpp b/doc/examples/class_Block.cpp
index a6025231e..b34cf13ad 100644
--- a/doc/examples/class_Block.cpp
+++ b/doc/examples/class_Block.cpp
@@ -3,17 +3,17 @@ USING_PART_OF_NAMESPACE_EIGEN
using namespace std;
template<typename Scalar, typename Derived>
-Eigen::Block<Derived, 2, 2>
+Eigen::FixedBlock<Derived, 2, 2>
topLeft2x2Corner(MatrixBase<Scalar, Derived>& m)
{
- return Eigen::Block<Derived, 2, 2>(m.ref(), 0, 0);
+ return Eigen::FixedBlock<Derived, 2, 2>(m.ref(), 0, 0);
}
template<typename Scalar, typename Derived>
-const Eigen::Block<Derived, 2, 2>
+const Eigen::FixedBlock<Derived, 2, 2>
topLeft2x2Corner(const MatrixBase<Scalar, Derived>& m)
{
- return Eigen::Block<Derived, 2, 2>(m.ref(), 0, 0);
+ return Eigen::FixedBlock<Derived, 2, 2>(m.ref(), 0, 0);
}
int main(int, char**)
diff --git a/doc/examples/class_DynBlock.cpp b/doc/examples/class_DynBlock.cpp
index 589d1204e..6d48d235d 100644
--- a/doc/examples/class_DynBlock.cpp
+++ b/doc/examples/class_DynBlock.cpp
@@ -3,17 +3,17 @@ USING_PART_OF_NAMESPACE_EIGEN
using namespace std;
template<typename Scalar, typename Derived>
-Eigen::DynBlock<Derived>
+Eigen::Block<Derived>
topLeftCorner(MatrixBase<Scalar, Derived>& m, int rows, int cols)
{
- return Eigen::DynBlock<Derived>(m.ref(), 0, 0, rows, cols);
+ return Eigen::Block<Derived>(m.ref(), 0, 0, rows, cols);
}
template<typename Scalar, typename Derived>
-const Eigen::DynBlock<Derived>
+const Eigen::Block<Derived>
topLeftCorner(const MatrixBase<Scalar, Derived>& m, int rows, int cols)
{
- return Eigen::DynBlock<Derived>(m.ref(), 0, 0, rows, cols);
+ return Eigen::Block<Derived>(m.ref(), 0, 0, rows, cols);
}
int main(int, char**)
diff --git a/doc/snippets/MatrixBase_block.cpp b/doc/snippets/MatrixBase_block.cpp
index 6bdc1ab03..984fd7094 100644
--- a/doc/snippets/MatrixBase_block.cpp
+++ b/doc/snippets/MatrixBase_block.cpp
@@ -1,5 +1,5 @@
Matrix4d m = Vector4d(1,2,3,4).asDiagonal();
cout << "Here is the matrix m:" << endl << m << endl;
-cout << "Here is m.block<2, 2>(2, 2):" << endl << m.block<2, 2>(2, 2) << endl;
-m.block<2, 2>(2, 0) = m.block<2, 2>(2, 2);
+cout << "Here is m.fixedBlock<2, 2>(2, 2):" << endl << m.fixedBlock<2, 2>(2, 2) << endl;
+m.fixedBlock<2, 2>(2, 0) = m.fixedBlock<2, 2>(2, 2);
cout << "Now the matrix m is:" << endl << m << endl;
diff --git a/doc/snippets/MatrixBase_dynBlock.cpp b/doc/snippets/MatrixBase_dynBlock.cpp
index c04db2140..12363d028 100644
--- a/doc/snippets/MatrixBase_dynBlock.cpp
+++ b/doc/snippets/MatrixBase_dynBlock.cpp
@@ -1,5 +1,5 @@
Matrix3d m = Vector3d(1,2,3).asDiagonal();
cout << "Here is the matrix m:" << endl << m << endl;
-cout << "Here is m.dynBlock(1, 1, 2, 1):" << endl << m.dynBlock(1, 1, 2, 1) << endl;
-m.dynBlock(1, 0, 2, 1) = m.dynBlock(1, 1, 2, 1);
+cout << "Here is m.block(1, 1, 2, 1):" << endl << m.block(1, 1, 2, 1) << endl;
+m.block(1, 0, 2, 1) = m.block(1, 1, 2, 1);
cout << "Now the matrix m is:" << endl << m << endl;
diff --git a/doc/snippets/MatrixBase_setIdentity.cpp b/doc/snippets/MatrixBase_setIdentity.cpp
index 17a706ca2..b14fcdd27 100644
--- a/doc/snippets/MatrixBase_setIdentity.cpp
+++ b/doc/snippets/MatrixBase_setIdentity.cpp
@@ -1,3 +1,3 @@
Matrix4i m = Matrix4i::zero();
-m.block<3,3>(1,0).setIdentity();
+m.fixedBlock<3,3>(1,0).setIdentity();
cout << m << endl;
diff --git a/doc/tutorial.cpp b/doc/tutorial.cpp
index b0627083d..10406819f 100644
--- a/doc/tutorial.cpp
+++ b/doc/tutorial.cpp
@@ -18,13 +18,13 @@ int main(int, char **)
// notice how we are mixing fixed-size and dynamic-size types.
cout << "In the top-left block, we put the matrix m shown above." << endl;
- m2.block<2,2>(0,0) = m;
+ m2.fixedBlock<2,2>(0,0) = m;
cout << "In the bottom-left block, we put the matrix m*m, which is:" << endl << m*m << endl;
- m2.block<2,2>(2,0) = m * m;
+ m2.fixedBlock<2,2>(2,0) = m * m;
cout << "In the top-right block, we put the matrix m+m, which is:" << endl << m+m << endl;
- m2.block<2,2>(0,2) = m + m;
+ m2.fixedBlock<2,2>(0,2) = m + m;
cout << "In the bottom-right block, we put the matrix m-m, which is:" << endl << m-m << endl;
- m2.block<2,2>(2,2) = m - m;
+ m2.fixedBlock<2,2>(2,2) = m - m;
cout << "Now the 4x4 matrix m2 is:" << endl << m2 << endl;
cout << "Row 0 of m2 is:" << endl << m2.row(0) << endl;