Skip to content

Commit

Permalink
Fix LU getproperty invoke. (#1714)
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Jan 5, 2023
1 parent f9af125 commit 84aea71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cusolver/linalg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ function Base.getproperty(F::LU{T,<:StridedCuMatrix}, d::Symbol) where T
L = tril!(getfield(F, :factors)[1:m, 1:min(m,n)])
L[1:min(m,n)+1:end] .= one(T) # set the diagonal (linear indexing trick)
return L
elseif VERSION >= v"1.9.0-DEV.1775"
invoke(getproperty, Tuple{LU{T}, Symbol}, F, d)
else
invoke(getproperty, Tuple{LU{T,<:StridedMatrix}, Symbol}, F, d)
end
Expand Down

0 comments on commit 84aea71

Please sign in to comment.