MultiplyMD v1

Summary

Multiply a MDHistoWorkspace by another one or a scalar.

See Also

MinusMD, PlusMD, DivideMD, PowerMD

Properties

Name

Direction

Type

Default

Description

LHSWorkspace

Input

IMDWorkspace

Mandatory

An MDEventWorkspace, MDHistoWorkspace or WorkspaceSingleValue as the left-hand side of the operation.

RHSWorkspace

Input

IMDWorkspace

Mandatory

An MDEventWorkspace, MDHistoWorkspace or WorkspaceSingleValue as the right-hand side of the operation.

OutputWorkspace

Output

IMDWorkspace

Mandatory

Name of the output MDEventWorkspace or MDHistoWorkspace.

Description

Multiply two MDHistoWorkspace’s or a MDHistoWorkspace and a scalar.

The error of f=ab is propagated with df2=f2(da2/a2+db2/b2)

  • MDHistoWorkspace * MDHistoWorkspace

    • The operation is performed element-by-element.

  • MDHistoWorkspace * Scalar or Scalar * MDHistoWorkspace

    • Every element of the MDHistoWorkspace is multiplied by the scalar.

  • :ref:`MDEventWorkspace <MDWorkspace>`’s

    • This operation is not supported, as it is not clear what its meaning would be.

Categories: AlgorithmIndex | MDAlgorithms\MDArithmetic

Source

C++ header: MultiplyMD.h

C++ source: MultiplyMD.cpp