Docs › Numerical API reference › onesim.numerics.linear
B.8 onesim.numerics.linear
AlgebraicMultigrid class
AlgebraicMultigrid(*, near_nullspace: object | None = None) -> None
Use a compatible multigrid preconditioner with optional near-nullspace information.
BlockPreconditioner class
BlockPreconditioner(*, solvers: tuple, blocks: tuple | None = None, sweep: str = 'diagonal') -> None
Use a diagonal or triangular sweep of inner solvers over an explicit or provider-owned block partition.
Methods and properties.
build(*, context=None)
Construct the bound executable component for the supplied context.
ComplexSparseDirect class
ComplexSparseDirect(*, preconditioner: object | None = None, scalar_type: str = 'complex', relative_tolerance: float = 1e-08, absolute_tolerance: float = 1e-12, maximum_iterations: int = 1000, factory: object | None = None) -> None
Select the complex sparse direct route, for example for frequency-domain Maxwell phasors.
Methods and properties.
bind(*, factory=None, context=None)
Bind this declaration to the supplied execution context and collaborators.
ConjugateGradient class
ConjugateGradient(*, preconditioner: object | None = None, scalar_type: str = 'real', relative_tolerance: float = 1e-08, absolute_tolerance: float = 1e-12, maximum_iterations: int = 1000, factory: object | None = None) -> None
Solve a compatible positive-definite symmetric or Hermitian linear system. Check the operator and preconditioner guarantees.
Methods and properties.
bind(*, factory=None, context=None)
Bind this declaration to the supplied execution context and collaborators.
FlexibleGMRES class
FlexibleGMRES(*, preconditioner: object | None = None, scalar_type: str = 'real', relative_tolerance: float = 1e-08, absolute_tolerance: float = 1e-12, maximum_iterations: int = 1000, factory: object | None = None, restart: int | None = None) -> None
Use flexible right preconditioning, retaining the actual preconditioned search vectors.
Methods and properties.
bind(*, factory=None, context=None)
Bind this declaration to the supplied execution context and collaborators.
GMRES class
GMRES(*, preconditioner: object | None = None, scalar_type: str = 'real', relative_tolerance: float = 1e-08, absolute_tolerance: float = 1e-12, maximum_iterations: int = 1000, factory: object | None = None, restart: int | None = None) -> None
Select restarted or unrestarted GMRES with tolerances, scalar type, and an optional compatible preconditioner.
Methods and properties.
bind(*, factory=None, context=None)
Bind this declaration to the supplied execution context and collaborators.
ILU class
ILU(*, fill_factor: float = 1.0, drop_tolerance: float = 0.0) -> None
Use incomplete sparse factorization with selectable fill and drop tolerance.
Methods and properties. method_id. Read the registered method identity.
RightGMRES class
RightGMRES(*, preconditioner: object | None = None, scalar_type: str = 'real', relative_tolerance: float = 1e-08, absolute_tolerance: float = 1e-12, maximum_iterations: int = 1000, factory: object | None = None, restart: int | None = None) -> None
Use fixed right preconditioning and check convergence on the physical residual.
Methods and properties.
bind(*, factory=None, context=None)
Bind this declaration to the supplied execution context and collaborators.
SchurPreconditioner class
SchurPreconditioner(*, solvers: tuple, blocks: tuple | None = None, approximation: object | None = None) -> None
Use a leading-block solve and Schur-complement solve, with an optional approximation.
Methods and properties.
build(*, context=None)
Construct the bound executable component for the supplied context.
SparseDirect class
SparseDirect(*, preconditioner: object | None = None, scalar_type: str = 'real', relative_tolerance: float = 1e-08, absolute_tolerance: float = 1e-12, maximum_iterations: int = 1000, factory: object | None = None) -> None
Select assembled sparse factorization for the declared scalar type and available provider.
Methods and properties.
bind(*, factory=None, context=None)
Bind this declaration to the supplied execution context and collaborators.