Skip to content

Commit ef93c93

Browse files
Update API Reference
1 parent af1af29 commit ef93c93

File tree

13 files changed

+219
-36
lines changed

13 files changed

+219
-36
lines changed

doc/reference/comparison.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Comparison Table
2-
================
1+
Comparison Table NumPy/ DPNP/ CuPy
2+
==================================
33

4-
Here is a list of NumPy APIs and its corresponding DPNP implementations.
4+
Here is a list of NumPy and CuPy APIs and its corresponding DPNP implementations.
55

66
``-`` in DPNP column means that DPNP implementation is not provided yet.
77

doc/reference/creation.rst

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Basic creation routines
2020
dpnp.zeros_like
2121
dpnp.full
2222
dpnp.full_like
23-
dpnp.vander
2423

2524

2625
Creation from other data
@@ -35,7 +34,13 @@ Creation from other data
3534
dpnp.asanyarray
3635
dpnp.ascontiguousarray
3736
dpnp.copy
37+
dpnp.frombuffer
38+
dpnp.from_dlpack
3839
dpnp.fromfile
40+
dpnp.fromfunction
41+
dpnp.fromiter
42+
dpnp.fromstring
43+
dpnp.loadtxt
3944

4045

4146
Numerical ranges
@@ -66,3 +71,14 @@ Matrix creation
6671
dpnp.tri
6772
dpnp.tril
6873
dpnp.triu
74+
dpnp.vander
75+
76+
77+
The Matrix class
78+
----------------
79+
.. autosummary::
80+
:toctree: generated/
81+
:nosignatures:
82+
83+
dpnp.mat
84+
dpnp.bmat

doc/reference/dtype.rst

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
Data type routines
2+
==================
3+
4+
.. https://docs.scipy.org/doc/numpy/reference/routines.dtype.html
5+
6+
.. autosummary::
7+
:toctree: generated/
8+
:nosignatures:
9+
10+
dpnp.can_cast
11+
dpnp.promote_types
12+
dpnp.min_scalar_type
13+
dpnp.result_type
14+
dpnp.common_type
15+
dpnp.obj2sctype
16+
17+
Creating data types
18+
-------------------
19+
.. autosummary::
20+
:toctree: generated/
21+
:nosignatures:
22+
23+
dpnp.dtype
24+
dpnp.format_parser
25+
26+
Data type information
27+
---------------------
28+
.. autosummary::
29+
:toctree: generated/
30+
:nosignatures:
31+
32+
dpnp.finfo
33+
dpnp.iinfo
34+
35+
Data type testing
36+
-----------------
37+
.. autosummary::
38+
:toctree: generated/
39+
:nosignatures:
40+
41+
dpnp.issctype
42+
dpnp.issubdtype
43+
dpnp.issubsctype
44+
dpnp.issubclass_
45+
dpnp.find_common_type
46+
47+
Miscellaneous
48+
-------------
49+
.. autosummary::
50+
:toctree: generated/
51+
:nosignatures:
52+
53+
dpnp.typename
54+
dpnp.sctype2char
55+
dpnp.mintypecode
56+
dpnp.maximum_sctype

doc/reference/indexing.rst

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
Array Indexing Routines
2+
=======================
3+
4+
.. https://docs.scipy.org/doc/numpy/reference/arrays.indexing.html
5+
6+
Generating index arrays
7+
-----------------------
8+
9+
10+
.. autosummary::
11+
:toctree: generated/
12+
:nosignatures:
13+
14+
dpnp.c_
15+
dpnp.r_
16+
dpnp.s_
17+
dpnp.nonzero
18+
dpnp.where
19+
dpnp.indices
20+
dpnp.ix_
21+
dpnp.ogrid
22+
dpnp.ravel_multi_index
23+
dpnp.unravel_index
24+
dpnp.diag_indices
25+
dpnp.diag_indices_from
26+
dpnp.mask_indices
27+
dpnp.tril_indices
28+
dpnp.tril_indices_from
29+
dpnp.triu_indices
30+
dpnp.triu_indices_from
31+
32+
33+
Indexing-like operations
34+
------------------------
35+
.. autosummary::
36+
:toctree: generated/
37+
:nosignatures:
38+
39+
dpnp.take
40+
dpnp.take_along_axis
41+
dpnp.choose
42+
dpnp.compress
43+
dpnp.diag
44+
dpnp.diagonal
45+
dpnp.select
46+
47+
48+
Inserting data into arrays
49+
--------------------------
50+
.. autosummary::
51+
:toctree: generated/
52+
:nosignatures:
53+
54+
dpnp.place
55+
dpnp.put
56+
dpnp.put_along_axis
57+
dpnp.putmask
58+
dpnp.fill_diagonal
59+
60+
61+
Iterating over arrays
62+
---------------------
63+
.. autosummary::
64+
:toctree: generated/
65+
:nosignatures:
66+
67+
dpnp.nditer
68+
dpnp.ndenumerate
69+
dpnp.ndindex
70+
dpnp.nested_iters
71+
dpnp.flatiter
72+
dpnp.iterable

doc/reference/linalg.rst

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Matrix and vector products
1010
:toctree: generated/
1111
:nosignatures:
1212

13-
dpnp.cross
1413
dpnp.dot
1514
dpnp.linalg.multi_dot
1615
dpnp.vdot
@@ -46,15 +45,16 @@ Matrix eigenvalues
4645
dpnp.linalg.eigvals
4746
dpnp.linalg.eigvalsh
4847

49-
Norms etc.
48+
Norms and other numbers
5049
----------
5150

5251
.. autosummary::
5352
:toctree: generated/
5453
:nosignatures:
5554

