![]() |
NumCpp
1.0
A C++ implementation of the Python Numpy library
|
Enumerations | |
enum | ReturnPolicy { ReturnPolicy::COPY, ReturnPolicy::REFERENCE, ReturnPolicy::TAKE_OWNERSHIP } |
Enum for the pybind array return policy. More... | |
Functions | |
template<typename dtype > | |
pybind11::array_t< dtype > | nc2pybind (NdArray< dtype > &inArray, ReturnPolicy returnPolicy=ReturnPolicy::COPY) |
template<typename dtype > | |
NdArray< dtype > | pybind2nc (pybind11::array_t< dtype, pybind11::array::c_style > &numpyArray) |
Variables | |
static const std::map< ReturnPolicy, std::string > | returnPolicyStringMap |
|
strong |
|
inline |
converts a numcpp NdArray to numpy array using pybind bindings
inArray | the input array |
returnPolicy | the return policy |
|
inline |
converts a numpy array to a numcpp NdArray using pybind bindings Python will still own the underlying data.
numpyArray |
|
static |