pub trait ElementImpl {
type Space: LinearSpace<F = Self::F, E = Self>;
type F: RlstScalar;
type View<'b>
where Self: 'b;
type ViewMut<'b>
where Self: 'b;
// Required methods
fn space(&self) -> Rc<Self::Space>;
fn view(&self) -> Self::View<'_>;
fn view_mut(&mut self) -> Self::ViewMut<'_>;
fn axpy_inplace(&mut self, alpha: Self::F, x: &Self);
fn sub_inplace(&mut self, other: &Self);
fn fill_inplace(&mut self, other: &Self);
fn scale_inplace(&mut self, alpha: Self::F);
// Provided method
fn sum_inplace(&mut self, other: &Self) { ... }
}
Expand description
An Element of a linear spaces.
Required Associated Types§
Sourcetype Space: LinearSpace<F = Self::F, E = Self>
type Space: LinearSpace<F = Self::F, E = Self>
Space type
Sourcetype F: RlstScalar
type F: RlstScalar
Scalar Type
Required Methods§
Sourcefn axpy_inplace(&mut self, alpha: Self::F, x: &Self)
fn axpy_inplace(&mut self, alpha: Self::F, x: &Self)
self += alpha * x.
Sourcefn sub_inplace(&mut self, other: &Self)
fn sub_inplace(&mut self, other: &Self)
self -= other.
Sourcefn fill_inplace(&mut self, other: &Self)
fn fill_inplace(&mut self, other: &Self)
self = other.
Sourcefn scale_inplace(&mut self, alpha: Self::F)
fn scale_inplace(&mut self, alpha: Self::F)
self *= alpha.
Provided Methods§
Sourcefn sum_inplace(&mut self, other: &Self)
fn sum_inplace(&mut self, other: &Self)
self += other.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.