Skip to main content

iterativeSolvers

Struct iterativeSolvers 

Source
#[repr(C)]
pub struct iterativeSolvers {
Show 24 fields pub d__vectors: *mut f32, pub q: *mut f32, pub x: *mut f32, pub r: *mut f32, pub p: *mut f32, pub z: *mut f32, pub nu_i: *mut f32, pub nu_im1: *mut f32, pub nu_ip1: *mut f32, pub w_i: *mut f32, pub w_im1: *mut f32, pub w_im2: *mut f32, pub rnorm: f32, pub rel_rnorm: f32, pub mean_time_per_iteration: f32, pub RTOL: f32, pub ATOL: f32, pub N: c_int, pub N_ITERATION: c_int, pub cvgce_iteration: c_int, pub tid: stopwatch, pub handle: cublasHandle_t, pub status: cublasStatus_t, pub VERBOSE: c_char,
}

Fields§

§d__vectors: *mut f32§q: *mut f32§x: *mut f32§r: *mut f32§p: *mut f32§z: *mut f32§nu_i: *mut f32§nu_im1: *mut f32§nu_ip1: *mut f32§w_i: *mut f32§w_im1: *mut f32§w_im2: *mut f32§rnorm: f32§rel_rnorm: f32§mean_time_per_iteration: f32§RTOL: f32§ATOL: f32§N: c_int§N_ITERATION: c_int§cvgce_iteration: c_int§tid: stopwatch§handle: cublasHandle_t§status: cublasStatus_t§VERBOSE: c_char

Implementations§

Source§

impl iterativeSolvers

Source

pub unsafe fn cg_setup(&mut self, n_vector: c_int)

Source

pub unsafe fn pcg_setup(&mut self, n_vector: c_int)

Source

pub unsafe fn minres_setup(&mut self, n_vector: c_int)

Source

pub unsafe fn cleanup(&mut self)

Source

pub unsafe fn cg( &mut self, x: *mut f32, A: *mut BTBT, b: *mut f32, max_it: c_int, x0: *mut f32, )

Source

pub unsafe fn pcg( &mut self, x: *mut f32, A: *mut BTBT, b: *mut f32, max_it: c_int, x0: *mut f32, ip: f32, )

Source

pub unsafe fn sym_ortho( &mut self, c: *mut f32, s: *mut f32, r: *mut f32, a: *mut f32, b: *mut f32, )

Source

pub unsafe fn lanczos_step( &mut self, alpha: *mut f32, beta: *mut f32, nu_kp1: *mut f32, A: *mut BTBT, nu_k: *mut f32, nu_km1: *mut f32, sigma: f32, )

Source

pub unsafe fn minres_vorst( &mut self, x: *mut f32, A: *mut BTBT, b: *mut f32, x0: *mut f32, )

Source

pub unsafe fn minres_vorst1( &mut self, x: *mut f32, A: *mut BTBT, b: *mut f32, max_it: c_int, x0: *mut f32, )

Source

pub unsafe fn minres_vorst2( &mut self, x: *mut f32, A: *mut BTBT, b: *mut f32, rtol: f32, x0: *mut f32, )

Source

pub unsafe fn pminres_vorst( &mut self, x: *mut f32, A: *mut BTBT, b: *mut f32, max_it: c_int, x0: *mut f32, ip: f32, )

Source

pub unsafe fn minres_vorst3( &mut self, x: *mut f32, res: *mut f32, A: *mut BTBT, b: *mut f32, max_it: c_int, x0: *mut f32, )

Source

pub unsafe fn minres_choi( &mut self, x: *mut f32, A: *mut BTBT, b: *mut f32, max_it: c_int, x0: *mut f32, )

Trait Implementations§

Source§

impl Clone for iterativeSolvers

Source§

fn clone(&self) -> iterativeSolvers

Returns a duplicate 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 Debug for iterativeSolvers

Source§

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

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

impl Default for iterativeSolvers

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for iterativeSolvers

Source§

impl Send for iterativeSolvers

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.