Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
148
impl<S, D, A> ToPyArray for ArrayBase<S, D>
Callers
9
handle_negative_strides
Function · 0.80
dtype_via_python_attribute
Function · 0.80
to_pyarray_vec
Function · 0.80
to_pyarray_boxed_slice
Function · 0.80
sliced_to_pyarray
Function · 0.80
forder_to_pyarray
Function · 0.80
to_pyarray_object_vec
Function · 0.80
to_pyarray_object_array
Function · 0.80
matrix_to_numpy
Function · 0.80
Calls
7
from_slice
Function · 0.85
len
Method · 0.80
order
Method · 0.80
npy_strides
Method · 0.80
data
Method · 0.80
clone_ref
Method · 0.80
is_contiguous
Method · 0.80
Tested by
9
handle_negative_strides
Function · 0.64
dtype_via_python_attribute
Function · 0.64
to_pyarray_vec
Function · 0.64
to_pyarray_boxed_slice
Function · 0.64
sliced_to_pyarray
Function · 0.64
forder_to_pyarray
Function · 0.64
to_pyarray_object_vec
Function · 0.64
to_pyarray_object_array
Function · 0.64
matrix_to_numpy
Function · 0.64