casacore
|
Copy/convert the array data as needed. More...
#include <PycArrayComH.h>
Static Public Member Functions | |
static void | toPy (void *to, const T *from, size_t nr) |
static void | fromPy (T *to, const void *from, size_t 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 160 of file PycArrayComCC.h.
Referenced by ArrayCopy< Complex >::toArray(), ArrayCopy< DComplex >::toArray(), and ArrayCopy< String >::toArray().
|
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 173 of file PycArrayComCC.h.
References casacore::shape(), and casacore::SHARE.
Referenced by makeArray().
|
static |
Definition at line 147 of file PycArrayComCC.h.