casacore
|
#include <boost/python.hpp>
#include <boost/python/object.hpp>
#include <casacore/casa/Containers/ValueHolder.h>
#include <casacore/casa/Arrays/Array.h>
#include <numpy/arrayobject.h>
#include <casacore/python/Converters/PycArrayComH.h>
Go to the source code of this file.
Classes | |
struct | casacore::python::numpy::ArrayCopy< T > |
Copy/convert the array data as needed. More... | |
struct | casacore::python::numpy::ArrayCopy< Complex > |
struct | casacore::python::numpy::ArrayCopy< DComplex > |
struct | casacore::python::numpy::ArrayCopy< String > |
struct | casacore::python::numpy::array_scalar_from_python< T > |
Struct with static functions to convert a numpy array scalar to the templated type (e.g. More... | |
Namespaces | |
casacore | |
this file contains all the compiler specific defines | |
casacore::python | |
casacore::python::numpy | |
Macros | |
#define | PYC_USE_PYARRAY |
Functions | |
Bool | casacore::python::numpy::PycArrayCheck (PyObject *obj_ptr) |
Check if the PyObject is an array object. More... | |
Bool | casacore::python::numpy::isImported () |
Check if the API is or can be imported. More... | |
Bool | casacore::python::numpy::canImport () |
Bool | casacore::python::numpy::importArray () |
void | casacore::python::numpy::loadAPI () |
ValueHolder | casacore::python::numpy::makeArray (PyObject *obj_ptr, Bool copyData) |
Convert the python array to a Casacore array in the ValueHolder. More... | |
Array< String > | casacore::python::numpy::ArrayCopyStr_toArray (const IPosition &shape, void *data, size_t slen) |
Array< String > | casacore::python::numpy::ArrayCopyUnicode_toArray (const IPosition &shape, void *data, size_t slen) |
template<typename T > | |
boost::python::object | casacore::python::numpy::makePyArrayObject (casacore::Array< T > const &arr) |
Convert a Casacore array to a Python array object. More... | |
bool | casacore::python::numpy::PycArrayScalarCheck (PyObject *obj, int &type) |
Check if it is an array scalar object. More... | |
DataType | casacore::python::numpy::PycArrayScalarType (PyObject *obj_ptr) |
Get the data type of the array scalar object. More... | |
ValueHolder | casacore::python::numpy::makeScalar (PyObject *obj, int type) |
Make a scalar object. More... | |
void | casacore::python::numpy::register_convert_arrayscalars () |
Register all array scalar converters. More... | |
template<typename T > | |
T | casacore::python::numpy::getScalar (const ValueHolder &) |
Templated helper function to get a value from a ValueHolder. More... | |
template<> | |
Bool | casacore::python::numpy::getScalar (const ValueHolder &vh) |
Templated helper function to get a value from a ValueHolder. More... | |
template<> | |
Char | casacore::python::numpy::getScalar (const ValueHolder &vh) |
Templated helper function to get a value from a ValueHolder. More... | |
template<> | |
uChar | casacore::python::numpy::getScalar (const ValueHolder &vh) |
Templated helper function to get a value from a ValueHolder. More... | |
template<> | |
Short | casacore::python::numpy::getScalar (const ValueHolder &vh) |
Templated helper function to get a value from a ValueHolder. More... | |
template<> | |
uShort | casacore::python::numpy::getScalar (const ValueHolder &vh) |
Templated helper function to get a value from a ValueHolder. More... | |
template<> | |
Int | casacore::python::numpy::getScalar (const ValueHolder &vh) |
Templated helper function to get a value from a ValueHolder. More... | |
template<> | |
uInt | casacore::python::numpy::getScalar (const ValueHolder &vh) |
Templated helper function to get a value from a ValueHolder. More... | |
template<> | |
Long | casacore::python::numpy::getScalar (const ValueHolder &vh) |
Templated helper function to get a value from a ValueHolder. More... | |
template<> | |
uLong | casacore::python::numpy::getScalar (const ValueHolder &vh) |
Templated helper function to get a value from a ValueHolder. More... | |
template<> | |
Int64 | casacore::python::numpy::getScalar (const ValueHolder &vh) |
Templated helper function to get a value from a ValueHolder. More... | |
template<> | |
uInt64 | casacore::python::numpy::getScalar (const ValueHolder &vh) |
Templated helper function to get a value from a ValueHolder. More... | |
template<> | |
Float | casacore::python::numpy::getScalar (const ValueHolder &vh) |
Templated helper function to get a value from a ValueHolder. More... | |
template<> | |
Double | casacore::python::numpy::getScalar (const ValueHolder &vh) |
Templated helper function to get a value from a ValueHolder. More... | |
template<> | |
Complex | casacore::python::numpy::getScalar (const ValueHolder &vh) |
Templated helper function to get a value from a ValueHolder. More... | |
template<> | |
DComplex | casacore::python::numpy::getScalar (const ValueHolder &vh) |
Templated helper function to get a value from a ValueHolder. More... | |
#define PYC_USE_PYARRAY |
Definition at line 41 of file PycArrayNP.h.
Referenced by casacore::python::numpy::isImported(), and casacore::python::numpy::loadAPI().