• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IntelPython / dpnp / 29415877025
78%

Build:
DEFAULT BRANCH: master
Ran 15 Jul 2026 01:45PM UTC
Jobs 1
Files 258
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Jul 2026 12:36PM UTC coverage: 78.107% (-0.002%) from 78.109%
29415877025

push

github

web-flow
Fix `dpnp.interp` returning nan at exact knot when fp contains inf (#2986)

`dpnp.interp` returned `NaN` when a query point landed exactly on an
interior knot of `xp` and the adjacent `fp` value was `Inf`.
Interpolating at such a point should return the knot value directly.

The root cause is IEEE-754 arithmetic in the linear formula: when
`fp[x_idx+1]` is `inf`, `slope` becomes `Inf`, and since `x_val -
xp[x_idx] == 0` at the knot, the result is `inf * 0 = nan`. The existing
NaN-recovery fallback also yields `nan` in this case.

```python
import dpnp as np

x = np.array([2.0])
xp = np.array([1.0, 2.0, 3.0, 4.0])
fp = np.array([1.0, 2.0, np.inf, 4.0])
np.interp(x, xp, fp)
# before: array([nan])
# after:  array([2.])   (matches numpy.interp)
```

1532 of 2854 branches covered (53.68%)

Branch coverage included in aggregate %.

25992 of 32385 relevant lines covered (80.26%)

8029.33 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
86.29
-0.27% dpnp/tensor/_elementwise_common.py
Jobs
ID Job ID Ran Files Coverage
1 29415877025.1 15 Jul 2026 01:45PM UTC 258
78.11
GitHub Action Run
Source Files on build 29415877025
  • Tree
  • List 258
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #29415877025
  • b05c07aa on github
  • Prev Build on master (#29406254749)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc