Add missing snippet files.

(grafted from 5165de97a44869188b19e62b669b6bc78d8e96e0
)
This commit is contained in:
Gael Guennebaud 2017-01-04 23:08:27 +01:00
parent bc3fee2d8e
commit 5b6a31626b
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;