|
| numeric::array | astype (boost::python::numeric::array arr, PyArray_TYPES t) |
| | Returns a clone of this array with a new type. More...
|
| |
| PyArray_TYPES | char2type (char e_type) |
| | Coverts a single character typecode to its PyArray_TYPES. More...
|
| |
| void | check_contiguous (boost::python::numeric::array arr) |
| | Throws an exception if the array is not contiguous. More...
|
| |
| void | check_dim (boost::python::numeric::array arr, int dimnum, intp dimsize) |
| | Throws an exception if a specific dimension from a numpy array does not match the expected size. More...
|
| |
| void | check_PyArrayElementType (boost::python::object newo) |
| | Throws an exception if the element of a numpy array is type cast to PyArray_OBJECT. More...
|
| |
| void | check_rank (boost::python::numeric::array arr, int expected_rank) |
| | Throws an exception if the actual rank is not equal to the expected rank. More...
|
| |
| void | check_shape (boost::python::numeric::array arr, std::vector< intp > expected_dims) |
| | Throws an exception if the actual dimensions of the array are not equal to the expected dimensions. More...
|
| |
| void | check_size (boost::python::numeric::array arr, intp expected_size) |
| | Throw an exception if the actual total size of the array is not equal to the expected size. More...
|
| |
| void | check_size_match (std::vector< intp > dims, intp n) |
| | Throws an exception if the total size computed from a vector of integer does not match with the expected size. More...
|
| |
| void | check_type (boost::python::numeric::array arr, PyArray_TYPES expected_type) |
| | Throws an exception if the actual array type is not equal to the expected type. More...
|
| |
| boost::python::numeric::array | clone (boost::python::numeric::array arr) |
| | Returns a clone of this array. More...
|
| |
| void | copy_data (boost::python::numeric::array arr, char *new_data) |
| | Copies data into the array. More...
|
| |
| void * | data (boost::python::numeric::array arr) |
| | Returns a pointer to the data in the array. More...
|
| |
| intp | get_dim (boost::python::numeric::array arr, int dimnum) |
| | Returns the size of a specific dimension. More...
|
| |
| template<typename T > |
| PyArray_TYPES | getEnum () |
| | Function template returns PyArray_Type for C++ type See num_util.cpp for specializations. More...
|
| |
| bool | iscontiguous (boost::python::numeric::array arr) |
| | Returns true if the array is contiguous. More...
|
| |
| boost::python::numeric::array | makeNum (boost::python::object x) |
| | A free function that extracts a PyArrayObject from any sequential PyObject. More...
|
| |
| template<typename T > |
| boost::python::numeric::array | makeNum (T *data, int n=0) |
| | Function template creates a one-dimensional numpy array of length n containing a copy of data at data*. More...
|
| |
| template<typename T > |
| boost::python::numeric::array | makeNum (T *data, std::vector< int > dims) |
| | Function template creates an n-dimensional numpy array with dimensions dimens containing a copy of values starting at data. More...
|
| |
| boost::python::numeric::array | makeNum (const boost::python::numeric::array &arr) |
| | Creates a numpy array from a numpy array, referencing the data. More...
|
| |
| numeric::array | makeNum (intp n, PyArray_TYPES t) |
| | Creates an one-dimensional numpy array of length n and numpy type t. More...
|
| |
| numeric::array | makeNum (std::vector< int > dimens, PyArray_TYPES t) |
| | Creates a n-dimensional numpy array with dimensions dimens and numpy type t. More...
|
| |
| template<> |
| boost::python::numeric::array | makeNum< double > (double *data, std::vector< int > dims) |
| |
| int | rank (boost::python::numeric::array arr) |
| | A free function that retrieves the number of dimensions of a numpy array. More...
|
| |
| int | refcount (boost::python::numeric::array arr) |
| |
| std::vector< intptr_t > | shape (boost::python::numeric::array arr) |
| | Returns the dimensions in a vector. More...
|
| |
| intp | size (boost::python::numeric::array arr) |
| | A free function that returns the total size of the array. More...
|
| |
| std::vector< intp > | strides (boost::python::numeric::array arr) |
| | Returns the strides array in a vector of integer. More...
|
| |
| PyArray_TYPES | type (boost::python::numeric::array arr) |
| | A free function that retrieves the numpy type of a numpy array. More...
|
| |
| char | type2char (PyArray_TYPES t_type) |
| | Converts a PyArray_TYPE to its single character typecode. More...
|
| |
| std::string | type2string (PyArray_TYPES t_type) |
| | Converts a PyArray_TYPE to its name in string. More...
|
| |
| template<class T > |
| std::string | vector_str (const std::vector< T > &vec) |
| | Constructs a string which contains a list of elements extracted from the input vector. More...
|
| |