Loading...
Searching...
No Matches
PycArrayNP.h File Reference
`#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

namespace | casacore
| this file contains all the compiler specific defines
namespace | casacore::python
namespace | 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.
Bool | casacore::python::numpy::isImported ()
| Check if the API is or can be imported.
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.
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.
bool | casacore::python::numpy::PycArrayScalarCheck (PyObject *obj, int &type)
| Check if it is an array scalar object.
DataType | casacore::python::numpy::PycArrayScalarType (PyObject *obj_ptr)
| Get the data type of the array scalar object.
ValueHolder | casacore::python::numpy::makeScalar (PyObject *obj, int type)
| Make a scalar object.
void | casacore::python::numpy::register_convert_arrayscalars ()
| Register all array scalar converters.
template<typename T>
T | casacore::python::numpy::getScalar (const ValueHolder &)
| Templated helper function to get a value from a ValueHolder.
template<>
Bool | casacore::python::numpy::getScalar (const ValueHolder &vh)
template<>
Char | casacore::python::numpy::getScalar (const ValueHolder &vh)
template<>
uChar | casacore::python::numpy::getScalar (const ValueHolder &vh)
template<>
Short | casacore::python::numpy::getScalar (const ValueHolder &vh)
template<>
uShort | casacore::python::numpy::getScalar (const ValueHolder &vh)
template<>
Int | casacore::python::numpy::getScalar (const ValueHolder &vh)
template<>
uInt | casacore::python::numpy::getScalar (const ValueHolder &vh)
template<>
Long | casacore::python::numpy::getScalar (const ValueHolder &vh)
template<>
uLong | casacore::python::numpy::getScalar (const ValueHolder &vh)
template<>
Int64 | casacore::python::numpy::getScalar (const ValueHolder &vh)
template<>
uInt64 | casacore::python::numpy::getScalar (const ValueHolder &vh)
template<>
Float | casacore::python::numpy::getScalar (const ValueHolder &vh)
template<>
Double | casacore::python::numpy::getScalar (const ValueHolder &vh)
template<>
Complex | casacore::python::numpy::getScalar (const ValueHolder &vh)
template<>
DComplex | casacore::python::numpy::getScalar (const ValueHolder &vh)

## Macro Definition Documentation

## PYC_USE_PYARRAY

#define PYC_USE_PYARRAY

Definition at line 39 of file PycArrayNP.h.

Referenced by isImported(), and loadAPI().