@thi.ng/tensors
Version:
0D/1D/2D/3D/4D tensors with extensible polymorphic operations and customizable storage
19 lines • 698 B
TypeScript
/**
* Componentwise computes smoothstep function for given nD tensor and uniform
* scalar thresholds `b` (low edge) and `c` (high edge). Writes result to `out`.
* If `out` is null, mutates `a`. Multi-method. Also see {@link stepN}.
*
* @remarks
* Same as GLSL `smoothstep()` (but with changed order of arguments).
*
* Reference:
*
* - https://registry.khronos.org/OpenGL-Refpages/gl4/html/smoothstep.xhtml
*
* @param out - output tensor
* @param a - input tensor
* @param b - scalar (low edge)
* @param c - scalar (high edge)
*/
export declare const smoothStepN: import("./api.js").MultiTensorOpImpl<import("./api.js").TensorOpTNN<number>>;
//# sourceMappingURL=smoothstepn.d.ts.map