mixed mode arithmetic

Feb. 20, 2008
7:16 a.m.
I've been browsing the numpy source. I'm wondering about mixed-mode arithmetic on arrays. I believe the way numpy handles this is that it never does mixed arithmetic, but instead converts arrays to a common type. Arguably, that might be efficient for a mix of say, double and float. Maybe not. But for a mix of complex and a scalar type (say, CDouble * Double), it's clearly suboptimal in efficiency. So, do I understand this correctly? If so, is that something we should improve?

692
Age (days ago)
6312
Last active (days ago)
6 comments
4 participants
participants (4)
-
glaserjï¼ ornl.gov
-
Matti Picus
-
Neal Becker
-
Robert Kern