Contents

init(type:mem:apply:)

Creates a new double-precision preconditioner.

Declaration

init(type: SparsePreconditioner_t, mem: UnsafeMutableRawPointer, apply: (UnsafeMutableRawPointer, CBLAS_TRANSPOSE, DenseMatrix_Double, DenseMatrix_Double) -> Void)

Parameters

  • type:

    The preconditioner type.

  • mem:

    The unaltered memory pointer that passes as the first parameter of the apply function.

  • apply:

    A function that calculates Y = PX, where P is the preconditioner.