Trait Affine

Source
pub trait Affine<X, Y = X> {
    type Output;

    // Required method
    fn affine(&self, mul: X, add: Y) -> Self::Output;
}
Expand description

apply an affine transformation to a tensor; affine transformation is defined as mul * self + add

Required Associated Types§

Required Methods§

Source

fn affine(&self, mul: X, add: Y) -> Self::Output

Implementations on Foreign Types§

Source§

impl<A, D> Affine<A> for ArrayBase<OwnedRepr<A>, D>

Source§

type Output = ArrayBase<OwnedRepr<A>, D>

Source§

fn affine( &self, mul: A, add: A, ) -> <ArrayBase<OwnedRepr<A>, D> as Affine<A>>::Output

Implementors§