Mantid
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
CloneToNDArray.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::Clone
 Clone is a policy (in the C++ sense)for converting to an ND Array. More...
 
struct  Mantid::PythonInterface::Converters::Clone::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
 

Functions

template<typename ElementType >
PyObject * Mantid::PythonInterface::Converters::Impl::clone1D (const std::vector< ElementType > &cvector)
 Returns a new numpy array with the a copy of the data from 1D vector with the exception of string elements where a Python list is produced. More...
 
template<typename ElementType >
PyObject * Mantid::PythonInterface::Converters::Impl::cloneND (const ElementType *carray, const int ndims, Py_intptr_t *dims)
 Returns a new numpy array with the a copy of the data from array. More...