Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gext
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michele Nottoli
gext
Merge requests
!5
Guess for coefficients instead of density
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Guess for coefficients instead of density
coefficients
into
main
Overview
0
Commits
2
Pipelines
1
Changes
2
Merged
Michele Nottoli
requested to merge
coefficients
into
main
1 year ago
Overview
0
Commits
2
Pipelines
1
Changes
2
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
edd1566c
2 commits,
1 year ago
2 files
+
40
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
gext/main.py
+
7
−
2
Options
@@ -94,7 +94,12 @@ class Extrapolator:
self
.
overlaps
.
push
(
overlap
)
def
guess
(
self
,
coords
:
np
.
ndarray
,
overlap
=
None
)
->
np
.
ndarray
:
"""
Get a new electronic density to be used as a guess.
"""
"""
Get a new electronic density matrix to be used as a guess.
"""
c_guess
=
self
.
guess_coefficients
(
coords
,
overlap
)
return
c_guess
@
c_guess
.
T
def
guess_coefficients
(
self
,
coords
:
np
.
ndarray
,
overlap
=
None
)
->
np
.
ndarray
:
"""
Get a new coefficient matrix to be used as a guess.
"""
if
self
.
options
[
"
allow_partially_filled
"
]:
n
=
min
(
self
.
options
[
"
nsteps
"
],
self
.
descriptors
.
count
)
@@ -125,7 +130,7 @@ class Extrapolator:
c_guess
=
self
.
_grassmann_exp
(
gamma
)
c_guess
=
inverse_sqrt_overlap
@
c_guess
return
c_guess
@
c_guess
.
T
return
c_guess
def
_get_tangent
(
self
)
->
np
.
ndarray
:
"""
Get the tangent point.
"""
Loading