pub struct ArrayVectorSpaceElement<Item: RlstScalar> { /* private fields */ }Expand description
Element of an array vector space
Implementations§
Source§impl<Item: RlstScalar> ArrayVectorSpaceElement<Item>
impl<Item: RlstScalar> ArrayVectorSpaceElement<Item>
Sourcepub fn new(space: &ArrayVectorSpace<Item>) -> Self
pub fn new(space: &ArrayVectorSpace<Item>) -> Self
Create a new element
Trait Implementations§
Source§impl<Item: RlstScalar> Element for ArrayVectorSpaceElement<Item>
impl<Item: RlstScalar> Element for ArrayVectorSpaceElement<Item>
Source§type Space = ArrayVectorSpace<Item>
type Space = ArrayVectorSpace<Item>
Space type
Source§type View<'b> = Array<Item, ArrayView<'b, Item, BaseArray<Item, VectorContainer<Item>, 1>, 1>, 1>
where
Self: 'b
type View<'b> = Array<Item, ArrayView<'b, Item, BaseArray<Item, VectorContainer<Item>, 1>, 1>, 1> where Self: 'b
View
Source§type ViewMut<'b> = Array<Item, ArrayViewMut<'b, Item, BaseArray<Item, VectorContainer<Item>, 1>, 1>, 1>
where
Self: 'b
type ViewMut<'b> = Array<Item, ArrayViewMut<'b, Item, BaseArray<Item, VectorContainer<Item>, 1>, 1>, 1> where Self: 'b
Mutable view
Source§fn axpy_inplace(&mut self, alpha: Self::F, other: &Self)
fn axpy_inplace(&mut self, alpha: Self::F, other: &Self)
self += alpha * other.
Source§fn sum_inplace(&mut self, other: &Self)
fn sum_inplace(&mut self, other: &Self)
self += other.
Source§fn fill_inplace(&mut self, other: &Self)
fn fill_inplace(&mut self, other: &Self)
self = other.
Source§fn scale_inplace(&mut self, alpha: Self::F)
fn scale_inplace(&mut self, alpha: Self::F)
self *= alpha.
Source§fn neg_inplace(&mut self)
fn neg_inplace(&mut self)
self = -self.
Auto Trait Implementations§
impl<Item> Freeze for ArrayVectorSpaceElement<Item>
impl<Item> RefUnwindSafe for ArrayVectorSpaceElement<Item>where
Item: RefUnwindSafe,
impl<Item> Send for ArrayVectorSpaceElement<Item>
impl<Item> Sync for ArrayVectorSpaceElement<Item>
impl<Item> Unpin for ArrayVectorSpaceElement<Item>where
Item: Unpin,
impl<Item> UnwindSafe for ArrayVectorSpaceElement<Item>where
Item: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more