Mantid
Loading...
Searching...
No Matches
BinaryOperations.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 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//-----------------------------------------------------------------------------
9// Includes
10//-----------------------------------------------------------------------------
11#include <string>
12
13namespace Mantid {
14namespace PythonInterface {
21template <typename LHSType, typename RHSType, typename ResultType>
22ResultType performBinaryOp(const LHSType lhs, const RHSType rhs, const std::string &op, const std::string &name,
23 bool inplace, bool reverse);
24
26template <typename LHSType, typename RHSType, typename ResultType>
27ResultType performBinaryOpMD(const LHSType lhs, const RHSType rhs, const std::string &op, const std::string &name,
28 bool inplace, bool reverse);
29
31template <typename LHSType, typename ResultType>
32ResultType performBinaryOpWithDouble(const LHSType inputWS, const double value, const std::string &op,
33 const std::string &name, bool inplace, bool reverse);
34
36template <typename LHSType, typename ResultType>
37ResultType performBinaryOpMDWithDouble(const LHSType lhs, const double value, const std::string &op,
38 const std::string &name, bool inplace, bool reverse);
40} // namespace PythonInterface
41} // namespace Mantid
const std::vector< double > & rhs
double value
The value of the point.
Definition: FitMW.cpp:51
ResultType performBinaryOpMDWithDouble(const LHSType lhs, const double value, const std::string &op, const std::string &name, bool inplace, bool reverse)
Binary op for MDworkspaces + double.
ResultType performBinaryOpWithDouble(const LHSType inputWS, const double value, const std::string &op, const std::string &name, bool inplace, bool reverse)
Binary op for a workspace and a double.
ResultType performBinaryOp(const LHSType lhs, const RHSType rhs, const std::string &op, const std::string &name, bool inplace, bool reverse)
Binary op for two workspaces.
ResultType performBinaryOpMD(const LHSType lhs, const RHSType rhs, const std::string &op, const std::string &name, bool inplace, bool reverse)
Binary op for two MDworkspaces.
Helper class which provides the Collimation Length for SANS instruments.