Data Parallel Extension for NumPy
Overview
Quick Start Guide
API Reference
Multi-Dimensional Array (ndarray)
dpnp.ndarray
dpnp.dpnp_array.dpnp_array
Constructing arrays
Indexing arrays
Array attributes
Memory layout
Data type
Other attributes
Array methods
Array conversion
Shape manipulation
Item selection and manipulation
Calculation
Arithmetic, matrix multiplication, and comparison operations
Special methods
dpnp.ndarray.__copy__
dpnp.ndarray.__new__
dpnp.ndarray.__len__
dpnp.ndarray.__getitem__
dpnp.ndarray.__setitem__
dpnp.ndarray.__int__
dpnp.ndarray.__float__
dpnp.ndarray.__complex__
dpnp.ndarray.__str__
dpnp.ndarray.__repr__
Universal Functions (ufunc)
Routines
Special Functions
Available array data types
Comparison Table NumPy/ DPNP/ CuPy
Miscellaneous routines
Development information
C++ backend API Reference
Data Parallel Extension for NumPy
API Reference
Multi-Dimensional Array (ndarray)
dpnp.ndarray.__getitem__
View page source
dpnp.ndarray.__getitem__
method
ndarray.
__getitem__
(
key
)
Return
self[key]
.