casacore
|
Copy/convert the array data as needed. More...
#include <PycArrayComH.h>
Static Public Member Functions | |
static void | toPy (void *to, const T *from, uInt nr) |
static void | fromPy (T *to, const void *from, uInt nr) |
static Array< T > | toArray (const IPosition &shape, void *data, bool copy) |
Copy/convert the array data as needed.
Specializations are defined for complex and string.
Definition at line 48 of file PycArrayComH.h.
|
static |
Definition at line 158 of file PycArrayComCC.h.
|
static |
If the python array was contiguous, etc., we can directly use its data because the Array used is only temporary. However, if a copy of the Python array was made in PycArray.cc, we cannot do that because the Python copy is out of scope when the Array object gets used.
Definition at line 171 of file PycArrayComCC.h.
References casacore::shape(), and casacore::SHARE.
Referenced by makeArray().
|
static |
Definition at line 145 of file PycArrayComCC.h.