Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
dfs
Function · 0.45
extract_rings
Function · 0.45
test_device_context
Method · 0.45
test_op_on_device
Method · 0.45
test_op_on_stream
Method · 0.45
fun
Method · 0.45
test_eval_slow_fast_multi_stream
Method · 0.45
scatter_add
Method · 0.45
test_lu_factor
Method · 0.45
test_array_at
Method · 0.45
test_array_at_slice_update_extensive
Method · 0.45
Calls
1
mlx_add_item
Function · 0.85
Tested by
15
test_device_context
Method · 0.36
test_op_on_device
Method · 0.36
test_op_on_stream
Method · 0.36
fun
Method · 0.36
test_eval_slow_fast_multi_stream
Method · 0.36
scatter_add
Method · 0.36
test_lu_factor
Method · 0.36
test_array_at
Method · 0.36
test_array_at_slice_update_extensive
Method · 0.36
test_scalar_integer_conversion_overflow
Method · 0.36
test_segmented_mm
Method · 0.36
fun
Method · 0.36