[SciPy-dev] numpy.float128 absence yield bugs

Matthieu Brucher matthieu.brucher@gmail....
Mon Mar 10 12:44:32 CDT 2008


You mean like :
numpy.float64.nbytes
and :
numpy.finfo(numpy.float64)
?

Matthieu

2008/3/10, dmitrey <dmitrey.kroshko@scipy.org>:
>
> As for numpy.longdouble (and related types if they are intended to be
> implemented), I suppose numpy also should have a function to return
> number of bites used (128, 96, 64 etc).
>
> Ok. Another one question: does numpy have function(s), that accepts a
> numpy type (float32, float64, uint16 etc) and yields: max value (like
> 1e300); min value (like -1e300); min positive value (for floats) like
> 1e-300?
>
> Thank you in advance, D.
>
>
>
> Travis E. Oliphant wrote:
> > dmitrey wrote:
> >
> >> hi all,
> >> if numpy.float128 type is absent (BTW does it related to OS or
> something
> >> else?), it yields bugs even if the type is never used (while importing
> >> from a py-file). For example:
> >>
> >>
> >
> > I suggest using numpy.longdouble if you are interested in cross-platform
> > use of float128.  There will always be a longdouble, but on some
> > platforms it is 128-bit, on others 96-bit, and on others 64-bit (i.e.
> > the same as double).
> >
> > -Travis O.
> >
> > _______________________________________________
> > Scipy-dev mailing list
> > Scipy-dev@scipy.org
> > http://projects.scipy.org/mailman/listinfo/scipy-dev
> >
> >
> >
> >
>
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-dev
>



-- 
French PhD student
Website : http://matthieu-brucher.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn : http://www.linkedin.com/in/matthieubrucher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-dev/attachments/20080310/31e67cc9/attachment.html 


More information about the Scipy-dev mailing list