Typedefs | |
| typedef KindStringMap::value_type | KindStringMapEntry |
| typedef KindCharMap::value_type | KindCharMapEntry |
| typedef KindTypeMap::value_type | KindTypeMapEntry |
| typedef std::map< PyArray_TYPES, std::string > | KindStringMap |
| typedef std::map< PyArray_TYPES, char > | KindCharMap |
| typedef std::map< char, PyArray_TYPES > | KindTypeMap |
Functions | |
| template<> | |
| PyArray_TYPES | getEnum< char > (void) |
| template<> | |
| PyArray_TYPES | getEnum< unsigned char > (void) |
| template<> | |
| PyArray_TYPES | getEnum< signed char > (void) |
| template<> | |
| PyArray_TYPES | getEnum< short > (void) |
| template<> | |
| PyArray_TYPES | getEnum< unsigned short > (void) |
| template<> | |
| PyArray_TYPES | getEnum< unsigned int > (void) |
| template<> | |
| PyArray_TYPES | getEnum< int > (void) |
| template<> | |
| PyArray_TYPES | getEnum< long > (void) |
| template<> | |
| PyArray_TYPES | getEnum< unsigned long > (void) |
| template<> | |
| PyArray_TYPES | getEnum< long long > (void) |
| template<> | |
| PyArray_TYPES | getEnum< unsigned long long > (void) |
| template<> | |
| PyArray_TYPES | getEnum< float > (void) |
| template<> | |
| PyArray_TYPES | getEnum< double > (void) |
| template<> | |
| PyArray_TYPES | getEnum< long double > (void) |
| template<> | |
| PyArray_TYPES | getEnum< std::complex< float > > (void) |
| template<> | |
| PyArray_TYPES | getEnum< std::complex< double > > (void) |
| template<> | |
| PyArray_TYPES | getEnum< std::complex< long double > > (void) |
| numeric::array | makeNum (object x) |
| numeric::array | makeNum (intp n, PyArray_TYPES t=PyArray_DOUBLE) |
| numeric::array | makeNum (std::vector< intp > dimens, PyArray_TYPES t=PyArray_DOUBLE) |
| numeric::array | makeNum (const numeric::array &arr) |
| PyArray_TYPES | type (numeric::array arr) |
| void | check_type (boost::python::numeric::array arr, PyArray_TYPES expected_type) |
| int | rank (numeric::array arr) |
| void | check_rank (boost::python::numeric::array arr, int expected_rank) |
| intp | size (numeric::array arr) |
| void | check_size (boost::python::numeric::array arr, intp expected_size) |
| std::vector< intp > | shape (numeric::array arr) |
| intp | get_dim (boost::python::numeric::array arr, int dimnum) |
| void | check_shape (boost::python::numeric::array arr, std::vector< intp > expected_dims) |
| void | check_dim (boost::python::numeric::array arr, int dimnum, intp dimsize) |
| bool | iscontiguous (numeric::array arr) |
| void | check_contiguous (numeric::array arr) |
| void * | data (numeric::array arr) |
| void | copy_data (boost::python::numeric::array arr, char *new_data) |
| numeric::array | clone (numeric::array arr) |
| numeric::array | astype (boost::python::numeric::array arr, PyArray_TYPES t) |
| std::vector< intp > | strides (numeric::array arr) |
| int | refcount (numeric::array arr) |
| void | check_PyArrayElementType (object newo) |
| std::string | type2string (PyArray_TYPES t_type) |
| char | type2char (PyArray_TYPES t_type) |
| PyArray_TYPES | char2type (char e_type) |
| template<class T> | |
| std::string | vector_str (const std::vector< T > &vec) |
| void | check_size_match (std::vector< intp > dims, intp n) |
| boost::python::numeric::array | makeNum (boost::python::object x) |
| template<typename T> | |
| PyArray_TYPES | getEnum (void) |
| template<typename T> | |
| boost::python::numeric::array | makeNum (T *data, intp n=0) |
| template<typename T> | |
| boost::python::numeric::array | makeNum (T *data, std::vector< intp > dims) |
| boost::python::numeric::array | makeNum (const boost::python::numeric::array &arr) |
| PyArray_TYPES | type (boost::python::numeric::array arr) |
| int | rank (boost::python::numeric::array arr) |
| intp | size (boost::python::numeric::array arr) |
| std::vector< intp > | shape (boost::python::numeric::array arr) |
| bool | iscontiguous (boost::python::numeric::array arr) |
| void | check_contiguous (boost::python::numeric::array arr) |
| void * | data (boost::python::numeric::array arr) |
| boost::python::numeric::array | clone (boost::python::numeric::array arr) |
| int | refcount (boost::python::numeric::array arr) |
| std::vector< intp > | strides (boost::python::numeric::array arr) |
| void | check_PyArrayElementType (boost::python::object newo) |
Variables | |
| KindStringMapEntry | kindStringMapEntries [] |
| KindCharMapEntry | kindCharMapEntries [] |
| KindTypeMapEntry | kindTypeMapEntries [] |
| int | numStringEntries = sizeof(kindStringMapEntries)/sizeof(KindStringMapEntry) |
| int | numCharEntries = sizeof(kindCharMapEntries)/sizeof(KindCharMapEntry) |
| int | numTypeEntries = sizeof(kindTypeMapEntries)/sizeof(KindTypeMapEntry) |
|
|
Mapping from a PyArray_TYPE to its corresponding typeID in char. Definition at line 267 of file num_util.h. |
|
|
Definition at line 144 of file num_util.cpp. |
|
|
Mapping from a PyArray_TYPE to its corresponding name in string. Definition at line 262 of file num_util.h. |
|
|
Definition at line 126 of file num_util.cpp. |
|
|
Mapping from a typeID to its corresponding PyArray_TYPE. Definition at line 272 of file num_util.h. |
|
|
Definition at line 160 of file num_util.cpp. |
|
||||||||||||
|
Returns a clone of this array with a new type.
Definition at line 378 of file num_util.cpp. |
|
|
Coverts a single character typecode to its PyArray_TYPES.
Definition at line 421 of file num_util.cpp. |
|
|
Throws an exception if the array is not contiguous.
|
|
|
Definition at line 343 of file num_util.cpp. |
|
||||||||||||||||
|
Throws an exception if a specific dimension from a numpy array does not match the expected size.
Definition at line 324 of file num_util.cpp. |
|
|
Throws an exception if the element of a numpy array is type cast to PyArray_OBJECT.
|
|
|
Definition at line 400 of file num_util.cpp. |
|
||||||||||||
|
Throws an exception if the actual rank is not equal to the expected rank.
Definition at line 251 of file num_util.cpp. |
|
||||||||||||
|
Throws an exception if the actual dimensions of the array are not equal to the expected dimensions.
Definition at line 312 of file num_util.cpp. |
|
||||||||||||
|
Throw an exception if the actual total size of the array is not equal to the expected size.
Definition at line 272 of file num_util.cpp. |
|
||||||||||||
|
Throws an exception if the total size computed from a vector of integer does not match with the expected size.
Definition at line 438 of file num_util.cpp. |
|
||||||||||||
|
Throws an exception if the actual array type is not equal to the expected type.
Definition at line 228 of file num_util.cpp. |
|
|
Returns a clone of this array.
|
|
|
Definition at line 371 of file num_util.cpp. |
|
||||||||||||
|
Copies data into the array.
Definition at line 361 of file num_util.cpp. |
|
|
Returns a pointer to the data in the array.
|
|
|
Definition at line 352 of file num_util.cpp. |
|
||||||||||||
|
Returns the size of a specific dimension.
Definition at line 298 of file num_util.cpp. |
|
||||||||||
|
Function template returns PyArray_Type for C++ type See num_util.cpp for specializations
Definition at line 59 of file num_util.h. |
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
|
Returns true if the array is contiguous.
|
|
|
Definition at line 337 of file num_util.cpp. |
|
|
Creates a numpy array from a numpy array, referencing the data.
|
|
||||||||||||||||
|
Function template creates an n-dimensional numpy array with dimensions dimens containing a copy of values starting at data. See num_util.cpp::getEnum<T>() for list of specializations
Definition at line 92 of file num_util.h. |
|
||||||||||||||||
|
Function template creates a one-dimensional numpy array of length n containing a copy of data at data*. See num_util.cpp::getEnum<T>() for list of specializations
Definition at line 75 of file num_util.h. |
|
|
A free function that extracts a PyArrayObject from any sequential PyObject.
|
|
|
Definition at line 218 of file num_util.cpp. |
|
||||||||||||
|
Creates a n-dimensional numpy array with dimensions dimens and numpy type t. The elements of the array are initialized to zero.
Definition at line 212 of file num_util.cpp. |
|
||||||||||||
|
Creates an one-dimensional numpy array of length n and numpy type t. The elements of the array are initialized to zero.
Definition at line 206 of file num_util.cpp. |
|
|
Definition at line 194 of file num_util.cpp. |
|
|
A free function that retrieves the number of dimensions of a numpy array.
|
|
|
Definition at line 242 of file num_util.cpp. |
|
|
|
|
|
Definition at line 396 of file num_util.cpp. |
|
|
Returns the dimensions in a vector.
|
|
|
Definition at line 284 of file num_util.cpp. |
|
|
A free function that returns the total size of the array.
|
|
|
Definition at line 263 of file num_util.cpp. |
|
|
Returns the strides array in a vector of integer.
|
|
|
Definition at line 382 of file num_util.cpp. |
|
|
A free function that retrieves the numpy type of a numpy array.
|
|
|
Definition at line 224 of file num_util.cpp. |
|
|
Converts a PyArray_TYPE to its single character typecode.
Definition at line 417 of file num_util.cpp. |
|
|
Converts a PyArray_TYPE to its name in string.
Definition at line 413 of file num_util.cpp. |
|
||||||||||
|
Constructs a string which contains a list of elements extracted from the input vector.
Definition at line 426 of file num_util.cpp. |
|
|
Initial value:
{
KindCharMapEntry(PyArray_CHAR, 'c'),
KindCharMapEntry(PyArray_UBYTE, 'b'),
KindCharMapEntry(PyArray_SBYTE, '1'),
KindCharMapEntry(PyArray_SHORT, 's'),
KindCharMapEntry(PyArray_INT, 'i'),
KindCharMapEntry(PyArray_LONG, 'l'),
KindCharMapEntry(PyArray_FLOAT, 'f'),
KindCharMapEntry(PyArray_DOUBLE, 'd'),
KindCharMapEntry(PyArray_CFLOAT, 'F'),
KindCharMapEntry(PyArray_CDOUBLE,'D'),
KindCharMapEntry(PyArray_OBJECT, 'O')
}
Definition at line 145 of file num_util.cpp. |
|
|
Initial value:
{
KindStringMapEntry(PyArray_CHAR, "PyArray_CHAR"),
KindStringMapEntry(PyArray_UBYTE, "PyArray_UBYTE"),
KindStringMapEntry(PyArray_SBYTE, "PyArray_SBYTE"),
KindStringMapEntry(PyArray_SHORT, "PyArray_SHORT"),
KindStringMapEntry(PyArray_INT, "PyArray_INT"),
KindStringMapEntry(PyArray_LONG, "PyArray_LONG"),
KindStringMapEntry(PyArray_FLOAT, "PyArray_FLOAT"),
KindStringMapEntry(PyArray_DOUBLE, "PyArray_DOUBLE"),
KindStringMapEntry(PyArray_CFLOAT, "PyArray_CFLOAT"),
KindStringMapEntry(PyArray_CDOUBLE,"PyArray_CDOUBLE"),
KindStringMapEntry(PyArray_OBJECT, "PyArray_OBJECT"),
KindStringMapEntry(PyArray_NTYPES, "PyArray_NTYPES"),
KindStringMapEntry(PyArray_NOTYPE ,"PyArray_NOTYPE")
}
Definition at line 127 of file num_util.cpp. |
|
|
Initial value:
{
KindTypeMapEntry('c',PyArray_CHAR),
KindTypeMapEntry('b',PyArray_UBYTE),
KindTypeMapEntry('1',PyArray_SBYTE),
KindTypeMapEntry('s',PyArray_SHORT),
KindTypeMapEntry('i',PyArray_INT),
KindTypeMapEntry('l',PyArray_LONG),
KindTypeMapEntry('f',PyArray_FLOAT),
KindTypeMapEntry('d',PyArray_DOUBLE),
KindTypeMapEntry('F',PyArray_CFLOAT),
KindTypeMapEntry('D',PyArray_CDOUBLE),
KindTypeMapEntry('O',PyArray_OBJECT)
}
Definition at line 161 of file num_util.cpp. |
|
|
Definition at line 178 of file num_util.cpp. |
|
|
Definition at line 177 of file num_util.cpp. |
|
|
Definition at line 179 of file num_util.cpp. |
1.4.4