MCPcopy Create free account
hub / github.com/ml-explore/mlx / add

Method add

python/src/array.cpp:43–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 mx::array add(const ScalarOrArray& v) {
44 check_initialized();
45 return mlx_add_item(x_, indices_, v);
46 }
47 mx::array subtract(const ScalarOrArray& v) {
48 check_initialized();
49 return mlx_subtract_item(x_, indices_, v);

Callers 15

__init__Method · 0.45
dfsFunction · 0.45
extract_ringsFunction · 0.45
test_device_contextMethod · 0.45
test_op_on_deviceMethod · 0.45
test_op_on_streamMethod · 0.45
funMethod · 0.45
scatter_addMethod · 0.45
test_lu_factorMethod · 0.45
test_array_atMethod · 0.45

Calls 1

mlx_add_itemFunction · 0.85

Tested by 15

test_device_contextMethod · 0.36
test_op_on_deviceMethod · 0.36
test_op_on_streamMethod · 0.36
funMethod · 0.36
scatter_addMethod · 0.36
test_lu_factorMethod · 0.36
test_array_atMethod · 0.36
test_segmented_mmMethod · 0.36
funMethod · 0.36