10#include "MantidPythonInterface/core/Converters/WrapWithNumpy.h"
13namespace PythonInterface {
25template <
typename ElementType,
typename ConversionPolicy>
struct CArrayToNDArray {
26 inline PyObject *
operator()(
const ElementType *carray,
const int ndims, Py_intptr_t *dims)
const {
30 using policy =
typename ConversionPolicy::template apply<ElementType>;
31 return policy::createFromArray(carray, ndims, dims);
Helper class which provides the Collimation Length for SANS instruments.
Converter that takes a c array and its size then converts/wraps it into a numpy array.
PyObject * operator()(const ElementType *carray, const int ndims, Py_intptr_t *dims) const