Trait dfdx::tensor_ops::TryEq

source ·
pub trait TryEq<Rhs>: HasErr {
    type Output;

    // Required method
    fn try_eq(&self, rhs: Rhs) -> Result<Self::Output, Self::Err>;

    // Provided method
    fn eq(&self, rhs: Rhs) -> Self::Output { ... }
}

Required Associated Types§

Required Methods§

source

fn try_eq(&self, rhs: Rhs) -> Result<Self::Output, Self::Err>

See eq

Provided Methods§

source

fn eq(&self, rhs: Rhs) -> Self::Output

See eq

Implementors§

source§

impl<S: Shape, E, D: CmpKernel<EqKernelOp, E>, T: Tape<E, D>> TryEq<&Tensor<S, E, D, T>> for Tensor<S, E, D, T>

§

type Output = Tensor<S, bool, D, NoneTape>

source§

impl<S: Shape, E, D: ScalarCmpKernel<EqKernelOp, E>, T: Tape<E, D>> TryEq<E> for Tensor<S, E, D, T>

§

type Output = Tensor<S, bool, D, NoneTape>