COO.clip

COO.clip(min=None, max=None, out=None)[source]

Clip (limit) the values in the array.

Return an array whose values are limited to [min, max]. One of min or max must be given.

See also

sparse.clip()

For full documentation and more details.

numpy.clip()

Equivalent NumPy function.