Skip to content

Commit 5e1203a

Browse files
rm unnecessary code
1 parent 2b2dc17 commit 5e1203a

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

test/gpu/test_preconditioners.jl

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,3 @@ P = cudal1prec(B; n_threads=2, n_blocks=1)
2121
LinearSolve.ldiv!(y, P, x)
2222
## TODO: Add tests for the above code snippet
2323

24-
25-
26-
abstract type AbstractMatrixSymmetry end
27-
28-
struct SymmetricMatrix <: AbstractMatrixSymmetry end
29-
struct NonSymmetricMatrix <: AbstractMatrixSymmetry end
30-
31-
struct DeviceDiagonalIterator{MatrixType, MatrixSymmetry <: AbstractMatrixSymmetry}
32-
A::MatrixType
33-
end
34-
35-
matrix_symmetry_type(A::AbstractSparseMatrix) = isapprox(A, A',rtol=1e-12) ? SymmetricMatrix : NonSymmetricMatrix
36-
37-
DiagonalIterator(A::MatrixType) where {MatrixType} = DeviceDiagonalIterator{MatrixType,matrix_symmetry(A)}(A)

0 commit comments

Comments
 (0)