pub struct MatrixUpper<T> {
pub size: usize,
pub data: Vec<T>,
}
Fields§
§size: usize
§data: Vec<T>
Implementations§
Source§impl<T> MatrixUpper<T>
impl<T> MatrixUpper<T>
pub fn empty() -> MatrixUpper<T>
pub unsafe fn from_vec_unchecked(size: usize, new_vec: Vec<T>) -> MatrixUpper<T>
pub fn from_vec(size: usize, new_vec: Vec<T>) -> Option<MatrixUpper<T>>
pub fn to_slice_mut(&mut self) -> &mut [T]
pub fn to_matrixupperslicemut(&mut self) -> MatrixUpperSliceMut<'_, T>
pub fn size(&self) -> [usize; 2]
pub fn get_diagonal_terms(&self) -> Option<Vec<&T>>
Source§impl<T: Copy + Clone> MatrixUpper<T>
impl<T: Copy + Clone> MatrixUpper<T>
pub fn new(size: usize, new_default: T) -> MatrixUpper<T>
pub fn to_matrixfull(&self) -> Option<MatrixFull<T>>
Source§impl MatrixUpper<f64>
impl MatrixUpper<f64>
pub fn formated_output(&self, n_len: usize, mat_form: &str)
Trait Implementations§
Source§impl<T: Copy + Clone + Display + Send + Sync + Add + AddAssign> Add for MatrixUpper<T>
impl<T: Copy + Clone + Display + Send + Sync + Add + AddAssign> Add for MatrixUpper<T>
Source§type Output = MatrixUpper<T>
type Output = MatrixUpper<T>
The resulting type after applying the
+
operator.Source§fn add(self, other: MatrixUpper<T>) -> MatrixUpper<T>
fn add(self, other: MatrixUpper<T>) -> MatrixUpper<T>
Performs the
+
operation. Read moreSource§impl<T: Clone> Clone for MatrixUpper<T>
impl<T: Clone> Clone for MatrixUpper<T>
Source§fn clone(&self) -> MatrixUpper<T>
fn clone(&self) -> MatrixUpper<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for MatrixUpper<T>
impl<T: Debug> Debug for MatrixUpper<T>
Source§impl<T, I: SliceIndex<[T]>> Index<I> for MatrixUpper<T>
impl<T, I: SliceIndex<[T]>> Index<I> for MatrixUpper<T>
Source§impl<T, I: SliceIndex<[T]>> IndexMut<I> for MatrixUpper<T>
impl<T, I: SliceIndex<[T]>> IndexMut<I> for MatrixUpper<T>
Source§impl<T: PartialEq> PartialEq for MatrixUpper<T>
impl<T: PartialEq> PartialEq for MatrixUpper<T>
Source§impl<T: Clone + Display + Send + Sync + Sub + SubAssign> Sub for MatrixUpper<T>
impl<T: Clone + Display + Send + Sync + Sub + SubAssign> Sub for MatrixUpper<T>
Source§type Output = MatrixUpper<T>
type Output = MatrixUpper<T>
The resulting type after applying the
-
operator.Source§fn sub(self, other: MatrixUpper<T>) -> MatrixUpper<T>
fn sub(self, other: MatrixUpper<T>) -> MatrixUpper<T>
Performs the
-
operation. Read moreSource§impl<T> TensorOpt<T> for MatrixUpper<T>
impl<T> TensorOpt<T> for MatrixUpper<T>
Source§impl<'a, T> TensorOptMut<'a, T> for MatrixUpper<T>
impl<'a, T> TensorOptMut<'a, T> for MatrixUpper<T>
fn get1d_mut(&mut self, position: usize) -> Option<&mut T>
fn get2d_mut(&mut self, position: [usize; 2]) -> Option<&mut T>
fn get_mut(&mut self, position: &[usize]) -> Option<&mut T>
fn set1d(&mut self, position: usize, new_data: T)
fn set2d(&mut self, position: [usize; 2], new_data: T)
fn set(&mut self, position: &[usize], new_data: T)
fn get3d_mut(&mut self, position: [usize; 3]) -> Option<&mut T>
fn get4d_mut(&mut self, position: [usize; 4]) -> Option<&mut T>
fn set3d(&mut self, position: [usize; 3], new_data: T)
fn set4d(&mut self, position: [usize; 4], new_data: T)
Source§impl<'a, T> TensorOptMutUncheck<'a, T> for MatrixUpper<T>
impl<'a, T> TensorOptMutUncheck<'a, T> for MatrixUpper<T>
Source§impl<T> TensorOptUncheck<T> for MatrixUpper<T>
impl<T> TensorOptUncheck<T> for MatrixUpper<T>
Source§impl<T> TensorSlice<T> for MatrixUpper<T>
impl<T> TensorSlice<T> for MatrixUpper<T>
fn get1d_slice(&self, position: usize, length: usize) -> Option<&[T]>
fn get2d_slice(&self, position: [usize; 2], length: usize) -> Option<&[T]>
fn get_slice(&self, position: &[usize], length: usize) -> Option<&[T]>
fn get3d_slice(&self, position: [usize; 3], length: usize) -> Option<&[T]>
fn get4d_slice(&self, position: [usize; 4], length: usize) -> Option<&[T]>
Source§impl<'a, T> TensorSliceMut<'a, T> for MatrixUpper<T>
impl<'a, T> TensorSliceMut<'a, T> for MatrixUpper<T>
fn get1d_slice_mut( &mut self, position: usize, length: usize, ) -> Option<&mut [T]>
fn get2d_slice_mut( &mut self, position: [usize; 2], length: usize, ) -> Option<&mut [T]>
fn get_slice_mut( &mut self, position: &[usize], length: usize, ) -> Option<&mut [T]>
fn get3d_slice_mut( &mut self, position: [usize; 3], length: usize, ) -> Option<&mut [T]>
fn get4d_slice_mut( &mut self, position: [usize; 4], length: usize, ) -> Option<&mut [T]>
Source§impl<'a, T> TensorSliceMutUncheck<'a, T> for MatrixUpper<T>
impl<'a, T> TensorSliceMutUncheck<'a, T> for MatrixUpper<T>
Source§impl<T> TensorSliceUncheck<T> for MatrixUpper<T>
impl<T> TensorSliceUncheck<T> for MatrixUpper<T>
impl<T> StructuralPartialEq for MatrixUpper<T>
Auto Trait Implementations§
impl<T> Freeze for MatrixUpper<T>
impl<T> RefUnwindSafe for MatrixUpper<T>where
T: RefUnwindSafe,
impl<T> Send for MatrixUpper<T>where
T: Send,
impl<T> Sync for MatrixUpper<T>where
T: Sync,
impl<T> Unpin for MatrixUpper<T>where
T: Unpin,
impl<T> UnwindSafe for MatrixUpper<T>where
T: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.