IntelPython / dpnp

Data Parallel Extension for NumPy
BSD 2-Clause "Simplified" License
97 stars 22 forks source link

Add implementation of `dpnp.trapezoid` #2003

Closed antonwolfy closed 1 month ago

antonwolfy commented 1 month ago

The PR proposes to implement dpnp.trapezoid function.

The implementation is done through existing python calls. Existing third party tests are unmuted. And new tests are added to cover different use cases.

Note that in numpy prior 2.0 version there is numpy.trapz function which was deprecated and new function numpy.trapezoid was added since 2.0. Thus the PR proposes to implement dpnp.trapezoid function from the beginning, rather than dpnp.trapz one which is going to be removed in future numpy versions.

github-actions[bot] commented 1 month ago

View rendered docs @ https://intelpython.github.io/dpnp/index.html