[Matrix-SIG] Conversion of scalars.
dlr@postbox.ius.cs.cmu.edu
dlr@postbox.ius.cs.cmu.edu
Wed, 23 Jun 99 19:46:25 EDT
> [Much discussion of how to prevent upcasting of float arrays to
> double.]
Wasn't there a recent post promising clean ways to subclass Numpy
arrays?
If there is a way to cleanly subclass arrays, could we get some
mileage out of creating a non-promoting subclass? The non-promoting
version could define operators which type-check their arguments,
demote them if necessary, and then call the operators of the parent
class.
Or am I confused?
David