Skip to content

Commit

Permalink
Specialize cholcopy to avoid scalar indexing. (#1716)
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Jan 5, 2023
1 parent 94e7edb commit f9af125
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/cusolver/linalg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -356,4 +356,7 @@ if VERSION >= v"1.8-"
C, info = LinearAlgebra._chol!(copy(parent(A)), A.uplo == 'U' ? UpperTriangular : LowerTriangular)
return Cholesky(C.data, A.uplo, info)
end

LinearAlgebra.cholcopy(A::LinearAlgebra.RealHermSymComplexHerm{<:Any,<:CuArray}) =
copyto!(similar(A, LinearAlgebra.choltype(A)), A)
end

0 comments on commit f9af125

Please sign in to comment.