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

nonzero_g_indices and nonzero_g_vectors functions #196

Merged
merged 6 commits into from
Nov 11, 2023

Conversation

brainandforce
Copy link
Owner

In many cases, a wavefunction will have a significant number of G-vectors with no coefficients ever having a nonzero value. This allows a user to obtain a Vector{CartesianIndex{D}} or a Vector{SVector{D}} of the nonzero G-vectors depending on the need.

Copy link

codecov bot commented Nov 11, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (18ea574) 59.27% compared to head (00c4104) 59.63%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #196      +/-   ##
==========================================
+ Coverage   59.27%   59.63%   +0.36%     
==========================================
  Files          20       20              
  Lines        1429     1432       +3     
==========================================
+ Hits          847      854       +7     
+ Misses        582      578       -4     
Files Coverage Δ
src/Electrum.jl 60.00% <ø> (ø)
src/data/wavefunctions.jl 72.72% <100.00%> (+6.06%) ⬆️

... and 1 file with indirect coverage changes

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

@brainandforce brainandforce merged commit 82d5efb into main Nov 11, 2023
5 checks passed
@brainandforce brainandforce deleted the features/nonzero-g-vectors branch November 11, 2023 16:03
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.

1 participant