diff options
author | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2012-08-17 14:49:18 +0100 |
---|---|---|
committer | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2012-08-17 14:49:18 +0100 |
commit | 5eefca637e1c964426e8515b2493fbed816a789a (patch) | |
tree | ac0f69e0e67a143d587ddaced0169542fc77ce63 /doc/examples | |
parent | a1b405c92ec22289f5454328646bc845dc204cf6 (diff) |
Documentation fixes. Thanks to Rodney Sparapani for reporting these.
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/QuickStart_example2_dynamic.cpp | 6 | ||||
-rw-r--r-- | doc/examples/QuickStart_example2_fixed.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/doc/examples/QuickStart_example2_dynamic.cpp b/doc/examples/QuickStart_example2_dynamic.cpp index 672ac82e9..ff6746e21 100644 --- a/doc/examples/QuickStart_example2_dynamic.cpp +++ b/doc/examples/QuickStart_example2_dynamic.cpp @@ -6,10 +6,10 @@ using namespace std; int main() { - MatrixXf m = MatrixXf::Random(3,3); - m = (m + MatrixXf::Constant(3,3,1.2)) * 50; + MatrixXd m = MatrixXd::Random(3,3); + m = (m + MatrixXd::Constant(3,3,1.2)) * 50; cout << "m =" << endl << m << endl; - VectorXf v(3); + VectorXd v(3); v << 1, 2, 3; cout << "m * v =" << endl << m * v << endl; } diff --git a/doc/examples/QuickStart_example2_fixed.cpp b/doc/examples/QuickStart_example2_fixed.cpp index edf3268cd..d91175273 100644 --- a/doc/examples/QuickStart_example2_fixed.cpp +++ b/doc/examples/QuickStart_example2_fixed.cpp @@ -6,10 +6,10 @@ using namespace std; int main() { - Matrix3f m = Matrix3f::Random(); - m = (m + Matrix3f::Constant(1.2)) * 50; + Matrix3d m = Matrix3d::Random(); + m = (m + Matrix3d::Constant(1.2)) * 50; cout << "m =" << endl << m << endl; - Vector3f v(1,2,3); + Vector3d v(1,2,3); cout << "m * v =" << endl << m * v << endl; } |