pub struct Solver<T> {
pub sparse: Matrix<T>,
pub ilu: Preconditioner<T>,
pub merge_buffer: Vec<usize>,
pub r_vec: Vec<T>,
pub u_vec: Vec<T>,
pub conv: Vec<T>,
pub conv_ratio_tol: T,
pub max_num_iteration: usize,
pub ap_vec: Vec<T>,
pub p_vec: Vec<T>,
}Expand description
class of linear system solver
sparse- sparse square coefficient matrixr_vec- residual vector (i.e., rhs vector)
Fields§
§sparse: Matrix<T>§ilu: Preconditioner<T>§merge_buffer: Vec<usize>§r_vec: Vec<T>§u_vec: Vec<T>§conv: Vec<T>§conv_ratio_tol: T§max_num_iteration: usize§ap_vec: Vec<T>§p_vec: Vec<T>Implementations§
Auto Trait Implementations§
impl<T> Freeze for Solver<T>where
T: Freeze,
impl<T> RefUnwindSafe for Solver<T>where
T: RefUnwindSafe,
impl<T> Send for Solver<T>where
T: Send,
impl<T> Sync for Solver<T>where
T: Sync,
impl<T> Unpin for Solver<T>where
T: Unpin,
impl<T> UnwindSafe for Solver<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<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.