[Numpy-discussion] FloatingPointError: overflow encountered in multiply

Roy Lowrance roy.lowrance at gmail.com
Sun Jul 10 22:26:35 EDT 2011


I have a 1D float64 array ts. I want to square each element, so I compute
  x = ts * ts

I get a floating point overflow error.

However, when I access each element separately and multiple, I get no error:
  for i in ts.shape[0]:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110710/0a268415/attachment.html>


More information about the NumPy-Discussion mailing list