Add missing snippet files.

This commit is contained in:
Gael Guennebaud 2017-01-04 23:08:27 +01:00
parent a0a36ad0ef
commit 5165de97a4
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,2 @@
.Array3d v(-1,2,1), w(-3,2,3);
cout << ((v<w) ^ (v<0)) << endl;

View File

@ -0,0 +1,6 @@
Matrix3i m = Matrix3i::Random();
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Here is the symmetric matrix extracted from the upper part of m:" << endl
<< Matrix3i(m.selfadjointView<Upper>()) << endl;
cout << "Here is the symmetric matrix extracted from the lower part of m:" << endl
<< Matrix3i(m.selfadjointView<Lower>()) << endl;