Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ml-explore/mlx-data
/ size
Method
size
mlx/data/Array.cpp:57–63 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
55
}
56
57
int64_t Array::size() const {
58
int64_t size = 1;
59
for (auto dim : shape_) {
60
size *= dim;
61
}
62
return size;
63
}
64
65
int64_t Array::itemsize() const {
66
return itemsize_;
Callers
15
init_mlx_data_core
Function · 0.45
readinto_buffer
Method · 0.45
to_py_array
Function · 0.45
PyBufferIterator
Method · 0.45
init_mlx_data_buffer
Function · 0.45
ndim
Method · 0.45
Array
Method · 0.45
squeeze
Method · 0.45
reshape
Method · 0.45
clone
Function · 0.45
slice
Function · 0.45
copy
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected