Mantid
Loading...
Searching...
No Matches
Classes
Mantid::PythonInterface::Policies::VectorRefToNumpy< ConversionPolicy > Struct Template Reference

Implements a return value policy that returns a numpy array from a rerence to a std::vector. More...

#include <VectorToNumpy.h>

Classes

struct  apply
 

Detailed Description

template<typename ConversionPolicy>
struct Mantid::PythonInterface::Policies::VectorRefToNumpy< ConversionPolicy >

Implements a return value policy that returns a numpy array from a rerence to a std::vector.

The type of conversion is specified by a policy: (1) WrapReadOnly - Creates a read-only array around the original data (no copy is performed) (2) WrapReadWrite - Creates a read-write array around the original data (no copy is performed)

Definition at line 63 of file VectorToNumpy.h.


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