Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ml-explore/mlx-data
/ ndim
Method
ndim
mlx/data/Array.cpp:49–51 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
47
}
48
49
int Array::ndim() const {
50
return shape_.size();
51
}
52
53
int64_t Array::shape(int d) const {
54
return shape_[checkdim(d)];
Callers
10
to_array
Function · 0.80
pad
Function · 0.80
batch
Function · 0.80
sub
Function · 0.80
levenshtein
Function · 0.80
uniq_t
Function · 0.80
remove_t
Function · 0.80
apply
Method · 0.80
apply_key
Method · 0.80
next
Method · 0.80
Calls
1
size
Method · 0.45
Tested by
no test coverage detected