Skip to main content

SuperLuDistSolver

Struct SuperLuDistSolver 

Source
pub struct SuperLuDistSolver { /* private fields */ }
Available on crate feature superlu_dist only.
Expand description

SuperLU_DIST distributed direct solver

Implementations§

Source§

impl SuperLuDistSolver

Source

pub fn new() -> Self

Create a new SuperLU_DIST solver with default options

Source

pub fn with_options(options: SuperLuDistOptions) -> Self

Create a new SuperLU_DIST solver with custom options

Source

pub fn set_diagonal_pivot_threshold(&mut self, threshold: f64) -> &mut Self

Set the diagonal pivot threshold

Source

pub fn set_column_permutation(&mut self, perm: ColumnPermutation) -> &mut Self

Set the column permutation strategy

Source

pub fn set_iterative_refinement( &mut self, refine: IterativeRefinement, ) -> &mut Self

Set the iterative refinement strategy

Source

pub fn set_print_level(&mut self, level: u8) -> &mut Self

Set the print level for diagnostics

Source

pub fn set_panel_size(&mut self, size: usize) -> &mut Self

Set the panel size for local dense factorization

Source

pub fn set_3d_factorization( &mut self, enable: bool, depth: Option<usize>, ) -> &mut Self

Enable 3D communication-avoiding factorization

Source

pub fn set_memory_tradeoff(&mut self, factor: f64) -> &mut Self

Set memory trade-off factor for 3D algorithm

Source

pub fn set_max_concurrent_panels(&mut self, max_panels: usize) -> &mut Self

Set maximum concurrent panels

Source

pub fn set_async_panel_updates(&mut self, enable: bool) -> &mut Self

Enable asynchronous panel updates

Source

pub fn set_static_pivoting(&mut self, enable: bool) -> &mut Self

Set static pivoting mode

Source

pub fn set_row_permutation(&mut self, perm: RowPermutation) -> &mut Self

Set the row permutation strategy

Source

pub fn set_replace_tiny_pivots(&mut self, enable: bool) -> &mut Self

Set whether to replace tiny pivots

Source

pub fn set_process_grid(&mut self, rows: usize, cols: usize) -> &mut Self

Set the process grid dimensions

Source

pub fn set_process_grid_auto(&mut self) -> &mut Self

Use automatic process grid determination

Source

pub fn with_complete_options(self, options: SuperLuDistOptions) -> Self

Configure a complete set of options via SuperLuDistOptions

Source

pub fn builder() -> SuperLuDistBuilder

Create a new solver with fluent configuration

Source

pub fn options(&self) -> &SuperLuDistOptions

Get a reference to the current options

Source

pub fn enable_iterative_refinement(&mut self) -> &mut Self

Enable iterative refinement with default configuration

Source

pub fn set_refinement_config(&mut self, config: RefinementConfig) -> &mut Self

Configure iterative refinement with custom settings

Source

pub fn set_residual_method(&mut self, method: ResidualMethod) -> &mut Self

Set the residual computation method for iterative refinement

Source

pub fn disable_iterative_refinement(&mut self) -> &mut Self

Disable iterative refinement

Source

pub fn refinement_stats(&self) -> Option<&RefinementStats>

Get refinement statistics from the last solve (if available)

Source

pub fn set_workspace_memory_limit(&mut self, limit_mb: usize) -> &mut Self

Configure workspace memory settings

Source

pub fn set_aggressive_memory_reuse(&mut self, enable: bool) -> &mut Self

Enable aggressive memory reuse for better performance

Source

pub fn set_preallocation_strategy( &mut self, strategy: PreallocationStrategy, ) -> &mut Self

Set workspace preallocation strategy

Source

pub fn workspace_memory_stats(&self) -> Option<WorkspaceMemoryStats>

Get workspace memory statistics (if workspace is set up)

Source

pub fn optimize_workspace(&mut self) -> Result<(), KError>

Optimize workspace memory usage

Source

pub fn clear_workspace_temp_data(&mut self) -> Result<(), KError>

Clear workspace temporary data to free memory

Source

pub fn workspace_needs_cleanup(&self) -> bool

Check if workspace needs cleanup due to memory pressure

Source

pub fn destroy(&mut self)

Destroy the factorization and free memory

Source

pub fn clear_factors(&mut self)

Source

pub fn has_factors(&self) -> bool

Trait Implementations§

Source§

impl Default for SuperLuDistSolver

Source§

fn default() -> Self

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

impl LinearSolver<CsrMatrix<f64>, Vec<f64>> for SuperLuDistSolver

Source§

type Error = KError

Source§

type Scalar = f64

Source§

