Cargo Features

NumPy has no features set by default.

[dependencies]
numpy = { version = "0.22.1", features = ["gil-refs", "half", "nalgebra"] }
gil-refs

Enables gil-refs of pyo3 ^0.22.0

Affects convert::IntoPyArray.into_pyarray, convert::ToPyArray.to_pyarray, dtype::dtype, dtype::Element.get_dtype, sum_products::inner, sum_products::dot, sum_products::einsum

Features from optional dependencies

half implicit feature
nalgebra implicit feature

Enables nalgebra ^0.32

Affects array::PyArrayMethods.try_as_matrix, array::PyArrayMethods.try_as_matrix_mut