[Numpy-discussion] numpy.trapz() doesn't respect subclass
Sun Mar 21 23:57:16 CDT 2010
On Mon, Mar 22, 2010 at 12:49 AM, Ryan May <firstname.lastname@example.org> wrote:
> I found that trapz() doesn't work with subclasses:
> A simple patch (attached) to change asarray() to asanyarray() fixes
> the problem fine.
Are you sure this function works with matrices and other subclasses?
Looking only very briefly at it: the multiplication might be a problem.
> Ryan May
> Graduate Research Assistant
> School of Meteorology
> University of Oklahoma
> NumPy-Discussion mailing list
More information about the NumPy-Discussion