VecSetInf() Use INFINITY instead of UB
1/0 is undefined behavior in C/C++ and hence the compiler could -- if it were so inclined -- remove the
for (...) arr[i] = inf;
entirely. So use INFINITY
instead.
Edited by Jacob Faibussowitsch
1/0 is undefined behavior in C/C++ and hence the compiler could -- if it were so inclined -- remove the
for (...) arr[i] = inf;
entirely. So use INFINITY
instead.