Struct HelmholtzWorkspace
pub struct HelmholtzWorkspace {
pub r: Vec<Complex64>,
pub r_hat: Vec<Complex64>,
pub p: Vec<Complex64>,
pub v: Vec<Complex64>,
pub s: Vec<Complex64>,
pub t: Vec<Complex64>,
}Expand description
Caller-owned workspace for zero-allocation BiCGSTAB and Jacobi Helmholtz solves.
Fields§
§r: Vec<Complex64>Residual vector $r$.
r_hat: Vec<Complex64>Shadow residual vector $\hat{r}_0$.
p: Vec<Complex64>Search direction $p$.
v: Vec<Complex64>Operator application $v = A p$.
s: Vec<Complex64>Intermediate residual $s = r - \alpha v$.
t: Vec<Complex64>Operator application $t = A s$.
Implementations§
§impl HelmholtzWorkspace
impl HelmholtzWorkspace
pub fn new(node_count: usize) -> HelmholtzWorkspace
pub fn new(node_count: usize) -> HelmholtzWorkspace
Allocate workspace for a grid with node_count nodes.
Trait Implementations§
§impl Clone for HelmholtzWorkspace
impl Clone for HelmholtzWorkspace
§fn clone(&self) -> HelmholtzWorkspace
fn clone(&self) -> HelmholtzWorkspace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HelmholtzWorkspace
impl RefUnwindSafe for HelmholtzWorkspace
impl Send for HelmholtzWorkspace
impl Sync for HelmholtzWorkspace
impl Unpin for HelmholtzWorkspace
impl UnsafeUnpin for HelmholtzWorkspace
impl UnwindSafe for HelmholtzWorkspace
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