Numeric write-in place facility
Ionel Simionescu
ionel at psy.uva.nl
Mon Nov 29 06:46:36 EST 1999
Hi,
In a post on the wxPython list, Markus Gritsch suggested that array ops such
as
a = a+b
can be done faster by using write-in place:
Numric.add(a,b,a)
Playing around I see now that other ufuncs allow a write-in target
specification as their last argument. For example,
Numeric.sqrt(a,b)
will put the result in b (if its dimension and type are Ok).
The docs do not tell much about this.
Can anyone confirm/clarify/comment ?
Thanks,
ionel
More information about the Python-list
mailing list