pub struct MatrixInverseBlock<T: Apply<M>, M: Method> {
pub data: BlockData,
/* private fields */
}Expand description
Inverts a matrix using either a standard inverse or a pseudo-inverse based on the method specified.
This can either attempt to perform a standard matrix inversion on a square matrix, or a pseudo-inverse using SVD for matrices that may or may not be square. The output type of the block is a tuple of (<input_type>, bool), where the bool indicates whether the inversion was successful.
Fields§
§data: BlockDataTrait Implementations§
Source§impl<T, M> Default for MatrixInverseBlock<T, M>
impl<T, M> Default for MatrixInverseBlock<T, M>
Source§impl<T: Apply<M>, M: Method> IsValid for MatrixInverseBlock<T, M>
impl<T: Apply<M>, M: Method> IsValid for MatrixInverseBlock<T, M>
fn is_valid(&self, _: f64) -> OldBlockData
Source§impl<T, M> ProcessBlock for MatrixInverseBlock<T, M>
impl<T, M> ProcessBlock for MatrixInverseBlock<T, M>
Auto Trait Implementations§
impl<T, M> Freeze for MatrixInverseBlock<T, M>where
<T as Apply<M>>::Output: Freeze,
impl<T, M> RefUnwindSafe for MatrixInverseBlock<T, M>where
<T as Apply<M>>::Output: RefUnwindSafe,
impl<T, M> Send for MatrixInverseBlock<T, M>where
<T as Apply<M>>::Output: Send,
impl<T, M> Sync for MatrixInverseBlock<T, M>where
<T as Apply<M>>::Output: Sync,
impl<T, M> Unpin for MatrixInverseBlock<T, M>where
<T as Apply<M>>::Output: Unpin,
impl<T, M> UnsafeUnpin for MatrixInverseBlock<T, M>where
<T as Apply<M>>::Output: UnsafeUnpin,
impl<T, M> UnwindSafe for MatrixInverseBlock<T, M>where
<T as Apply<M>>::Output: 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<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.