Enum SubMatrixFull

Source
pub enum SubMatrixFull<'a, T> {
    Contiguous(MatrixFullSlice<'a, T>),
    Detached(MatrixFull<&'a T>),
}

Variants§

§

Contiguous(MatrixFullSlice<'a, T>)

§

Detached(MatrixFull<&'a T>)

Implementations§

Source§

impl<'a, T: Copy + Clone> SubMatrixFull<'a, T>

Source

pub fn data(&self) -> Vec<T>

Source

pub fn c2d(self) -> SubMatrixFull<'a, T>

Trait Implementations§

Source§

impl<'a, T: Copy + Clone + Add + AddAssign> Add<MatrixFull<T>> for SubMatrixFull<'a, T>

Source§

type Output = MatrixFull<T>

The resulting type after applying the + operator.
Source§

fn add(self, other: MatrixFull<T>) -> MatrixFull<T>

Performs the + operation. Read more
Source§

impl<'a, T: Copy + Clone + Add + AddAssign> Add<SubMatrixFull<'a, T>> for MatrixFull<T>

Source§

type Output = MatrixFull<T>

The resulting type after applying the + operator.
Source§

fn add(self, other: SubMatrixFull<'_, T>) -> MatrixFull<T>

Performs the + operation. Read more
Source§

impl<'a, T: Copy + Clone + Add + AddAssign> Add<T> for SubMatrixFull<'a, T>

Source§

type Output = MatrixFull<T>

The resulting type after applying the + operator.
Source§

fn add(self, factor: T) -> MatrixFull<T>

Performs the + operation. Read more
Source§

impl<'a, T: Copy + Clone + Add + AddAssign> AddAssign<SubMatrixFull<'a, T>> for MatrixFull<T>

Source§

fn add_assign(&mut self, other: SubMatrixFull<'_, T>)

Performs the += operation. Read more
Source§

impl<'a, T: Copy + Clone + Add + AddAssign> AddAssign<SubMatrixFull<'a, T>> for SubMatrixFullMut<'a, T>

Source§

fn add_assign(&mut self, other: SubMatrixFull<'_, T>)

Performs the += operation. Read more
Source§

impl<'a, T: Copy + Clone> BasicMatrix<'a, T> for SubMatrixFull<'a, T>

Source§

fn size(&self) -> &[usize]

`matr_a.size()’ return &matr_a.size;

Source§

fn indicing(&self) -> &[usize]

`matr_a.indicing()’ return &matr_a.indicing;

Source§

fn is_contiguous(&self) -> bool

by default, the matrix should be contiguous, unless specify explicitly.
Source§

fn data_ref(&self) -> Option<&[T]>

Source§

fn data_ref_mut(&mut self) -> Option<&mut [T]>

Source§

fn is_matr(&self) -> bool

Source§

impl<'a, T> BasicMatrixOpt<'a, T> for SubMatrixFull<'a, T>
where T: Copy + Clone,

Source§

fn to_matrixfull(&self) -> Option<MatrixFull<T>>
where T: Copy + Clone,

Source§

impl<'a, T: Copy + Clone + Div + DivAssign> Div<T> for SubMatrixFull<'a, T>

Source§

type Output = MatrixFull<T>

The resulting type after applying the / operator.
Source§

fn div(self, f: T) -> MatrixFull<T>

Performs the / operation. Read more
Source§

impl<'a, T> MathMatrix<'a, T> for SubMatrixFull<'a, T>
where T: Copy + Clone,

Source§

fn add<Q>(&'a self, other: &'a Q) -> Option<MatrixFull<T>>
where T: Add<Output = T> + AddAssign, Q: BasicMatrix<'a, T>, Self: Sized,

Source§

fn scaled_add<Q>( &'a self, other: &'a Q, scale_factor: T, ) -> Option<MatrixFull<T>>
where T: Add + AddAssign + Mul<Output = T>, Q: BasicMatrix<'a, T>, Self: Sized,

Source§

fn self_add<Q>(&'a mut self, bm: &'a Q)
where T: Add + AddAssign, Q: BasicMatrix<'a, T>, Self: Sized,

For A += B
Source§

fn self_scaled_add<Q>(&'a mut self, bm: &'a Q, b: T)
where T: Add + AddAssign + Mul<Output = T>, Q: BasicMatrix<'a, T>, Self: Sized,

For A += c*B where c is a scale factor
Source§

fn self_general_add<Q>(&'a mut self, bm: &'a Q, a: T, b: T)
where T: Add<Output = T> + AddAssign + Mul<Output = T>, Q: BasicMatrix<'a, T>, Self: Sized,

For aA + bB -> A
Source§

fn sub<Q>(&'a self, other: &'a Q) -> Option<MatrixFull<T>>
where T: Sub + SubAssign, Q: BasicMatrix<'a, T>, Self: Sized,

For A - B -> C
Source§

fn self_sub<Q>(&'a mut self, bm: &'a Q)
where T: Sub + SubAssign, Q: BasicMatrix<'a, T>, Self: Sized,

For A - B -> A
Source§

fn self_multiple(&mut self, a: T)
where T: Mul<Output = T> + MulAssign,

For a*A -> A
Source§

impl<'a, T: Copy + Clone + Mul + MulAssign> Mul<T> for SubMatrixFull<'a, T>

Source§

type Output = MatrixFull<T>

The resulting type after applying the * operator.
Source§

fn mul(self, f: T) -> MatrixFull<T>

Performs the * operation. Read more
Source§

impl<'a, T> ParMathMatrix<'a, T> for SubMatrixFull<'a, T>
where T: Copy + Clone + Send + Sync,

Source§

fn par_add<Q>(&'a self, other: &'a Q) -> Option<MatrixFull<T>>
where T: Add<Output = T> + AddAssign, Q: BasicMatrix<'a, T>, Self: Sized,

Parallel version for C = A + B,
Source§

fn par_scaled_add<Q>(&'a self, other: &'a Q, fac: T) -> Option<MatrixFull<T>>
where T: Add<Output = T> + AddAssign + Mul<Output = T> + MulAssign, Q: BasicMatrix<'a, T>, Self: Sized,

Parallel version for C = A + c*B,
Source§

fn par_self_add<Q>(&mut self, bm: &'a Q)
where T: Add + AddAssign, Q: BasicMatrix<'a, T>, Self: Sized,

Parallel version for A + B -> A
Source§

fn par_self_scaled_add<Q>(&mut self, bm: &'a Q, b: T)
where T: Add + AddAssign + Mul<Output = T> + MulAssign, Q: BasicMatrix<'a, T>,

Parallel version for A + b*B -> A
Source§

fn par_self_general_add<Q>(&'a mut self, bm: &'a Q, a: T, b: T)
where T: Add<Output = T> + AddAssign + Mul<Output = T>, Q: BasicMatrix<'a, T>,

Parallel version for aA + bB -> A
Source§

fn par_sub<Q>(&'a self, other: &'a Q) -> Option<MatrixFull<T>>
where T: Sub + SubAssign, Q: BasicMatrix<'a, T>,

Parallel version for A - B -> C
Source§

fn par_self_sub<Q>(&mut self, bm: &'a Q)
where T: Sub + SubAssign, Q: BasicMatrix<'a, T>,

Parallel version for A - B -> A
Source§

fn par_self_multiple(&mut self, a: T)
where T: Mul<Output = T> + MulAssign,

Parallel version for a*A -> A
Source§

impl<'a, T: Copy + Clone + Sub<Output = T> + SubAssign> Sub<MatrixFull<T>> for SubMatrixFull<'a, T>

Source§

type Output = MatrixFull<T>

The resulting type after applying the - operator.
Source§

fn sub(self, other: MatrixFull<T>) -> MatrixFull<T>

Performs the - operation. Read more
Source§

impl<'a, T: Copy + Clone + Sub + SubAssign> Sub<SubMatrixFull<'a, T>> for MatrixFull<T>

Source§

type Output = MatrixFull<T>

The resulting type after applying the - operator.
Source§

fn sub(self, other: SubMatrixFull<'_, T>) -> MatrixFull<T>

Performs the - operation. Read more
Source§

impl<'a, T: Copy + Clone + Sub + SubAssign> Sub<T> for SubMatrixFull<'a, T>

Source§

type Output = MatrixFull<T>

The resulting type after applying the - operator.
Source§

fn sub(self, f: T) -> MatrixFull<T>

Performs the - operation. Read more
Source§

impl<'a, T: Copy + Clone + Sub + SubAssign> SubAssign<SubMatrixFull<'a, T>> for MatrixFull<T>

Source§

fn sub_assign(&mut self, other: SubMatrixFull<'_, T>)

Performs the -= operation. Read more
Source§

impl<'a, T: Copy + Clone + Sub + SubAssign> SubAssign<SubMatrixFull<'a, T>> for SubMatrixFullMut<'a, T>

Source§

fn sub_assign(&mut self, other: SubMatrixFull<'_, T>)

Performs the -= operation. Read more

Auto Trait Implementations§

§

impl<'a, T> Freeze for SubMatrixFull<'a, T>

§

impl<'a, T> RefUnwindSafe for SubMatrixFull<'a, T>
where T: RefUnwindSafe,

§

impl<'a, T> Send for SubMatrixFull<'a, T>
where T: Sync,

§

impl<'a, T> Sync for SubMatrixFull<'a, T>
where T: Sync,

§

impl<'a, T> Unpin for SubMatrixFull<'a, T>

§

impl<'a, T> UnwindSafe for SubMatrixFull<'a, T>
where T: RefUnwindSafe,

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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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.