Struct rest_tensors::matrix::matrixupper::MatrixUpper
source · [−]Fields
size: usize
data: Vec<T>
Implementations
sourceimpl<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]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub fn to_matrixupperslicemut(&mut self) -> MatrixUpperSliceMut<'_, T>
pub fn size(&self) -> [usize; 2]
pub fn get_diagonal_terms(&self) -> Option<Vec<&T>>
sourceimpl<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>>
sourceimpl MatrixUpper<f64>
impl MatrixUpper<f64>
pub fn formated_output(&self, n_len: usize, mat_form: &str)
Trait Implementations
sourceimpl<T: Copy + Clone + Display + Send + Sync + Add + AddAssign> Add<MatrixUpper<T>> for MatrixUpper<T>
impl<T: Copy + Clone + Display + Send + Sync + Add + AddAssign> Add<MatrixUpper<T>> for MatrixUpper<T>
type Output = MatrixUpper<T>
type Output = MatrixUpper<T>
The resulting type after applying the
+
operator.sourcefn add(self, other: MatrixUpper<T>) -> MatrixUpper<T>
fn add(self, other: MatrixUpper<T>) -> MatrixUpper<T>
Performs the
+
operation. Read moresourceimpl<T: Clone> Clone for MatrixUpper<T>
impl<T: Clone> Clone for MatrixUpper<T>
sourcefn clone(&self) -> MatrixUpper<T>
fn clone(&self) -> MatrixUpper<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T: Debug> Debug for MatrixUpper<T>
impl<T: Debug> Debug for MatrixUpper<T>
sourceimpl<T, I: SliceIndex<[T]>> Index<I> for MatrixUpper<T>
impl<T, I: SliceIndex<[T]>> Index<I> for MatrixUpper<T>
sourceimpl<T, I: SliceIndex<[T]>> IndexMut<I> for MatrixUpper<T>
impl<T, I: SliceIndex<[T]>> IndexMut<I> for MatrixUpper<T>
sourceimpl<T: PartialEq> PartialEq<MatrixUpper<T>> for MatrixUpper<T>
impl<T: PartialEq> PartialEq<MatrixUpper<T>> for MatrixUpper<T>
sourcefn eq(&self, other: &MatrixUpper<T>) -> bool
fn eq(&self, other: &MatrixUpper<T>) -> bool
sourceimpl<T: Clone + Display + Send + Sync + Sub + SubAssign> Sub<MatrixUpper<T>> for MatrixUpper<T>
impl<T: Clone + Display + Send + Sync + Sub + SubAssign> Sub<MatrixUpper<T>> for MatrixUpper<T>
type Output = MatrixUpper<T>
type Output = MatrixUpper<T>
The resulting type after applying the
-
operator.sourcefn sub(self, other: MatrixUpper<T>) -> MatrixUpper<T>
fn sub(self, other: MatrixUpper<T>) -> MatrixUpper<T>
Performs the
-
operation. Read moresourceimpl<T> TensorOpt<T> for MatrixUpper<T>
impl<T> TensorOpt<T> for MatrixUpper<T>
sourceimpl<'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)
sourceimpl<'a, T> TensorOptMutUncheck<'a, T> for MatrixUpper<T>
impl<'a, T> TensorOptMutUncheck<'a, T> for MatrixUpper<T>
fn get2d_mut_uncheck(&mut self, position: [usize; 2]) -> Option<&mut T>
fn set2d_uncheck(&mut self, position: [usize; 2], new_data: T)
fn get4d_mut_uncheck(&mut self, position: [usize; 4]) -> Option<&mut T>
fn set4d_uncheck(&mut self, position: [usize; 4], new_data: T)
sourceimpl<T> TensorOptUncheck<T> for MatrixUpper<T>
impl<T> TensorOptUncheck<T> for MatrixUpper<T>
sourceimpl<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]>
sourceimpl<'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]>
sourceimpl<'a, T> TensorSliceMutUncheck<'a, T> for MatrixUpper<T>
impl<'a, T> TensorSliceMutUncheck<'a, T> for MatrixUpper<T>
sourceimpl<T> TensorSliceUncheck<T> for MatrixUpper<T>
impl<T> TensorSliceUncheck<T> for MatrixUpper<T>
impl<T> StructuralPartialEq for MatrixUpper<T>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
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 morefn 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).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.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.