(rontolisp) docs
← Functions

linalg:negative

(linalg:negative array)

Returns a fresh array of the same shape with every element negated (numpy's np.negative) -- equivalent to (linalg:emap (lambda (x) (- x)) array), but as a named function it is accelerated under --simd.