Mantid
|
#include <WrapWithNDArray.h>
Static Public Member Functions | |
static PyObject * | create1D (const std::vector< ElementType > &cdata) |
Returns a read-only 1D Numpy array wrapped around an existing container that knows its size. More... | |
static PyObject * | createFromArray (const ElementType *cdata, const int ndims, Py_intptr_t *dims) |
Returns a read-only Numpy array wrapped around an existing array. More... | |
Definition at line 36 of file WrapWithNDArray.h.
|
inlinestatic |
Returns a read-only 1D Numpy array wrapped around an existing container that knows its size.
cdata | :: A const reference to an object that can be wrapped |
Definition at line 43 of file WrapWithNDArray.h.
References Mantid::PythonInterface::Converters::WrapReadOnly::apply< ElementType >::createFromArray().
|
inlinestatic |
Returns a read-only Numpy array wrapped around an existing array.
The template type here refers to the C-array's element type
cdata | :: A pointer to the HEAD of a data array |
ndims | :: The number of dimensions |
dims | :: An array of size ndims specifying the sizes of each of the dimensions |
Definition at line 57 of file WrapWithNDArray.h.
References Mantid::PythonInterface::Converters::ReadOnly, and Mantid::PythonInterface::Converters::Impl::wrapWithNDArray().
Referenced by Mantid::PythonInterface::Converters::WrapReadOnly::apply< ElementType >::create1D().