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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".