Mantid
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Mantid::PythonInterface::Converters::CArrayToNDArray< ElementType, ConversionPolicy > Struct Template Reference

Converter that takes a c array and its size then converts/wraps it into a numpy array. More...

#include <CArrayToNDArray.h>

Public Member Functions

PyObject * operator() (const ElementType *carray, const int ndims, Py_intptr_t *dims) const
 

Detailed Description

template<typename ElementType, typename ConversionPolicy>
struct Mantid::PythonInterface::Converters::CArrayToNDArray< ElementType, ConversionPolicy >

Converter that takes a c array and its size then converts/wraps it into a numpy array.

The type of conversion is specified by another struct/class that contains a static member create.

Definition at line 25 of file CArrayToNDArray.h.

Member Function Documentation

◆ operator()()

template<typename ElementType , typename ConversionPolicy >
PyObject * Mantid::PythonInterface::Converters::CArrayToNDArray< ElementType, ConversionPolicy >::operator() ( const ElementType *  carray,
const int  ndims,
Py_intptr_t *  dims 
) const
inline

Definition at line 26 of file CArrayToNDArray.h.


The documentation for this struct was generated from the following file: