MLXBackend.add#

MLXBackend.add(x1, x2, out=None, **kwargs)[source]#

Element-wise addition of arrays.

Parameters:
arr1BackendArray

Input array.

arr2BackendArray

Input array.

outBackendArray, optional

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

Returns:
BackendArray

Element-wise sum of the input arrays.