![]() |
NumCpp
2.4.2
A Templatized Header Only C++ Implementation of the Python NumPy Library
|
Helper class for ndarray. More...
#include <BoostNumpyNdarrayHelper.hpp>
Public Types | |
enum class | Order { F , C } |
C or Fortran ordering from python. More... | |
Public Member Functions | |
BoostNdarrayHelper (boost::python::tuple inShape) | |
BoostNdarrayHelper (const boost::python::numpy::ndarray &inArray) | |
const boost::python::numpy::ndarray & | getArray () noexcept |
boost::python::numpy::matrix | getArrayAsMatrix () |
uint8 | numDimensions () noexcept |
dtype & | operator() (uint32 index) |
dtype & | operator() (uint32 index1, uint32 index2) |
Order | order () |
void | printArray1D () |
void | printArray2D () |
const std::vector< Py_intptr_t > & | shape () noexcept |
bool | shapeEqual (BoostNdarrayHelper &otherNdarrayHelper) |
uint32 | size () |
const std::vector< uint32 > & | strides () |
Helper class for ndarray.
|
strong |
|
inlineexplicit |
Constructor
inArray | ndarray |
|
inlineexplicit |
Constructor
inShape |
|
inlinenoexcept |
Returns the internaly held ndarray
|
inline |
Returns the internaly held ndarray as a numpy matrix
|
inlinenoexcept |
Returns the number of dimensions of the array
|
inline |
1D access operator
index |
|
inline |
2D access operator
index1 | |
index2 |
|
inline |
Returns the memory order of the array (C or Fortran)
|
inline |
Prints a 1D array
|
inline |
Prints a 2D array
|
inlinenoexcept |
Returns the shape of the array
|
inline |
Returns if the shapes of the two array helpers are equal
otherNdarrayHelper |
|
inline |
Returns the size of the array
|
inline |
Returns the strides of the array