ClipOp

Trait ClipOp 

Source
pub trait ClipOp<T, S: Shape = (), D: Device = Self>: Device {
    // Required method
    fn clip(
        &self,
        x: &Matrix<'_, T, D, S>,
        min: T,
        max: T,
    ) -> Matrix<'_, T, Self, S>;
}

Required Methods§

Source

fn clip( &self, x: &Matrix<'_, T, D, S>, min: T, max: T, ) -> Matrix<'_, T, Self, S>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Number, D: MainMemory, S: Shape> ClipOp<T, S, D> for CPU

Available on crate feature cpu only.
Source§

impl<T: CDatatype> ClipOp<T> for OpenCL

Available on crate feature opencl only.