How to transform negative elements to zero without a loop? February 27, 2023 by Tarik a = a.clip(min=0)