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

Method subtract

python/src/array.cpp:47–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);
50 }
51 mx::array multiply(const ScalarOrArray& v) {
52 check_initialized();
53 return mlx_multiply_item(x_, indices_, v);

Callers 4

test_array_atMethod · 0.80
np_wrap_betweenFunction · 0.80
np_logaddexpFunction · 0.80
test_subtractMethod · 0.80

Calls 1

mlx_subtract_itemFunction · 0.85

Tested by 4

test_array_atMethod · 0.64
np_wrap_betweenFunction · 0.64
np_logaddexpFunction · 0.64
test_subtractMethod · 0.64