Type alias GenericOperatorFunction

GenericOperatorFunction: {
    (): NDArray;
    (where): ArrayOrConstant;
    (where, op, B): NDArray;
    (op, B): NDArray;
    (op, B): NDArray;
    (UnaryOpSymbol): NDArray;
}

Generic function to apply an operation to an array. It can be used to apply unary, binary or assignment operations.

Type declaration

Example

const A = np.arange(10).op("+", 1);
A.index('::2').op("=", 0);
console.log(A.tolist());

Generated using TypeDoc