Mantid
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions
WrapWithNDArray.h File Reference
#include "MantidKernel/System.h"
#include <boost/python/detail/prefix.hpp>
#include <vector>

Go to the source code of this file.

Classes

struct  Mantid::PythonInterface::Converters::WrapReadOnly
 WrapReadOnly is a policy for VectorToNDArray to wrap the vector in a read-only numpy array that looks at the original data. More...
 
struct  Mantid::PythonInterface::Converters::WrapReadOnly::apply< ElementType >
 
struct  Mantid::PythonInterface::Converters::WrapReadWrite
 WrapReadWrite is a policy for VectorToNDArray to wrap the vector in a read-write numpy array that looks at the original data. More...
 
struct  Mantid::PythonInterface::Converters::WrapReadWrite::apply< ElementType >
 

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
 

Enumerations

enum  Mantid::PythonInterface::Converters::NumpyWrapMode { Mantid::PythonInterface::Converters::ReadOnly , Mantid::PythonInterface::Converters::ReadWrite }
 Enum defining wrapping type for conversion to numpy. More...
 
enum  Mantid::PythonInterface::Converters::OwnershipMode { Mantid::PythonInterface::Converters::Cpp , Mantid::PythonInterface::Converters::Python }
 Enum defining transfer of ownership when converting to numpy array. More...
 

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...