56-
dpnp.linalg.det
5755
dpnp.linalg.norm
56+
dpnp.linalg.cond
57+
dpnp.linalg.det
5858
dpnp.linalg.matrix_rank
5959
dpnp.linalg.slogdet
6060
dpnp.trace
@@ -73,14 +73,3 @@ Solving linear equations
7373
dpnp.linalg.inv
7474
dpnp.linalg.pinv
7575
dpnp.linalg.tensorinv
76-
77-
Special Matrices
78-
----------------
79-
80-
.. autosummary::
81-
:toctree: generated/
82-
:nosignatures:
83-
84-
dpnp.tri
85-
dpnp.tril
86-
dpnp.triu

doc/reference/manipulation.rst

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Basic operations
1111
:nosignatures:
1212

1313
dpnp.copyto
14+
dpnp.shape
1415

1516

1617
Changing array shape
@@ -22,6 +23,8 @@ Changing array shape
2223

2324
dpnp.reshape
2425
dpnp.ravel
26+
dpnp.ndarray.flat
27+
dpnp.ndarray.flatten
2528

2629

2730
Transpose-like operations
@@ -34,10 +37,9 @@ Transpose-like operations
3437
dpnp.moveaxis
3538
dpnp.rollaxis
3639
dpnp.swapaxes
40+
dpnp.ndarray.T
3741
dpnp.transpose
3842

39-
.. seealso::
40-
:attr:`dpnp.dparray.T`
4143

4244
Changing number of dimensions
4345
-----------------------------
@@ -66,6 +68,7 @@ Changing kind of array
6668
dpnp.asarray
6769
dpnp.asnumpy
6870
dpnp.asanyarray
71+
dpnp.asmatrix
6972
dpnp.asfarray
7073
dpnp.asfortranarray
7174
dpnp.ascontiguousarray
@@ -81,10 +84,12 @@ Joining arrays
8184

8285
dpnp.concatenate
8386
dpnp.stack
87+
dpnp.block
88+
dpnp.vstack
89+
dpnp.hstack
8490
dpnp.column_stack
91+
dpnp.row_stack
8592
dpnp.dstack
86-
dpnp.hstack
87-
dpnp.vstack
8893

8994

9095
Splitting arrays
@@ -119,6 +124,10 @@ Adding and removing elements
119124
:toctree: generated/
120125
:nosignatures:
121126

127+
dpnp.delete
128+
dpnp.insert
129+
dpnp.append
130+
dpnp.resize
122131
dpnp.unique
123132
dpnp.trim_zeros
124133

doc/reference/math.rst

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Rounding
4848
:nosignatures:
4949

5050
dpnp.around
51-
dpnp.round_
51+
dpnp.round
5252
dpnp.rint
5353
dpnp.fix
5454
dpnp.floor
@@ -119,6 +119,17 @@ Floating point routines
119119
dpnp.frexp
120120
dpnp.ldexp
121121
dpnp.nextafter
122+
dpnp.spacing
123+
124+
125+
Rational routines
126+
-----------------
127+
.. autosummary::
128+
:toctree: generated/
129+
:nosignatures:
130+
131+
dpnp.lcm
132+
dpnp.gcd
122133

123134

124135
Arithmetic operations
@@ -131,12 +142,14 @@ Arithmetic operations
131142
dpnp.add
132143
dpnp.reciprocal
133144
dpnp.negative
145+
dpnp.positive
134146
dpnp.multiply
135147
dpnp.divide
136148
dpnp.power
137149
dpnp.subtract
138150
dpnp.true_divide
139151
dpnp.floor_divide
152+
dpnp.floor_power
140153
dpnp.fmod
141154
dpnp.mod
142155
dpnp.modf
@@ -155,6 +168,26 @@ Handling complex numbers
155168
dpnp.real
156169
dpnp.imag
157170
dpnp.conj
171+
dpnp.conjugate
172+
173+
174+
Extrema Finding
175+
---------------
176+
177+
.. autosummary::
178+
:toctree: generated/
179+
:nosignatures:
180+
181+
dpnp.maximum
182+
dpnp.max
183+
dpnp.amax
184+
dpnp.fmax
185+
dpnp.nanmax
186+
dpnp.minimum
187+
dpnp.min
188+
dpnp.amin
189+
dpnp.fmin
190+
dpnp.nanmin
158191

159192

160193
Miscellaneous
@@ -173,10 +206,6 @@ Miscellaneous
173206
dpnp.absolute
174207
dpnp.fabs
175208
dpnp.sign
176-
dpnp.maximum
177-
dpnp.minimum
178-
dpnp.fmax
179-
dpnp.fmin
180209
dpnp.nan_to_num
181210
dpnp.bartlett
182211
dpnp.blackman

doc/reference/misc.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ Utility
1111
:nosignatures:
1212

1313
dpnp.get_include
14+
dpnp.show_config
15+
dpnp.show_runtime
16+
dpnp.deprecate
17+
dpnp.deprecate_with_doc
18+
dpnp.broadcast_shapes

doc/reference/random.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
Random Sampling (``dpnp.random``)
44
=================================
55

6-
.. https://docs.scipy.org/doc/numpy-1.16.1/reference/routines.random.html
76
.. https://docs.scipy.org/doc/numpy/reference/random/legacy.html
87
98

doc/reference/routines.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ These functions cover a subset of
1313

1414
creation
1515
manipulation
16+
indexing
1617
binary
18+
dtype
1719
fft
1820
linalg
1921
logic

doc/reference/sorting.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Searching
3737
dpnp.where
3838
dpnp.argwhere
3939
dpnp.searchsorted
40+
dpnp.extract
4041

4142
Counting
4243
--------

0 commit comments

Comments
 (0)