32 const std::string
name()
const override {
return "Multiply"; }
34 const std::string
summary()
const override {
35 return "The Multiply algorithm will multiply the data values and calculate "
36 "the 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",
"Divide"}; }
45 void performBinaryOperation(
const HistogramData::Histogram &lhs,
const HistogramData::Histogram &
rhs,
46 HistogramData::HistogramY &YOut, HistogramData::HistogramE &EOut)
override;
47 void performBinaryOperation(
const HistogramData::Histogram &lhs,
const double rhsY,
const double rhsE,
48 HistogramData::HistogramY &YOut, HistogramData::HistogramE &EOut)
override;
55 void performEventBinaryOperation(
DataObjects::EventList &lhs,
const MantidVec &rhsX,
const MantidVec &rhsY,
56 const MantidVec &rhsE)
override;
58 void performEventBinaryOperation(
DataObjects::EventList &lhs,
const double &rhsY,
const double &rhsE)
override;
60 void checkRequirements()
override;
const std::vector< double > & rhs
CommutativeBinaryOperation supports commutative binary operations on two input workspaces.
Multiply performs the product of two input workspaces.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
const std::string summary() const override
Summary of algorithms purpose.
int version() const override
Algorithm's version 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.