Mantid
|
#include <WrapWithNDArray.h>
Static Public Member Functions | |
static PyObject * | create1D (const std::vector< ElementType > &cdata) |
Returns a read-write Numpy array wrapped around an existing vector. 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 70 of file WrapWithNDArray.h.
|
inlinestatic |
Returns a read-write Numpy array wrapped around an existing vector.
cdata | :: A reference to vector |
Definition at line 77 of file WrapWithNDArray.h.
References Mantid::PythonInterface::Converters::WrapReadWrite::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 91 of file WrapWithNDArray.h.
References Mantid::PythonInterface::Converters::ReadWrite, and Mantid::PythonInterface::Converters::Impl::wrapWithNDArray().
Referenced by Mantid::PythonInterface::Converters::WrapReadWrite::apply< ElementType >::create1D().