Data Parallel Extension for NumPy
0.15.0dev0+31.g45f67ff941
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
dpnp.ndarray.take
dpnp.ndarray.put
dpnp.ndarray.repeat
dpnp.ndarray.choose
dpnp.ndarray.sort
dpnp.ndarray.argsort
dpnp.ndarray.partition
dpnp.ndarray.nonzero
dpnp.ndarray.diagonal
Calculation
Arithmetic, matrix multiplication, and comparison operations
Special methods
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.diagonal
View page source
dpnp.ndarray.diagonal
ndarray.
diagonal
(
offset
=
0
,
axis1
=
0
,
axis2
=
1
)
Return specified diagonals.
See also
dpnp.diagonal