[Numpy-discussion] trapz

Alan G Isaac aisaac@american....
Sun Jul 13 12:51:29 CDT 2008


One other thing:
I believe ``trapz`` could get
a small efficiency gain by returning
(dx * (y[slice1]+y[slice2])).sum(axis=axis)/2.0

Cheers,
Alan Isaac





More information about the Numpy-discussion mailing list