Function

SparseCreatePreconditioner(_:_:)

Creates a preconditioner that can be applied quickly to the given matrix of single-precision values.

Declaration

func SparseCreatePreconditioner(_ type: SparsePreconditioner_t, _ A: SparseMatrix_Float) -> SparseOpaquePreconditioner_Float

Parameters

type

The type of preconditioner to create.

A

The matrix to construct a preconditioner for.

Return Value

A SparseOpaquePreconditioner_Float structure. The resource must be freed through a call to SparseCleanup(_:) once you are finished with the object.

See Also

Preconditioners

func SparseCreatePreconditioner(SparsePreconditioner_t, SparseMatrix_Double) -> SparseOpaquePreconditioner_Double

Creates a preconditioner that can be applied quickly to the given matrix of double-precision values.

struct SparseOpaquePreconditioner_Double

A structure that represents a double-precision preconditioner.

struct SparseOpaquePreconditioner_Float

A structure that represents a single-precision preconditioner.