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)
Array< String > ArrayCopyUnicode_toArray(const IPosition &shape, void *data, size_t slen)
boost::python::object makePyArrayObject(casacore::Array< T > const &arr)
Convert a Casacore array to a Python array object.
Bool PycArrayCheck(PyObject *obj_ptr)
Check if the PyObject is an array object.
Bool isImported()
Check if the API is or can be imported.
ValueHolder makeArray(PyObject *obj_ptr, Bool copyData)
Convert the python array to a Casacore array in the ValueHolder.
std::complex< Float > Complex
std::complex< Double > DComplex
StatsData< AccumType > copy(const StatsData< AccumType > &stats)
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape.
bool Bool
Define the standard types used by Casacore.
Copy/convert the array data as needed.
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)