diff options
author | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2014-02-12 14:03:39 +0000 |
---|---|---|
committer | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2014-02-12 14:03:39 +0000 |
commit | 7ea6ef89693b0d70db29ccad1a3cc7771195e318 (patch) | |
tree | c090c3dc180d6e74db54a5bfe02319ff220d6183 /doc/snippets/MatrixBase_applyOnTheRight.cpp | |
parent | 31c63ef0b42ae9d6249281c70a0268ddb4eba10d (diff) |
Fix documentation of MatrixBase::applyOnTheLeft (bug #739)
Add examples; move methods from EigenBase.h to MatrixBase.h
Diffstat (limited to 'doc/snippets/MatrixBase_applyOnTheRight.cpp')
-rw-r--r-- | doc/snippets/MatrixBase_applyOnTheRight.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/snippets/MatrixBase_applyOnTheRight.cpp b/doc/snippets/MatrixBase_applyOnTheRight.cpp new file mode 100644 index 000000000..e4b71b2d8 --- /dev/null +++ b/doc/snippets/MatrixBase_applyOnTheRight.cpp @@ -0,0 +1,9 @@ +Matrix3f A = Matrix3f::Random(3,3), B; +B << 0,1,0, + 0,0,1, + 1,0,0; +cout << "At start, A = " << endl << A << endl; +A *= B; +cout << "After A *= B, A = " << endl << A << endl; +A.applyOnTheRight(B); // equivalent to A *= B +cout << "After applyOnTheRight, A = " << endl << A << endl; |