Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
351 commits
Select commit Hold shift + click to select a range
9c88edb
Move ti.moveaxis() to dpctl_ext.tensor and reuse it
vlad-perevezentsev Feb 23, 2026
ba51636
Move ti.squeeze() to dpctl_ext.tensor and reuse it
vlad-perevezentsev Feb 23, 2026
bb16c19
Move ti.stack() to dpctl_ext.tensor and reuse it
vlad-perevezentsev Feb 23, 2026
ccad5f0
Move ti.swapaxes() to dpctl_ext.tensor and reuse it
vlad-perevezentsev Feb 23, 2026
b5e3541
Move ti.tile() to dpctl_ext.tensor and reuse it
vlad-perevezentsev Feb 23, 2026
325729b
Move ti.unstack() to dpctl_ext.tensor and reuse it
vlad-perevezentsev Feb 23, 2026
4552e78
Initialize _tensor_accumulation_impl extension and move _cumsum_over_…
vlad-perevezentsev Feb 27, 2026
6b81e7a
Move ti.cumulative_sum() and reuse it in dpnp
vlad-perevezentsev Feb 27, 2026
5af94c8
Move _cumprod_over_axis to dpctl_ext.tensor._tensor_accumulation_impl
vlad-perevezentsev Mar 2, 2026
91547cc
Add missing include
vlad-perevezentsev Mar 2, 2026
668f3fb
Move ti.cumulative_prod() and reuse it in dpnp
vlad-perevezentsev Mar 2, 2026
72d2109
Move _cumlogsumexp_over_axis to dpctl_ext.tensor._tensor_accumulation…
vlad-perevezentsev Mar 2, 2026
d8c3680
Move ti.cumulative_logsumexp() and reuse it in dpnp
vlad-perevezentsev Mar 2, 2026
a1d9b0a
Extend ignore-words-list codespell
vlad-perevezentsev Mar 2, 2026
8a87fea
Move utils rich_comparisons.hpp file
vlad-perevezentsev Mar 2, 2026
43a7a04
Initialize _tensor_sorting_impl extension and move _radix_sort and py…
vlad-perevezentsev Mar 2, 2026
1f018ec
Move _sort_ascending/descending to dpctl_ext.tensor._tensor_sorting_impl
vlad-perevezentsev Mar 2, 2026
b62d836
Move ti.sort() and reuse it in dpnp
vlad-perevezentsev Mar 2, 2026
82d202c
Move ti.unique_counts() and ti.unique_values() to dpctl_ext.tensor
vlad-perevezentsev Mar 2, 2026
893cdc3
Move _radix_argsort_ascending/descending to _tensor_sorting_impl
vlad-perevezentsev Mar 2, 2026
40c2b84
Move _argsort_ascending/descending to _tensor_sorting_impl
vlad-perevezentsev Mar 2, 2026
6912311
Move ti.argsort() to dpctl_ext.tensor and reuse it in dpnp
vlad-perevezentsev Mar 2, 2026
88a23a2
Move _searchsorted_left/right to _tensor_sorting_impl
vlad-perevezentsev Mar 2, 2026
148b6e5
Fix bug: wrong shape pointer for positions array
vlad-perevezentsev Mar 2, 2026
8b010b0
Move ti.searchsorted() and reuse it in dpnp
vlad-perevezentsev Mar 2, 2026
9766d34
Move dpt.unique_all() and dpt.unique_inverse() and reuse it in dpnp
vlad-perevezentsev Mar 2, 2026
b8ad5ec
Move _isin to _tensor_sorting_impl
vlad-perevezentsev Mar 2, 2026
ce570a5
Fix bug: wrong shape pointer for dst array
vlad-perevezentsev Mar 2, 2026
a7c6440
Move dpt.isin() and reuse it in dpnp
vlad-perevezentsev Mar 2, 2026
62d19f1
Move _topk to _tensor_sorting_impl
vlad-perevezentsev Mar 2, 2026
56d397d
Move dpt.top_k()
vlad-perevezentsev Mar 2, 2026
ad814fb
Initialize _tensor_reductions_impl extension and move _all
vlad-perevezentsev Mar 3, 2026
c4f2496
Add TODO with incorrect logic in reductions_over_axis.hpp
vlad-perevezentsev Mar 3, 2026
bd3add0
Move ti.all() to dpctl_ext.tensor and reuse it in dpnp
vlad-perevezentsev Mar 3, 2026
b1953df
Move _any to _tensor_reductions_impl
vlad-perevezentsev Mar 3, 2026
32802d6
Move ti.any()/ti.diff() and reuse them in dpnp
vlad-perevezentsev Mar 3, 2026
1b4e498
Move _min_over_axis/_max_over_axis to _tensor_reductions_impl
vlad-perevezentsev Mar 3, 2026
aa313ff
Move ti.min()/max() and reuse it in dpnp
vlad-perevezentsev Mar 3, 2026
c6d600a
Move _argmax/argmin_over_axis to _tensor_reductions_impl
vlad-perevezentsev Mar 3, 2026
8ae933d
Move ti.argmax()/argmin() to dpctl_ext.tensor and reuse them in dpnp
vlad-perevezentsev Mar 3, 2026
2ec3cc7
Move _prod/sum_over_axis to _tensor_reductions_impl
vlad-perevezentsev Mar 3, 2026
6b27b1b
Move ti.sum()/prod() to dpctl_ext.tensor and reuse them in dpnp
vlad-perevezentsev Mar 3, 2026
3041d7d
Move _logsumexp/hypot_over_axis to _tensor_reductions_impl
vlad-perevezentsev Mar 3, 2026
4872bb6
Move ti.count_nonzero()/logsumexp()/reduce_hypot() to dpctl_ext.tenso…
vlad-perevezentsev Mar 3, 2026
58fdef3
Initialize _tensor_elementwise_impl extension and move _abs
vlad-perevezentsev Mar 3, 2026
d4cda7c
Move ti.abs() and reuse _abs in dpnp
vlad-perevezentsev Mar 3, 2026
ec74213
Move _acos/_acosh to _tensor_elementwise_impl
vlad-perevezentsev Mar 3, 2026
d4293a2
Move ti.acos()/acosh() and reuse them in dpnp
vlad-perevezentsev Mar 3, 2026
a548dbb
Move _angle/_asin/_asinh to _tensor_elementwise_impl
vlad-perevezentsev Mar 3, 2026
0cec8c3
Move ti.angel()/asin()/asinh() and reuse them
vlad-perevezentsev Mar 3, 2026
4e10a53
Move _atan/_atanh to _tensor_elementwise_impl
vlad-perevezentsev Mar 3, 2026
d509f6d
Move ti.atan()/atanh() and reuse them
vlad-perevezentsev Mar 3, 2026
e54114f
Move __bitwise_invert/_ceil/_conj to _tensor_elementwise_impl
vlad-perevezentsev Mar 3, 2026
e24b129
Move ti.bitwise_invert()/ceil()/conj() and reust them
vlad-perevezentsev Mar 3, 2026
a6100b8
Move _cos/_cosh to _tensor_elementwise_impl
vlad-perevezentsev Mar 4, 2026
e6d0d6f
Move ti.cos()/cosh() and reuse them
vlad-perevezentsev Mar 4, 2026
44ac844
Move _exp/_expmp/_floor to dpctl_ext.tensor and reuse them
vlad-perevezentsev Mar 4, 2026
eab5fec
Move ti.imag()/isfinite()/isfinite() and reuse them
vlad-perevezentsev Mar 4, 2026
4a8c05d
Move ti.isnan()/log()/log1p() and reuse them
vlad-perevezentsev Mar 4, 2026
6d9221c
Move ti.log2()/log10() and reuse them
vlad-perevezentsev Mar 4, 2026
7f444bd
Move ti.logical_not()/negative()/positive() and reuse them
vlad-perevezentsev Mar 4, 2026
dbf021a
Move ti.proj()/real()/round() and reuse them
vlad-perevezentsev Mar 4, 2026
0bc8973
Move ti.sign()/signbit()/sin()/sinh() and reuse them
vlad-perevezentsev Mar 4, 2026
a1707b2
Move ti.square()/sqrt()/tan()/tanh() and reuse them
vlad-perevezentsev Mar 4, 2026
0cdc3e4
Move ti.cbrt()/exp2()/reciprocal()/rsqrt()/trunc() and reuse them
vlad-perevezentsev Mar 4, 2026
3333fc1
add tensor linalg extension
ndgrigorian Mar 5, 2026
bdf3b18
Move helper logic for binary functions
vlad-perevezentsev Mar 5, 2026
d8aab36
Move ti.add() and reuse them
vlad-perevezentsev Mar 5, 2026
a51d34f
Move ti.atan2()/bitwise_and() and reuse them
vlad-perevezentsev Mar 5, 2026
ccb4c67
Move all binary bitwise functions and reuse them
vlad-perevezentsev Mar 5, 2026
fe7778d
Move ti.equal()/floor_divide()/divide() and reuse them
vlad-perevezentsev Mar 5, 2026
c73df9c
Move ti.greater()/greater_equal()/hypot() and reuse them
vlad-perevezentsev Mar 5, 2026
fefaa17
Move ti.less()/less_equal() and reuse them
vlad-perevezentsev Mar 5, 2026
28288ae
Move ti.logaddexp() and reuse it
vlad-perevezentsev Mar 5, 2026
1fb889d
Move all binary logical_ functions and reuse them
vlad-perevezentsev Mar 5, 2026
87f5529
Move ti.maximum()/minimum()/multiply() and reuse them
vlad-perevezentsev Mar 5, 2026
2d5d2ea
Move ti.nextafter()/not_equal()/pow() and reuse them
vlad-perevezentsev Mar 5, 2026
cab0b36
Move ti.copysign()/remainder()/subtract() and reuse them
vlad-perevezentsev Mar 5, 2026
ada8a5c
Merge include-dpctl-tensor into move_tensor_accumulation_impl
vlad-perevezentsev Mar 5, 2026
85ef3e0
Apply remarks
vlad-perevezentsev Mar 5, 2026
99c75cb
Use function from dpctl_ext.tensor in tensor python files
vlad-perevezentsev Mar 5, 2026
8dbf689
Move statistical functions to dpctl_ext.tensor and reuse them
vlad-perevezentsev Mar 5, 2026
e574a9a
Use _tensor_elementwise_impl from dpctl_ext
vlad-perevezentsev Mar 5, 2026
5a897c8
Add where to __init__
vlad-perevezentsev Mar 5, 2026
ecbc6a3
Move ti.allclose() to dpctl_ext.tensor
vlad-perevezentsev Mar 5, 2026
6e40f22
Merge move_tensor_accumulation_impl into move_tensor_sorting_impl
vlad-perevezentsev Mar 5, 2026
c9644ac
Merge move_tensor_sorting_impl into move_tensor_reductions_impl_ext
vlad-perevezentsev Mar 5, 2026
6a2c31b
Merge move_tensor_reductions_impl_ext into move_tensor_elementwise_im…
vlad-perevezentsev Mar 5, 2026
9339cb8
Merge move_tensor_elementwise_impl_unary into move_tensor_elementwise…
vlad-perevezentsev Mar 5, 2026
a506fe9
Merge move_tensor_elementwise_impl_unary_par_2 into move_tensor_eleme…
vlad-perevezentsev Mar 5, 2026
fc34f30
Merge move_tensor_elementwise_impl_unary_par_3 into move-tensor-linalg
vlad-perevezentsev Mar 5, 2026
c9efd4d
Merge move-tensor-linalg into move_elementwise_binary_impl
vlad-perevezentsev Mar 5, 2026
ee6ba17
Add missing logaddexp to __init__.py
vlad-perevezentsev Mar 5, 2026
d80285e
Merge move_elementwise_binary_impl into move_elementwise_binary_impl_…
vlad-perevezentsev Mar 5, 2026
c3d5ad7
Merge move_elementwise_binary_impl_part_2 into move_elementwise_binar…
vlad-perevezentsev Mar 5, 2026
a59ccd1
Merge move_elementwise_binary_impl_part_3 into finalize_functional_mi…
vlad-perevezentsev Mar 5, 2026
3bd1b0e
fix includes and namespaces in dot.cpp
ndgrigorian Mar 5, 2026
1620f77
use dpctl_ext.tensor throughout _linear_algebra_functions
ndgrigorian Mar 5, 2026
cb03a49
Move data types to dpctl_ext.tensor
vlad-perevezentsev Mar 5, 2026
93510c0
Move class Device to dpctl_ext.tensor
vlad-perevezentsev Mar 5, 2026
8e11b23
Move constants to dpctl_ext.tensor
vlad-perevezentsev Mar 5, 2026
54fe331
Move array API utilities
vlad-perevezentsev Mar 5, 2026
60bba8f
Move print functions to dpctl_ext.tensor
vlad-perevezentsev Mar 5, 2026
b4fa023
Move include/dlpack to dpctl_ext.tensor
vlad-perevezentsev Mar 5, 2026
fb8b77e
Move _dlpack.pyx/pxd to dpctl_ext.tensor
vlad-perevezentsev Mar 5, 2026
5c9e183
Move _flags.pyx to dpctl_ext.tensor
vlad-perevezentsev Mar 5, 2026
8f44c37
Move cython helper files
vlad-perevezentsev Mar 6, 2026
e2441eb
Move dldevice_conversions functions
vlad-perevezentsev Mar 6, 2026
422e87e
Move usm_ndarray to dpctl_ext.tensor
vlad-perevezentsev Mar 6, 2026
75580a5
fix clang-format
ndgrigorian Mar 6, 2026
e114808
Fix import _flags and _dlpack in _usmarray.pyx
vlad-perevezentsev Mar 6, 2026
39c0571
Update CMakes files to build usm_ndarray
vlad-perevezentsev Mar 6, 2026
7e6a283
abbreviate namespaces in linalg module sources and headers
ndgrigorian Mar 6, 2026
3c428a6
Switch fully to dpctl_ext.tensor in dpctl_ext.tensor
vlad-perevezentsev Mar 6, 2026
3883a1c
Switch fully to dpctl_ext.tensor in dpnp
vlad-perevezentsev Mar 6, 2026
23164ac
Reorder _usmarray import in __init__.py
vlad-perevezentsev Mar 6, 2026
18c3d61
Add missing _place_impl() to _copy_utils.py
vlad-perevezentsev Mar 6, 2026
7f14dfc
Update _dlpack.pyx to use dpctl_ext.tensor
vlad-perevezentsev Mar 6, 2026
5e7123d
Update _usmarray.pyx to use dpctl_ext.tensor
vlad-perevezentsev Mar 6, 2026
f4da0de
Integrate dpctl_ext.tensor C-API to dpnp4pybind11.hpp
vlad-perevezentsev Mar 6, 2026
1e4902d
Add from_dlpack to API dpctl_ext.tensor
vlad-perevezentsev Mar 9, 2026
9a50f9f
Extend .gitignore for dpctl_ext/include
vlad-perevezentsev Mar 9, 2026
153a91b
Add DpctlExtCAPI interface target
vlad-perevezentsev Mar 9, 2026
95acc3d
Increase build time for public CI
vlad-perevezentsev Mar 9, 2026
f55507d
Update test_from_dlpack_with_dpt to use dpt.empty
vlad-perevezentsev Mar 10, 2026
5d11ff7
Merge include-dpctl-tensor into move_tensor_elementwise_impl_unary
vlad-perevezentsev Mar 11, 2026
281adbf
Apply remarks
vlad-perevezentsev Mar 11, 2026
7b63ab5
Merge move_tensor_elementwise_impl_unary into move_tensor_elementwise…
vlad-perevezentsev Mar 11, 2026
a2d28af
Clean-up includes
vlad-perevezentsev Mar 11, 2026
1403be4
Merge move_tensor_elementwise_impl_unary_par_2 into move_tensor_eleme…
vlad-perevezentsev Mar 11, 2026
0182c74
Clean-up includes
vlad-perevezentsev Mar 11, 2026
86878cf
Merge move_tensor_elementwise_impl_unary_par_3 into move-tensor-linalg
vlad-perevezentsev Mar 11, 2026
c0ff29f
Add the missing includes for dot.cpp
vlad-perevezentsev Mar 11, 2026
ca295f1
Merge move-tensor-linalg into move_elementwise_binary_impl
vlad-perevezentsev Mar 11, 2026
e6e179e
Clean-up includes
vlad-perevezentsev Mar 11, 2026
ed289fc
Merge move_elementwise_binary_impl into move_elementwise_binary_impl_…
vlad-perevezentsev Mar 11, 2026
a3b2d00
Clean-up includes
vlad-perevezentsev Mar 11, 2026
d4ca39b
Merge move_elementwise_binary_impl_part_2 into move_elementwise_binar…
vlad-perevezentsev Mar 11, 2026
b467db5
Clean-up includes
vlad-perevezentsev Mar 11, 2026
608802a
Clean-up includes
vlad-perevezentsev Mar 11, 2026
b614202
Merge move_elementwise_binary_impl_part_2 into move_elementwise_binar…
vlad-perevezentsev Mar 11, 2026
f4c05d2
Merge move_elementwise_binary_impl_part_3 into finalize_functional_mi…
vlad-perevezentsev Mar 11, 2026
9a7fae9
Merge finalize_functional_migration into move_usm_ndarray
vlad-perevezentsev Mar 11, 2026
3ba741a
Add public C-API header for dpctl_ext
vlad-perevezentsev Mar 17, 2026
946ce93
Move dpctl C-API imports to dpctl_ext_capi.h
vlad-perevezentsev Mar 17, 2026
da0995c
Remove the workaround via CMAKE_BINARY_DIR from DpctlExtCAPI
vlad-perevezentsev Mar 17, 2026
31685d4
Disable pylint check no-name-in-module in dpnp_iface_statistics.py
vlad-perevezentsev Mar 17, 2026
fddedde
Merge include-dpctl-tensor into move_elementwise_binary_impl_part_2
vlad-perevezentsev Mar 18, 2026
969ec9a
Add a missing include
vlad-perevezentsev Mar 18, 2026
b0a4a6e
Apply remarks
vlad-perevezentsev Mar 18, 2026
21f1aec
Merge move_elementwise_binary_impl_part_2 into move_elementwise_binar…
vlad-perevezentsev Mar 18, 2026
255a20b
Merge include-dpctl-tensor into move_elementwise_binary_impl_part_3
vlad-perevezentsev Mar 18, 2026
d00ebe4
Clean up includes
vlad-perevezentsev Mar 18, 2026
1a4f450
Merge move_elementwise_binary_impl_part_3 into finalize_functional_mi…
vlad-perevezentsev Mar 18, 2026
ed51252
Merge finalize_functional_migration into move_usm_ndarray
vlad-perevezentsev Mar 18, 2026
b4395ea
Increase timeout_minutes for build dpnp with coverage step
vlad-perevezentsev Mar 18, 2026
7327502
Increase timeout-minutes for Build and Deploy Docs
vlad-perevezentsev Mar 18, 2026
42a6ada
Merge include-dpctl-tensor into finalize_functional_migration
vlad-perevezentsev Mar 19, 2026
bc52234
Update test_from_dlpack_with_dpt to use empty from dpctl_ext
vlad-perevezentsev Mar 19, 2026
8adaa68
Fully switch to using dpctl_ext functions for dpnp_elementwise_common.py
vlad-perevezentsev Mar 19, 2026
0277672
Update _testing.py in dpctl_ext/tensor
vlad-perevezentsev Mar 19, 2026
11562a2
Merge finalize_functional_migration into move_usm_ndarray
vlad-perevezentsev Mar 19, 2026
fd763f3
Merge include-dpctl-tensor into move_usm_ndarray
vlad-perevezentsev Mar 19, 2026
b30e6cc
Apply remarks
vlad-perevezentsev Mar 19, 2026
ec030b2
Move dpctl_ext/tensor into dpnp/tensor w/o updates
vlad-perevezentsev Mar 24, 2026
118410d
Register dpnp.tensor in setup.py
vlad-perevezentsev Mar 24, 2026
c6c0d18
Update imports in dpnp.tensor files and remove TODO
vlad-perevezentsev Mar 24, 2026
005635c
Update imports in dpnp files and remove TODO
vlad-perevezentsev Mar 24, 2026
efc9957
Move include/dpctl_ext_capi.h and rename to dpnp_tensor_capi.h
vlad-perevezentsev Mar 24, 2026
38227d1
Update dpnp4pybind11.hpp
vlad-perevezentsev Mar 24, 2026
3911d28
Update CMake configuration for dpnp.tensor
vlad-perevezentsev Mar 25, 2026
81a031d
Remove dpctl_ext folder
vlad-perevezentsev Mar 25, 2026
862a800
Rename DpctlExtCAPI to DpnpTensorCAPI
vlad-perevezentsev Mar 25, 2026
3e591f7
Update CMake files
vlad-perevezentsev Mar 25, 2026
7bf9492
Update .gitignore
vlad-perevezentsev Mar 25, 2026
7c90dc7
Test: reduce memory usage in coverage build
vlad-perevezentsev Mar 26, 2026
d0a08e0
Remove dpctl_ext.tensor C-API logic
vlad-perevezentsev Mar 26, 2026
09d9c46
Fix dpnp build dependencies after C-API removal
vlad-perevezentsev Mar 26, 2026
a9aadd9
Remove the warning suppress
vlad-perevezentsev Mar 27, 2026
996ecfb
Merge move_usm_ndarray into remove_c_api_tensor
vlad-perevezentsev Mar 27, 2026
6ea695a
Increase timeout-minutes for generate-coverage job
vlad-perevezentsev Mar 27, 2026
3dd6429
Merge move_usm_ndarray into move_dpctl_ext_to_dpnp_tensor
vlad-perevezentsev Mar 27, 2026
d41bfc0
Test: increase timeout_minutes and CMAKE_BUILD_PARALLEL_LEVEL
vlad-perevezentsev Mar 27, 2026
eeb1d49
Test: increase timeout_minutes and swap memory
vlad-perevezentsev Mar 30, 2026
76b1a0f
Undo accidentally removed import DLDeviceType
vlad-perevezentsev Mar 30, 2026
fd8c438
Test: CMAKE_BUILD_PARALLEL_LEVEL to 1 and timeout_minutes 350
vlad-perevezentsev Mar 30, 2026
fe3b2db
Update dlpack.h to v1.3 and README.md
vlad-perevezentsev Mar 30, 2026
9087bbf
Update examples in dpctl_ext.tensor cython files
vlad-perevezentsev Mar 30, 2026
aa934f7
Add TODO comment in __init__.py
vlad-perevezentsev Mar 30, 2026
33fc8fc
Apply remark
vlad-perevezentsev Mar 30, 2026
03efb63
Skip tensor build for coverage
vlad-perevezentsev Mar 30, 2026
5b7600c
Revert coverage test changes
vlad-perevezentsev Mar 30, 2026
72a18a1
Merge branch 'move_usm_ndarray' into move_dpctl_ext_to_dpnp_tensor
vlad-perevezentsev Mar 30, 2026
e841145
Merge include-dpctl-tensor into remove_c_api_tensor
vlad-perevezentsev Mar 31, 2026
7173375
Move CMAKE_BINARY_DIR to SYSTEM includes and remove duplicates
vlad-perevezentsev Mar 31, 2026
9ed637e
Remove the remaining dpctl_ext imports
vlad-perevezentsev Mar 31, 2026
9939b55
Merge include-dpctl-tensor into move_dpctl_ext_to_dpnp_tensor
vlad-perevezentsev Mar 31, 2026
fbb3706
Merge branch 'remove_c_api_tensor' into move_dpctl_ext_to_dpnp_tensor
vlad-perevezentsev Mar 31, 2026
3b2cb40
Update cython docstrings
vlad-perevezentsev Mar 31, 2026
51670fa
Merge branch 'remove_c_api_tensor' into move_dpctl_ext_to_dpnp_tensor
vlad-perevezentsev Mar 31, 2026
ad50437
Remove dpctl_ext folder
vlad-perevezentsev Mar 31, 2026
b261373
Remove dpctl_ext_capi.h that appeared after the merge
vlad-perevezentsev Mar 31, 2026
9f7b5ad
Merge branch 'remove_c_api_tensor' into move_dpctl_ext_to_dpnp_tensor
vlad-perevezentsev Mar 31, 2026
b95873e
Remove dpnp_tensor_capi.h
vlad-perevezentsev Mar 31, 2026
b263cbd
Remove installation of dpnp C-API headers
vlad-perevezentsev Mar 31, 2026
1fefc4e
Update comment in dpnp4pybind11.hpp
vlad-perevezentsev Mar 31, 2026
52f1f77
Split coverage build into separate steps
vlad-perevezentsev Mar 31, 2026
0d74e4d
Add SYCL_CACHE_PERSISTENT: 1 for GH coverage build
vlad-perevezentsev Mar 31, 2026
d819ae3
Test: swap space and use CMAKE_BUILD_PARALLEL_LEVEL: 2
vlad-perevezentsev Apr 1, 2026
609e1ab
Test : remove swap
vlad-perevezentsev Apr 1, 2026
e023f2f
Test: use -fsycl-device-code-split=off for tensor coverage build
vlad-perevezentsev Apr 1, 2026
6f8f4a2
Make _usmarray dependencies conditional in backend extensions
vlad-perevezentsev Apr 1, 2026
a29a169
Use dpnp.tensor.usm_ndarray in get_array() check
vlad-perevezentsev Apr 1, 2026
af8e355
Use -fsycl-device-code-split=per_source in tensor coverage
vlad-perevezentsev Apr 1, 2026
2f9e5d9
Use per_source device code splitting for coverage build
vlad-perevezentsev Apr 1, 2026
3acce36
adds __main__.py
ndgrigorian Apr 3, 2026
ae4bc7e
Update _accumulation.py doc to Sphinx format
vlad-perevezentsev Apr 7, 2026
205d0f8
Update _array_api.py doc to Sphinx format
vlad-perevezentsev Apr 7, 2026
d7eecee
Update _clip.py doc to Sphinx format
vlad-perevezentsev Apr 7, 2026
571b430
Update _copy_utils.py doc to Sphinx format
vlad-perevezentsev Apr 7, 2026
0b5d55f
Update _ctors.py doc to Sphinx format
vlad-perevezentsev Apr 7, 2026
a28c76f
Update _data_types.py doc to Sphinx format
vlad-perevezentsev Apr 7, 2026
75b263f
Update _device.py doc to Sphinx format
vlad-perevezentsev Apr 7, 2026
df11668
Update _dlpack.pyx doc to Sphinx format
vlad-perevezentsev Apr 7, 2026
e9a084f
Update _flags.pyx doc to Sphinx format
vlad-perevezentsev Apr 7, 2026
c8404c4
Update _elementwise_common.py doc to Sphinx format
vlad-perevezentsev Apr 7, 2026
786857b
Update _indexing_functions.py doc to Sphinx format
vlad-perevezentsev Apr 7, 2026
dec3f41
Update _elementwise_funcs.py doc to Sphinx format
vlad-perevezentsev Apr 7, 2026
d3179ea
Update _linear_algebra_functions.py doc to Sphinx format
vlad-perevezentsev Apr 10, 2026
daaf2b5
Update _manipulation_functions.py doc to Sphinx format
vlad-perevezentsev Apr 10, 2026
814a716
Update _print.py doc to Sphinx format
vlad-perevezentsev Apr 10, 2026
e5f2cb8
Update _reduction.py doc to Sphinx format
vlad-perevezentsev Apr 10, 2026
7406077
Update _reshape.py doc to Sphinx format
vlad-perevezentsev Apr 10, 2026
a468328
Update _search_functions.py doc to Sphinx format
vlad-perevezentsev Apr 10, 2026
36d338a
Update _searchsorted.py doc to Sphinx format
vlad-perevezentsev Apr 10, 2026
b157805
Update _set_functions.py doc to Sphinx format
vlad-perevezentsev Apr 10, 2026
1859a12
Update _slicing.pxi doc to Sphinx format
vlad-perevezentsev Apr 10, 2026
fee4a70
Update _sorting.py doc to Sphinx format
vlad-perevezentsev Apr 10, 2026
e3bd582
Update _statistical_functions.py doc to Sphinx format
vlad-perevezentsev Apr 10, 2026
a814a64
Update _testing.py doc to Sphinx format
vlad-perevezentsev Apr 10, 2026
3fe9b5e
Update _type_util.py doc to Sphinx format
vlad-perevezentsev Apr 10, 2026
85a7938
Update _usmarray.pyx doc to Sphinx format
vlad-perevezentsev Apr 10, 2026
7d5f244
Update _utility_functions.py doc to Sphinx format
vlad-perevezentsev Apr 10, 2026
387c06f
Replace dpctl.tensor with dpnp.tensor in dpnp.tensor
vlad-perevezentsev Apr 10, 2026
a44d2ec
Replace dpctl.tensor with dpnp.tensor in dpnp
vlad-perevezentsev Apr 10, 2026
e2f83bc
Add dpnp.tensor API reference documentation
vlad-perevezentsev Apr 10, 2026
29cd39c
Update usm_ndarray docstrings
vlad-perevezentsev Apr 10, 2026
90227c4
Add user guides for dpnp.tensor module
vlad-perevezentsev Apr 10, 2026
9e1fd55
Merge include-dpctl-tensor into update_tensor_docs
vlad-perevezentsev Apr 10, 2026
5846501
Apply clang-format
vlad-perevezentsev Apr 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
29 changes: 29 additions & 0 deletions doc/_templates/autosummary/cython_class.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{{ fullname | escape | underline}}

