aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/examples/class_Block.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-07-21 00:34:46 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-07-21 00:34:46 +0000
commitc10f069b6b9f0dd4bb313341d1969bd7e1cf9338 (patch)
tree95934f5bc632a391dfa149783226b1543b24ff41 /doc/examples/class_Block.cpp
parentce425d92f1c1d199c8428c46b4c4ea3be81b137b (diff)
* Merge Extract and Part to the Part expression.
Renamed "MatrixBase::extract() const" to "MatrixBase::part() const" * Renamed static functions identity, zero, ones, random with an upper case first letter: Identity, Zero, Ones and Random.
Diffstat (limited to 'doc/examples/class_Block.cpp')
-rw-r--r--doc/examples/class_Block.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/class_Block.cpp b/doc/examples/class_Block.cpp
index 79cc314bf..03e5c28aa 100644
--- a/doc/examples/class_Block.cpp
+++ b/doc/examples/class_Block.cpp
@@ -18,7 +18,7 @@ topLeftCorner(const MatrixBase<Derived>& m, int rows, int cols)
int main(int, char**)
{
- Matrix4d m = Matrix4d::identity();
+ Matrix4d m = Matrix4d::Identity();
cout << topLeftCorner(4*m, 2, 3) << endl; // calls the const version
topLeftCorner(m, 2, 3) *= 5; // calls the non-const version
cout << "Now the matrix m is:" << endl << m << endl;