Struct rest_tensors::matrix::matrixupper::MatrixUpper
source · 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<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.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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
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<MatrixUpper<T>> for MatrixUpper<T>
impl<T: PartialEq> PartialEq<MatrixUpper<T>> for MatrixUpper<T>
source§fn eq(&self, other: &MatrixUpper<T>) -> bool
fn eq(&self, other: &MatrixUpper<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<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.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> 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§
§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 more§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).§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.