|
casacore
|
Classes | |
| struct | array_scalar_from_python |
| Struct with static functions to convert a numpy array scalar to the templated type (e.g. More... | |
Functions | |
| bool | PycArrayScalarCheck (PyObject *obj, int &type) |
| Check if it is an array scalar object. | |
| DataType | PycArrayScalarType (PyObject *obj_ptr) |
| Get the data type of the array scalar object. | |
| ValueHolder | makeScalar (PyObject *obj, int type) |
| Make a scalar object. | |
| void | register_convert_arrayscalars () |
| Register all array scalar converters. | |
| template<typename T > | |
| T | getScalar (const ValueHolder &) |
| Templated helper function to get a value from a ValueHolder. | |
| template<> | |
| Bool | getScalar (const ValueHolder &vh) |
| template<> | |
| Char | getScalar (const ValueHolder &vh) |
| template<> | |
| uChar | getScalar (const ValueHolder &vh) |
| template<> | |
| Short | getScalar (const ValueHolder &vh) |
| template<> | |
| uShort | getScalar (const ValueHolder &vh) |
| template<> | |
| Int | getScalar (const ValueHolder &vh) |
| template<> | |
| uInt | getScalar (const ValueHolder &vh) |
| template<> | |
| Long | getScalar (const ValueHolder &vh) |
| template<> | |
| uLong | getScalar (const ValueHolder &vh) |
| template<> | |
| Int64 | getScalar (const ValueHolder &vh) |
| template<> | |
| uInt64 | getScalar (const ValueHolder &vh) |
| template<> | |
| Float | getScalar (const ValueHolder &vh) |
| template<> | |
| Double | getScalar (const ValueHolder &vh) |
| template<> | |
| Complex | getScalar (const ValueHolder &vh) |
| template<> | |
| DComplex | getScalar (const ValueHolder &vh) |
| T casacore::python::numpy::getScalar | ( | const ValueHolder & | ) |
Templated helper function to get a value from a ValueHolder.
Specialize for each type supported.
|
inline |
Definition at line 64 of file PycArrayNP.h.
References casacore::ValueHolder::asBool().
|
inline |
Definition at line 66 of file PycArrayNP.h.
References casacore::ValueHolder::asShort().
|
inline |
Definition at line 68 of file PycArrayNP.h.
References casacore::ValueHolder::asuChar().
|
inline |
Definition at line 70 of file PycArrayNP.h.
References casacore::ValueHolder::asShort().
|
inline |
Definition at line 72 of file PycArrayNP.h.
References casacore::ValueHolder::asuShort().
|
inline |
Definition at line 74 of file PycArrayNP.h.
References casacore::ValueHolder::asInt().
|
inline |
Definition at line 76 of file PycArrayNP.h.
References casacore::ValueHolder::asuInt().
|
inline |
Definition at line 78 of file PycArrayNP.h.
References casacore::ValueHolder::asInt().
|
inline |
Definition at line 80 of file PycArrayNP.h.
References casacore::ValueHolder::asuInt().
|
inline |
Definition at line 82 of file PycArrayNP.h.
References casacore::ValueHolder::asInt().
|
inline |
Definition at line 84 of file PycArrayNP.h.
References casacore::ValueHolder::asuInt().
|
inline |
Definition at line 86 of file PycArrayNP.h.
References casacore::ValueHolder::asFloat().
|
inline |
Definition at line 88 of file PycArrayNP.h.
References casacore::ValueHolder::asDouble().
|
inline |
Definition at line 90 of file PycArrayNP.h.
References casacore::ValueHolder::asComplex().
|
inline |
Definition at line 92 of file PycArrayNP.h.
References casacore::ValueHolder::asDComplex().
| ValueHolder casacore::python::numpy::makeScalar | ( | PyObject * | obj, |
| int | type | ||
| ) |
Make a scalar object.
Referenced by casacore::python::numpy::array_scalar_from_python< T >::construct().
| bool casacore::python::numpy::PycArrayScalarCheck | ( | PyObject * | obj, |
| int & | type | ||
| ) |
Check if it is an array scalar object.
Referenced by casacore::python::numpy::array_scalar_from_python< T >::construct(), and casacore::python::numpy::array_scalar_from_python< T >::convertible().
| DataType casacore::python::numpy::PycArrayScalarType | ( | PyObject * | obj_ptr | ) |
Get the data type of the array scalar object.
It returns TpBool, TpInt, TpFloat, or TpComplex. TpOther is returned if unrecognized.
| void casacore::python::numpy::register_convert_arrayscalars | ( | ) |
Register all array scalar converters.