This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / ma / core / MaskedIterator / __next__

function

numpy.ma.core:MaskedIterator.__next__

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

Signature

def   __next__ ( self )

Summary

Return the next value, or raise StopIteration.

Examples

import numpy as np
x = np.ma.array([3, 2], mask=[0, 1])
fl = x.flat
next(fl)
next(fl)
next(fl)

Aliases

  • numpy.ma.core.MaskedIterator.__next__