numpy.ma
MaskedArray.
fill
Fill the array with a scalar value.
value : scalar
All elements ofa will be assigned this value.
Examples
>>>a=np.array([1,2])>>>a.fill(0)>>>aarray([0, 0])>>>a=np.empty(2)>>>a.fill(1)>>>aarray([ 1., 1.])
numpy.ma.MaskedArray.diagonal
numpy.ma.MaskedArray.item