Mantid
|
Namespaces | |
namespace | Impl |
Classes | |
struct | CArrayToNDArray |
Converter that takes a c array and its size then converts/wraps it into a numpy array. More... | |
struct | Clone |
Clone is a policy (in the C++ sense)for converting to an ND Array. More... | |
struct | MapToPyDictionary |
struct | MatrixToNDArray |
Converter that takes a Mantid Matrix and converts it into a numpy array. More... | |
struct | NDArrayToVector |
Converter taking an input numpy array and converting it to a std::vector. More... | |
struct | NDArrayTypeIndex |
Defines a mapping between C++ type given by the template parameter and numpy type enum NPY_TYPES. More... | |
struct | PyObjectToMatrix |
Takes a Python object and if it supports indexing and is two dimensional it attempts to convert it to a Kernel::Matrix object. More... | |
struct | PyObjectToV3D |
Takes a Python object and if it supports indexing and is of length 3 then it will attempt to convert a Kernel::V3D object from it. More... | |
struct | PyObjectToVMD |
Takes a Python object and if it supports indexing and is of length 3 then it will attempt to convert a Kernel::VMD object from it. More... | |
struct | PySequenceToVector |
Converts a Python sequence type to a C++ std::vector, where the element type is defined by the template type. More... | |
struct | ToPyList |
Converter that takes a std::vector and converts it into a python list. More... | |
struct | VectorToNDArray |
Converter that takes a std::vector and converts it into a flat numpy array. More... | |
struct | 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 | WrapReadWrite |
WrapReadWrite is a policy for VectorToNDArray to wrap the vector in a read-write numpy array that looks at the original data. More... | |
Enumerations | |
enum | NumpyWrapMode { ReadOnly , ReadWrite } |
Enum defining wrapping type for conversion to numpy. More... | |
enum | OwnershipMode { Cpp , Python } |
Enum defining transfer of ownership when converting to numpy array. More... | |
Functions | |
MANTID_PYTHONINTERFACE_CORE_DLL PyArray_Descr * | descr_ns () |
template<template< class > class Container, typename HeldType > | |
std::string | dtype (const Container< HeldType > &) |
MANTID_PYTHONINTERFACE_CORE_DLL std::shared_ptr< Types::Core::DateAndTime > | to_dateandtime (const boost::python::api::object &value) |
std::shared_ptr< Types::Core::DateAndTime > | to_dateandtime (const PyObject *datetime) |
PyObject * | to_datetime64 (const DateAndTime &dateandtime) |
MANTID_PYTHONINTERFACE_CORE_DLL PyObject * | to_datetime64 (const Types::Core::DateAndTime &dateandtime) |
Convert to numpy's datetime64. This is panda's name for the function. More... | |
npy_datetime | to_npy_datetime (const DateAndTime &dateandtime) |
MANTID_PYTHONINTERFACE_CORE_DLL npy_datetime | to_npy_datetime (const Types::Core::DateAndTime &dateandtime) |
Total nanoseconds since the unix epoch. More... | |
Enum defining wrapping type for conversion to numpy.
Enumerator | |
---|---|
ReadOnly | |
ReadWrite |
Definition at line 17 of file WrapWithNDArray.h.
Enum defining transfer of ownership when converting to numpy array.
Enumerator | |
---|---|
Cpp | |
Python |
Definition at line 19 of file WrapWithNDArray.h.
PyArray_Descr * Mantid::PythonInterface::Converters::descr_ns | ( | ) |
Definition at line 46 of file DateAndTime.cpp.
Referenced by Mantid::PythonInterface::Converters::Impl::clone1D(), and to_datetime64().
std::string Mantid::PythonInterface::Converters::dtype | ( | const Container< HeldType > & | ) |
Definition at line 27 of file ContainerDtype.h.
Referenced by dtype().
std::shared_ptr< Types::Core::DateAndTime > Mantid::PythonInterface::Converters::to_dateandtime | ( | const boost::python::api::object & | value | ) |
Definition at line 81 of file DateAndTime.cpp.
References to_dateandtime(), and value.
Referenced by export_DateAndTime(), and to_dateandtime().
std::shared_ptr< Types::Core::DateAndTime > Mantid::PythonInterface::Converters::to_dateandtime | ( | const PyObject * | datetime | ) |
Definition at line 49 of file DateAndTime.cpp.
References GNU_DIAG_OFF, GNU_DIAG_ON, and value.
PyObject * Mantid::PythonInterface::Converters::to_datetime64 | ( | const DateAndTime & | dateandtime | ) |
Definition at line 32 of file DateAndTime.cpp.
References descr_ns(), and to_npy_datetime().
MANTID_PYTHONINTERFACE_CORE_DLL PyObject * Mantid::PythonInterface::Converters::to_datetime64 | ( | const Types::Core::DateAndTime & | dateandtime | ) |
Convert to numpy's datetime64. This is panda's name for the function.
Referenced by export_DateAndTime().
npy_datetime Mantid::PythonInterface::Converters::to_npy_datetime | ( | const DateAndTime & | dateandtime | ) |
Definition at line 28 of file DateAndTime.cpp.
MANTID_PYTHONINTERFACE_CORE_DLL npy_datetime Mantid::PythonInterface::Converters::to_npy_datetime | ( | const Types::Core::DateAndTime & | dateandtime | ) |
Total nanoseconds since the unix epoch.
Referenced by Mantid::PythonInterface::Converters::Impl::clone1D(), and to_datetime64().