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

WIP adjoint #126

Closed
wants to merge 3 commits into from
Closed

WIP adjoint #126

wants to merge 3 commits into from

Conversation

vpuri3
Copy link
Member

@vpuri3 vpuri3 commented Apr 18, 2022

should close #92

@coveralls
Copy link

coveralls commented Apr 18, 2022

Pull Request Test Coverage Report for Build 2192146140

  • 3 of 4 (75.0%) changed or added relevant lines in 2 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-1.2%) to 57.877%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/common.jl 1 2 50.0%
Files with Coverage Reduction New Missed Lines %
src/factorization.jl 1 73.64%
Totals Coverage Status
Change from base Build 2184492217: -1.2%
Covered Lines: 338
Relevant Lines: 584

💛 - Coveralls

@codecov
Copy link

codecov bot commented Apr 18, 2022

Codecov Report

Merging #126 (f43c264) into main (1bb2a3a) will increase coverage by 0.03%.
The diff coverage is 75.00%.

@@            Coverage Diff             @@
##             main     #126      +/-   ##
==========================================
+ Coverage   59.20%   59.24%   +0.03%     
==========================================
  Files          11       11              
  Lines         603      606       +3     
==========================================
+ Hits          357      359       +2     
- Misses        246      247       +1     
Impacted Files Coverage Δ
src/common.jl 72.91% <50.00%> (-1.00%) ⬇️
src/factorization.jl 75.52% <100.00%> (+0.17%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

Comment on lines +99 to +101
if solve_adjoint & !(alg isa Union{AbstractFactorization,
AbstractSolveFunction})
A = A'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why exclude? It should be done for all algs?

Comment on lines +14 to +16
fact = cache.solve_adjoint ? cache.cacheval' : cache.cacheval

y = _ldiv!(cache.u, fact, cache.b)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why adjoint the factorization object?

@vpuri3 vpuri3 closed this Dec 21, 2022
@vpuri3 vpuri3 deleted the vp-adjoint branch December 21, 2022 09:15
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.

linearsolve using the transpose of the factorization
3 participants