32 const std::string
name()
const override {
return "Divide"; }
34 const std::string
summary()
const override {
35 return "The Divide algorithm will divide the data values and calculate the "
36 "corresponding error values of two compatible workspaces.";
40 int version()
const override {
return (1); }
41 const std::vector<std::string>
seeAlso()
const override {
return {
"Plus",
"Minus",
"Multiply"}; }
47 void performBinaryOperation(
const HistogramData::Histogram &lhs,
const HistogramData::Histogram &
rhs,
48 HistogramData::HistogramY &YOut, HistogramData::HistogramE &EOut)
override;
49 void performBinaryOperation(
const HistogramData::Histogram &lhs,
const double rhsY,
const double rhsE,
50 HistogramData::HistogramY &YOut, HistogramData::HistogramE &EOut)
override;
56 void performEventBinaryOperation(
DataObjects::EventList &lhs,
const MantidVec &rhsX,
const MantidVec &rhsY,
57 const MantidVec &rhsE)
override;
59 void performEventBinaryOperation(
DataObjects::EventList &lhs,
const double &rhsY,
const double &rhsE)
override;
61 void checkRequirements()
override;
67 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.