Skip to content
Snippets Groups Projects
Commit a5f176e3 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ENH : change 0/0 -> signaling_NaN()

parent 2e374434
No related branches found
No related tags found
No related merge requests found
......@@ -108,8 +108,7 @@ void
EuclideanDistanceWithMissingValuePow2< TVector >
::SetToMissingValue ( ValueType & v )
{
static double zero;
v = static_cast<ValueType>( 0.0/zero );
v = std::numeric_limits<ValueType>::signaling_NaN();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment