|
From: Pau G. <pau...@gm...> - 2006-02-09 14:43:21
|
hi all,
i have a code the following code:
def foo(x):
'''takes a nd-array x and return another md-array'''
do something
return a md-array
A =3D an array of nd-arrays #A has 1+n dimensions
B =3D an array of md-arrays #B has 1+m dimensions
for i in len(A):
B[i] =3D foo(A[i])
and was wandering if there is an easy way to speed it up. I guess that
something using ufuncs could be used (?). Something like B =3D
ufunced_foo( A ).
thanks in advance,
pau
|