MCPcopy Create free account
hub / github.com/PyO3/rust-numpy / to_pyarray

Method to_pyarray

src/convert.rs:143–145  ·  view source on GitHub ↗
(&self, py: Python<'py>)

Source from the content-addressed store, hash-verified

141 type Dim = Ix1;
142
143 fn to_pyarray<'py>(&self, py: Python<'py>) -> Bound<'py, PyArray<Self::Item, Self::Dim>> {
144 PyArray::from_slice(py, self)
145 }
146}
147
148impl<S, D, A> ToPyArray for ArrayBase<S, D>

Callers 9

handle_negative_stridesFunction · 0.80
to_pyarray_vecFunction · 0.80
to_pyarray_boxed_sliceFunction · 0.80
sliced_to_pyarrayFunction · 0.80
forder_to_pyarrayFunction · 0.80
to_pyarray_object_vecFunction · 0.80
to_pyarray_object_arrayFunction · 0.80
matrix_to_numpyFunction · 0.80

Calls 7

from_sliceFunction · 0.85
lenMethod · 0.80
orderMethod · 0.80
npy_stridesMethod · 0.80
dataMethod · 0.80
clone_refMethod · 0.80
is_contiguousMethod · 0.80

Tested by 9

handle_negative_stridesFunction · 0.64
to_pyarray_vecFunction · 0.64
to_pyarray_boxed_sliceFunction · 0.64
sliced_to_pyarrayFunction · 0.64
forder_to_pyarrayFunction · 0.64
to_pyarray_object_vecFunction · 0.64
to_pyarray_object_arrayFunction · 0.64
matrix_to_numpyFunction · 0.64