MatchingBackend.clip#

abstract MatchingBackend.clip(arr, a_min, a_max, out=None)[source]#

Clip elements of arr.

Parameters:
arrBackendArray

Input data.

a_minScalar

Lower bound.

a_maxScalar

Upper bound.

outBackendArray, optional

Output array to write the result to. Returns a new array by default.

Returns:
BackendArray

Clipped arr.