mlx.core.square

目录

mlx.core.square#

square(a: array, /, *, stream: None | Stream | Device = None) array#

Element-wise square.

参数:

a (array) -- Input array.

返回:

The square of a.

返回类型:

array