(rontolisp) docs
← Functions

linalg:sub

(linalg:sub a b)

Subtracts b from a elementwise, returning a fresh array. 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. See also linalg:mul and linalg:div.