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

Partial evaluation of GreenFunctions #270

Merged
merged 9 commits into from
Apr 23, 2024
Merged

Partial evaluation of GreenFunctions #270

merged 9 commits into from
Apr 23, 2024

Conversation

pablosanjose
Copy link
Owner

@pablosanjose pablosanjose commented Apr 22, 2024

Closes #200

We add support for g´ = g(; param...) with g::GreenFunction. This gives a new GreenFunction that encloses a new type of g´::GreenSolver (of type FixedParamGreenSolver) that acts like a wrapper of the original one, but that overrides params when called. The new is completely decoupled from g (so this is not a lazy wrapper), much like h´ = h(; params...) with h::ParametricHamiltonian is decoupled from h.

(g::GreenSlice)(; params...) is also supported

@codecov-commenter
Copy link

codecov-commenter commented Apr 22, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 92.52%. Comparing base (55f1659) to head (be7a443).

Files Patch % Lines
src/greenfunction.jl 75.00% 2 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #270      +/-   ##
==========================================
- Coverage   92.54%   92.52%   -0.02%     
==========================================
  Files          37       37              
  Lines        6100     6101       +1     
==========================================
  Hits         5645     5645              
- Misses        455      456       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pablosanjose pablosanjose merged commit 2386988 into master Apr 23, 2024
9 checks passed
@pablosanjose pablosanjose deleted the gparams branch April 24, 2024 16:05
@pablosanjose pablosanjose mentioned this pull request Apr 25, 2024
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.

Add support for qplot(g(; params...)) analogous to qplot(h(; params))
2 participants