This is a pre-release version (latest). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy latest / numpy / ma / core / diagonal

function

numpy.ma.core:diagonal

source: build-install/usr/lib/python3.14/site-packages/numpy/ma/core.py :7063

Summary

Return specified diagonals. In NumPy 1.9 the returned array is a read-only view instead of a copy as in previous NumPy versions. In a future version the read-only restriction will be removed.

Extended Summary

Refer to numpy.diagonal for full documentation.

See also

numpy.diagonal

equivalent function

Aliases

  • numpy.ma.diagonal