Function dotMultiply #
Multiply two matrices element wise. The function accepts both matrices and
scalar values.
Syntax #
Parameters #
| Parameter |
Type |
Description |
x |
number | BigNumber | Fraction | Complex | Unit | Array | Matrix |
Left hand value |
y |
number | BigNumber | Fraction | Complex | Unit | Array | Matrix |
Right hand value |
Returns #
| Type |
Description |
| number | BigNumber | Fraction | Complex | Unit | Array | Matrix |
Multiplication of x and y |
Throws #
Type | Description
—- | ———–
Examples #
math.dotMultiply(2, 4) // returns 8
a = [[9, 5], [6, 1]]
b = [[3, 2], [5, 2]]
math.dotMultiply(a, b) // returns [[27, 10], [30, 2]]
math.multiply(a, b) // returns [[52, 28], [23, 14]]
See also #
multiply,
divide,
dotDivide
History #
| Version |
Comment |
| v11.6 |
Support matrix broadcasting |
| v0.23 |
Renamed from emultiply |