![]() |
NumCpp
2.4.2
A Templatized Header Only C++ Implementation of the Python NumPy Library
|
Typedefs | |
| template<typename dtype > | |
| using | pbArray = pybind11::array_t< dtype, pybind11::array::c_style > |
| using | pbArrayGeneric = pybind11::array |
Enumerations | |
| enum class | ReturnPolicy { COPY , REFERENCE , TAKE_OWNERSHIP } |
| Enum for the pybind array return policy. More... | |
Functions | |
| template<typename dtype > | |
| pbArrayGeneric | nc2pybind (const NdArray< dtype > &inArray) |
| template<typename dtype > | |
| pbArrayGeneric | nc2pybind (NdArray< dtype > &inArray, ReturnPolicy returnPolicy) |
| template<typename dtype > | |
| NdArray< dtype > | pybind2nc (pbArray< dtype > &numpyArray) |
| template<typename dtype > | |
| NdArray< dtype > | pybind2nc_copy (const pbArray< dtype > &numpyArray) |
Variables | |
| static const std::map< ReturnPolicy, std::string > | returnPolicyStringMap |
| using nc::pybindInterface::pbArray = typedef pybind11::array_t<dtype, pybind11::array::c_style> |
| using nc::pybindInterface::pbArrayGeneric = typedef pybind11::array |
|
strong |
| pbArrayGeneric nc::pybindInterface::nc2pybind | ( | const NdArray< dtype > & | inArray | ) |
converts a numcpp NdArray to numpy array using pybind bindings
| inArray | the input array |
| pbArrayGeneric nc::pybindInterface::nc2pybind | ( | NdArray< dtype > & | inArray, |
| ReturnPolicy | returnPolicy | ||
| ) |
converts a numcpp NdArray to numpy array using pybind bindings
| inArray | the input array |
| returnPolicy | the return policy |
| NdArray<dtype> nc::pybindInterface::pybind2nc | ( | pbArray< dtype > & | numpyArray | ) |
converts a numpy array to a numcpp NdArray using pybind bindings Python will still own the underlying data.
| numpyArray |
| NdArray<dtype> nc::pybindInterface::pybind2nc_copy | ( | const pbArray< dtype > & | numpyArray | ) |
converts a numpy array to a numcpp NdArray using pybind bindings Python will still own the underlying data.
| numpyArray |
|
static |