Skip to main content
1-Visitor
October 28, 2020
Question

Be careful absolute value function suffer from overflow and underflow for vectors

  • October 28, 2020
  • 1 reply
  • 3236 views

norm suffer from overflow and underflow.png

1 reply

23-Emerald I
October 29, 2020

Interesting results in Prime 4.0 Express

FredKohlhepp_0-1603977054045.png

 

25-Diamond I
October 29, 2020

Interesting, yes. I can understand the "Infinity" part (which is better than MC15's 0) as it may be the result of calculating the v^T*v first, which exceeds the IEEE limit, and the root of "infinity" is "infinity" again. But I am confused about the doubled minus sign in the exponent in front of the 2^31 (the largest 32 bit integer is 2^31-1, the most small is -2^31).

23-Emerald I
October 29, 2020

So, a bug?

 

Is the other way described a better norm function?

 

FredKohlhepp_0-1603979883579.png