-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mod: integrals over shells are now stored in 1d arrays
FortranRenderer is not yet updated
- Loading branch information
Showing
9 changed files
with
81 additions
and
58 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
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,28 @@ | ||
{# | ||
@numba.jit( | ||
nopython=True, | ||
nogil=True, | ||
fastmath=True, | ||
cache=True, | ||
) | ||
def {{ name }}({{ Ls|join(", ") }}, {{ args|join(", ") }}): | ||
{% for Lconds, func_name in conds_funcs %} | ||
{%+ if loop.index0 > 0 %}el{% endif %}if {{ Lconds|join(" and ") }}: | ||
{{ func_name }}({{ args|join(", ") }}) | ||
{% endfor %} | ||
else: | ||
{{ args[-1] }}[:] = numpy.nan | ||
#} | ||
|
||
@numba.jit( | ||
nopython=True, | ||
nogil=True, | ||
fastmath=True, | ||
cache=True, | ||
) | ||
def {{ name }}({{ Ls|join(", ") }}, {{ args|join(", ") }}): | ||
{% for Lconds, func_name in conds_funcs %} | ||
{%+ if loop.index0 > 0 %}el{% endif %}if {{ Lconds|join(" and ") }}: | ||
func = {{ func_name }} | ||
{% endfor %} | ||
func({{ args|join(", ") }}) |