[NumPy-Tickets] [NumPy] #1720: logical_and () handles nan incorrectly

NumPy Trac numpy-tickets@scipy....
Sun Jan 23 21:01:57 CST 2011


#1720: logical_and () handles nan incorrectly
---------------------------+------------------------------------------------
 Reporter:  joshuaschmitt  |       Owner:  somebody
     Type:  defect         |      Status:  new     
 Priority:  normal         |   Milestone:  2.0.0   
Component:  Other          |     Version:  1.5.0   
 Keywords:                 |  
---------------------------+------------------------------------------------

Comment(by charris):

 In C, non-zero means true, nan isn't zero, so... I think there was a
 discussion thread or another ticket about this once, maybe about the
 logical value of nan. The mailing list is probably a better place to bring
 this up as it is more of the nature of a design decision than a bug. In C
 the operator is implemented as a && b, so it is a C thing. I wonder if
 that behavior is part of the C specification or varies?

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1720#comment:2>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list