### Navigation

- index
- modules |
- modules |
- next |
- previous |
- NumPy v1.5 Manual (DRAFT) »
- NumPy Reference »
- Array objects »
- The N-dimensional array (`ndarray`) »

# numpy.ndarray.diagonal

`ndarray.``diagonal`(offset=0, axis1=0, axis2=1)

  Return specified diagonals.

  Refer to `numpy.diagonal` for full documentation.

  See also

  `numpy.diagonal`
    equivalent function

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- NumPy v1.5 Manual (DRAFT) »
- NumPy Reference »
- Array objects »
- The N-dimensional array (`ndarray`) »