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

IntelPython / dpctl / 7040079480
86%

Build:
DEFAULT BRANCH: master
Ran 30 Nov 2023 12:37AM UTC
Jobs 1
Files 73
Run time 8s
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

30 Nov 2023 12:07AM UTC coverage: 85.979% (+0.04%) from 85.942%
7040079480

push

github

web-flow
Adds element-wise functions `angle` and `reciprocal` (#1474)

* Implements elementwise reciprocal

* Fixes typo in kernels/elementwise_functions/proj.hpp

* Implements elementwise angle

* UnaryElementwiseFunc class now takes an acceptance function

This change was made to mirror promotion behavior of divide in reciprocal

Adds getter method for the acceptance function

Adds tests for reciprocal

* Small bugfix in _zero_like

_zero_like did not have logic accounting for 0D arrays, so `x.imag` failed for 0D x

* _zero_like now allocates using the same sycl_queue

This prevents unexpected behavior when calling `imag`
i.e., for x with a real-valued data type
`dpctl.tensor.atan2(x.imag, x.real)` would not work prior to this change

* Fixes bugs in `real` and `imag` properties

The logic in these properties did not work for float16 data types, returning None instead of `self` or an array of zeros

* Adds tests for angle

* Adds tests for fixes to `real`/`imag` properties

* Adds test that `real`, `imag` use the same queue

* Correction to rsqrt docstring

* Change acceptance function names per feedback

`_acceptance_fn_default1` and `_acceptance_fn_default2` are now
`_acceptance_fn_default_unary` and `_acceptance_fn_default_binary`

2905 of 3414 branches covered (0.0%)

Branch coverage included in aggregate %.

30 of 32 new or added lines in 4 files covered. (93.75%)

9353 of 10843 relevant lines covered (86.26%)

7946.94 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
91.39
-0.06% dpctl/tensor/_elementwise_common.py
1
98.89
-1.11% dpctl/tensor/_type_utils.py
Jobs
ID Job ID Ran Files Coverage
1 7040079480.1 30 Nov 2023 12:38AM UTC 98
77.86
Source Files on build 7040079480
  • Tree
  • List 73
  • Changed 28
  • Source Changed 0
  • Coverage Changed 21
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • b3ba5ac1 on github
  • Prev Build on master (#6935669027)
  • Next Build on master (#7089055747)
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

© 2025 Coveralls, Inc