dpnp.diagonal

dpnp.diagonal(x1, offset=0, axis1=0, axis2=1)[source]

Return specified diagonals.

For full documentation refer to numpy.diagonal.

Limitations

Input array is supported as dpnp.ndarray. Parameters axis1 and axis2 are supported only with default values. Otherwise the function will be executed sequentially on CPU.