Skip to content

Commit bd6562a

Browse files
authored
Implement new aliases introduced in NumPy 2.0 - Part II (#2099)
* implement new aliases introduced in NumPy 2.0 * address comments * update linalg.rst
1 parent 63e641f commit bd6562a

28 files changed

+1066
-246
lines changed

doc/known_words.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
al
2+
ary
23
backend
34
bitwise
45
boolean
@@ -31,6 +32,7 @@ Fortran
3132
Frobenius
3233
fs
3334
getter
35+
Golub
3436
Hadamard
3537
Hypergeometric
3638
iinfo
@@ -51,8 +53,10 @@ ndim
5153
Nj
5254
Nk
5355
normed
56+
nuc
5457
Nyquist
5558
oneAPI
59+
ord
5660
orthonormal
5761
Penrose
5862
Polyutils

doc/reference/binary.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Binary Operations
1+
Bit-wise operations
22
=================
33

4-
.. https://docs.scipy.org/doc/numpy/reference/routines.bitwise.html
4+
.. https://numpy.org/doc/stable/reference/routines.bitwise.html
55
66
Element-wise bit operations
77
---------------------------
@@ -15,8 +15,12 @@ Element-wise bit operations
1515
dpnp.bitwise_or
1616
dpnp.bitwise_xor
1717
dpnp.invert
18+
dpnp.bitwise_invert
1819
dpnp.left_shift
20+
dpnp.bitwise_left_shift
1921
dpnp.right_shift
22+
dpnp.bitwise_right_shift
23+
dpnp.bitwise_count
2024

2125

2226
Bit packing

doc/reference/creation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Array creation routines
44
=======================
55

6-
.. https://docs.scipy.org/doc/numpy/reference/routines.array-creation.html
6+
.. https://numpy.org/doc/stable/reference/routines.array-creation.html
77
88
From shape or value
99
-----------------------

doc/reference/dtype.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Data type routines
44
==================
55

6-
.. https://docs.scipy.org/doc/numpy/reference/routines.dtype.html
6+
.. https://numpy.org/doc/stable/reference/routines.dtype.html
77
88
.. autosummary::
99
:toctree: generated/

doc/reference/fft.rst

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
.. module:: dpnp.fft
2-
31
FFT Functions
42
=============
53

6-
.. https://docs.scipy.org/doc/numpy/reference/routines.fft.html
4+
.. https://numpy.org/doc/stable/reference/routines.fft.html
75
86
Standard FFTs
97
-------------
@@ -12,12 +10,12 @@ Standard FFTs
1210
:toctree: generated/
1311
:nosignatures:
1412

15-
fft
16-
ifft
17-
fft2
18-
ifft2
19-
fftn
20-
ifftn
13+
dpnp.fft.fft
14+
dpnp.fft.ifft
15+
dpnp.fft.fft2
16+
dpnp.fft.ifft2
17+
dpnp.fft.fftn
18+
dpnp.fft.ifftn
2119

2220

2321
Real FFTs
@@ -27,12 +25,12 @@ Real FFTs
2725
:toctree: generated/
2826
:nosignatures:
2927

30-
rfft
31-
irfft
32-
rfft2
33-
irfft2
34-
rfftn
35-
irfftn
28+
dpnp.fft.rfft
29+
dpnp.fft.irfft
30+
dpnp.fft.rfft2
31+
dpnp.fft.irfft2
32+
dpnp.fft.rfftn
33+
dpnp.fft.irfftn
3634

3735

3836
Hermitian FFTs
@@ -42,8 +40,8 @@ Hermitian FFTs
4240
:toctree: generated/
4341
:nosignatures:
4442

45-
hfft
46-
ihfft
43+
dpnp.fft.hfft
44+
dpnp.fft.ihfft
4745

4846

4947
Helper routines
@@ -53,10 +51,10 @@ Helper routines
5351
:toctree: generated/
5452
:nosignatures:
5553

56-
fftfreq
57-
rfftfreq
58-
fftshift
59-
ifftshift
54+
dpnp.fft.fftfreq
55+
dpnp.fft.rfftfreq
56+
dpnp.fft.fftshift
57+
dpnp.fft.ifftshift
6058

6159
.. fft.config module is not implemented yet
6260
.. dpnp.fft.config.set_cufft_callbacks

doc/reference/linalg.rst

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Linear Algebra
22
==============
33

4-
.. https://docs.scipy.org/doc/numpy/reference/routines.linalg.html
4+
.. https://numpy.org/doc/stable/reference/routines.linalg.html
55
66
Matrix and vector products
77
--------------------------
@@ -13,14 +13,19 @@ Matrix and vector products
1313
dpnp.dot
1414
dpnp.linalg.multi_dot
1515
dpnp.vdot
16+
dpnp.vecdot
17+
dpnp.linalg.vecdot (Array API compatible)
1618
dpnp.inner
1719
dpnp.outer
1820
dpnp.matmul
21+
dpnp.linalg.matmul (Array API compatible)
1922
dpnp.tensordot
23+
dpnp.linalg.tensordot (Array API compatible)
2024
dpnp.einsum
2125
dpnp.einsum_path
2226
dpnp.linalg.matrix_power
2327
dpnp.kron
28+
dpnp.linalg.cross (Array API compatible)
2429

2530
Decompositions
2631
--------------
@@ -55,11 +60,14 @@ Norms and other numbers
5560
:nosignatures:
5661

5762
dpnp.linalg.norm
63+
dpnp.linalg.matrix_norm (Array API compatible)
64+
dpnp.linalg.vector_norm (Array API compatible)
5865
dpnp.linalg.cond
5966
dpnp.linalg.det
6067
dpnp.linalg.matrix_rank
6168
dpnp.linalg.slogdet
6269
dpnp.trace
70+
dpnp.linalg.trace (Array API compatible)
6371

6472

6573
Solving linear equations
@@ -75,3 +83,19 @@ Solving linear equations
7583
dpnp.linalg.inv
7684
dpnp.linalg.pinv
7785
dpnp.linalg.tensorinv
86+
87+
Other matrix operations
88+
-----------------------
89+
.. autosummary::
90+
:toctree: generated/
91+
92+
dpnp.diagonal
93+
dpnp.linalg.diagonal (Array API compatible)
94+
dpnp.linalg.matrix_tranpose (Array API compatible)
95+
96+
Exceptions
97+
----------
98+
.. autosummary::
99+
:toctree: generated/
100+
101+
dpnp.linalg.linAlgError

doc/reference/logic.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Logic Functions
22
===============
33

4-
.. https://docs.scipy.org/doc/numpy/reference/routines.logic.html
4+
.. https://numpy.org/doc/stable/reference/routines.logic.html
55
66
Truth value testing
77
-------------------

doc/reference/manipulation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Array Manipulation Routines
22
===========================
33

4-
.. https://docs.scipy.org/doc/numpy/reference/routines.array-manipulation.html
4+
.. https://numpy.org/doc/stable/reference/routines.array-manipulation.html
55
66
Basic operations
77
----------------

doc/reference/math.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Mathematical functions
22
======================
33

4-
.. https://docs.scipy.org/doc/numpy/reference/routines.math.html
4+
.. https://numpy.org/doc/stable/reference/routines.math.html
55
66
Trigonometric functions
77
-----------------------

doc/reference/misc.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Miscellaneous routines
22
======================
33

4-
.. https://docs.scipy.org/doc/numpy/reference/routines.other.html
4+
.. https://numpy.org/doc/stable/reference/routines.other.html
55
66
Utility
77
-------
@@ -13,6 +13,4 @@ Utility
1313
dpnp.get_include
1414
dpnp.show_config
1515
dpnp.show_runtime
16-
dpnp.deprecate
17-
dpnp.deprecate_with_doc
1816
dpnp.broadcast_shapes

0 commit comments

Comments
 (0)