The nvmath.sparse module is experimental and potentially subject to future changes.

DirectSolverSolutionPreferences#

class nvmath.sparse.advanced.DirectSolverSolutionPreferences(
*,
solution_algorithm: SolveAlg | None = None,
ir_num_steps: int | None = None,
)[source]#

A data class for providing solution preferences to the direct_solver() function.

solution_algorithm#

The solution algorithm to use.

Type:

nvmath.bindings.cudss.SolveAlg | None

ir_num_steps#

The number of steps to use for iterative refinement.

Type:

int | None