mtl5.mixed.iterative_refine#

mtl5.mixed.iterative_refine(...)#

Overloaded function.

  1. iterative_refine(A: mtl5._core.SparseMatrix_f64, M: PreconditionerWrapper<mtl::itl::pc::ilu_0<double, mtl::mat::parameters<mtl::tag::row_major, mtl::detail::c_index, mtl::mat::non_fixed::dimensions, mtl::tag::on_heap, unsigned long>, void>, double>, b: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False], max_iter: int = 20, rel_tol: float = 0.0, scaled: bool = False, patience: int = 3) -> tuple[numpy.ndarray[dtype=float64, shape=(*)], dict]

Refine a solution of A x = b through a factorization M exposing solve(). A and b are float64; M may be a narrower precision, which is the mixed-precision workflow. Returns (x, info).

  1. iterative_refine(A: mtl5._core.SparseMatrix_f64, M: PreconditionerWrapper<mtl::itl::pc::ic_0<double, mtl::mat::parameters<mtl::tag::row_major, mtl::detail::c_index, mtl::mat::non_fixed::dimensions, mtl::tag::on_heap, unsigned long>, void>, double>, b: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False], max_iter: int = 20, rel_tol: float = 0.0, scaled: bool = False, patience: int = 3) -> tuple[numpy.ndarray[dtype=float64, shape=(*)], dict]

  2. iterative_refine(A: mtl5._core.SparseMatrix_f64, M: mtl5._core.SparseLU_f64, b: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False], max_iter: int = 20, rel_tol: float = 0.0, scaled: bool = False, patience: int = 3) -> tuple[numpy.ndarray[dtype=float64, shape=(*)], dict]

Refine a solution of A x = b through a factorization M exposing solve(). A and b are float64; M may be a narrower precision, which is the mixed-precision workflow. Returns (x, info).

  1. iterative_refine(A: mtl5._core.SparseMatrix_f64, M: mtl5._core.SparseLU_f32, b: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False], max_iter: int = 20, rel_tol: float = 0.0, scaled: bool = False, patience: int = 3) -> tuple[numpy.ndarray[dtype=float64, shape=(*)], dict]

  2. iterative_refine(A: mtl5._core.SparseMatrix_f64, M: mtl5._core.KLU_f64, b: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False], max_iter: int = 20, rel_tol: float = 0.0, scaled: bool = False, patience: int = 3) -> tuple[numpy.ndarray[dtype=float64, shape=(*)], dict]

  3. iterative_refine(A: mtl5._core.SparseMatrix_f64, M: mtl5._core.KLU_f32, b: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False], max_iter: int = 20, rel_tol: float = 0.0, scaled: bool = False, patience: int = 3) -> tuple[numpy.ndarray[dtype=float64, shape=(*)], dict]

  4. iterative_refine(A: mtl5._core.SparseMatrix_f64, M: mtl5._core.SparseCholesky_f64, b: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False], max_iter: int = 20, rel_tol: float = 0.0, scaled: bool = False, patience: int = 3) -> tuple[numpy.ndarray[dtype=float64, shape=(*)], dict]

  5. iterative_refine(A: mtl5._core.SparseMatrix_f64, M: mtl5._core.SparseCholesky_f32, b: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False], max_iter: int = 20, rel_tol: float = 0.0, scaled: bool = False, patience: int = 3) -> tuple[numpy.ndarray[dtype=float64, shape=(*)], dict]

  6. iterative_refine(A: mtl5._core.SparseMatrix_f64, M: mtl5._core.SparseLDLT_f64, b: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False], max_iter: int = 20, rel_tol: float = 0.0, scaled: bool = False, patience: int = 3) -> tuple[numpy.ndarray[dtype=float64, shape=(*)], dict]

  7. iterative_refine(A: mtl5._core.SparseMatrix_f64, M: mtl5._core.SparseLDLT_f32, b: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False], max_iter: int = 20, rel_tol: float = 0.0, scaled: bool = False, patience: int = 3) -> tuple[numpy.ndarray[dtype=float64, shape=(*)], dict]

  8. iterative_refine(A: mtl5._core.SparseMatrix_f64, M: mtl5._core.SupernodalLU_f64, b: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False], max_iter: int = 20, rel_tol: float = 0.0, scaled: bool = False, patience: int = 3) -> tuple[numpy.ndarray[dtype=float64, shape=(*)], dict]

  9. iterative_refine(A: mtl5._core.SparseMatrix_f64, M: mtl5._core.SupernodalLU_f32, b: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False], max_iter: int = 20, rel_tol: float = 0.0, scaled: bool = False, patience: int = 3) -> tuple[numpy.ndarray[dtype=float64, shape=(*)], dict]

  10. iterative_refine(A: mtl5._core.SparseMatrix_f64, M: mtl5._core.SupernodalLDLT_f64, b: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False], max_iter: int = 20, rel_tol: float = 0.0, scaled: bool = False, patience: int = 3) -> tuple[numpy.ndarray[dtype=float64, shape=(*)], dict]

  11. iterative_refine(A: mtl5._core.SparseMatrix_f64, M: mtl5._core.SupernodalLDLT_f32, b: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False], max_iter: int = 20, rel_tol: float = 0.0, scaled: bool = False, patience: int = 3) -> tuple[numpy.ndarray[dtype=float64, shape=(*)], dict]

  12. iterative_refine(A: mtl5._core.SparseMatrix_f64, M: mtl5._core.ILU0_f64, b: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False], max_iter: int = 20, rel_tol: float = 0.0, scaled: bool = False, patience: int = 3) -> tuple[numpy.ndarray[dtype=float64, shape=(*)], dict]

  13. iterative_refine(A: mtl5._core.SparseMatrix_f64, M: mtl5._core.IC0_f64, b: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False], max_iter: int = 20, rel_tol: float = 0.0, scaled: bool = False, patience: int = 3) -> tuple[numpy.ndarray[dtype=float64, shape=(*)], dict]