Mantid
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
WrapWithNDArray.cpp File Reference
#include "MantidPythonInterface/core/Converters/WrapWithNDArray.h"
#include "MantidPythonInterface/core/Converters/NDArrayTypeIndex.h"
#include <boost/python/list.hpp>
#include <numpy/arrayobject.h>
#include <string>

Go to the source code of this file.

Namespaces

namespace  Mantid
 Helper class which provides the Collimation Length for SANS instruments.
 
namespace  Mantid::PythonInterface
 
namespace  Mantid::PythonInterface::Converters
 
namespace  Mantid::PythonInterface::Converters::Impl
 

Macros

#define INSTANTIATE_WRAPNUMPY(ElementType)
 
#define NO_IMPORT_ARRAY
 
#define PY_ARRAY_UNIQUE_SYMBOL   CORE_ARRAY_API
 

Functions

template<typename ElementType >
PyObject * Mantid::PythonInterface::Converters::Impl::wrapWithNDArray (const ElementType *carray, const int ndims, Py_intptr_t *dims, const NumpyWrapMode mode, const OwnershipMode oMode)
 Defines the wrapWithNDArray specialization for C array types. More...
 

Macro Definition Documentation

◆ INSTANTIATE_WRAPNUMPY

#define INSTANTIATE_WRAPNUMPY (   ElementType)
Value:
template DLLExport PyObject *wrapWithNDArray<ElementType>(const ElementType *, const int ndims, Py_intptr_t *dims, \
const NumpyWrapMode mode, const OwnershipMode oMode);
#define DLLExport
Definitions of the DLLImport compiler directives for MSVC.
Definition: System.h:53

Definition at line 98 of file WrapWithNDArray.cpp.

◆ NO_IMPORT_ARRAY

#define NO_IMPORT_ARRAY

Definition at line 15 of file WrapWithNDArray.cpp.

◆ PY_ARRAY_UNIQUE_SYMBOL

#define PY_ARRAY_UNIQUE_SYMBOL   CORE_ARRAY_API

Definition at line 14 of file WrapWithNDArray.cpp.