DirectSolverSolutionPreferences#

class nvmath.sparse.advanced.DirectSolverSolutionPreferences(
*,
solution_algorithm: AlgType | 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.AlgType | None

ir_num_steps#

The number of steps to use for iterative refinement.

Type:

int | None