[Numpy-discussion] howto apply-along-axis?
Sun Mar 24 16:46:56 CDT 2013
This is the closer I got to do what you say
Converts a 3D to 2D, but only works in the last axis. Any improvement would
2013/3/22 Neal Becker <email@example.com>
> I frequently find I have my 1d function that performs some reduction that
> like to apply-along some axis of an n-d array.
> As a trivial example,
> def sum(u):
> return np.sum (u)
> In this case the function is probably C/C++ code, but that is irrelevant (I
> Is there a reasonably efficient way to do this within numpy?
> NumPy-Discussion mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion