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

IntelPython / dpnp / 23287962750
82%

Build:
DEFAULT BRANCH: master
Ran 19 Mar 2026 09:55AM UTC
Jobs 1
Files 216
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

19 Mar 2026 09:17AM UTC coverage: 81.379% (-0.005%) from 81.384%
23287962750

push

github

web-flow
Fix `diagonal()` strides calculation for empty results (#2814)

Previously `dpnp.diagonal()` returned incorrect strides when the
diagonal was empty (e.g., when offset >= array width). The stride was
set to itemsize instead of the correct `st_n + st_m`.

This PR:
* fixes stride calculation to consistently use (st_n + st_m)
* simplifies implementation using unified formula to calculate resulting
shape, strides, and offset
* extends tests coverage including scenarios with empty diagonals,
views, and non-contiguous arrays

The PR closes #2761.

1323 of 2442 branches covered (54.18%)

Branch coverage included in aggregate %.

6 of 6 new or added lines in 1 file covered. (100.0%)

19777 of 23486 relevant lines covered (84.21%)

6872.33 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23287962750.1 19 Mar 2026 09:55AM UTC 216
81.38
GitHub Action Run
Source Files on build 23287962750
  • Tree
  • List 216
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #23287962750
  • db486b9b on github
  • Prev Build on master (#23270759655)
  • Next Build on master (#23295526851)
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