-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a fast method for diag
of Cholesky
matrices
#53767
Conversation
is the docstring necessary? i would say that it isn't. otherwise, seems pretty good |
Co-authored-by: Daniel Karrasch <[email protected]>
Does anyone know why the tests are failing? It seems to be failing for unrelated reasons https://buildkite.com/julialang/julia-master/builds/34771#018e51df-687f-4c40-b2b2-a44e7ab4b249 |
Co-authored-by: Daniel Karrasch <[email protected]>
You can ignore this failure. |
Should |
Actually, it seems its already defined in julia/stdlib/LinearAlgebra/src/generic.jl Lines 1021 to 1025 in 4ee1022
Do you think it helps to define it the way I have done it? |
Can the reviewers check if this is ready? |
The -function tr(A::AbstractMatrix)
+function tr(A) so that any type that defines |
@dev10110 Would you be willing and able to incorporate the comments? Afterwards, this nice contribution would be ready to go. |
Co-authored-by: Daniel Karrasch <[email protected]>
Normally
diag(C::Cholesky)
throws an error, and I was forced to dodiag(Array(C))
.But its faster to just compute the diagonal elements of the matrix directly, so I thought I would contribute this code.