Equana

Back to NDArray Operations

emul

Element-wise multiplication (.*). Always element-wise regardless of shape.

Syntax

emul(a: NDArray, b: NDArray) → r

Backends

TypeScriptnumwa

Description

Element-wise multiplication (.*). Always element-wise regardless of shape.

Parameters

NameDescription
aLeft operand (NDArray or scalar)
bRight operand (NDArray or scalar)

Returns

NDArray with element-wise product

Examples

Try It
>> emul([2, 3], [4, 5])
[8, 15]
Try It
>> emul([1, 2, 3], 2)
[2, 4, 6]