We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 77d051f + 246552a commit 17913baCopy full SHA for 17913ba
src/SDiagonal.jl
@@ -95,6 +95,7 @@ else
95
sqrt(D::SDiagonal) = SDiagonal(sqrt.(D.diag))
96
end
97
LinearAlgebra.chol(D::SDiagonal) = SDiagonal(chol.(D.diag))
98
+LinearAlgebra.chol(D::SDiagonal{N, T}) where {N, T <: Number} = SDiagonal(sqrt.(D.diag))
99
LinearAlgebra._chol!(D::SDiagonal, ::Type{UpperTriangular}) = chol(D)
100
101
\(D::SDiagonal, B::StaticMatrix) = scalem(1 ./ D.diag, B)
0 commit comments