Type alias GenericOperatorFunction

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

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