Mantid
Loading...
Searching...
No Matches
Namespaces | Macros
NDArrayTypeIndex.cpp File Reference
#include "MantidPythonInterface/core/Converters/NDArrayTypeIndex.h"
#include "MantidTypes/Core/DateAndTime.h"
#include <boost/python/detail/prefix.hpp>
#include <numpy/arrayobject.h>

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
 

Macros

#define DEFINE_TYPE_MAPPING(CType, NDTypeNum, NDTypeCode)
 Macro to define mappings between the CType and Numpy enum. More...
 
#define NO_IMPORT_ARRAY
 
#define PY_ARRAY_UNIQUE_SYMBOL   CORE_ARRAY_API
 

Macro Definition Documentation

◆ DEFINE_TYPE_MAPPING

#define DEFINE_TYPE_MAPPING (   CType,
  NDTypeNum,
  NDTypeCode 
)
Value:
template <> int NDArrayTypeIndex<CType>::typenum = NDTypeNum; \
template <> char NDArrayTypeIndex<CType>::typecode = NDTypeCode; \
template struct NDArrayTypeIndex<CType>;

Macro to define mappings between the CType and Numpy enum.

Definition at line 20 of file NDArrayTypeIndex.cpp.

◆ NO_IMPORT_ARRAY

#define NO_IMPORT_ARRAY

Definition at line 15 of file NDArrayTypeIndex.cpp.

◆ PY_ARRAY_UNIQUE_SYMBOL

#define PY_ARRAY_UNIQUE_SYMBOL   CORE_ARRAY_API

Definition at line 14 of file NDArrayTypeIndex.cpp.