50 static void toPy (
void* to,
const T* from,
size_t nr);
51 static void fromPy (T* to,
const void* from,
size_t nr);
58 static void toPy (
void* to,
const Complex* from,
size_t nr);
59 static void fromPy (
Complex* to,
const void* from,
size_t nr);
66 static void toPy (
void* to,
const DComplex* from,
size_t nr);
74 static void toPy (
void* to,
const String* from,
size_t nr);
75 static void fromPy (String* to,
const void* from,
size_t nr);
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
Copy/convert the array data as needed.
ABSTRACT CLASSES Deliberately vague to be general enough to allow for many different types of data
static void toPy(void *to, const T *from, size_t nr)
std::string object(const std::string &name)
std::complex< Double > DComplex
Bool isImported()
Check if the API is or can be imported.
bool Bool
Define the standard types used by Casacore.
ValueHolder makeArray(PyObject *obj_ptr, Bool copyData)
Convert the python array to a Casacore array in the ValueHolder.
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
template <class T, class U> class vector;
static Array< T > toArray(const IPosition &shape, void *data, bool copy)
static void fromPy(T *to, const void *from, size_t nr)
Bool PycArrayCheck(PyObject *obj_ptr)
Check if the PyObject is an array object.
boost::python::object makePyArrayObject(casacore::Array< T > const &arr)
Convert a Casacore array to a Python array object.
Array< String > ArrayCopyUnicode_toArray(const IPosition &shape, void *data, size_t slen)