Re: Generically Creating Intermediate Data Compatible with Either ndarray or MasledArray Types

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Generically Creating Intermediate Data Compatible with Either ndarray or MasledArray Types

Hans Meine-4
Am Dienstag, 11. März 2008 20:57:30 schrieb Alexander Michael:
> Incidentally, while ones_like appears to play nice with derived
> classes, empty_like and zeros_like do not seem to do the same.

Shouldn't this be fixed?  (Obviously, this stems from the fact that ones_like
is implemented in C, while the two others are helpers by fperez copied over
from IPython.)

Maybe using Robert's suggestion?  (Patch attached.)  Or implement them all the
same?

--
Ciao, /  /
     /--/
    /  / ANS

_______________________________________________
Numpy-discussion mailing list
[hidden email]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

numpy_xxx_like_preserve_type.diff (744 bytes) Download Attachment
Loading...