Add examples for API documentation of MatrixBase::cwiseXxx() methods.

This commit is contained in:
Jitse Niesen
2010-07-23 20:32:33 +01:00
parent 072ee3c07d
commit 2b5a0060b4
10 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
Matrix3i a = Matrix3i::Random(), b = Matrix3i::Random();
Matrix3i c = a.cwiseProduct(b);
cout << "a:\n" << a << "\nb:\n" << b << "\nc:\n" << c << endl;