File tree Expand file tree Collapse file tree 13 files changed +219
-36
lines changed Expand file tree Collapse file tree 13 files changed +219
-36
lines changed Original file line number Diff line number Diff line change 1
- Comparison Table
2
- ================
1
+ Comparison Table NumPy/ DPNP/ CuPy
2
+ ==================================
3
3
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.
5
5
6
6
``- `` in DPNP column means that DPNP implementation is not provided yet.
7
7
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ Basic creation routines
20
20
dpnp.zeros_like
21
21
dpnp.full
22
22
dpnp.full_like
23
- dpnp.vander
24
23
25
24
26
25
Creation from other data
@@ -35,7 +34,13 @@ Creation from other data
35
34
dpnp.asanyarray
36
35
dpnp.ascontiguousarray
37
36
dpnp.copy
37
+ dpnp.frombuffer
38
+ dpnp.from_dlpack
38
39
dpnp.fromfile
40
+ dpnp.fromfunction
41
+ dpnp.fromiter
42
+ dpnp.fromstring
43
+ dpnp.loadtxt
39
44
40
45
41
46
Numerical ranges
@@ -66,3 +71,14 @@ Matrix creation
66
71
dpnp.tri
67
72
dpnp.tril
68
73
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ Matrix and vector products
10
10
:toctree: generated/
11
11
:nosignatures:
12
12
13
- dpnp.cross
14
13
dpnp.dot
15
14
dpnp.linalg.multi_dot
16
15
dpnp.vdot
@@ -46,15 +45,16 @@ Matrix eigenvalues
46
45
dpnp.linalg.eigvals
47
46
dpnp.linalg.eigvalsh
48
47
49
- Norms etc.
48
+ Norms and other numbers
50
49
----------
51
50
52
51
.. autosummary ::
53
52
:toctree: generated/
54
53
:nosignatures:
55
54
56
- dpnp.linalg.det
57
55
dpnp.linalg.norm
56
+ dpnp.linalg.cond
57
+ dpnp.linalg.det
58
58
dpnp.linalg.matrix_rank
59
59
dpnp.linalg.slogdet
60
60
dpnp.trace
@@ -73,14 +73,3 @@ Solving linear equations
73
73
dpnp.linalg.inv
74
74
dpnp.linalg.pinv
75
75
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
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ Basic operations
11
11
:nosignatures:
12
12
13
13
dpnp.copyto
14
+ dpnp.shape
14
15
15
16
16
17
Changing array shape
@@ -22,6 +23,8 @@ Changing array shape
22
23
23
24
dpnp.reshape
24
25
dpnp.ravel
26
+ dpnp.ndarray.flat
27
+ dpnp.ndarray.flatten
25
28
26
29
27
30
Transpose-like operations
@@ -34,10 +37,9 @@ Transpose-like operations
34
37
dpnp.moveaxis
35
38
dpnp.rollaxis
36
39
dpnp.swapaxes
40
+ dpnp.ndarray.T
37
41
dpnp.transpose
38
42
39
- .. seealso ::
40
- :attr: `dpnp.dparray.T `
41
43
42
44
Changing number of dimensions
43
45
-----------------------------
@@ -66,6 +68,7 @@ Changing kind of array
66
68
dpnp.asarray
67
69
dpnp.asnumpy
68
70
dpnp.asanyarray
71
+ dpnp.asmatrix
69
72
dpnp.asfarray
70
73
dpnp.asfortranarray
71
74
dpnp.ascontiguousarray
@@ -81,10 +84,12 @@ Joining arrays
81
84
82
85
dpnp.concatenate
83
86
dpnp.stack
87
+ dpnp.block
88
+ dpnp.vstack
89
+ dpnp.hstack
84
90
dpnp.column_stack
91
+ dpnp.row_stack
85
92
dpnp.dstack
86
- dpnp.hstack
87
- dpnp.vstack
88
93
89
94
90
95
Splitting arrays
@@ -119,6 +124,10 @@ Adding and removing elements
119
124
:toctree: generated/
120
125
:nosignatures:
121
126
127
+ dpnp.delete
128
+ dpnp.insert
129
+ dpnp.append
130
+ dpnp.resize
122
131
dpnp.unique
123
132
dpnp.trim_zeros
124
133
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ Rounding
48
48
:nosignatures:
49
49
50
50
dpnp.around
51
- dpnp.round _
51
+ dpnp.round
52
52
dpnp.rint
53
53
dpnp.fix
54
54
dpnp.floor
@@ -119,6 +119,17 @@ Floating point routines
119
119
dpnp.frexp
120
120
dpnp.ldexp
121
121
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
122
133
123
134
124
135
Arithmetic operations
@@ -131,12 +142,14 @@ Arithmetic operations
131
142
dpnp.add
132
143
dpnp.reciprocal
133
144
dpnp.negative
145
+ dpnp.positive
134
146
dpnp.multiply
135
147
dpnp.divide
136
148
dpnp.power
137
149
dpnp.subtract
138
150
dpnp.true_divide
139
151
dpnp.floor_divide
152
+ dpnp.floor_power
140
153
dpnp.fmod
141
154
dpnp.mod
142
155
dpnp.modf
@@ -155,6 +168,26 @@ Handling complex numbers
155
168
dpnp.real
156
169
dpnp.imag
157
170
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
158
191
159
192
160
193
Miscellaneous
@@ -173,10 +206,6 @@ Miscellaneous
173
206
dpnp.absolute
174
207
dpnp.fabs
175
208
dpnp.sign
176
- dpnp.maximum
177
- dpnp.minimum
178
- dpnp.fmax
179
- dpnp.fmin
180
209
dpnp.nan_to_num
181
210
dpnp.bartlett
182
211
dpnp.blackman
Original file line number Diff line number Diff line change @@ -11,3 +11,8 @@ Utility
11
11
:nosignatures:
12
12
13
13
dpnp.get_include
14
+ dpnp.show_config
15
+ dpnp.show_runtime
16
+ dpnp.deprecate
17
+ dpnp.deprecate_with_doc
18
+ dpnp.broadcast_shapes
Original file line number Diff line number Diff line change 3
3
Random Sampling (``dpnp.random ``)
4
4
=================================
5
5
6
- .. https://docs.scipy.org/doc/numpy-1.16.1/reference/routines.random.html
7
6
.. https://docs.scipy.org/doc/numpy/reference/random/legacy.html
8
7
9
8
Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ These functions cover a subset of
13
13
14
14
creation
15
15
manipulation
16
+ indexing
16
17
binary
18
+ dtype
17
19
fft
18
20
linalg
19
21
logic
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ Searching
37
37
dpnp.where
38
38
dpnp.argwhere
39
39
dpnp.searchsorted
40
+ dpnp.extract
40
41
41
42
Counting
42
43
--------
You can’t perform that action at this time.
0 commit comments