31 const std::string
name()
const override {
return "Minus"; }
33 const std::string
summary()
const override {
34 return "The Minus algorithm will subtract the data values and calculate "
35 "the corresponding error values for two compatible workspaces.";
39 const std::string alias()
const override;
41 int version()
const override {
return 1; }
42 const std::vector<std::string>
seeAlso()
const override {
return {
"Plus",
"Divide",
"Multiply"}; }
46 void performBinaryOperation(
const HistogramData::Histogram &lhs,
const HistogramData::Histogram &
rhs,
47 HistogramData::HistogramY &YOut, HistogramData::HistogramE &EOut)
override;
48 void performBinaryOperation(
const HistogramData::Histogram &lhs,
const double rhsY,
const double rhsE,
49 HistogramData::HistogramY &YOut, HistogramData::HistogramE &EOut)
override;
51 void performEventBinaryOperation(
DataObjects::EventList &lhs,
const MantidVec &rhsX,
const MantidVec &rhsY,
52 const MantidVec &rhsE)
override;
53 void performEventBinaryOperation(
DataObjects::EventList &lhs,
const double &rhsY,
const double &rhsE)
override;
55 void checkRequirements()
override;
const std::vector< double > & rhs
BinaryOperation supports the implementation of a binary operation on two input workspaces.
Minus performs the difference of two input workspaces.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
int version() const override
Algorithm's version for identification overriding a virtual method.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
const std::string summary() const override
Summary of algorithms purpose.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
Helper class which provides the Collimation Length for SANS instruments.