pub struct MatrixUpper<T> {
    pub size: usize,
    pub data: Vec<T>,
}

Fields§

§size: usize§data: Vec<T>

Implementations§

source§

impl<T> MatrixUpper<T>

source

pub fn empty() -> MatrixUpper<T>

source

pub unsafe fn from_vec_unchecked(size: usize, new_vec: Vec<T>) -> MatrixUpper<T>

source

pub fn from_vec(size: usize, new_vec: Vec<T>) -> Option<MatrixUpper<T>>

source

pub fn to_slice_mut(&mut self) -> &mut [T]

source

pub fn to_matrixupperslicemut(&mut self) -> MatrixUpperSliceMut<'_, T>

source

pub fn size(&self) -> [usize; 2]

source

pub fn get_diagonal_terms(&self) -> Option<Vec<&T>>

source§

impl<T: Copy + Clone> MatrixUpper<T>

source

pub fn new(size: usize, new_default: T) -> MatrixUpper<T>

source

pub fn to_matrixfull(&self) -> Option<MatrixFull<T>>

source§

impl MatrixUpper<f64>

source

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>

§

type Output = MatrixUpper<T>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl<T: Clone> Clone for MatrixUpper<T>

source§

fn clone(&self) -> MatrixUpper<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for MatrixUpper<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T, I: SliceIndex<[T]>> Index<I> for MatrixUpper<T>

§

type Output = <I as SliceIndex<[T]>>::Output

The returned type after indexing.
source§

fn index(&self, index: I) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl<T, I: SliceIndex<[T]>> IndexMut<I> for MatrixUpper<T>

source§

fn index_mut(&mut self, index: I) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
source§

impl<T: PartialEq> PartialEq<MatrixUpper<T>> for MatrixUpper<T>

source§

fn eq(&self, other: &MatrixUpper<T>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T: Clone + Display + Send + Sync + Sub + SubAssign> Sub<MatrixUpper<T>> for MatrixUpper<T>

§

type Output = MatrixUpper<T>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl<T> TensorOpt<T> for MatrixUpper<T>

source§

fn get1d(&self, position: usize) -> Option<&T>

source§

fn get2d(&self, position: [usize; 2]) -> Option<&T>

source§

fn get(&self, position: &[usize]) -> Option<&T>

source§

fn get3d(&self, position: [usize; 3]) -> Option<&T>

source§

fn get4d(&self, position: [usize; 4]) -> Option<&T>

source§

impl<'a, T> TensorOptMut<'a, T> for MatrixUpper<T>

source§

fn get1d_mut(&mut self, position: usize) -> Option<&mut T>

source§

fn get2d_mut(&mut self, position: [usize; 2]) -> Option<&mut T>

source§

fn get_mut(&mut self, position: &[usize]) -> Option<&mut T>

source§

fn set1d(&mut self, position: usize, new_data: T)

source§

fn set2d(&mut self, position: [usize; 2], new_data: T)

source§

fn set(&mut self, position: &[usize], new_data: T)

source§

fn get3d_mut(&mut self, position: [usize; 3]) -> Option<&mut T>

source§

fn get4d_mut(&mut self, position: [usize; 4]) -> Option<&mut T>

source§

fn set3d(&mut self, position: [usize; 3], new_data: T)

source§

fn set4d(&mut self, position: [usize; 4], new_data: T)

source§

impl<'a, T> TensorOptMutUncheck<'a, T> for MatrixUpper<T>

source§

fn get2d_mut_uncheck(&mut self, position: [usize; 2]) -> Option<&mut T>

source§

fn set2d_uncheck(&mut self, position: [usize; 2], new_data: T)

source§

fn get4d_mut_uncheck(&mut self, position: [usize; 4]) -> Option<&mut T>

source§

fn set4d_uncheck(&mut self, position: [usize; 4], new_data: T)

source§

impl<T> TensorOptUncheck<T> for MatrixUpper<T>

source§

fn get2d_uncheck(&self, position: [usize; 2]) -> Option<&T>

source§

fn get4d_uncheck(&self, position: [usize; 4]) -> Option<&T>

source§

impl<T> TensorSlice<T> for MatrixUpper<T>

source§

fn get1d_slice(&self, position: usize, length: usize) -> Option<&[T]>

source§

fn get2d_slice(&self, position: [usize; 2], length: usize) -> Option<&[T]>

source§

fn get_slice(&self, position: &[usize], length: usize) -> Option<&[T]>

source§

fn get3d_slice(&self, position: [usize; 3], length: usize) -> Option<&[T]>

source§

fn get4d_slice(&self, position: [usize; 4], length: usize) -> Option<&[T]>

source§

impl<'a, T> TensorSliceMut<'a, T> for MatrixUpper<T>

source§

fn get1d_slice_mut( &mut self, position: usize, length: usize ) -> Option<&mut [T]>

source§

fn get2d_slice_mut( &mut self, position: [usize; 2], length: usize ) -> Option<&mut [T]>

source§

fn get_slice_mut( &mut self, position: &[usize], length: usize ) -> Option<&mut [T]>

source§

fn get3d_slice_mut( &mut self, position: [usize; 3], length: usize ) -> Option<&mut [T]>

source§

fn get4d_slice_mut( &mut self, position: [usize; 4], length: usize ) -> Option<&mut [T]>

source§

impl<'a, T> TensorSliceMutUncheck<'a, T> for MatrixUpper<T>

source§

fn get2d_slice_mut_uncheck( &mut self, position: [usize; 2], length: usize ) -> Option<&mut [T]>

source§

fn get4d_slice_mut_uncheck( &mut self, position: [usize; 4], length: usize ) -> Option<&mut [T]>

source§

impl<T> TensorSliceUncheck<T> for MatrixUpper<T>

source§

fn get2d_slice_uncheck( &self, position: [usize; 2], length: usize ) -> Option<&[T]>

source§

fn get4d_slice_uncheck( &self, position: [usize; 4], length: usize ) -> Option<&[T]>

source§

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§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

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

Initializes a with the given initializer. Read more
§

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

Dereferences the given pointer. Read more
§

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

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

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

impl<T> Same<T> for T

§

type Output = T

Should always be Self
§

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

§

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

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

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

The inclusion map: converts self to the equivalent element of its superset.
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

impl<T> Scalar for Twhere T: 'static + Clone + PartialEq<T> + Debug,