(rontolisp) docs
← Functions

linalg:mul

(linalg:mul a b)

Multiplies a and b elementwise (the Hadamard product), returning a fresh array -- this is NOT the matrix product; for that use linalg:matmul or linalg:dot. The operands broadcast by numpy's rules, exactly as linalg:add describes: a scalar broadcasts over the other operand's shape, and two arrays of different shapes broadcast along their trailing axes when each aligned extent pair is equal or contains a 1.