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