MCPcopy Index your code
hub / github.com/ciphermodelabs/ciphercore / clip.rs

File clip.rs

ciphercore-base/src/ops/clip.rs:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1//! Clip function that returns a given value if it is inside of the interval [0,2<sup>k</sup>] and clips values outside this interval to its edges.
2use crate::custom_ops::{CustomOperation, CustomOperationBody, Or};
3use crate::data_types::{array_type, scalar_type, vector_type, Type, BIT};
4use crate::errors::Result;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected