binOp#

static vectorious.binOp(x, y)#

Perform binary operation f on y in x.

Arguments:
Returns:

NDArray

Examples:

import { binOp } from 'vectorious/core/binOp';

binOp([1, 2, 3], [4, 5, 6], (a, b) => a + b); // => array([[5, 7, 9])