Trait CompareTensor

Source
pub trait CompareTensor {
    type TensorType;
    type ElementType;

    // Required methods
    fn max_pair(&self, o: &Self::TensorType) -> Self::TensorType;
    fn min_pair(&self, o: &Self::TensorType) -> Self::TensorType;
    fn all(&self, f: &dyn Fn(Self::ElementType) -> bool) -> bool;
    fn any(&self, f: &dyn Fn(Self::ElementType) -> bool) -> bool;
}

Required Associated Types§

Required Methods§

Source

fn max_pair(&self, o: &Self::TensorType) -> Self::TensorType

Source

fn min_pair(&self, o: &Self::TensorType) -> Self::TensorType

Source

fn all(&self, f: &dyn Fn(Self::ElementType) -> bool) -> bool

Source

fn any(&self, f: &dyn Fn(Self::ElementType) -> bool) -> bool

Implementors§