Fix isfinite/isinf/isnan code snippets
This commit is contained in:
parent
a546be56e0
commit
e5b490b654
@ -2,4 +2,4 @@ Array3d v(1,2,3);
|
|||||||
v(1) *= 0.0/0.0;
|
v(1) *= 0.0/0.0;
|
||||||
v(2) /= 0.0;
|
v(2) /= 0.0;
|
||||||
cout << v << endl << endl;
|
cout << v << endl << endl;
|
||||||
cout << !isFinite(v) << endl;
|
cout << !isfinite(v) << endl;
|
||||||
|
|||||||
@ -2,4 +2,4 @@ Array3d v(1,2,3);
|
|||||||
v(1) *= 0.0/0.0;
|
v(1) *= 0.0/0.0;
|
||||||
v(2) /= 0.0;
|
v(2) /= 0.0;
|
||||||
cout << v << endl << endl;
|
cout << v << endl << endl;
|
||||||
cout << isFinite(v) << endl;
|
cout << isfinite(v) << endl;
|
||||||
|
|||||||
@ -2,4 +2,4 @@ Array3d v(1,2,3);
|
|||||||
v(1) *= 0.0/0.0;
|
v(1) *= 0.0/0.0;
|
||||||
v(2) /= 0.0;
|
v(2) /= 0.0;
|
||||||
cout << v << endl << endl;
|
cout << v << endl << endl;
|
||||||
cout << isInf(v) << endl;
|
cout << isinf(v) << endl;
|
||||||
|
|||||||
@ -2,4 +2,4 @@ Array3d v(1,2,3);
|
|||||||
v(1) *= 0.0/0.0;
|
v(1) *= 0.0/0.0;
|
||||||
v(2) /= 0.0;
|
v(2) /= 0.0;
|
||||||
cout << v << endl << endl;
|
cout << v << endl << endl;
|
||||||
cout << isNaN(v) << endl;
|
cout << isnan(v) << endl;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user