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

Method array

mlx/array.cpp:13–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace mlx::core {
12
13array::array(const std::complex<float>& val, Dtype dtype /* = complex64 */)
14 : array_desc_(std::make_shared<ArrayDesc>(Shape{}, dtype)) {
15 auto cval = static_cast<complex64_t>(val);
16 init(&cval);
17}
18
19array::array(
20 Shape shape,

Callers

nothing calls this directly

Calls 11

has_primitiveFunction · 0.85
make_bufferFunction · 0.85
nbytesFunction · 0.85
mallocFunction · 0.85
releaseFunction · 0.85
ptrMethod · 0.80
copyFunction · 0.70
initFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45
raw_ptrMethod · 0.45

Tested by

no test coverage detected