Struct ArrayVectorSpaceElement

Source
pub struct ArrayVectorSpaceElement<Item: RlstScalar> { /* private fields */ }
Expand description

Element of an array vector space

Implementations§

Source§

impl<Item: RlstScalar> ArrayVectorSpaceElement<Item>

Source

pub fn new(space: &ArrayVectorSpace<Item>) -> Self

Create a new element

Trait Implementations§

Source§

impl<Item: RlstScalar> Element for ArrayVectorSpaceElement<Item>

Source§

type F = Item

Scalar Type
Source§

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

View
Source§

type ViewMut<'b> = Array<Item, ArrayViewMut<'b, Item, BaseArray<Item, VectorContainer<Item>, 1>, 1>, 1> where Self: 'b

Mutable view
Source§

fn view(&self) -> Self::View<'_>

Get a view onto the element.
Source§

fn view_mut(&mut self) -> Self::ViewMut<'_>

Get a mutable view onto the element.
Source§

fn axpy_inplace(&mut self, alpha: Self::F, other: &Self)

self += alpha * other.
Source§

fn sum_inplace(&mut self, other: &Self)

self += other.
Source§

fn fill_inplace(&mut self, other: &Self)

self = other.
Source§

fn scale_inplace(&mut self, alpha: Self::F)

self *= alpha.
Source§

fn neg_inplace(&mut self)

self = -self.
Source§

fn axpy(self, alpha: Self::F, other: &Self) -> Self
where Self: Sized,

self += alpha * other.
Source§

fn sum(self, other: &Self) -> Self
where Self: Sized,

self += other
Source§

fn fill(self, other: &Self) -> Self
where Self: Sized,

self = other
Source§

fn scale(self, alpha: Self::F) -> Self
where Self: Sized,

self = alpha * self
Source§

fn neg(self) -> Self
where Self: Sized,

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V