pub trait Biased<S, D, A = <S as RawData>::Elem>: Weighted<S, D, A>{
// Required methods
fn bias(&self) -> &ArrayBase<S, D::Smaller, A>;
fn bias_mut(&mut self) -> &mut ArrayBase<S, D::Smaller, A>;
// Provided methods
fn assign_bias(&mut self, bias: &ArrayBase<S, D::Smaller, A>) -> &mut Self
where S: DataMut,
S::Elem: Clone { ... }
fn replace_bias(
&mut self,
bias: ArrayBase<S, D::Smaller, A>,
) -> ArrayBase<S, D::Smaller, A> { ... }
fn set_bias(&mut self, bias: ArrayBase<S, D::Smaller, A>) -> &mut Self { ... }
fn iter_bias<'a>(&'a self) -> Iter<'a, S::Elem, D::Smaller>
where S: Data + 'a,
D: 'a { ... }
fn iter_bias_mut<'a>(&'a mut self) -> IterMut<'a, S::Elem, D::Smaller>
where S: DataMut + 'a,
D: 'a { ... }
}Required Methods§
Provided Methods§
Sourcefn assign_bias(&mut self, bias: &ArrayBase<S, D::Smaller, A>) -> &mut Self
fn assign_bias(&mut self, bias: &ArrayBase<S, D::Smaller, A>) -> &mut Self
assigns the given bias to the current bias
Sourcefn replace_bias(
&mut self,
bias: ArrayBase<S, D::Smaller, A>,
) -> ArrayBase<S, D::Smaller, A>
fn replace_bias( &mut self, bias: ArrayBase<S, D::Smaller, A>, ) -> ArrayBase<S, D::Smaller, A>
replaces the current bias with the given bias
Sourcefn set_bias(&mut self, bias: ArrayBase<S, D::Smaller, A>) -> &mut Self
fn set_bias(&mut self, bias: ArrayBase<S, D::Smaller, A>) -> &mut Self
sets the bias of the model
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".