{ } Raw JSON

bundles / numpy 2.4.4 / numpy / ma / core / MaskedIterator / __next__

function

numpy.ma.core:MaskedIterator.__next__

source: /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__