-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from ACEsuit/co/xscal
General Adaptive Scalar Basis + Sparsification
- Loading branch information
Showing
17 changed files
with
772 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# | ||
# WORK IN PROGRESS - CURRENTLY NOT INCLUDED | ||
# | ||
# | ||
|
||
module SNAP | ||
|
||
""" | ||
`SNAPRnlBasis:` define radial basis for hyperspherical harmonics. | ||
```math | ||
R_{nl}(r) = (-i)^l 2^{l+1/2} l! \cdot | ||
\bigg( \frac{(n+1) (n-l)!}{\pi (n+l+1)!} \bigg)^{1/2} \cdot | ||
\sin^l\Big( \frac{\pi r}{2 r_0}\Big) \cdot | ||
C_{n-l}^{l+1}\Big( \cos\Big(\frac{\pi r}{2 r_0}\Big)\Big). | ||
``` | ||
""" | ||
struct SNAPRnlBasis{T, VSYM, LSYM, MSYM} | ||
maxn::Int | ||
maxl::Int | ||
spec | ||
B_pool::VectorPool{Complex{T}} | ||
dB_pool::VectorPool{T} | ||
end | ||
|
||
_varsym(::SNAPRnlBasis{T, VSYM, LSYM, MSYM}) where {T, VSYM, LSYM, MSYM} = VSYM | ||
_nsym(::SNAPRnlBasis{T, VSYM, LSYM, MSYM}) where {T, VSYM, LSYM, MSYM} = NSYM | ||
_n(b, basis::SNAPRnlBasis) = getproperty(b, _nsym(basis)) | ||
_rr(X, Rn::SNAPRnlBasis) = getproperty(X, _varsym(Rn)) | ||
|
||
|
||
|
||
|
||
function evaluate!(Rnl, basis::SNAPRnlBasis, X::AbstractState) | ||
rr = _rr(X) | ||
r = norm(rr) | ||
|
||
|
||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.