fn solve( &mut self, a: &CsrMatrix<f64>, pc: Option<&(dyn Preconditioner<CsrMatrix<f64>, Vec<f64>> + '_)>, b: &Vec<f64>, x: &mut Vec<f64>, pc_side: PcSide, comm: &UniverseComm, monitors: Option<&[Box<MonitorCallback<Self::Scalar>>]>, _work: Option<&mut Workspace>, ) -> Result<SolveStats<f64>, KError>

Source§

fn setup_workspace(&mut self, _work: &mut Workspace)

Source§

fn solve_simple( &mut self, a: &M, pc: Option<&(dyn Preconditioner<M, V> + '_)>, b: &V, x: &mut V, pc_side: PcSide, comm: &UniverseComm, ) -> Result<SolveStats<Self::Scalar>, Self::Error>
where Self: Sized,

Source§

fn solve_with_monitors( &mut self, a: &M, pc: Option<&(dyn Preconditioner<M, V> + '_)>, b: &V, x: &mut V, pc_side: PcSide, comm: &UniverseComm, monitors: &[Box<MonitorCallback<Self::Scalar>>], ) -> Result<SolveStats<Self::Scalar>, Self::Error>
where Self: Sized,

Source§

fn solve_with_workspace( &mut self, a: &M, pc: Option<&(dyn Preconditioner<M, V> + '_)>, b: &V, x: &mut V, pc_side: PcSide, comm: &UniverseComm, work: &mut Workspace, ) -> Result<SolveStats<Self::Scalar>, Self::Error>
where Self: Sized,

Source§

impl Solver<CsrMatrix<f64>> for SuperLuDistSolver

Source§

type Error = KError

Source§

fn setup( &mut self, a: &CsrMatrix<f64>, comm: &UniverseComm, ) -> Result<(), Self::Error>

Source§

fn factor(&mut self, a: &CsrMatrix<f64>) -> Result<(), Self::Error>

Source§

fn solve( &mut self, b: &[f64], x: &mut [f64], comm: &UniverseComm, ) -> Result<SolveStats<f64>, Self::Error>

Source§

fn reuse_factorization(&self) -> bool

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<Src, Scheme> ApproxFrom<Src, Scheme> for Src
where Scheme: ApproxScheme,

Source§

type Err = NoError

The error type produced by a failed conversion.
Source§

fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>

Convert the given value into an approximately equivalent representation.
Source§

impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src
where Dst: ApproxFrom<Src, Scheme>, Scheme: ApproxScheme,

Source§

type Err = <Dst as ApproxFrom<Src, Scheme>>::Err

The error type produced by a failed conversion.
Source§

fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>

Convert the subject into an approximately equivalent representation.
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> ByRef<T> for T

Source§

fn by_ref(&self) -> &T

Source§

impl<T, Dst> ConvAsUtil<Dst> for T

Source§

fn approx(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst>,

Approximate the subject with the default scheme.
Source§

fn approx_by<Scheme>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst, Scheme>, Scheme: ApproxScheme,

Approximate the subject with a specific scheme.
Source§

impl<T> ConvUtil for T

Source§

fn approx_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst>,

Approximate the subject to a given type with the default scheme.
Source§

fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst, Scheme>, Scheme: ApproxScheme,

Approximate the subject to a given type with a specific scheme.
Source§

fn into_as<Dst>(self) -> Dst
where Self: Sized + Into<Dst>,

Convert the subject to a given type.
Source§

fn try_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + TryInto<Dst>,

Attempt to convert the subject to a given type.
Source§

fn value_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + ValueInto<Dst>,

Attempt a value conversion of the subject to a given type.
Source§

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

Source§

fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> T
where Self: Distribution<T>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Imply<T> for U
where T: ?Sized, U: ?Sized,

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

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

Initializes a with the given initializer. Read more
Source§

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

Dereferences the given pointer. Read more
Source§

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

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

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

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ShellContext for T
where T: Send + Sync + Any,

Source§

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

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

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

unsafe 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

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

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

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

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

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

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

impl<Src> TryFrom<Src> for Src

Source§

type Err = NoError

The error type produced by a failed conversion.
Source§

fn try_from(src: Src) -> Result<Src, <Src as TryFrom<Src>>::Err>

Convert the given value into the subject type.
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<Src, Dst> TryInto<Dst> for Src
where Dst: TryFrom<Src>,

Source§

type Err = <Dst as TryFrom<Src>>::Err

The error type produced by a failed conversion.
Source§

fn try_into(self) -> Result<Dst, <Src as TryInto<Dst>>::Err>

Convert the subject into the destination type.
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<Src> ValueFrom<Src> for Src

Source§

type Err = NoError

The error type produced by a failed conversion.
Source§

fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>

Convert the given value into an exactly equivalent representation.
Source§

impl<Src, Dst> ValueInto<Dst> for Src
where Dst: ValueFrom<Src>,

Source§

type Err = <Dst as ValueFrom<Src>>::Err

The error type produced by a failed conversion.
Source§

fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>

Convert the subject into an exactly equivalent representation.