Mantid
Loading...
Searching...
No Matches
PyObjectToMatrix.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2012 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
10#include "MantidKernel/System.h"
11#include <boost/python/object.hpp>
12
13namespace Mantid {
14namespace PythonInterface {
15namespace Converters {
23 PyObjectToMatrix(const boost::python::object &p);
25 Kernel::Matrix<double> operator()();
26
27private:
29 const boost::python::object &m_obj;
32};
33} // namespace Converters
34} // namespace PythonInterface
35} // namespace Mantid
#define DLLExport
Definitions of the DLLImport compiler directives for MSVC.
Definition: System.h:53
Numerical Matrix class.
Definition: Matrix.h:42
Helper class which provides the Collimation Length for SANS instruments.
Takes a Python object and if it supports indexing and is two dimensional it attempts to convert it to...
const boost::python::object & m_obj
A reference to the object.
bool m_alreadyMatrix
Is the object a wrapped instance of Matrix<double>