Skip to content
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 definition of det #161

Merged
merged 1 commit into from
May 8, 2022
Merged

Add definition of det #161

merged 1 commit into from
May 8, 2022

Conversation

devmotion
Copy link
Member

Currently for det(::AbstractPDMat) the generic fallback in LinearAlgebra is used (https://github.com/JuliaLang/julia/blob/d4acead9130f97f0135bee604d94e1f67dabc70f/stdlib/LinearAlgebra/src/generic.jl#L1598-L1604) which performs an LU decomposition. This PR adds more efficient definitions for PDMat, PDSparseMat, ScalMat and PDiagMat.

@codecov-commenter
Copy link

codecov-commenter commented May 8, 2022

Codecov Report

Merging #161 (6362c92) into master (84df00b) will increase coverage by 0.09%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #161      +/-   ##
==========================================
+ Coverage   90.14%   90.24%   +0.09%     
==========================================
  Files           8        8              
  Lines         406      410       +4     
==========================================
+ Hits          366      370       +4     
  Misses         40       40              
Impacted Files Coverage Δ
src/pdiagmat.jl 98.96% <100.00%> (+0.01%) ⬆️
src/pdmat.jl 98.21% <100.00%> (+0.03%) ⬆️
src/pdsparsemat.jl 94.23% <100.00%> (+0.11%) ⬆️
src/scalmat.jl 96.61% <100.00%> (+0.05%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 84df00b...6362c92. Read the comment docs.

@devmotion devmotion merged commit 156a4d2 into master May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants