Re: [Numpy-discussion] Compact way of performing array math with specified result type?

2010-02-08 Thread Sebastian Haase
On Sat, Apr 28, 2007 at 10:04 PM, Travis Oliphant oliphant.tra...@ieee.org wrote: Russell E. Owen wrote: I often find myself doing simple math on sequences of numbers (which might or might not be numpy arrays) where I want the result (and thus the inputs) coerced to a particular data type.

[Numpy-discussion] Compact way of performing array math with specified result type?

2007-04-27 Thread Russell E. Owen
I often find myself doing simple math on sequences of numbers (which might or might not be numpy arrays) where I want the result (and thus the inputs) coerced to a particular data type. I'd like to be able to say: numpy.divide(seq1, seq2, dtype=float) but ufuncs don't allow on to specify a

Re: [Numpy-discussion] Compact way of performing array math with specified result type?

2007-04-27 Thread Robert Kern
Russell E. Owen wrote: I often find myself doing simple math on sequences of numbers (which might or might not be numpy arrays) where I want the result (and thus the inputs) coerced to a particular data type. I'd like to be able to say: numpy.divide(seq1, seq2, dtype=float) but