Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ml-explore/mlx-data
/ fill
Method
fill
mlx/data/Array.cpp:132–134 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
130
}
131
132
void Array::fill(double value) {
133
ARRAY_DISPATCH(this, array_fill, data_.get(), size(), value);
134
}
135
136
void Array::squeeze(const std::vector<int>& dims) {
137
std::vector<int64_t> mask(ndim(), true);
Callers
2
pad
Function · 0.80
batch
Function · 0.80
Calls
1
get
Method · 0.45
Tested by
no test coverage detected