We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 744a3f2 commit f20e09cCopy full SHA for f20e09c
dpnp/dpnp_array.py
@@ -140,7 +140,10 @@ def __bool__(self):
140
return self._array_obj.__bool__()
141
142
# '__class__',
143
- # '__complex__',
+
144
+ def __complex__(self):
145
+ return self._array_obj.__complex__()
146
147
# '__contains__',
148
# '__copy__',
149
# '__deepcopy__',
@@ -187,7 +190,10 @@ def __gt__(self, other):
187
190
# '__imatmul__',
188
191
# '__imod__',
189
192
# '__imul__',
- # '__index__',
193
194
+ def __index__(self):
195
+ return self._array_obj.__index__()
196
197
# '__init__',
198
# '__init_subclass__',
199
0 commit comments