Skip to content

Commit 93b50cb

Browse files
committed
Add links to missing attriburtes and methods on reference page
1 parent 8dd4214 commit 93b50cb

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

doc/reference/ndarray.rst

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ of the array:
6666
dpnp.ndarray.size
6767
dpnp.ndarray.itemsize
6868
dpnp.ndarray.nbytes
69-
dpnp.ndarray.base
69+
dpnp.ndarray.device
70+
dpnp.ndarray.sycl_context
71+
dpnp.ndarray.sycl_device
72+
dpnp.ndarray.sycl_queue
73+
dpnp.ndarray.usm_type
7074

7175

7276
Data type
@@ -98,6 +102,17 @@ Other attributes
98102
dpnp.ndarray.flat
99103

100104

105+
Special attributes
106+
------------------
107+
108+
.. autosummary::
109+
:toctree: generated/
110+
:nosignatures:
111+
112+
dpnp.ndarray.__sycl_usm_array_interface__
113+
dpnp.ndarray.__usm_ndarray__
114+
115+
101116
Array methods
102117
-------------
103118

@@ -145,6 +160,7 @@ Array conversion
145160
dpnp.ndarray.getfield
146161
dpnp.ndarray.setflags
147162
dpnp.ndarray.fill
163+
dpnp.ndarray.get_array
148164

149165

150166
Shape manipulation
@@ -371,7 +387,10 @@ Basic customization:
371387

372388
dpnp.ndarray.__new__
373389
dpnp.ndarray.__array__
390+
dpnp.ndarray.__array_namespace__
374391
dpnp.ndarray.__array_wrap__
392+
dpnp.ndarray.__dlpack__
393+
dpnp.ndarray.__dlpack_device__
375394

376395
Container customization: (see :ref:`Indexing <routines.indexing>`)
377396

@@ -380,19 +399,21 @@ Container customization: (see :ref:`Indexing <routines.indexing>`)
380399
:nosignatures:
381400

382401
dpnp.ndarray.__len__
402+
dpnp.ndarray.__iter__
383403
dpnp.ndarray.__getitem__
384404
dpnp.ndarray.__setitem__
385405
dpnp.ndarray.__contains__
386406

387-
Conversion; the operations :class:`int() <int>`,
388-
:class:`float() <float>` and :class:`complex() <complex>`.
407+
Conversion; the operations :class:`int() <int>`, :class:`float() <float>`,
408+
:class:`complex() <complex>` and :func:`operator.index() <index>`.
389409
They work only on arrays that have one element in them
390410
and return the appropriate scalar.
391411

392412
.. autosummary::
393413
:toctree: generated/
394414
:nosignatures:
395415

416+
dpnp.ndarray.__index__
396417
dpnp.ndarray.__int__
397418
dpnp.ndarray.__float__
398419
dpnp.ndarray.__complex__

0 commit comments

Comments
 (0)