50 static void toPy (
void* to,
const T* from,
size_t nr);
51 static void fromPy (T* to,
const void* from,
size_t nr);
53 void* data,
bool copy);
58 static void toPy (
void* to,
const Complex* from,
size_t nr);
59 static void fromPy (
Complex* to,
const void* from,
size_t nr);
61 void* data,
bool copy);
66 static void toPy (
void* to,
const DComplex* from,
size_t nr);
69 void* data,
bool copy);
74 static void toPy (
void* to,
const String* from,
size_t nr);
75 static void fromPy (String* to,
const void* from,
size_t nr);
77 void* data,
bool copy);
82 void* data,
size_t slen);
85 void* data,
size_t slen);
Array< String > ArrayCopyStr_toArray(const IPosition &shape, void *data, size_t slen)
StatsData< AccumType > copy(const StatsData< AccumType > &stats)
std::complex< Float > Complex
Bool PycArrayCheck(PyObject *obj_ptr)
A class to convert an Array to/from Python objects.
Bool isImported()
Check if the API is or can be imported.
Copy/convert the array data as needed.
boost::python::object makePyArrayObject(casacore::Array< T > const &arr)
Do the actual making of the PyArrayObject.
static void toPy(void *to, const T *from, size_t nr)
ValueHolder makeArray(PyObject *obj_ptr, Bool copyData)
Convert the python array to a Casacore array in the ValueHolder.
std::complex< Double > DComplex
bool Bool
Define the standard types used by Casacore.
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
static Array< T > toArray(const IPosition &shape, void *data, bool copy)
static void fromPy(T *to, const void *from, size_t nr)
Array< String > ArrayCopyUnicode_toArray(const IPosition &shape, void *data, size_t slen)