Skip to content

Commit

Permalink
Fix the error with Hermtian matrices
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Dec 8, 2023
1 parent 006e180 commit 206bbdd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/generic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function LinearAlgebra.ldlt(A::CuSparseMatrixCSR{T,Cint}) where T <: BlasFloat
n = LinearAlgebra.checksquare(A)
structure = T <: Real ? 'S' : 'H'
solver = CudssSolver(A, structure, 'F')
(T <: Complex) && cudss_set(solver, "pivot_type", 'N')
x = CudssMatrix(T, n)
b = CudssMatrix(T, n)
cudss("analysis", solver, x, b)
Expand Down

0 comments on commit 206bbdd

Please sign in to comment.