[Numpy-discussion] Apply a vector function to each row of a matrix
Thu Oct 9 08:24:45 CDT 2008
Look at: apply_along_axis
On Thu, Oct 9, 2008 at 8:04 AM, Neal Becker <firstname.lastname@example.org> wrote:
> Suppose I have a function (I wrote in c++) that accepts a numpy 1-d vector.
> What is the recommended way to apply it to each row of a matrix, returning
> a new matrix result? (Assume the function has signature newvec = f
> Numpy-discussion mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Numpy-discussion