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

Function get_array_module

src/array.rs:120–122  ·  view source on GitHub ↗

Returns a handle to NumPy's multiarray module.

(py: Python<'py>)

Source from the content-addressed store, hash-verified

118
119/// Returns a handle to NumPy's multiarray module.
120pub fn get_array_module<'py>(py: Python<'py>) -> PyResult<Bound<'py, PyModule>> {
121 PyModule::import(py, npyffi::array::mod_name(py)?)
122}
123
124impl<T, D> DerefToPyAny for PyArray<T, D> {}
125

Callers 3

insert_sharedFunction · 0.85
get_np_localsFunction · 0.85
get_np_localsFunction · 0.85

Calls 1

mod_nameFunction · 0.50

Tested by

no test coverage detected