Fix isfinite/isinf/isnan code snippets

This commit is contained in:
Gael Guennebaud 2015-06-15 15:09:25 +02:00
parent a546be56e0
commit e5b490b654
4 changed files with 4 additions and 4 deletions

View File

@ -2,4 +2,4 @@ Array3d v(1,2,3);
v(1) *= 0.0/0.0;
v(2) /= 0.0;
cout << v << endl << endl;
cout << !isFinite(v) << endl;
cout << !isfinite(v) << endl;

View File

@ -2,4 +2,4 @@ Array3d v(1,2,3);
v(1) *= 0.0/0.0;
v(2) /= 0.0;
cout << v << endl << endl;
cout << isFinite(v) << endl;
cout << isfinite(v) << endl;

View File

@ -2,4 +2,4 @@ Array3d v(1,2,3);
v(1) *= 0.0/0.0;
v(2) /= 0.0;
cout << v << endl << endl;
cout << isInf(v) << endl;
cout << isinf(v) << endl;

View File

@ -2,4 +2,4 @@ Array3d v(1,2,3);
v(1) *= 0.0/0.0;
v(2) /= 0.0;
cout << v << endl << endl;
cout << isNaN(v) << endl;
cout << isnan(v) << endl;