[][src]Trait melange::tensor::shape::SameNumElements

pub unsafe trait SameNumElements<T, Rhs> {
    type Output;
}

Binary trait operator that outputs B1 if the implementor shape and Rhs have the same number of elements i.e. the products of their dimensions are equal.

This is useful to perform compile-time reshape checks.

Associated Types

type Output

Loading content...

Implementations on Foreign Types

impl<T, S, A, Rhs> SameNumElements<T, Rhs> for TArr<S, A> where
    Self: NumElements<T>,
    Rhs: NumElements<T>,
    Self::Output: IsEqual<<Rhs as NumElements<T>>::Output>, 
[src]

type Output = Eq<Self::Output, <Rhs as NumElements<T>>::Output>

Loading content...

Implementors

Loading content...