.. currentmodule:: {{ module }}

.. autoclass:: {{ name }}
{% block methods %}

{% if methods %}
.. rubric:: {{ _('Methods') }}

.. autosummary::
:toctree: generated
{% for item in methods if item != "__init__" %}
~{{ name }}.{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

{% block attributes %}
{% if attributes %}
.. rubric:: {{ _('Attributes') }}

.. autosummary::
:toctree: generated
{% for item in attributes %}
~{{ name }}.{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}
12 changes: 12 additions & 0 deletions doc/_templates/autosummary/elementwise.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{ fullname | escape | underline}}

.. currentmodule:: {{ module }}

{% if objtype == "data" %}
.. auto{{ objtype }}:: {{ objname }}
:no-value:
{% endif %}

{% if objtype == "function" %}
.. auto{{ objtype }}:: {{ objname }}
{% endif %}
45 changes: 45 additions & 0 deletions doc/_templates/autosummary/usm_ndarray.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{{ fullname | escape | underline}}

.. currentmodule:: {{ module }}



.. autoclass:: {{ name }}

{% block methods %}

{% if methods %}
.. rubric:: {{ _('Methods') }}

.. autosummary::
:toctree: generated
{% for item in methods if item != "__init__" %}
~{{ name }}.{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

{% block attributes %}
{% if attributes %}
.. rubric:: {{ _('Attributes') }}

.. autosummary::
:toctree: generated
{% for item in attributes %}
~{{ name }}.{{ item }}
{%- endfor %}

.. rubric:: {{ _('Special attributes') }}

.. autosummary::
:toctree: generated

~{{name}}.__dlpack_device__
~{{name}}.__dlpack__
~{{name}}.__sycl_usm_array_interface__
~{{name}}._pointer
~{{name}}._element_offset
~{{name}}._byte_bounds

{% endif %}
{% endblock %}
1 change: 1 addition & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Data Parallel Extension for NumPy*

overview
quick_start_guide
user_guides/index
reference/index

.. toctree::
Expand Down
1 change: 1 addition & 0 deletions doc/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ API reference of the Data Parallel Extension for NumPy*
.. toctree::
:maxdepth: 2

tensor
ndarray
ufunc
routines
Expand Down
15 changes: 15 additions & 0 deletions doc/reference/tensor.accumulation_functions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.. _dpnp_tensor_accumulation_functions:

Accumulation functions
======================

Accumulation functions compute cumulative results along a given axis of the input array.

.. currentmodule:: dpnp.tensor

.. autosummary::
:toctree: generated

cumulative_logsumexp
cumulative_prod
cumulative_sum
35 changes: 35 additions & 0 deletions doc/reference/tensor.constants.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.. _dpnp_tensor_constants:

Constants
=========

The following constants are defined in :py:mod:`dpnp.tensor`:

.. currentmodule:: dpnp.tensor

.. autodata:: DLDeviceType

.. data:: e

``float``:
IEEE 754 floating-point representation of Euler's constant.

.. data:: inf

``float``:
IEEE 754 floating-point representation of (positive) infinity.

.. data:: nan

``float``:
IEEE 754 floating-point representation of Not a Number (NaN).

.. data:: newaxis

``NoneType``:
Alias for ``None`` which is useful for indexing.

.. data:: pi

``float``:
IEEE 754 floating-point representation of the mathematical constant π.
31 changes: 31 additions & 0 deletions doc/reference/tensor.creation_functions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.. _dpnp_tensor_creation_functions:

Array creation functions
========================

The following functions in :py:mod:`dpnp.tensor` can be used
to create new arrays:

.. currentmodule:: dpnp.tensor

.. autosummary::
:toctree: generated

arange
asarray
empty
empty_like
eye
from_dlpack
full
full_like
linspace
meshgrid
ones
ones_like
tril
triu
zeros
zeros_like
from_numpy
copy
21 changes: 21 additions & 0 deletions doc/reference/tensor.data_type_functions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.. _dpnp_tensor_data_type_functions:

Data type functions
===================

The package :py:mod:`dpnp.tensor` contains the following data type functions conforming
to `Python Array API specification <array_api_data_type_fns_>`_:

.. _array_api_data_type_fns: https://data-apis.org/array-api/latest/API_specification/data_type_functions.html

.. currentmodule:: dpnp.tensor

.. autosummary::
:toctree: generated

astype
can_cast
finfo
iinfo
isdtype
result_type
127 changes: 127 additions & 0 deletions doc/reference/tensor.data_types.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
.. _dpnp_tensor_data_types:

.. currentmodule:: dpnp.tensor

Data types
==========

:py:mod:`dpnp.tensor` supports the following data types:

+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Data Type | Description |
+================+=========================================================================================================================================================================================+
| ``bool`` | Boolean (``True`` or ``False``) |
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ``int8`` | An 8-bit signed integer type capable of representing :math:`v` subject to :math:`-2^7 \le v < 2^7` |
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ``int16`` | A 16-bit signed integer type capable of representing :math:`v` subject to :math:`-2^{15} \le v < 2^{15}` |
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ``int32`` | A 32-bit signed integer type capable of representing :math:`v` subject to :math:`-2^{31} \le v < 2^{31}` |
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ``int64`` | A 64-bit signed integer type capable of representing :math:`v` subject to :math:`-2^{63} \le v < 2^{63}` |
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ``uint8`` | An 8-bit unsigned integer type capable of representing :math:`v` subject to :math:`0 \le v < 2^8` |
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ``uint16`` | A 16-bit unsigned integer type capable of representing :math:`v` subject to :math:`0 \le v < 2^{16}` |
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ``uint32`` | A 32-bit unsigned integer type capable of representing :math:`v` subject to :math:`0 \le v < 2^{32}` |
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ``uint64`` | A 64-bit unsigned integer type capable of representing :math:`v` subject to :math:`0 \le v < 2^{64}` |
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ``float16`` | An IEEE-754 half-precision (16-bit) binary floating-point number (see `IEEE 754-2019`_) |
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ``float32`` | An IEEE-754 single-precision (32-bit) binary floating-point number (see `IEEE 754-2019`_) |
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ``float64`` | An IEEE-754 double-precision (64-bit) binary floating-point number (see `IEEE 754-2019`_) |
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ``complex64`` | Single-precision (64-bit) complex floating-point number whose real and imaginary components are IEEE 754 single-precision (32-bit) binary floating-point numbers (see `IEEE 754-2019`_) |
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ``complex128`` | Double-precision (128-bit) complex floating-point number whose real and imaginary components are IEEE 754 double-precision (64-bit) binary floating-point numbers (see `IEEE 754-2019`_)|
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

.. _IEEE 754-2019: https://doi.org/10.1109%2FIEEESTD.2019.8766229

Data type support by array object :py:class:`usm_ndarray` depends on capabilities of :class:`dpctl.SyclDevice` where array is allocated.

Half-precision floating-point type ``float16`` is supported only for devices whose attribute :attr:`dpctl.SyclDevice.has_aspect_fp16` evaluates to ``True``.

Double-precision floating-point type ``float64`` and double-precision complex floating-point type ``complex128`` are supported only for devices whose attribute :attr:`dpctl.SyclDevice.has_aspect_fp64`
evaluates to ``True``.

If prerequisites are not met, requests to create an instance of an array object for these types will raise an exception.

Data type objects are instances of :py:class:`dtype` object, and support equality comparison by implementing
special method :meth:`__eq__`.

.. py:class:: dtype

Same as :py:class:`numpy.dtype`

.. py:method:: __eq__

Check if data-type instances are equal.


Default integral data type
--------------------------

The default integral data type is :attr:`int64` for all supported devices.

Default indexing data type
--------------------------

The default indexing data type is :attr:`int64` for all supported devices.

Default real floating-point data type
-------------------------------------

The default real floating-point type depends on the capabilities of device where array is allocated.
If the device support double precision floating-point types, the default real floating-point type
is :attr:`float64`, otherwise :attr:`float32`.

Make sure to select an appropriately capable device for an application that requires use of double
precision floating-point type.

Default complex floating-point data type
----------------------------------------

Like for the default real floating-point type, the default complex floating-point type depends on
capabilities of device. If the device support double precision real floating-point types, the default
complex floating-point type is :attr:`complex128`, otherwise :attr:`complex64`.


Querying default data types programmatically
--------------------------------------------

The data type can be discovered programmatically using Array API :ref:`inspection functions <dpnp_tensor_inspection>`:

.. code-block:: python

import dpctl
from dpnp import tensor

device = dpctl.select_default_device()
# get default data types for default-selected device
default_types = tensor.__array_namespace_info__().default_dtypes(device)
int_dt = default_types["integral"]
ind_dt = default_types["indexing"]
rfp_dt = default_types["real floating"]
cfp_dt = default_types["complex floating"]


Type promotion rules
--------------------

Type promotion rules govern the behavior of an array library when a function does not have
a dedicated implementation for the data type(s) of the input array(s).

In such a case, input arrays may be cast to data types for which a dedicated implementation
exists. For example, when :data:`sin` is applied to array of integral values.

Type promotion rules used in :py:mod:`dpnp.tensor` are consistent with the
Python Array API specification's `type promotion rules <https://data-apis.org/array-api/latest/API_specification/type_promotion.html>`_
for devices that support double precision floating-point type.


For devices that do not support double precision floating-point type, the type promotion rule is
truncated by removing nodes corresponding to unsupported data types and edges that lead to them.
Loading
Loading