MCPcopy Create free account
hub / github.com/YuminosukeSato/ironkernel / asarray

Method asarray

src/python/py_runtime.rs:136–138  ·  view source on GitHub ↗

Create a Buffer from a numpy array.

(&self, array: PyReadonlyArray1<f64>)

Source from the content-addressed store, hash-verified

134
135 /// Create a Buffer from a numpy array.
136 fn asarray(&self, array: PyReadonlyArray1<f64>) -> PyBuffer {
137 PyBuffer::new(asarray_from_numpy(array))
138 }
139
140 /// Submit a computation and return a `TaskHandle`.
141 /// Accepts either a `MapSpec` (elementwise) or a `ReduceSpec`.

Calls 1

asarray_from_numpyFunction · 0.85