SciPy

This is documentation for an old release of NumPy (version 1.9.1). Read this page in the documentation of the latest stable release (version > 1.17).

numpy.ma.MaskedArray.__setslice__

MaskedArray.__setslice__(i, j, value)[source]

x.__setslice__(i, j, value) <==> x[i:j]=value

Set the slice (i,j) of a to value. If value is masked, mask those locations.