@thi.ng/tensors
Version:
0D/1D/2D/3D/4D tensors with extensible polymorphic operations and customizable storage
13 lines • 507 B
TypeScript
/**
* Componentwise clamps nD tensor `a` to closed interval defined by `[b,c]`.
* Writes result to `out`. If `out` is null, creates a new tensor using `a`'s
* type and storage provider and shape as determined by broadcasting rules (see
* {@link broadcast} for details).
*
* @param out - output tensor
* @param a - input tensor
* @param b - input tensor (min)
* @param c - input tensor (max)
*/
export declare const clamp: import("./api.js").TensorOpTTT<number>;
//# sourceMappingURL=clamp.d.ts.map