UNPKG

@thi.ng/tensors

Version:

0D/1D/2D/3D/4D tensors with extensible polymorphic operations and customizable storage

18 lines 583 B
/** * Componentwise computes step function for given nD tensor and threshold `b`. * Writes result to `out`. If `out` is null, mutates `a`. Multi-method. Also see * {@link stepN} and {@link smoothStep}. * * @remarks * Same logic as GLSL `step()` (but with swapped order of arguments). * * Reference: * * - https://registry.khronos.org/OpenGL-Refpages/gl4/html/step.xhtml * * @param out - output tensor * @param a - input tensor * @param b - input tensor (threshold) */ export declare const step: import("./api.js").TensorOpTT<number>; //# sourceMappingURL=step.d.ts.map