Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PyO3/rust-numpy
/ get_np_locals
Function
get_np_locals
tests/array_like.rs:9–13 ·
view source on GitHub ↗
(py: Python<'_>)
Source
from the content-addressed store, hash-verified
7
};
8
9
fn get_np_locals(py: Python<
'_>) -> Bound<'
_, PyDict> {
10
[(
"np"
, get_array_module(py).unwrap())]
11
.into_py_dict(py)
12
.unwrap()
13
}
14
15
#[test]
16
fn extract_reference() {
Callers
7
extract_reference
Function · 0.70
convert_array_on_extract
Function · 0.70
convert_array_in_list_on_extract
Function · 0.70
unsafe_cast_shall_fail
Function · 0.70
extract_1d_array_of_different_float_types_fail
Function · 0.70
extract_2d_array_of_different_float_types_fail
Function · 0.70
unsafe_cast_with_coerce_works
Function · 0.70
Calls
1
get_array_module
Function · 0.85
Tested by
7
extract_reference
Function · 0.56
convert_array_on_extract
Function · 0.56
convert_array_in_list_on_extract
Function · 0.56
unsafe_cast_shall_fail
Function · 0.56
extract_1d_array_of_different_float_types_fail
Function · 0.56
extract_2d_array_of_different_float_types_fail
Function · 0.56
unsafe_cast_with_coerce_works
Function · 0.56