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.
[x] Have you provided a meaningful PR description?
[x] Have you added a test, reproducer or referred to issue with a reproducer?
[x] Have you tested your changes locally for CPU and GPU devices?
[x] Have you made sure that new changes do not introduce compiler warnings?
[ ] Have you checked performance impact of proposed changes?
[ ] If this PR is a work in progress, are you filing the PR as a draft?
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 functionnumpy.trapezoid
was added since 2.0. Thus the PR proposes to implementdpnp.trapezoid
function from the beginning, rather thandpnp.trapz
one which is going to be removed in future numpy versions.