From 886200f0f2373c4d32423de1b7215bd3138b1eb3 Mon Sep 17 00:00:00 2001 From: Alexis Montoison <alexis.montoison@polymtl.ca> Date: Mon, 6 Mar 2023 18:22:38 -0500 Subject: [PATCH] [documentation] Use ILU(0) and IC(0) in the comments --- docs/src/gpu.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/gpu.md b/docs/src/gpu.md index 4415fba97..8e95eb84f 100644 --- a/docs/src/gpu.md +++ b/docs/src/gpu.md @@ -64,7 +64,7 @@ if CUDA.functional() A_gpu = CuSparseMatrixCSR(A_cpu) # A_gpu = CuSparseMatrixCSC(A_cpu) b_gpu = CuVector(b_cpu) - # Incomplete decomposition LLᴴ ≈ A for CuSparseMatrixCSC or CuSparseMatrixCSR matrices + # IC(0) decomposition LLᴴ ≈ A for CuSparseMatrixCSC or CuSparseMatrixCSR matrices P = ic02(A_gpu, 'O') # Additional vector required for solving triangular systems @@ -89,7 +89,7 @@ if CUDA.functional() symmetric = hermitian = true opM = LinearOperator(T, n, n, symmetric, hermitian, (y, x) -> ldiv_ic0!(P, x, y, z)) - # Solve an Hermitian positive definite system with an incomplete Cholesky preconditioner on GPU + # Solve an Hermitian positive definite system with an IC(0) preconditioner on GPU x, stats = cg(A_gpu, b_gpu, M=opM) end ``` @@ -111,7 +111,7 @@ if CUDA.functional() A_gpu = CuSparseMatrixCSR(A_cpu) # A_gpu = CuSparseMatrixCSC(A_cpu) b_gpu = CuVector(b_cpu) - # Incomplete decomposition LU ≈ A for CuSparseMatrixCSC or CuSparseMatrixCSR matrices + # ILU(0) decomposition LU ≈ A for CuSparseMatrixCSC or CuSparseMatrixCSR matrices P = ilu02(A_gpu, 'O') # Additional vector required for solving triangular systems @@ -136,7 +136,7 @@ if CUDA.functional() symmetric = hermitian = false opM = LinearOperator(T, n, n, symmetric, hermitian, (y, x) -> ldiv_ilu0!(P, x, y, z)) - # Solve a non-Hermitian system with an incomplete LU preconditioner on GPU + # Solve a non-Hermitian system with an ILU(0) preconditioner on GPU x, stats = bicgstab(A_gpu, b_gpu, M=opM) end ```