mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2025-01-08 20:33:40 +01:00
Deploying to gh-pages from @ TREX-CoE/qmckl@f7ce203db7 🚀
This commit is contained in:
parent
7f5018b552
commit
dda299d05a
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-01-08 Sat 14:37 -->
|
||||
<!-- 2022-01-08 Sat 15:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>QMCkl source code documentation</title>
|
||||
@ -361,7 +361,7 @@ and bug reports should be submitted at
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 14:37</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 15:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
102
qmckl.html
102
qmckl.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-01-08 Sat 14:37 -->
|
||||
<!-- 2022-01-08 Sat 15:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Introduction</title>
|
||||
@ -333,30 +333,30 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org6028367">1. Using QMCkl</a></li>
|
||||
<li><a href="#orge0b00a5">2. Developing in QMCkl</a>
|
||||
<li><a href="#orga5627f7">1. Using QMCkl</a></li>
|
||||
<li><a href="#org17932e3">2. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#org1facf60">2.1. Literate programming</a></li>
|
||||
<li><a href="#org7aa8090">2.2. Source code editing</a></li>
|
||||
<li><a href="#org25f78a5">2.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org32dc361">2.4. Coding rules</a></li>
|
||||
<li><a href="#org8517498">2.5. Design of the library</a></li>
|
||||
<li><a href="#org15fe548">2.6. Naming conventions</a></li>
|
||||
<li><a href="#orgb4b4efd">2.7. Application programming interface</a></li>
|
||||
<li><a href="#orgc3da700">2.8. Global state</a></li>
|
||||
<li><a href="#orga566548">2.9. Headers</a></li>
|
||||
<li><a href="#org9dc2229">2.10. Low-level functions</a></li>
|
||||
<li><a href="#org55d923a">2.11. High-level functions</a></li>
|
||||
<li><a href="#org70ef333">2.12. Numerical precision</a></li>
|
||||
<li><a href="#org802b458">2.13. Algorithms</a></li>
|
||||
<li><a href="#org39ec08c">2.1. Literate programming</a></li>
|
||||
<li><a href="#org9519706">2.2. Source code editing</a></li>
|
||||
<li><a href="#org5db30ed">2.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org29d2abc">2.4. Coding rules</a></li>
|
||||
<li><a href="#orgab4d432">2.5. Design of the library</a></li>
|
||||
<li><a href="#org0f4d666">2.6. Naming conventions</a></li>
|
||||
<li><a href="#org9cfdc5c">2.7. Application programming interface</a></li>
|
||||
<li><a href="#org5238b54">2.8. Global state</a></li>
|
||||
<li><a href="#org69b27d6">2.9. Headers</a></li>
|
||||
<li><a href="#org7d31e2f">2.10. Low-level functions</a></li>
|
||||
<li><a href="#orgb59bdb1">2.11. High-level functions</a></li>
|
||||
<li><a href="#orga905449">2.12. Numerical precision</a></li>
|
||||
<li><a href="#orgc32ea05">2.13. Algorithms</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6028367" class="outline-2">
|
||||
<h2 id="org6028367"><span class="section-number-2">1</span> Using QMCkl</h2>
|
||||
<div id="outline-container-orga5627f7" class="outline-2">
|
||||
<h2 id="orga5627f7"><span class="section-number-2">1</span> Using QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The <code>qmckl.h</code> header file installed in the <code>${prefix}/include</code> directory
|
||||
@ -385,12 +385,12 @@ Both files are located in the <code>include/</code> directory.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge0b00a5" class="outline-2">
|
||||
<h2 id="orge0b00a5"><span class="section-number-2">2</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-org17932e3" class="outline-2">
|
||||
<h2 id="org17932e3"><span class="section-number-2">2</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org1facf60" class="outline-3">
|
||||
<h3 id="org1facf60"><span class="section-number-3">2.1</span> Literate programming</h3>
|
||||
<div id="outline-container-org39ec08c" class="outline-3">
|
||||
<h3 id="org39ec08c"><span class="section-number-3">2.1</span> Literate programming</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
In a traditional source code, most of the lines of source files of a program
|
||||
@ -435,8 +435,8 @@ interactively, in the same spirit as Jupyter notebooks.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7aa8090" class="outline-3">
|
||||
<h3 id="org7aa8090"><span class="section-number-3">2.2</span> Source code editing</h3>
|
||||
<div id="outline-container-org9519706" class="outline-3">
|
||||
<h3 id="org9519706"><span class="section-number-3">2.2</span> Source code editing</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
For a tutorial on literate programming with org-mode, follow <a href="http://www.howardism.org/Technical/Emacs/literate-programming-tutorial.html">this link</a>.
|
||||
@ -467,8 +467,8 @@ org-mode.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org25f78a5" class="outline-3">
|
||||
<h3 id="org25f78a5"><span class="section-number-3">2.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-org5db30ed" class="outline-3">
|
||||
<h3 id="org5db30ed"><span class="section-number-3">2.3</span> Choice of the programming language</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
Most of the codes of the <a href="https://trex-coe.eu">TREX CoE</a> are written in Fortran with some scripts in
|
||||
@ -516,8 +516,8 @@ For more guidelines on using Fortran to generate a C interface, see
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org32dc361" class="outline-3">
|
||||
<h3 id="org32dc361"><span class="section-number-3">2.4</span> Coding rules</h3>
|
||||
<div id="outline-container-org29d2abc" class="outline-3">
|
||||
<h3 id="org29d2abc"><span class="section-number-3">2.4</span> Coding rules</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
The authors should follow the recommendations of the C99
|
||||
@ -535,8 +535,8 @@ Compliance can be checked with <code>cppcheck</code> as:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8517498" class="outline-3">
|
||||
<h3 id="org8517498"><span class="section-number-3">2.5</span> Design of the library</h3>
|
||||
<div id="outline-container-orgab4d432" class="outline-3">
|
||||
<h3 id="orgab4d432"><span class="section-number-3">2.5</span> Design of the library</h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
<p>
|
||||
The proposed API should allow the library to: deal with memory transfers
|
||||
@ -547,8 +547,8 @@ functions (see below).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org15fe548" class="outline-3">
|
||||
<h3 id="org15fe548"><span class="section-number-3">2.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-org0f4d666" class="outline-3">
|
||||
<h3 id="org0f4d666"><span class="section-number-3">2.6</span> Naming conventions</h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
To avoid namespace collisions, we use <code>qmckl_</code> as a prefix for all exported
|
||||
@ -573,8 +573,8 @@ form is allowed.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb4b4efd" class="outline-3">
|
||||
<h3 id="orgb4b4efd"><span class="section-number-3">2.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-org9cfdc5c" class="outline-3">
|
||||
<h3 id="org9cfdc5c"><span class="section-number-3">2.7</span> Application programming interface</h3>
|
||||
<div class="outline-text-3" id="text-2-7">
|
||||
<p>
|
||||
In the C language, the number of bits used by the integer types can change
|
||||
@ -606,15 +606,15 @@ bindings in other languages in other repositories.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc3da700" class="outline-3">
|
||||
<h3 id="orgc3da700"><span class="section-number-3">2.8</span> Global state</h3>
|
||||
<div id="outline-container-org5238b54" class="outline-3">
|
||||
<h3 id="org5238b54"><span class="section-number-3">2.8</span> Global state</h3>
|
||||
<div class="outline-text-3" id="text-2-8">
|
||||
<p>
|
||||
Global variables should be avoided in the library, because it is
|
||||
possible that one single program needs to use multiple instances
|
||||
of the library. To solve this problem we propose to use a pointer
|
||||
to a <a href="./qmckl_context.html"><code>context</code></a> variable, built by the library with the
|
||||
<code>qmckl_context_create</code> function. The <a id="orgc3f9293">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="org71ef63f">=context=</a> contains the global
|
||||
state of the library, and is used as the first argument of many
|
||||
QMCkl functions.
|
||||
</p>
|
||||
@ -628,8 +628,8 @@ the state is done by setters and getters, prefixed by
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga566548" class="outline-3">
|
||||
<h3 id="orga566548"><span class="section-number-3">2.9</span> Headers</h3>
|
||||
<div id="outline-container-org69b27d6" class="outline-3">
|
||||
<h3 id="org69b27d6"><span class="section-number-3">2.9</span> Headers</h3>
|
||||
<div class="outline-text-3" id="text-2-9">
|
||||
<p>
|
||||
A single <code>qmckl.h</code> header to be distributed by the library
|
||||
@ -717,8 +717,8 @@ and the types definitions should be written in the <code>*fh_type.f90</code> fil
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9dc2229" class="outline-3">
|
||||
<h3 id="org9dc2229"><span class="section-number-3">2.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-org7d31e2f" class="outline-3">
|
||||
<h3 id="org7d31e2f"><span class="section-number-3">2.10</span> Low-level functions</h3>
|
||||
<div class="outline-text-3" id="text-2-10">
|
||||
<p>
|
||||
Low-level functions are very simple functions which are leaves of
|
||||
@ -727,14 +727,14 @@ the function call tree (they don't call any other QMCkl function).
|
||||
|
||||
<p>
|
||||
These functions are <i>pure</i>, and unaware of the QMCkl
|
||||
<a href="#orgc3f9293"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#org71ef63f"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
if they need temporary memory it should be provided in input.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org55d923a" class="outline-3">
|
||||
<h3 id="org55d923a"><span class="section-number-3">2.11</span> High-level functions</h3>
|
||||
<div id="outline-container-orgb59bdb1" class="outline-3">
|
||||
<h3 id="orgb59bdb1"><span class="section-number-3">2.11</span> High-level functions</h3>
|
||||
<div class="outline-text-3" id="text-2-11">
|
||||
<p>
|
||||
High-level functions are at the top of the function call tree.
|
||||
@ -747,20 +747,20 @@ temporary storage, to simplify the use of accelerators.
|
||||
<p>
|
||||
The high-level functions should be pure, unless the introduction
|
||||
of non-purity is justified. All the side effects should be made in
|
||||
the <a href="#orgc3f9293"><code>context</code></a> variable.
|
||||
the <a href="#org71ef63f"><code>context</code></a> variable.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org70ef333" class="outline-3">
|
||||
<h3 id="org70ef333"><span class="section-number-3">2.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-orga905449" class="outline-3">
|
||||
<h3 id="orga905449"><span class="section-number-3">2.12</span> Numerical precision</h3>
|
||||
<div class="outline-text-3" id="text-2-12">
|
||||
<p>
|
||||
The number of bits of precision required for a function should be
|
||||
given as an input of low-level computational functions. This input
|
||||
will be used to define the values of the different thresholds that
|
||||
might be used to avoid computing unnecessary noise. High-level
|
||||
functions will use the precision specified in the <a href="#orgc3f9293"><code>context</code></a>
|
||||
functions will use the precision specified in the <a href="#org71ef63f"><code>context</code></a>
|
||||
variable.
|
||||
</p>
|
||||
|
||||
@ -830,8 +830,8 @@ following points :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org802b458" class="outline-3">
|
||||
<h3 id="org802b458"><span class="section-number-3">2.13</span> Algorithms</h3>
|
||||
<div id="outline-container-orgc32ea05" class="outline-3">
|
||||
<h3 id="orgc32ea05"><span class="section-number-3">2.13</span> Algorithms</h3>
|
||||
<div class="outline-text-3" id="text-2-13">
|
||||
<p>
|
||||
Reducing the scaling of an algorithm usually implies also reducing
|
||||
@ -847,7 +847,7 @@ implemented adapted to different problem sizes.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 14:37</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 15:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
150
qmckl_ao.html
150
qmckl_ao.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-01-08 Sat 14:37 -->
|
||||
<!-- 2022-01-08 Sat 15:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Atomic Orbitals</title>
|
||||
@ -333,53 +333,53 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orga29528d">1. Introduction</a></li>
|
||||
<li><a href="#orge77f1b1">2. Context</a>
|
||||
<li><a href="#org194eb98">1. Introduction</a></li>
|
||||
<li><a href="#orgd23cb06">2. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orga8f8525">2.1. Constant data</a>
|
||||
<li><a href="#org976a424">2.1. Constant data</a>
|
||||
<ul>
|
||||
<li><a href="#org306029a">2.1.1. Initialization functions</a>
|
||||
<li><a href="#orgc311b4c">2.1.1. Initialization functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgeab33b1">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#orgfd776b3">2.1.1.2. Fortran interface</a></li>
|
||||
<li><a href="#org6513f0d">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org7625b22">2.1.1.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf6a11b9">2.1.2. Access functions</a>
|
||||
<li><a href="#org9f3edc1">2.1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orga63851c">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org4538bb4">2.1.2.2. Fortran interface</a></li>
|
||||
<li><a href="#org61ff23f">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org1c46aaa">2.1.2.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org296c4ef">2.2. Computed data</a>
|
||||
<li><a href="#orgcc42504">2.2. Computed data</a>
|
||||
<ul>
|
||||
<li><a href="#orga73ecd0">2.2.1. After initialization</a></li>
|
||||
<li><a href="#org9a3e499">2.2.2. Access functions</a></li>
|
||||
<li><a href="#orgbd526dd">2.2.1. After initialization</a></li>
|
||||
<li><a href="#org903ebed">2.2.2. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8922242">3. Radial part</a>
|
||||
<li><a href="#orgce1f1d1">3. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#org36b5a6e">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org1cf7216">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#orgb5e8515">3.3. Computation of shells</a></li>
|
||||
<li><a href="#org23763ea">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#orgf149000">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#orga3621cb">3.3. Computation of shells</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0f3d50d">4. Polynomial part</a>
|
||||
<li><a href="#org8399ae9">4. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#org57e7bc0">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org2678efa">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
<li><a href="#orgd88257f">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#orgb3e1431">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd7b1f6a">5. Combining radial and polynomial parts</a></li>
|
||||
<li><a href="#orgc7bc228">5. Combining radial and polynomial parts</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga29528d" class="outline-2">
|
||||
<h2 id="orga29528d"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div id="outline-container-org194eb98" class="outline-2">
|
||||
<h2 id="org194eb98"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The atomic basis set is defined as a list of shells. Each shell \(s\) is
|
||||
@ -432,19 +432,19 @@ gradients and Laplacian of the atomic basis functions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge77f1b1" class="outline-2">
|
||||
<h2 id="orge77f1b1"><span class="section-number-2">2</span> Context</h2>
|
||||
<div id="outline-container-orgd23cb06" class="outline-2">
|
||||
<h2 id="orgd23cb06"><span class="section-number-2">2</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orga8f8525" class="outline-3">
|
||||
<h3 id="orga8f8525"><span class="section-number-3">2.1</span> Constant data</h3>
|
||||
<div id="outline-container-org976a424" class="outline-3">
|
||||
<h3 id="org976a424"><span class="section-number-3">2.1</span> Constant data</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
The following arrays are stored in the context, and need to be set
|
||||
when initializing the library:
|
||||
</p>
|
||||
|
||||
<table id="org6878ceb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5150626" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -618,7 +618,7 @@ calling the functions:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="orgbd9cfe5"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_set_ao_basis_$V$</span> ( <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<pre class="src src-C" id="orgc4962cb"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_set_ao_basis_$V$</span> ( <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> $type_of_V$ $V$);
|
||||
|
||||
<span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_ao_basis_$V$</span> ( <span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
@ -655,7 +655,7 @@ For array variables, use the rule:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="org5688f9b"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_set_ao_basis_$V$</span> ( <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<pre class="src src-C" id="org049fe81"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_set_ao_basis_$V$</span> ( <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> $type_of_V$ $V$,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">size_max</span>);
|
||||
|
||||
@ -693,17 +693,17 @@ For array variables, use the rule:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org306029a" class="outline-4">
|
||||
<h4 id="org306029a"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
||||
<div id="outline-container-orgc311b4c" class="outline-4">
|
||||
<h4 id="orgc311b4c"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<p>
|
||||
<code>size_max</code> is the dimension of the input array, which should be
|
||||
equal of larger than the value given in the table of section <a href="#orge77f1b1">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#orgd23cb06">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeab33b1" class="outline-5">
|
||||
<h5 id="orgeab33b1"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div id="outline-container-org6513f0d" class="outline-5">
|
||||
<h5 id="org6513f0d"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-1-1">
|
||||
<p>
|
||||
To set the basis set, all the following functions need to be
|
||||
@ -827,8 +827,8 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfd776b3" class="outline-5">
|
||||
<h5 id="orgfd776b3"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org7625b22" class="outline-5">
|
||||
<h5 id="org7625b22"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #a020f0;">interface</span>
|
||||
@ -1011,17 +1011,17 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf6a11b9" class="outline-4">
|
||||
<h4 id="orgf6a11b9"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
||||
<div id="outline-container-org9f3edc1" class="outline-4">
|
||||
<h4 id="org9f3edc1"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<p>
|
||||
<code>size_max</code> is the dimension of the input array, which should be
|
||||
equal of larger than the value given in the table of section <a href="#orge77f1b1">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#orgd23cb06">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga63851c" class="outline-5">
|
||||
<h5 id="orga63851c"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div id="outline-container-org61ff23f" class="outline-5">
|
||||
<h5 id="org61ff23f"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1143,8 +1143,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4538bb4" class="outline-5">
|
||||
<h5 id="org4538bb4"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org1c46aaa" class="outline-5">
|
||||
<h5 id="org1c46aaa"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-2-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #a020f0;">interface</span>
|
||||
@ -1328,8 +1328,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org296c4ef" class="outline-3">
|
||||
<h3 id="org296c4ef"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div id="outline-container-orgcc42504" class="outline-3">
|
||||
<h3 id="orgcc42504"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
The following data is computed as described in the next sections:
|
||||
@ -1393,8 +1393,8 @@ The following data is computed as described in the next sections:
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orga73ecd0" class="outline-4">
|
||||
<h4 id="orga73ecd0"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div id="outline-container-orgbd526dd" class="outline-4">
|
||||
<h4 id="orgbd526dd"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<p>
|
||||
When the basis set is completely entered, extra data structures may be
|
||||
@ -1408,8 +1408,8 @@ the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9a3e499" class="outline-4">
|
||||
<h4 id="org9a3e499"><span class="section-number-4">2.2.2</span> Access functions</h4>
|
||||
<div id="outline-container-org903ebed" class="outline-4">
|
||||
<h4 id="org903ebed"><span class="section-number-4">2.2.2</span> Access functions</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1422,7 +1422,7 @@ the context.
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of primitive
|
||||
basis functions evaluated at the current coordinates.
|
||||
See section <a href="#org1cf7216">3.2</a>.
|
||||
See section <a href="#orgf149000">3.2</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1435,7 +1435,7 @@ See section <a href="#org1cf7216">3.2</a>.
|
||||
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of contracted shells
|
||||
evaluated at the current coordinates. See section <a href="#orgb5e8515">3.3</a>.
|
||||
evaluated at the current coordinates. See section <a href="#orga3621cb">3.3</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1449,19 +1449,19 @@ evaluated at the current coordinates. See section <a href="#orgb5e8515">3.3</a>.
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of the atomic orbitals
|
||||
evaluated at the current coordinates.
|
||||
See section <a href="#orgd7b1f6a">5</a>.
|
||||
See section <a href="#orgc7bc228">5</a>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8922242" class="outline-2">
|
||||
<h2 id="org8922242"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div id="outline-container-orgce1f1d1" class="outline-2">
|
||||
<h2 id="orgce1f1d1"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org36b5a6e" class="outline-3">
|
||||
<h3 id="org36b5a6e"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div id="outline-container-org23763ea" class="outline-3">
|
||||
<h3 id="org23763ea"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
<code>qmckl_ao_gaussian_vgl</code> computes the values, gradients and
|
||||
@ -1632,10 +1632,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1cf7216" class="outline-3">
|
||||
<h3 id="org1cf7216"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div id="outline-container-orgf149000" class="outline-3">
|
||||
<h3 id="orgf149000"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<table id="org556fd38" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5b8d903" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1794,10 +1794,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb5e8515" class="outline-3">
|
||||
<h3 id="orgb5e8515"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div id="outline-container-orga3621cb" class="outline-3">
|
||||
<h3 id="orga3621cb"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<table id="orgdc04162" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0fcace3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2036,8 +2036,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0f3d50d" class="outline-2">
|
||||
<h2 id="org0f3d50d"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div id="outline-container-org8399ae9" class="outline-2">
|
||||
<h2 id="org8399ae9"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
Going from the atomic basis set to AOs implies a systematic
|
||||
@ -2057,8 +2057,8 @@ f & : & f_{xxx}, f_{xxy}, f_{xxz}, f_{xyy}, f_{xyz}, f_{xzz}, f_{yyy}, f_{yyz},
|
||||
\end{eqnarray}
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org57e7bc0" class="outline-3">
|
||||
<h3 id="org57e7bc0"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-orgd88257f" class="outline-3">
|
||||
<h3 id="orgd88257f"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
The <code>qmckl_ao_power</code> function computes all the powers of the <code>n</code>
|
||||
@ -2070,7 +2070,7 @@ the \(n\) points:
|
||||
\[ P_{ik} = X_i^k \]
|
||||
</p>
|
||||
|
||||
<table id="org4c2678e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7e25ddb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2208,8 +2208,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2678efa" class="outline-3">
|
||||
<h3 id="org2678efa"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-orgb3e1431" class="outline-3">
|
||||
<h3 id="orgb3e1431"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div class="outline-text-3" id="text-4-2">
|
||||
<p>
|
||||
A polynomial is centered on a nucleus \(\mathbf{R}_i\)
|
||||
@ -2254,7 +2254,7 @@ Laplacians at a given point in space, of all polynomials with an
|
||||
angular momentum up to <code>lmax</code>.
|
||||
</p>
|
||||
|
||||
<table id="org219d1e5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org886eb1a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2514,10 +2514,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd7b1f6a" class="outline-2">
|
||||
<h2 id="orgd7b1f6a"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div id="outline-container-orgc7bc228" class="outline-2">
|
||||
<h2 id="orgc7bc228"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
<table id="orgc56360c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9b29e24" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2795,7 +2795,7 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 14:37</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 15:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-01-08 Sat 14:37 -->
|
||||
<!-- 2022-01-08 Sat 15:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>BLAS functions</title>
|
||||
@ -333,22 +333,22 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org8353f9c">1. Matrix operations</a>
|
||||
<li><a href="#org4d58fad">1. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#org3c58d79">1.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#orgd5eb0b8">1.2. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#org4b11b49">1.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org0215d53">1.2. <code>qmckl_adjugate</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8353f9c" class="outline-2">
|
||||
<h2 id="org8353f9c"><span class="section-number-2">1</span> Matrix operations</h2>
|
||||
<div id="outline-container-org4d58fad" class="outline-2">
|
||||
<h2 id="org4d58fad"><span class="section-number-2">1</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org3c58d79" class="outline-3">
|
||||
<h3 id="org3c58d79"><span class="section-number-3">1.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div id="outline-container-org4b11b49" class="outline-3">
|
||||
<h3 id="org4b11b49"><span class="section-number-3">1.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
Matrix multiplication:
|
||||
@ -360,7 +360,7 @@ Matrix multiplication:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="org6605352" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc1db91c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -580,8 +580,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd5eb0b8" class="outline-3">
|
||||
<h3 id="orgd5eb0b8"><span class="section-number-3">1.2</span> <code>qmckl_adjugate</code></h3>
|
||||
<div id="outline-container-org0215d53" class="outline-3">
|
||||
<h3 id="org0215d53"><span class="section-number-3">1.2</span> <code>qmckl_adjugate</code></h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
Given a matrix \(\mathbf{A}\), the adjugate matrix
|
||||
@ -599,7 +599,7 @@ of \(\mathbf{A}\).
|
||||
See also: <a href="https://en.wikipedia.org/wiki/Adjugate_matrix">https://en.wikipedia.org/wiki/Adjugate_matrix</a>
|
||||
</p>
|
||||
|
||||
<table id="org3f8c1bb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org65cb6fa" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -855,7 +855,7 @@ determinant with the inverse:
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 14:37</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 15:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-01-08 Sat 14:37 -->
|
||||
<!-- 2022-01-08 Sat 15:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Context</title>
|
||||
@ -311,21 +311,21 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org0e38113">1. Context handling</a>
|
||||
<li><a href="#org1588fa2">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#org40c2fca">1.1. Data structure</a></li>
|
||||
<li><a href="#orgdcdb4ac">1.2. Creation</a></li>
|
||||
<li><a href="#orgb8295f3">1.3. Locking</a></li>
|
||||
<li><a href="#orgb538871">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org6a5d204">1.5. Destroy</a></li>
|
||||
<li><a href="#org23de631">1.1. Data structure</a></li>
|
||||
<li><a href="#orgdbb16c6">1.2. Creation</a></li>
|
||||
<li><a href="#orge65e6ef">1.3. Locking</a></li>
|
||||
<li><a href="#orgb9c0957">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org4280579">1.5. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0e38113" class="outline-2">
|
||||
<h2 id="org0e38113"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-org1588fa2" class="outline-2">
|
||||
<h2 id="org1588fa2"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The context variable is a handle for the state of the library,
|
||||
@ -338,7 +338,7 @@ A value of <code>QMCKL_NULL_CONTEXT</code> for the context is equivalent to a
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org3c0b90c"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int64_t</span> <span style="color: #228b22;">qmckl_context</span> ;
|
||||
<pre class="src src-c" id="orgec3fed9"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int64_t</span> <span style="color: #228b22;">qmckl_context</span> ;
|
||||
<span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">QMCKL_NULL_CONTEXT</span> (qmckl_context) 0
|
||||
</pre>
|
||||
</div>
|
||||
@ -356,8 +356,8 @@ and <code>ctx</code> is a <code>qmckl_context_struct*</code> pointer.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org40c2fca" class="outline-3">
|
||||
<h3 id="org40c2fca"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org23de631" class="outline-3">
|
||||
<h3 id="org23de631"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
The context keeps a ``date'' that allows to check which data needs
|
||||
@ -367,7 +367,7 @@ coordinates are updated.
|
||||
|
||||
<p>
|
||||
When a new element is added to the context, the functions
|
||||
<a href="#orgdcdb4ac">qmckl<sub>context</sub><sub>create</sub></a>, <a href="#org6a5d204">qmckl<sub>context</sub><sub>destroy</sub></a> and <a href="#orgb538871">qmckl<sub>context</sub><sub>copy</sub></a>
|
||||
<a href="#orgdbb16c6">qmckl<sub>context</sub><sub>create</sub></a>, <a href="#org4280579">qmckl<sub>context</sub><sub>destroy</sub></a> and <a href="#orgb9c0957">qmckl<sub>context</sub><sub>copy</sub></a>
|
||||
should be updated inorder to make deep copies.
|
||||
</p>
|
||||
|
||||
@ -416,8 +416,8 @@ if the context is valid, <code>QMCKL_NULL_CONTEXT</code> otherwise.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdcdb4ac" class="outline-3">
|
||||
<h3 id="orgdcdb4ac"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-orgdbb16c6" class="outline-3">
|
||||
<h3 id="orgdbb16c6"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
@ -508,8 +508,8 @@ To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgb8295f3" class="outline-3">
|
||||
<h3 id="orgb8295f3"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-orge65e6ef" class="outline-3">
|
||||
<h3 id="orge65e6ef"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
For thread safety, the context may be locked/unlocked. The lock is
|
||||
@ -554,8 +554,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb538871" class="outline-3">
|
||||
<h3 id="orgb538871"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div id="outline-container-orgb9c0957" class="outline-3">
|
||||
<h3 id="orgb9c0957"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
<code>qmckl_context_copy</code> makes a deep copy of a context. It returns
|
||||
@ -603,8 +603,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org6a5d204" class="outline-3">
|
||||
<h3 id="org6a5d204"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-org4280579" class="outline-3">
|
||||
<h3 id="org4280579"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
The context is destroyed with <code>qmckl_context_destroy</code>, leaving the ancestors untouched.
|
||||
@ -658,7 +658,7 @@ It frees the context, and returns the previous context.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 14:37</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 15:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-01-08 Sat 14:37 -->
|
||||
<!-- 2022-01-08 Sat 15:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Slater Determinant</title>
|
||||
@ -311,32 +311,32 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org480dd58">1. Context</a>
|
||||
<li><a href="#org54bd8ba">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org7df79cd">1.1. Data structure</a></li>
|
||||
<li><a href="#orgf92d27c">1.2. Access functions</a></li>
|
||||
<li><a href="#org3853f4c">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgb7ea7a3">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#orgeffb011">1.5. Test</a></li>
|
||||
<li><a href="#org8e4a676">1.1. Data structure</a></li>
|
||||
<li><a href="#org00f4200">1.2. Access functions</a></li>
|
||||
<li><a href="#orgaa1de9d">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org75e862c">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#org42bbbe8">1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7537bd3">2. Computation</a>
|
||||
<li><a href="#org026cb94">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org2175df3">2.1. Determinant matrix</a>
|
||||
<li><a href="#org8f907cc">2.1. Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#orgb8631fd">2.1.1. Get</a></li>
|
||||
<li><a href="#org4eca521">2.1.2. Provide</a></li>
|
||||
<li><a href="#org711688f">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#orgd24591f">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#org8a458eb">2.1.5. Test</a></li>
|
||||
<li><a href="#org8c1c6fd">2.1.1. Get</a></li>
|
||||
<li><a href="#orgdf3d8de">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgfba89c3">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#orga736502">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#org7c93ab5">2.1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7788f20">2.2. Inverse of Determinant matrix</a>
|
||||
<li><a href="#org4e83824">2.2. Inverse of Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#orgc1e4ffe">2.2.1. Get</a></li>
|
||||
<li><a href="#org4f117ad">2.2.2. Provide</a></li>
|
||||
<li><a href="#org6701032">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#orgac1bfcd">2.2.4. Compute beta</a></li>
|
||||
<li><a href="#org708ecf2">2.2.1. Get</a></li>
|
||||
<li><a href="#org20da2f5">2.2.2. Provide</a></li>
|
||||
<li><a href="#org5d9baac">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#orgd6a1f59">2.2.4. Compute beta</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -345,8 +345,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org480dd58" class="outline-2">
|
||||
<h2 id="org480dd58"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org54bd8ba" class="outline-2">
|
||||
<h2 id="org54bd8ba"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following arrays are stored in the context:
|
||||
@ -528,8 +528,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7df79cd" class="outline-3">
|
||||
<h3 id="org7df79cd"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org8e4a676" class="outline-3">
|
||||
<h3 id="org8e4a676"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_determinant_struct</span> {
|
||||
@ -598,8 +598,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf92d27c" class="outline-3">
|
||||
<h3 id="orgf92d27c"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org00f4200" class="outline-3">
|
||||
<h3 id="org00f4200"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
When all the data for the slater determinants have been provided, the following
|
||||
@ -613,8 +613,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3853f4c" class="outline-3">
|
||||
<h3 id="org3853f4c"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgaa1de9d" class="outline-3">
|
||||
<h3 id="orgaa1de9d"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To set the basis set, all the following functions need to be
|
||||
@ -638,24 +638,24 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb7ea7a3" class="outline-3">
|
||||
<h3 id="orgb7ea7a3"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
<div id="outline-container-org75e862c" class="outline-3">
|
||||
<h3 id="org75e862c"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
</div>
|
||||
<div id="outline-container-orgeffb011" class="outline-3">
|
||||
<h3 id="orgeffb011"><span class="section-number-3">1.5</span> Test</h3>
|
||||
<div id="outline-container-org42bbbe8" class="outline-3">
|
||||
<h3 id="org42bbbe8"><span class="section-number-3">1.5</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org7537bd3" class="outline-2">
|
||||
<h2 id="org7537bd3"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org026cb94" class="outline-2">
|
||||
<h2 id="org026cb94"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org2175df3" class="outline-3">
|
||||
<h3 id="org2175df3"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
||||
<div id="outline-container-org8f907cc" class="outline-3">
|
||||
<h3 id="org8f907cc"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb8631fd" class="outline-4">
|
||||
<h4 id="orgb8631fd"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org8c1c6fd" class="outline-4">
|
||||
<h4 id="org8c1c6fd"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_det_vgl_alpha</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">det_vgl_alpha</span>);
|
||||
@ -665,14 +665,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4eca521" class="outline-4">
|
||||
<h4 id="org4eca521"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-orgdf3d8de" class="outline-4">
|
||||
<h4 id="orgdf3d8de"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org711688f" class="outline-4">
|
||||
<h4 id="org711688f"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-orgfba89c3" class="outline-4">
|
||||
<h4 id="orgfba89c3"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="orged2abd2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0588ec4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -846,10 +846,10 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd24591f" class="outline-4">
|
||||
<h4 id="orgd24591f"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div id="outline-container-orga736502" class="outline-4">
|
||||
<h4 id="orga736502"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<table id="org473f01b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9ce9c66" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1023,18 +1023,18 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8a458eb" class="outline-4">
|
||||
<h4 id="org8a458eb"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
<div id="outline-container-org7c93ab5" class="outline-4">
|
||||
<h4 id="org7c93ab5"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7788f20" class="outline-3">
|
||||
<h3 id="org7788f20"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
||||
<div id="outline-container-org4e83824" class="outline-3">
|
||||
<h3 id="org4e83824"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc1e4ffe" class="outline-4">
|
||||
<h4 id="orgc1e4ffe"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org708ecf2" class="outline-4">
|
||||
<h4 id="org708ecf2"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_det_inv_matrix_alpha</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">det_inv_matrix_alpha</span>);
|
||||
@ -1048,14 +1048,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4f117ad" class="outline-4">
|
||||
<h4 id="org4f117ad"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org20da2f5" class="outline-4">
|
||||
<h4 id="org20da2f5"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6701032" class="outline-4">
|
||||
<h4 id="org6701032"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org5d9baac" class="outline-4">
|
||||
<h4 id="org5d9baac"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="orge79a93f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2c1d75f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1217,10 +1217,10 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgac1bfcd" class="outline-4">
|
||||
<h4 id="orgac1bfcd"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div id="outline-container-orgd6a1f59" class="outline-4">
|
||||
<h4 id="orgd6a1f59"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<table id="org1149b04" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1bef350" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1387,7 +1387,7 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 14:37</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 15:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-01-08 Sat 14:37 -->
|
||||
<!-- 2022-01-08 Sat 15:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Inter-particle distances</title>
|
||||
@ -333,54 +333,54 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgae66127">1. Squared distance</a>
|
||||
<li><a href="#orga31a10e">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#org93caf7c">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#org6f718c9">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#orge3adfd3">1.1.1. Performance</a></li>
|
||||
<li><a href="#org9123ddb">1.1.1. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org20c2c33">2. Distance</a>
|
||||
<li><a href="#orgfec6dd1">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org58bb9c8">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#org2e125ed">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgcd48e09">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org1940cb9">2.1.2. C header</a></li>
|
||||
<li><a href="#org1b3b2cf">2.1.3. Source</a></li>
|
||||
<li><a href="#org2dd52fe">2.1.4. Performance</a></li>
|
||||
<li><a href="#org62bd93d">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org4cf6986">2.1.2. C header</a></li>
|
||||
<li><a href="#org2c4b953">2.1.3. Source</a></li>
|
||||
<li><a href="#org668bb54">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1dbb38a">3. Rescaled Distance</a>
|
||||
<li><a href="#org61e234a">3. Rescaled Distance</a>
|
||||
<ul>
|
||||
<li><a href="#orgda5f63a">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<li><a href="#orgbeab9cb">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<ul>
|
||||
<li><a href="#org2cdfdef">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org2b693a2">3.1.2. C header</a></li>
|
||||
<li><a href="#orgd2ec3ae">3.1.3. Source</a></li>
|
||||
<li><a href="#org4e53f8a">3.1.4. Performance</a></li>
|
||||
<li><a href="#org2892276">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orgb42cccf">3.1.2. C header</a></li>
|
||||
<li><a href="#org00c6c90">3.1.3. Source</a></li>
|
||||
<li><a href="#org5e70268">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org30200a3">4. Rescaled Distance Derivatives</a>
|
||||
<li><a href="#org134f2da">4. Rescaled Distance Derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#org4857585">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a></li>
|
||||
<li><a href="#org073c9ac">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgae66127" class="outline-2">
|
||||
<h2 id="orgae66127"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-orga31a10e" class="outline-2">
|
||||
<h2 id="orga31a10e"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org93caf7c" class="outline-3">
|
||||
<h3 id="org93caf7c"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-org6f718c9" class="outline-3">
|
||||
<h3 id="org6f718c9"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
<code>qmckl_distance_sq</code> computes the matrix of the squared distances
|
||||
@ -393,7 +393,7 @@ between all pairs of points in two sets, one point within each set:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="org014215a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1d27060" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -659,8 +659,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge3adfd3" class="outline-4">
|
||||
<h4 id="orge3adfd3"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div id="outline-container-org9123ddb" class="outline-4">
|
||||
<h4 id="org9123ddb"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-1-1-1">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are
|
||||
@ -670,12 +670,12 @@ transposed.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org20c2c33" class="outline-2">
|
||||
<h2 id="org20c2c33"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-orgfec6dd1" class="outline-2">
|
||||
<h2 id="orgfec6dd1"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org58bb9c8" class="outline-3">
|
||||
<h3 id="org58bb9c8"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div id="outline-container-org2e125ed" class="outline-3">
|
||||
<h3 id="org2e125ed"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
<code>qmckl_distance</code> computes the matrix of the distances between all
|
||||
@ -693,7 +693,7 @@ If the input array is normal (<code>'N'</code>), the xyz coordinates are in
|
||||
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
||||
</p>
|
||||
|
||||
<table id="orgb08acf5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0ef0fd0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -794,8 +794,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcd48e09" class="outline-4">
|
||||
<h4 id="orgcd48e09"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org62bd93d" class="outline-4">
|
||||
<h4 id="org62bd93d"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -813,8 +813,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1940cb9" class="outline-4">
|
||||
<h4 id="org1940cb9"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-org4cf6986" class="outline-4">
|
||||
<h4 id="org4cf6986"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance</span> (
|
||||
@ -834,8 +834,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1b3b2cf" class="outline-4">
|
||||
<h4 id="org1b3b2cf"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-org2c4b953" class="outline-4">
|
||||
<h4 id="org2c4b953"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
||||
@ -1002,8 +1002,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2dd52fe" class="outline-4">
|
||||
<h4 id="org2dd52fe"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org668bb54" class="outline-4">
|
||||
<h4 id="org668bb54"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are transposed.
|
||||
@ -1013,12 +1013,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1dbb38a" class="outline-2">
|
||||
<h2 id="org1dbb38a"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div id="outline-container-org61e234a" class="outline-2">
|
||||
<h2 id="org61e234a"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orgda5f63a" class="outline-3">
|
||||
<h3 id="orgda5f63a"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div id="outline-container-orgbeab9cb" class="outline-3">
|
||||
<h3 id="orgbeab9cb"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
<code>qmckl_distance_rescaled</code> computes the matrix of the rescaled distances between all
|
||||
@ -1036,7 +1036,7 @@ If the input array is normal (<code>'N'</code>), the xyz coordinates are in
|
||||
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
||||
</p>
|
||||
|
||||
<table id="org0cc879a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9c0ae46" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1144,8 +1144,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2cdfdef" class="outline-4">
|
||||
<h4 id="org2cdfdef"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org2892276" class="outline-4">
|
||||
<h4 id="org2892276"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-3-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1163,8 +1163,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2b693a2" class="outline-4">
|
||||
<h4 id="org2b693a2"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgb42cccf" class="outline-4">
|
||||
<h4 id="orgb42cccf"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance_rescaled</span> (
|
||||
@ -1185,8 +1185,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd2ec3ae" class="outline-4">
|
||||
<h4 id="orgd2ec3ae"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-org00c6c90" class="outline-4">
|
||||
<h4 id="org00c6c90"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-3-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_rescaled_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
||||
@ -1356,8 +1356,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4e53f8a" class="outline-4">
|
||||
<h4 id="org4e53f8a"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org5e70268" class="outline-4">
|
||||
<h4 id="org5e70268"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-3-1-4">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are transposed.
|
||||
@ -1366,12 +1366,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org30200a3" class="outline-2">
|
||||
<h2 id="org30200a3"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div id="outline-container-org134f2da" class="outline-2">
|
||||
<h2 id="org134f2da"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org4857585" class="outline-3">
|
||||
<h3 id="org4857585"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_deriv_e</code></h3>
|
||||
<div id="outline-container-org073c9ac" class="outline-3">
|
||||
<h3 id="org073c9ac"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_deriv_e</code></h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
<code>qmckl_distance_rescaled_deriv_e</code> computes the matrix of the gradient and laplacian of the
|
||||
@ -1438,7 +1438,7 @@ If the input array is normal (<code>'N'</code>), the xyz coordinates are in
|
||||
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
||||
</p>
|
||||
|
||||
<table id="orga7fd2c2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org76747c6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1776,7 +1776,7 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 14:37</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 15:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-01-08 Sat 14:37 -->
|
||||
<!-- 2022-01-08 Sat 15:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Electrons</title>
|
||||
@ -333,77 +333,77 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org8e40ff9">1. Context</a>
|
||||
<li><a href="#org95e85b7">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orga8bf31c">1.1. Data structure</a></li>
|
||||
<li><a href="#org3a43ad6">1.2. Access functions</a>
|
||||
<li><a href="#orgde5b9c1">1.1. Data structure</a></li>
|
||||
<li><a href="#org0ce4f8d">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org5ae629d">1.2.1. Number of electrons</a></li>
|
||||
<li><a href="#org951953d">1.2.2. Number of walkers</a></li>
|
||||
<li><a href="#orgee5bf73">1.2.3. Scaling factors Kappa</a></li>
|
||||
<li><a href="#org08882f8">1.2.4. Electron coordinates</a></li>
|
||||
<li><a href="#org5f2dcea">1.2.1. Number of electrons</a></li>
|
||||
<li><a href="#orgd54830b">1.2.2. Number of walkers</a></li>
|
||||
<li><a href="#orge817491">1.2.3. Scaling factors Kappa</a></li>
|
||||
<li><a href="#orgbd503f2">1.2.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgaf66f5a">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org1578cea">1.4. Test</a></li>
|
||||
<li><a href="#orgb400ef9">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org10667c5">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8808626">2. Computation</a>
|
||||
<li><a href="#orgd1e5b44">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgb8e154e">2.1. Electron-electron distances</a>
|
||||
<li><a href="#orgd92e4e8">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#org026fcfa">2.1.1. Get</a></li>
|
||||
<li><a href="#orgbb00c81">2.1.2. Compute</a></li>
|
||||
<li><a href="#org721af26">2.1.3. Test</a></li>
|
||||
<li><a href="#org1ac6116">2.1.1. Get</a></li>
|
||||
<li><a href="#orgd2ef066">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgbfc4329">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbaac523">2.2. Electron-electron rescaled distances</a>
|
||||
<li><a href="#org3aa76ba">2.2. Electron-electron rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#org1134ce4">2.2.1. Get</a></li>
|
||||
<li><a href="#org292e5d1">2.2.2. Compute</a></li>
|
||||
<li><a href="#org4a16ace">2.2.3. Test</a></li>
|
||||
<li><a href="#org844bf45">2.2.1. Get</a></li>
|
||||
<li><a href="#orgbdcc7a3">2.2.2. Compute</a></li>
|
||||
<li><a href="#org4e6bb0e">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7545350">2.3. Electron-electron rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<li><a href="#org53a055c">2.3. Electron-electron rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<ul>
|
||||
<li><a href="#org3eaf495">2.3.1. Get</a></li>
|
||||
<li><a href="#org3bed1e7">2.3.2. Compute</a></li>
|
||||
<li><a href="#org30b29e3">2.3.3. Test</a></li>
|
||||
<li><a href="#org0cf6c52">2.3.1. Get</a></li>
|
||||
<li><a href="#org19019a8">2.3.2. Compute</a></li>
|
||||
<li><a href="#org5bd9b39">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgffbea51">2.4. Electron-electron potential</a>
|
||||
<li><a href="#orgb8ab492">2.4. Electron-electron potential</a>
|
||||
<ul>
|
||||
<li><a href="#org5fdf9ab">2.4.1. Get</a></li>
|
||||
<li><a href="#orgcdad439">2.4.2. Compute</a></li>
|
||||
<li><a href="#orge4a9667">2.4.3. Test</a></li>
|
||||
<li><a href="#orgf73a8cd">2.4.1. Get</a></li>
|
||||
<li><a href="#org03c8df8">2.4.2. Compute</a></li>
|
||||
<li><a href="#org862b71a">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga3dc1e6">2.5. Electron-nucleus distances</a>
|
||||
<li><a href="#org24a9b3f">2.5. Electron-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org1210b09">2.5.1. Get</a></li>
|
||||
<li><a href="#org2c140b1">2.5.2. Compute</a></li>
|
||||
<li><a href="#org08176c3">2.5.3. Test</a></li>
|
||||
<li><a href="#orgf2e1e69">2.5.1. Get</a></li>
|
||||
<li><a href="#org1517ebf">2.5.2. Compute</a></li>
|
||||
<li><a href="#org446cff3">2.5.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge8dec66">2.6. Electron-nucleus rescaled distances</a>
|
||||
<li><a href="#orgdcbbc9e">2.6. Electron-nucleus rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#org5a555dc">2.6.1. Get</a></li>
|
||||
<li><a href="#org43eb0ca">2.6.2. Compute</a></li>
|
||||
<li><a href="#orgc372d49">2.6.3. Test</a></li>
|
||||
<li><a href="#org70d730c">2.6.1. Get</a></li>
|
||||
<li><a href="#org3068c17">2.6.2. Compute</a></li>
|
||||
<li><a href="#org94da008">2.6.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org246d2b8">2.7. Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<li><a href="#orga191153">2.7. Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<ul>
|
||||
<li><a href="#org7a56f1d">2.7.1. Get</a></li>
|
||||
<li><a href="#orgdae38dc">2.7.2. Compute</a></li>
|
||||
<li><a href="#org5d95473">2.7.3. Test</a></li>
|
||||
<li><a href="#orgf7d24d2">2.7.1. Get</a></li>
|
||||
<li><a href="#orgbf9bb7e">2.7.2. Compute</a></li>
|
||||
<li><a href="#orgf3b26c9">2.7.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgff9eb88">2.8. Electron-nucleus potential</a>
|
||||
<li><a href="#orga31b91d">2.8. Electron-nucleus potential</a>
|
||||
<ul>
|
||||
<li><a href="#org9ccd342">2.8.1. Get</a></li>
|
||||
<li><a href="#org37cb5c0">2.8.2. Compute</a></li>
|
||||
<li><a href="#orgb2c4625">2.8.3. Test</a></li>
|
||||
<li><a href="#org429a4b0">2.8.1. Get</a></li>
|
||||
<li><a href="#orgc7675e8">2.8.2. Compute</a></li>
|
||||
<li><a href="#org02530a9">2.8.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -412,8 +412,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8e40ff9" class="outline-2">
|
||||
<h2 id="org8e40ff9"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org95e85b7" class="outline-2">
|
||||
<h2 id="org95e85b7"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following data stored in the context:
|
||||
@ -626,8 +626,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga8bf31c" class="outline-3">
|
||||
<h3 id="orga8bf31c"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgde5b9c1" class="outline-3">
|
||||
<h3 id="orgde5b9c1"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_electron_struct</span> {
|
||||
@ -706,8 +706,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3a43ad6" class="outline-3">
|
||||
<h3 id="org3a43ad6"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org0ce4f8d" class="outline-3">
|
||||
<h3 id="org0ce4f8d"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
Access functions return <code>QMCKL_SUCCESS</code> when the data has been
|
||||
@ -719,12 +719,12 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5ae629d" class="outline-4">
|
||||
<h4 id="org5ae629d"><span class="section-number-4">1.2.1</span> Number of electrons</h4>
|
||||
<div id="outline-container-org5f2dcea" class="outline-4">
|
||||
<h4 id="org5f2dcea"><span class="section-number-4">1.2.1</span> Number of electrons</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org951953d" class="outline-4">
|
||||
<h4 id="org951953d"><span class="section-number-4">1.2.2</span> Number of walkers</h4>
|
||||
<div id="outline-container-orgd54830b" class="outline-4">
|
||||
<h4 id="orgd54830b"><span class="section-number-4">1.2.2</span> Number of walkers</h4>
|
||||
<div class="outline-text-4" id="text-1-2-2">
|
||||
<p>
|
||||
A walker is a set of electron coordinates that are arguments of
|
||||
@ -733,12 +733,12 @@ the wave function. <code>walk_num</code> is the number of walkers.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgee5bf73" class="outline-4">
|
||||
<h4 id="orgee5bf73"><span class="section-number-4">1.2.3</span> Scaling factors Kappa</h4>
|
||||
<div id="outline-container-orge817491" class="outline-4">
|
||||
<h4 id="orge817491"><span class="section-number-4">1.2.3</span> Scaling factors Kappa</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org08882f8" class="outline-4">
|
||||
<h4 id="org08882f8"><span class="section-number-4">1.2.4</span> Electron coordinates</h4>
|
||||
<div id="outline-container-orgbd503f2" class="outline-4">
|
||||
<h4 id="orgbd503f2"><span class="section-number-4">1.2.4</span> Electron coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-2-4">
|
||||
<p>
|
||||
Returns the current electron coordinates. The pointer is assumed
|
||||
@ -782,8 +782,8 @@ The order of the indices is:
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgaf66f5a" class="outline-3">
|
||||
<h3 id="orgaf66f5a"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgb400ef9" class="outline-3">
|
||||
<h3 id="orgb400ef9"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To set the data relative to the electrons in the context, the
|
||||
@ -870,8 +870,8 @@ in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1578cea" class="outline-3">
|
||||
<h3 id="org1578cea"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org10667c5" class="outline-3">
|
||||
<h3 id="org10667c5"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -977,8 +977,8 @@ rc = qmckl_get_electron_coord (context, <span style="color: #8b2252;">'N'</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8808626" class="outline-2">
|
||||
<h2 id="org8808626"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orgd1e5b44" class="outline-2">
|
||||
<h2 id="orgd1e5b44"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The computed data is stored in the context so that it can be reused
|
||||
@ -991,12 +991,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb8e154e" class="outline-3">
|
||||
<h3 id="orgb8e154e"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-orgd92e4e8" class="outline-3">
|
||||
<h3 id="orgd92e4e8"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
</div>
|
||||
<div id="outline-container-org026fcfa" class="outline-4">
|
||||
<h4 id="org026fcfa"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org1ac6116" class="outline-4">
|
||||
<h4 id="org1ac6116"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_ee_distance</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">distance</span>);
|
||||
@ -1005,10 +1005,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbb00c81" class="outline-4">
|
||||
<h4 id="orgbb00c81"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-orgd2ef066" class="outline-4">
|
||||
<h4 id="orgd2ef066"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orgbc025df" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2e95c64" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1112,8 +1112,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org721af26" class="outline-4">
|
||||
<h4 id="org721af26"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orgbfc4329" class="outline-4">
|
||||
<h4 id="orgbfc4329"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_electron_provided</span>(<span style="color: #a0522d;">context</span>));
|
||||
@ -1147,8 +1147,8 @@ rc = qmckl_get_electron_ee_distance(context, ee_distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbaac523" class="outline-3">
|
||||
<h3 id="orgbaac523"><span class="section-number-3">2.2</span> Electron-electron rescaled distances</h3>
|
||||
<div id="outline-container-org3aa76ba" class="outline-3">
|
||||
<h3 id="org3aa76ba"><span class="section-number-3">2.2</span> Electron-electron rescaled distances</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
<code>ee_distance_rescaled</code> stores the matrix of the rescaled distances between all
|
||||
@ -1166,8 +1166,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1134ce4" class="outline-4">
|
||||
<h4 id="org1134ce4"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org844bf45" class="outline-4">
|
||||
<h4 id="org844bf45"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_ee_distance_rescaled</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">distance_rescaled</span>);
|
||||
@ -1176,10 +1176,10 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org292e5d1" class="outline-4">
|
||||
<h4 id="org292e5d1"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-orgbdcc7a3" class="outline-4">
|
||||
<h4 id="orgbdcc7a3"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orgea7fabf" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org04689d6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1292,8 +1292,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4a16ace" class="outline-4">
|
||||
<h4 id="org4a16ace"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org4e6bb0e" class="outline-4">
|
||||
<h4 id="org4e6bb0e"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_electron_provided</span>(<span style="color: #a0522d;">context</span>));
|
||||
@ -1327,8 +1327,8 @@ rc = qmckl_get_electron_ee_distance_rescaled(context, ee_distance_rescaled);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7545350" class="outline-3">
|
||||
<h3 id="org7545350"><span class="section-number-3">2.3</span> Electron-electron rescaled distance gradients and laplacian with respect to electron coords</h3>
|
||||
<div id="outline-container-org53a055c" class="outline-3">
|
||||
<h3 id="org53a055c"><span class="section-number-3">2.3</span> Electron-electron rescaled distance gradients and laplacian with respect to electron coords</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
The rescaled distances which is given as \(R = (1 - \exp{-\kappa r})/\kappa\)
|
||||
@ -1340,8 +1340,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3eaf495" class="outline-4">
|
||||
<h4 id="org3eaf495"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org0cf6c52" class="outline-4">
|
||||
<h4 id="org0cf6c52"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_ee_distance_rescaled_deriv_e</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">distance_rescaled_deriv_e</span>);
|
||||
@ -1350,10 +1350,10 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3bed1e7" class="outline-4">
|
||||
<h4 id="org3bed1e7"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-org19019a8" class="outline-4">
|
||||
<h4 id="org19019a8"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org9c023e6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org447ba5e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1466,8 +1466,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org30b29e3" class="outline-4">
|
||||
<h4 id="org30b29e3"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-org5bd9b39" class="outline-4">
|
||||
<h4 id="org5bd9b39"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-3-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_electron_provided</span>(<span style="color: #a0522d;">context</span>));
|
||||
@ -1502,8 +1502,8 @@ rc = qmckl_get_electron_ee_distance_rescaled_deriv_e(context, ee_distance_rescal
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgffbea51" class="outline-3">
|
||||
<h3 id="orgffbea51"><span class="section-number-3">2.4</span> Electron-electron potential</h3>
|
||||
<div id="outline-container-orgb8ab492" class="outline-3">
|
||||
<h3 id="orgb8ab492"><span class="section-number-3">2.4</span> Electron-electron potential</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
<code>ee_pot</code> calculates the <code>ee</code> potential energy.
|
||||
@ -1521,8 +1521,8 @@ distance.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5fdf9ab" class="outline-4">
|
||||
<h4 id="org5fdf9ab"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-orgf73a8cd" class="outline-4">
|
||||
<h4 id="orgf73a8cd"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_ee_potential</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">ee_pot</span>);
|
||||
@ -1531,10 +1531,10 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcdad439" class="outline-4">
|
||||
<h4 id="orgcdad439"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-org03c8df8" class="outline-4">
|
||||
<h4 id="org03c8df8"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="orge9dd732" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0fb04c5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1650,8 +1650,8 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge4a9667" class="outline-4">
|
||||
<h4 id="orge4a9667"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-org862b71a" class="outline-4">
|
||||
<h4 id="org862b71a"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-4-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">double</span> <span style="color: #a0522d;">ee_pot</span>[walk_num];
|
||||
@ -1663,12 +1663,12 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_pot[0]));
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orga3dc1e6" class="outline-3">
|
||||
<h3 id="orga3dc1e6"><span class="section-number-3">2.5</span> Electron-nucleus distances</h3>
|
||||
<div id="outline-container-org24a9b3f" class="outline-3">
|
||||
<h3 id="org24a9b3f"><span class="section-number-3">2.5</span> Electron-nucleus distances</h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
</div>
|
||||
<div id="outline-container-org1210b09" class="outline-4">
|
||||
<h4 id="org1210b09"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div id="outline-container-orgf2e1e69" class="outline-4">
|
||||
<h4 id="orgf2e1e69"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-5-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_distance</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">distance</span>);
|
||||
@ -1677,10 +1677,10 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_pot[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2c140b1" class="outline-4">
|
||||
<h4 id="org2c140b1"><span class="section-number-4">2.5.2</span> Compute</h4>
|
||||
<div id="outline-container-org1517ebf" class="outline-4">
|
||||
<h4 id="org1517ebf"><span class="section-number-4">2.5.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-5-2">
|
||||
<table id="org1999919" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7f4f6eb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1805,8 +1805,8 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_pot[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org08176c3" class="outline-4">
|
||||
<h4 id="org08176c3"><span class="section-number-4">2.5.3</span> Test</h4>
|
||||
<div id="outline-container-org446cff3" class="outline-4">
|
||||
<h4 id="org446cff3"><span class="section-number-4">2.5.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-5-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">
|
||||
@ -1854,8 +1854,8 @@ rc = qmckl_get_electron_en_distance(context, &(en_distance[0][0][0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge8dec66" class="outline-3">
|
||||
<h3 id="orge8dec66"><span class="section-number-3">2.6</span> Electron-nucleus rescaled distances</h3>
|
||||
<div id="outline-container-orgdcbbc9e" class="outline-3">
|
||||
<h3 id="orgdcbbc9e"><span class="section-number-3">2.6</span> Electron-nucleus rescaled distances</h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
<code>en_distance_rescaled</code> stores the matrix of the rescaled distances between
|
||||
@ -1873,8 +1873,8 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5a555dc" class="outline-4">
|
||||
<h4 id="org5a555dc"><span class="section-number-4">2.6.1</span> Get</h4>
|
||||
<div id="outline-container-org70d730c" class="outline-4">
|
||||
<h4 id="org70d730c"><span class="section-number-4">2.6.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-6-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_distance_rescaled</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">distance_rescaled</span>);
|
||||
@ -1883,10 +1883,10 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org43eb0ca" class="outline-4">
|
||||
<h4 id="org43eb0ca"><span class="section-number-4">2.6.2</span> Compute</h4>
|
||||
<div id="outline-container-org3068c17" class="outline-4">
|
||||
<h4 id="org3068c17"><span class="section-number-4">2.6.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-6-2">
|
||||
<table id="org344ba45" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgae22471" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2026,8 +2026,8 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc372d49" class="outline-4">
|
||||
<h4 id="orgc372d49"><span class="section-number-4">2.6.3</span> Test</h4>
|
||||
<div id="outline-container-org94da008" class="outline-4">
|
||||
<h4 id="org94da008"><span class="section-number-4">2.6.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-6-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">
|
||||
@ -2075,8 +2075,8 @@ rc = qmckl_get_electron_en_distance_rescaled(context, &(en_distance_rescaled
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org246d2b8" class="outline-3">
|
||||
<h3 id="org246d2b8"><span class="section-number-3">2.7</span> Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</h3>
|
||||
<div id="outline-container-orga191153" class="outline-3">
|
||||
<h3 id="orga191153"><span class="section-number-3">2.7</span> Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</h3>
|
||||
<div class="outline-text-3" id="text-2-7">
|
||||
<p>
|
||||
The rescaled distances which is given as \(R = (1 - \exp{-\kappa r})/\kappa\)
|
||||
@ -2088,8 +2088,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7a56f1d" class="outline-4">
|
||||
<h4 id="org7a56f1d"><span class="section-number-4">2.7.1</span> Get</h4>
|
||||
<div id="outline-container-orgf7d24d2" class="outline-4">
|
||||
<h4 id="orgf7d24d2"><span class="section-number-4">2.7.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-7-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_distance_rescaled_deriv_e</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">distance_rescaled_deriv_e</span>);
|
||||
@ -2098,10 +2098,10 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdae38dc" class="outline-4">
|
||||
<h4 id="orgdae38dc"><span class="section-number-4">2.7.2</span> Compute</h4>
|
||||
<div id="outline-container-orgbf9bb7e" class="outline-4">
|
||||
<h4 id="orgbf9bb7e"><span class="section-number-4">2.7.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-7-2">
|
||||
<table id="orge4c74d1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org15c48ca" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2242,8 +2242,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5d95473" class="outline-4">
|
||||
<h4 id="org5d95473"><span class="section-number-4">2.7.3</span> Test</h4>
|
||||
<div id="outline-container-orgf3b26c9" class="outline-4">
|
||||
<h4 id="orgf3b26c9"><span class="section-number-4">2.7.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-7-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">
|
||||
@ -2295,8 +2295,8 @@ rc = qmckl_get_electron_en_distance_rescaled_deriv_e(context, &(en_distance_
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgff9eb88" class="outline-3">
|
||||
<h3 id="orgff9eb88"><span class="section-number-3">2.8</span> Electron-nucleus potential</h3>
|
||||
<div id="outline-container-orga31b91d" class="outline-3">
|
||||
<h3 id="orga31b91d"><span class="section-number-3">2.8</span> Electron-nucleus potential</h3>
|
||||
<div class="outline-text-3" id="text-2-8">
|
||||
<p>
|
||||
<code>en_potential</code> stores the <code>en</code> potential energy
|
||||
@ -2314,8 +2314,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9ccd342" class="outline-4">
|
||||
<h4 id="org9ccd342"><span class="section-number-4">2.8.1</span> Get</h4>
|
||||
<div id="outline-container-org429a4b0" class="outline-4">
|
||||
<h4 id="org429a4b0"><span class="section-number-4">2.8.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-8-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_potential</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">en_pot</span>);
|
||||
@ -2324,10 +2324,10 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org37cb5c0" class="outline-4">
|
||||
<h4 id="org37cb5c0"><span class="section-number-4">2.8.2</span> Compute</h4>
|
||||
<div id="outline-container-orgc7675e8" class="outline-4">
|
||||
<h4 id="orgc7675e8"><span class="section-number-4">2.8.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-8-2">
|
||||
<table id="orge29d5d1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgcb97131" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2461,8 +2461,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb2c4625" class="outline-4">
|
||||
<h4 id="orgb2c4625"><span class="section-number-4">2.8.3</span> Test</h4>
|
||||
<div id="outline-container-org02530a9" class="outline-4">
|
||||
<h4 id="org02530a9"><span class="section-number-4">2.8.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-8-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">double</span> <span style="color: #a0522d;">en_pot</span>[walk_num];
|
||||
@ -2478,7 +2478,7 @@ rc = qmckl_get_electron_en_potential(context, &(en_pot[0]));
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 14:37</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 15:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-01-08 Sat 14:37 -->
|
||||
<!-- 2022-01-08 Sat 15:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Error handling</title>
|
||||
@ -311,17 +311,17 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org99988d2">1. Decoding errors</a></li>
|
||||
<li><a href="#orgfe0fbad">2. Data structure in context</a></li>
|
||||
<li><a href="#org2d5809c">3. Updating errors in the context</a></li>
|
||||
<li><a href="#orge0ca7b0">4. Get the error</a></li>
|
||||
<li><a href="#org5cb3b4f">5. Failing</a></li>
|
||||
<li><a href="#org7f32870">1. Decoding errors</a></li>
|
||||
<li><a href="#orgf04de41">2. Data structure in context</a></li>
|
||||
<li><a href="#org733e1e4">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org083bef0">4. Get the error</a></li>
|
||||
<li><a href="#org2d5521c">5. Failing</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org99988d2" class="outline-2">
|
||||
<h2 id="org99988d2"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-org7f32870" class="outline-2">
|
||||
<h2 id="org7f32870"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
To decode the error messages, <code>qmckl_string_of_error</code> converts an
|
||||
@ -451,8 +451,8 @@ The text strings are extracted from the previous table.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfe0fbad" class="outline-2">
|
||||
<h2 id="orgfe0fbad"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-orgf04de41" class="outline-2">
|
||||
<h2 id="orgf04de41"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The strings are declared with a maximum fixed size to avoid
|
||||
@ -475,8 +475,8 @@ dynamic memory allocation.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2d5809c" class="outline-2">
|
||||
<h2 id="org2d5809c"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div id="outline-container-org733e1e4" class="outline-2">
|
||||
<h2 id="org733e1e4"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
The error is updated in the context using <code>qmckl_set_error</code>.
|
||||
@ -522,8 +522,8 @@ explaining the error. The exit code can't be <code>QMCKL_SUCCESS</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge0ca7b0" class="outline-2">
|
||||
<h2 id="orge0ca7b0"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div id="outline-container-org083bef0" class="outline-2">
|
||||
<h2 id="org083bef0"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
Upon error, the error type and message can be obtained from the
|
||||
@ -575,8 +575,8 @@ function name and message is mandatory.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5cb3b4f" class="outline-2">
|
||||
<h2 id="org5cb3b4f"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div id="outline-container-org2d5521c" class="outline-2">
|
||||
<h2 id="org2d5521c"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
<p>
|
||||
To make a function fail, the <code>qmckl_failwith</code> function should be
|
||||
@ -639,7 +639,7 @@ For example, this function can be used as
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 14:37</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 15:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-01-08 Sat 14:37 -->
|
||||
<!-- 2022-01-08 Sat 15:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Jastrow Factor</title>
|
||||
@ -333,100 +333,100 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orge0a6f1b">1. Context</a>
|
||||
<li><a href="#org4f9f322">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orge63c910">1.1. Data structure</a></li>
|
||||
<li><a href="#org2645da8">1.2. Access functions</a></li>
|
||||
<li><a href="#org9d15a18">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org428af0a">1.4. Test</a></li>
|
||||
<li><a href="#orgfa46096">1.1. Data structure</a></li>
|
||||
<li><a href="#orgbdfdc3b">1.2. Access functions</a></li>
|
||||
<li><a href="#org8fff98d">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgcf1552d">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org513f1b4">2. Computation</a>
|
||||
<li><a href="#org3952ac3">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgb6775c1">2.1. Asymptotic component for \(f_{ee}\)</a>
|
||||
<li><a href="#org34e190b">2.1. Asymptotic component for \(f_{ee}\)</a>
|
||||
<ul>
|
||||
<li><a href="#orgbd6b3ee">2.1.1. Get</a></li>
|
||||
<li><a href="#org144648f">2.1.2. Compute</a></li>
|
||||
<li><a href="#org95aad6e">2.1.3. Test</a></li>
|
||||
<li><a href="#org07e477b">2.1.1. Get</a></li>
|
||||
<li><a href="#orgd7f0e58">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgdbd3889">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgedd5e4a">2.2. Electron-electron component \(f_{ee}\)</a>
|
||||
<li><a href="#org7bb7b73">2.2. Electron-electron component \(f_{ee}\)</a>
|
||||
<ul>
|
||||
<li><a href="#org226c89c">2.2.1. Get</a></li>
|
||||
<li><a href="#org8e2fa99">2.2.2. Compute</a></li>
|
||||
<li><a href="#org637965a">2.2.3. Test</a></li>
|
||||
<li><a href="#org3193f29">2.2.1. Get</a></li>
|
||||
<li><a href="#org609aa86">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgb44e8c2">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org84b8413">2.3. Electron-electron component derivative \(f'_{ee}\)</a>
|
||||
<li><a href="#orgddc6384">2.3. Electron-electron component derivative \(f'_{ee}\)</a>
|
||||
<ul>
|
||||
<li><a href="#org26cff37">2.3.1. Get</a></li>
|
||||
<li><a href="#org12256c7">2.3.2. Compute</a></li>
|
||||
<li><a href="#org26b5a77">2.3.3. Test</a></li>
|
||||
<li><a href="#org2a536f5">2.3.1. Get</a></li>
|
||||
<li><a href="#orge3b0759">2.3.2. Compute</a></li>
|
||||
<li><a href="#orgc44544f">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga0562ed">2.4. Electron-nucleus component \(f_{en}\)</a>
|
||||
<li><a href="#orgdc5d588">2.4. Electron-nucleus component \(f_{en}\)</a>
|
||||
<ul>
|
||||
<li><a href="#orgf833d86">2.4.1. Get</a></li>
|
||||
<li><a href="#org078e47c">2.4.2. Compute</a></li>
|
||||
<li><a href="#org71e16ec">2.4.3. Test</a></li>
|
||||
<li><a href="#orgbb36216">2.4.1. Get</a></li>
|
||||
<li><a href="#orgce4e66e">2.4.2. Compute</a></li>
|
||||
<li><a href="#org9c57178">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org780eea2">2.5. Electron-nucleus component derivative \(f'_{en}\)</a>
|
||||
<li><a href="#orgc6a67c6">2.5. Electron-nucleus component derivative \(f'_{en}\)</a>
|
||||
<ul>
|
||||
<li><a href="#org245b9fa">2.5.1. Get</a></li>
|
||||
<li><a href="#orgc2123e2">2.5.2. Compute</a></li>
|
||||
<li><a href="#orgb304ecf">2.5.3. Test</a></li>
|
||||
<li><a href="#orgb9cdeda">2.5.1. Get</a></li>
|
||||
<li><a href="#org5992da1">2.5.2. Compute</a></li>
|
||||
<li><a href="#org3536663">2.5.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf483aa4">2.6. Electron-electron rescaled distances for each order</a>
|
||||
<li><a href="#org747d5b8">2.6. Electron-electron rescaled distances for each order</a>
|
||||
<ul>
|
||||
<li><a href="#orgd935341">2.6.1. Get</a></li>
|
||||
<li><a href="#orgb9d4c74">2.6.2. Compute</a></li>
|
||||
<li><a href="#orgc04e4c4">2.6.3. Test</a></li>
|
||||
<li><a href="#org6e54bac">2.6.1. Get</a></li>
|
||||
<li><a href="#org32889f9">2.6.2. Compute</a></li>
|
||||
<li><a href="#org8709d8b">2.6.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org301c36f">2.7. Electron-electron rescaled distances for each order and derivatives</a>
|
||||
<li><a href="#org79046e4">2.7. Electron-electron rescaled distances for each order and derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#org72b8388">2.7.1. Get</a></li>
|
||||
<li><a href="#orgccd95bb">2.7.2. Compute</a></li>
|
||||
<li><a href="#org0f4dc45">2.7.3. Test</a></li>
|
||||
<li><a href="#org76612b5">2.7.1. Get</a></li>
|
||||
<li><a href="#org9b4f410">2.7.2. Compute</a></li>
|
||||
<li><a href="#orge5442e6">2.7.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgce91c8f">2.8. Electron-nucleus rescaled distances for each order</a>
|
||||
<li><a href="#org7069ed7">2.8. Electron-nucleus rescaled distances for each order</a>
|
||||
<ul>
|
||||
<li><a href="#orgc700c40">2.8.1. Get</a></li>
|
||||
<li><a href="#org8f6af78">2.8.2. Compute</a></li>
|
||||
<li><a href="#org5fe8ead">2.8.3. Test</a></li>
|
||||
<li><a href="#orgc580f8d">2.8.1. Get</a></li>
|
||||
<li><a href="#org2909091">2.8.2. Compute</a></li>
|
||||
<li><a href="#orgfba27c1">2.8.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org25eb498">2.9. Electron-nucleus rescaled distances for each order and derivatives</a>
|
||||
<li><a href="#org1264cfe">2.9. Electron-nucleus rescaled distances for each order and derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#orgf60ad0f">2.9.1. Get</a></li>
|
||||
<li><a href="#org719538a">2.9.2. Compute</a></li>
|
||||
<li><a href="#org39f8c36">2.9.3. Test</a></li>
|
||||
<li><a href="#orgdc4a267">2.9.1. Get</a></li>
|
||||
<li><a href="#org6f5d348">2.9.2. Compute</a></li>
|
||||
<li><a href="#orgb2b5773">2.9.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd8e09a6">2.10. Prepare for electron-electron-nucleus Jastrow \(f_{een}\)</a>
|
||||
<li><a href="#orgdf981a9">2.10. Prepare for electron-electron-nucleus Jastrow \(f_{een}\)</a>
|
||||
<ul>
|
||||
<li><a href="#orgdf8f212">2.10.1. Get</a></li>
|
||||
<li><a href="#orgb9a3529">2.10.2. Compute dim<sub>cord</sub><sub>vect</sub></a></li>
|
||||
<li><a href="#org134b6af">2.10.3. Compute cord<sub>vect</sub><sub>full</sub></a></li>
|
||||
<li><a href="#org6ea1a8c">2.10.4. Compute lkpm<sub>combined</sub><sub>index</sub></a></li>
|
||||
<li><a href="#orge110615">2.10.5. Test</a></li>
|
||||
<li><a href="#org1c9cdea">2.10.1. Get</a></li>
|
||||
<li><a href="#orge9fbd8a">2.10.2. Compute dim<sub>cord</sub><sub>vect</sub></a></li>
|
||||
<li><a href="#orgec2cc37">2.10.3. Compute cord<sub>vect</sub><sub>full</sub></a></li>
|
||||
<li><a href="#orga8a6938">2.10.4. Compute lkpm<sub>combined</sub><sub>index</sub></a></li>
|
||||
<li><a href="#org8d77d2d">2.10.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf3bca91">2.11. Electron-electron-nucleus Jastrow \(f_{een}\)</a>
|
||||
<li><a href="#org8964e9f">2.11. Electron-electron-nucleus Jastrow \(f_{een}\)</a>
|
||||
<ul>
|
||||
<li><a href="#org83d234f">2.11.1. Get</a></li>
|
||||
<li><a href="#org9c2e2b1">2.11.2. Compute</a></li>
|
||||
<li><a href="#orgf6aa00f">2.11.3. Test</a></li>
|
||||
<li><a href="#orgeafd81b">2.11.1. Get</a></li>
|
||||
<li><a href="#org450b432">2.11.2. Compute</a></li>
|
||||
<li><a href="#org96b6c99">2.11.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org58d4322">2.12. Electron-electron-nucleus Jastrow \(f_{een}\) derivative</a>
|
||||
<li><a href="#orgae52977">2.12. Electron-electron-nucleus Jastrow \(f_{een}\) derivative</a>
|
||||
<ul>
|
||||
<li><a href="#org554a3c8">2.12.1. Get</a></li>
|
||||
<li><a href="#orgcaaa318">2.12.2. Compute</a></li>
|
||||
<li><a href="#orge0d3ca2">2.12.3. Test</a></li>
|
||||
<li><a href="#orgacbdc4c">2.12.1. Get</a></li>
|
||||
<li><a href="#orgf7cc197">2.12.2. Compute</a></li>
|
||||
<li><a href="#org88a7ea2">2.12.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -435,14 +435,14 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge0a6f1b" class="outline-2">
|
||||
<h2 id="orge0a6f1b"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org4f9f322" class="outline-2">
|
||||
<h2 id="org4f9f322"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following data stored in the context:
|
||||
</p>
|
||||
|
||||
<table id="org6abf487" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org23b5326" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -770,7 +770,7 @@ For H2O we have the following data:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python" id="org3ada3f3"><span style="color: #a020f0;">import</span> numpy <span style="color: #a020f0;">as</span> np
|
||||
<pre class="src src-python" id="org7ae0486"><span style="color: #a020f0;">import</span> numpy <span style="color: #a020f0;">as</span> np
|
||||
|
||||
<span style="color: #a0522d;">elec_num</span> = 10
|
||||
<span style="color: #a0522d;">nucl_num</span> = 2
|
||||
@ -920,8 +920,8 @@ For H2O we have the following data:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge63c910" class="outline-3">
|
||||
<h3 id="orge63c910"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgfa46096" class="outline-3">
|
||||
<h3 id="orgfa46096"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_jastrow_struct</span>{
|
||||
@ -1008,8 +1008,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2645da8" class="outline-3">
|
||||
<h3 id="org2645da8"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgbdfdc3b" class="outline-3">
|
||||
<h3 id="orgbdfdc3b"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
Along with these core functions, calculation of the jastrow factor
|
||||
@ -1029,8 +1029,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9d15a18" class="outline-3">
|
||||
<h3 id="org9d15a18"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org8fff98d" class="outline-3">
|
||||
<h3 id="org8fff98d"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To prepare for the Jastrow and its derivative, all the following functions need to be
|
||||
@ -1056,8 +1056,8 @@ are precontracted using BLAS LEVEL 3 operations for an optimal FLOP count.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org428af0a" class="outline-3">
|
||||
<h3 id="org428af0a"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orgcf1552d" class="outline-3">
|
||||
<h3 id="orgcf1552d"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -1232,8 +1232,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org513f1b4" class="outline-2">
|
||||
<h2 id="org513f1b4"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org3952ac3" class="outline-2">
|
||||
<h2 id="org3952ac3"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The computed data is stored in the context so that it can be reused
|
||||
@ -1246,8 +1246,8 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb6775c1" class="outline-3">
|
||||
<h3 id="orgb6775c1"><span class="section-number-3">2.1</span> Asymptotic component for \(f_{ee}\)</h3>
|
||||
<div id="outline-container-org34e190b" class="outline-3">
|
||||
<h3 id="org34e190b"><span class="section-number-3">2.1</span> Asymptotic component for \(f_{ee}\)</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
Calculate the asymptotic component <code>asymp_jasb</code> to be substracted from the final
|
||||
@ -1262,8 +1262,8 @@ via the <code>bord_vector</code> and the electron-electron rescale factor <code>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbd6b3ee" class="outline-4">
|
||||
<h4 id="orgbd6b3ee"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org07e477b" class="outline-4">
|
||||
<h4 id="org07e477b"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_jastrow_asymp_jasb</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">asymp_jasb</span>);
|
||||
@ -1272,10 +1272,10 @@ via the <code>bord_vector</code> and the electron-electron rescale factor <code>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org144648f" class="outline-4">
|
||||
<h4 id="org144648f"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-orgd7f0e58" class="outline-4">
|
||||
<h4 id="orgd7f0e58"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orgb155769" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc95e75f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1388,8 +1388,8 @@ via the <code>bord_vector</code> and the electron-electron rescale factor <code>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org95aad6e" class="outline-4">
|
||||
<h4 id="org95aad6e"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orgdbd3889" class="outline-4">
|
||||
<h4 id="orgdbd3889"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_electron_provided</span>(<span style="color: #a0522d;">context</span>));
|
||||
@ -1441,8 +1441,8 @@ rc = qmckl_get_jastrow_asymp_jasb(context, asymp_jasb);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgedd5e4a" class="outline-3">
|
||||
<h3 id="orgedd5e4a"><span class="section-number-3">2.2</span> Electron-electron component \(f_{ee}\)</h3>
|
||||
<div id="outline-container-org7bb7b73" class="outline-3">
|
||||
<h3 id="org7bb7b73"><span class="section-number-3">2.2</span> Electron-electron component \(f_{ee}\)</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
Calculate the electron-electron jastrow component <code>factor_ee</code> using the <code>asymp_jasb</code>
|
||||
@ -1457,8 +1457,8 @@ f_{ee} = \sum_{i,j<i} \left\{ \frac{ \eta B_0 C_{ij}}{1 - B_1 C_{ij}} - J_{asym
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org226c89c" class="outline-4">
|
||||
<h4 id="org226c89c"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org3193f29" class="outline-4">
|
||||
<h4 id="org3193f29"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_jastrow_factor_ee</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">factor_ee</span>);
|
||||
@ -1467,10 +1467,10 @@ f_{ee} = \sum_{i,j<i} \left\{ \frac{ \eta B_0 C_{ij}}{1 - B_1 C_{ij}} - J_{asym
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8e2fa99" class="outline-4">
|
||||
<h4 id="org8e2fa99"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org609aa86" class="outline-4">
|
||||
<h4 id="org609aa86"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="org726efcc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgbe8f9a9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1645,8 +1645,8 @@ f_{ee} = \sum_{i,j<i} \left\{ \frac{ \eta B_0 C_{ij}}{1 - B_1 C_{ij}} - J_{asym
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org637965a" class="outline-4">
|
||||
<h4 id="org637965a"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-orgb44e8c2" class="outline-4">
|
||||
<h4 id="orgb44e8c2"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -1664,8 +1664,8 @@ rc = qmckl_get_jastrow_factor_ee(context, factor_ee);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org84b8413" class="outline-3">
|
||||
<h3 id="org84b8413"><span class="section-number-3">2.3</span> Electron-electron component derivative \(f'_{ee}\)</h3>
|
||||
<div id="outline-container-orgddc6384" class="outline-3">
|
||||
<h3 id="orgddc6384"><span class="section-number-3">2.3</span> Electron-electron component derivative \(f'_{ee}\)</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
Calculate the derivative of the <code>factor_ee</code> using the <code>ee_distance_rescaled</code> and
|
||||
@ -1680,8 +1680,8 @@ TODO: Add equation
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org26cff37" class="outline-4">
|
||||
<h4 id="org26cff37"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org2a536f5" class="outline-4">
|
||||
<h4 id="org2a536f5"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_jastrow_factor_ee_deriv_e</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">factor_ee_deriv_e</span>);
|
||||
@ -1690,10 +1690,10 @@ TODO: Add equation
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org12256c7" class="outline-4">
|
||||
<h4 id="org12256c7"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-orge3b0759" class="outline-4">
|
||||
<h4 id="orge3b0759"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org416c29f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgea49370" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1908,8 +1908,8 @@ TODO: Add equation
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org26b5a77" class="outline-4">
|
||||
<h4 id="org26b5a77"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-orgc44544f" class="outline-4">
|
||||
<h4 id="orgc44544f"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-3-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -1931,8 +1931,8 @@ rc = qmckl_get_jastrow_factor_ee_deriv_e(context, &(factor_ee_deriv_e[0][0][
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga0562ed" class="outline-3">
|
||||
<h3 id="orga0562ed"><span class="section-number-3">2.4</span> Electron-nucleus component \(f_{en}\)</h3>
|
||||
<div id="outline-container-orgdc5d588" class="outline-3">
|
||||
<h3 id="orgdc5d588"><span class="section-number-3">2.4</span> Electron-nucleus component \(f_{en}\)</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
Calculate the electron-electron jastrow component <code>factor_en</code> using the <code>aord_vector</code>
|
||||
@ -1947,8 +1947,8 @@ f_{en} = \sum_{i,j<i} \left\{ \frac{ A_0 C_{ij}}{1 - A_1 C_{ij}} + \sum^{nord}_{
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgf833d86" class="outline-4">
|
||||
<h4 id="orgf833d86"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-orgbb36216" class="outline-4">
|
||||
<h4 id="orgbb36216"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_jastrow_factor_en</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">factor_en</span>);
|
||||
@ -1957,10 +1957,10 @@ f_{en} = \sum_{i,j<i} \left\{ \frac{ A_0 C_{ij}}{1 - A_1 C_{ij}} + \sum^{nord}_{
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org078e47c" class="outline-4">
|
||||
<h4 id="org078e47c"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-orgce4e66e" class="outline-4">
|
||||
<h4 id="orgce4e66e"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="orgb1d98a1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc21f75f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2142,8 +2142,8 @@ f_{en} = \sum_{i,j<i} \left\{ \frac{ A_0 C_{ij}}{1 - A_1 C_{ij}} + \sum^{nord}_{
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org71e16ec" class="outline-4">
|
||||
<h4 id="org71e16ec"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-org9c57178" class="outline-4">
|
||||
<h4 id="org9c57178"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-4-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -2161,8 +2161,8 @@ rc = qmckl_get_jastrow_factor_en(context, factor_en);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org780eea2" class="outline-3">
|
||||
<h3 id="org780eea2"><span class="section-number-3">2.5</span> Electron-nucleus component derivative \(f'_{en}\)</h3>
|
||||
<div id="outline-container-orgc6a67c6" class="outline-3">
|
||||
<h3 id="orgc6a67c6"><span class="section-number-3">2.5</span> Electron-nucleus component derivative \(f'_{en}\)</h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
<p>
|
||||
Calculate the electron-electron jastrow component <code>factor_en_deriv_e</code> derivative
|
||||
@ -2175,8 +2175,8 @@ TODO: write equations.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org245b9fa" class="outline-4">
|
||||
<h4 id="org245b9fa"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div id="outline-container-orgb9cdeda" class="outline-4">
|
||||
<h4 id="orgb9cdeda"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-5-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_jastrow_factor_en_deriv_e</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">factor_en_deriv_e</span>);
|
||||
@ -2185,10 +2185,10 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc2123e2" class="outline-4">
|
||||
<h4 id="orgc2123e2"><span class="section-number-4">2.5.2</span> Compute</h4>
|
||||
<div id="outline-container-org5992da1" class="outline-4">
|
||||
<h4 id="org5992da1"><span class="section-number-4">2.5.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-5-2">
|
||||
<table id="org8bc8416" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgaa44ce0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2409,8 +2409,8 @@ TODO: write equations.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgb304ecf" class="outline-4">
|
||||
<h4 id="orgb304ecf"><span class="section-number-4">2.5.3</span> Test</h4>
|
||||
<div id="outline-container-org3536663" class="outline-4">
|
||||
<h4 id="org3536663"><span class="section-number-4">2.5.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-5-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -2432,8 +2432,8 @@ rc = qmckl_get_jastrow_factor_en_deriv_e(context, &(factor_en_deriv_e[0][0][
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf483aa4" class="outline-3">
|
||||
<h3 id="orgf483aa4"><span class="section-number-3">2.6</span> Electron-electron rescaled distances for each order</h3>
|
||||
<div id="outline-container-org747d5b8" class="outline-3">
|
||||
<h3 id="org747d5b8"><span class="section-number-3">2.6</span> Electron-electron rescaled distances for each order</h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
<code>een_rescaled_e</code> stores the table of the rescaled distances between all
|
||||
@ -2451,8 +2451,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd935341" class="outline-4">
|
||||
<h4 id="orgd935341"><span class="section-number-4">2.6.1</span> Get</h4>
|
||||
<div id="outline-container-org6e54bac" class="outline-4">
|
||||
<h4 id="org6e54bac"><span class="section-number-4">2.6.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-6-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_jastrow_een_rescaled_e</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">distance_rescaled</span>);
|
||||
@ -2461,10 +2461,10 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb9d4c74" class="outline-4">
|
||||
<h4 id="orgb9d4c74"><span class="section-number-4">2.6.2</span> Compute</h4>
|
||||
<div id="outline-container-org32889f9" class="outline-4">
|
||||
<h4 id="org32889f9"><span class="section-number-4">2.6.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-6-2">
|
||||
<table id="org0ec3d3f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3c5284c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2638,8 +2638,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc04e4c4" class="outline-4">
|
||||
<h4 id="orgc04e4c4"><span class="section-number-4">2.6.3</span> Test</h4>
|
||||
<div id="outline-container-org8709d8b" class="outline-4">
|
||||
<h4 id="org8709d8b"><span class="section-number-4">2.6.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-6-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_electron_provided</span>(<span style="color: #a0522d;">context</span>));
|
||||
@ -2662,8 +2662,8 @@ rc = qmckl_get_jastrow_een_rescaled_e(context, &(een_rescaled_e[0][0][0][0])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org301c36f" class="outline-3">
|
||||
<h3 id="org301c36f"><span class="section-number-3">2.7</span> Electron-electron rescaled distances for each order and derivatives</h3>
|
||||
<div id="outline-container-org79046e4" class="outline-3">
|
||||
<h3 id="org79046e4"><span class="section-number-3">2.7</span> Electron-electron rescaled distances for each order and derivatives</h3>
|
||||
<div class="outline-text-3" id="text-2-7">
|
||||
<p>
|
||||
<code>een_rescaled_e_deriv_e</code> stores the table of the derivatives of the
|
||||
@ -2678,8 +2678,8 @@ TODO: write formulae
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org72b8388" class="outline-4">
|
||||
<h4 id="org72b8388"><span class="section-number-4">2.7.1</span> Get</h4>
|
||||
<div id="outline-container-org76612b5" class="outline-4">
|
||||
<h4 id="org76612b5"><span class="section-number-4">2.7.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-7-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_jastrow_een_rescaled_e_deriv_e</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">distance_rescaled</span>);
|
||||
@ -2688,10 +2688,10 @@ TODO: write formulae
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgccd95bb" class="outline-4">
|
||||
<h4 id="orgccd95bb"><span class="section-number-4">2.7.2</span> Compute</h4>
|
||||
<div id="outline-container-org9b4f410" class="outline-4">
|
||||
<h4 id="org9b4f410"><span class="section-number-4">2.7.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-7-2">
|
||||
<table id="orgac6f1dc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3d280ea" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2878,8 +2878,8 @@ TODO: write formulae
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org0f4dc45" class="outline-4">
|
||||
<h4 id="org0f4dc45"><span class="section-number-4">2.7.3</span> Test</h4>
|
||||
<div id="outline-container-orge5442e6" class="outline-4">
|
||||
<h4 id="orge5442e6"><span class="section-number-4">2.7.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-7-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">//<span style="color: #b22222;">assert(qmckl_electron_provided(context));</span>
|
||||
@ -2899,8 +2899,8 @@ rc = qmckl_get_jastrow_een_rescaled_e_deriv_e(context, &(een_rescaled_e_deri
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgce91c8f" class="outline-3">
|
||||
<h3 id="orgce91c8f"><span class="section-number-3">2.8</span> Electron-nucleus rescaled distances for each order</h3>
|
||||
<div id="outline-container-org7069ed7" class="outline-3">
|
||||
<h3 id="org7069ed7"><span class="section-number-3">2.8</span> Electron-nucleus rescaled distances for each order</h3>
|
||||
<div class="outline-text-3" id="text-2-8">
|
||||
<p>
|
||||
<code>een_rescaled_n</code> stores the table of the rescaled distances between
|
||||
@ -2918,8 +2918,8 @@ where \(C_{ia}\) is the matrix of electron-nucleus distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc700c40" class="outline-4">
|
||||
<h4 id="orgc700c40"><span class="section-number-4">2.8.1</span> Get</h4>
|
||||
<div id="outline-container-orgc580f8d" class="outline-4">
|
||||
<h4 id="orgc580f8d"><span class="section-number-4">2.8.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-8-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_jastrow_een_rescaled_n</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">distance_rescaled</span>);
|
||||
@ -2928,10 +2928,10 @@ where \(C_{ia}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8f6af78" class="outline-4">
|
||||
<h4 id="org8f6af78"><span class="section-number-4">2.8.2</span> Compute</h4>
|
||||
<div id="outline-container-org2909091" class="outline-4">
|
||||
<h4 id="org2909091"><span class="section-number-4">2.8.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-8-2">
|
||||
<table id="org3db3f03" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6d48cd0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3095,8 +3095,8 @@ where \(C_{ia}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5fe8ead" class="outline-4">
|
||||
<h4 id="org5fe8ead"><span class="section-number-4">2.8.3</span> Test</h4>
|
||||
<div id="outline-container-orgfba27c1" class="outline-4">
|
||||
<h4 id="orgfba27c1"><span class="section-number-4">2.8.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-8-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_electron_provided</span>(<span style="color: #a0522d;">context</span>));
|
||||
@ -3118,8 +3118,8 @@ rc = qmckl_get_jastrow_een_rescaled_n(context, &(een_rescaled_n[0][0][0][0])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org25eb498" class="outline-3">
|
||||
<h3 id="org25eb498"><span class="section-number-3">2.9</span> Electron-nucleus rescaled distances for each order and derivatives</h3>
|
||||
<div id="outline-container-org1264cfe" class="outline-3">
|
||||
<h3 id="org1264cfe"><span class="section-number-3">2.9</span> Electron-nucleus rescaled distances for each order and derivatives</h3>
|
||||
<div class="outline-text-3" id="text-2-9">
|
||||
<p>
|
||||
<code>een_rescaled_n_deriv_e</code> stores the table of the rescaled distances between
|
||||
@ -3128,8 +3128,8 @@ electrons and nucleii raised to the power \(p\) defined by <code>cord_num</code>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgf60ad0f" class="outline-4">
|
||||
<h4 id="orgf60ad0f"><span class="section-number-4">2.9.1</span> Get</h4>
|
||||
<div id="outline-container-orgdc4a267" class="outline-4">
|
||||
<h4 id="orgdc4a267"><span class="section-number-4">2.9.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-9-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_jastrow_een_rescaled_n_deriv_e</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">distance_rescaled</span>);
|
||||
@ -3138,10 +3138,10 @@ electrons and nucleii raised to the power \(p\) defined by <code>cord_num</code>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org719538a" class="outline-4">
|
||||
<h4 id="org719538a"><span class="section-number-4">2.9.2</span> Compute</h4>
|
||||
<div id="outline-container-org6f5d348" class="outline-4">
|
||||
<h4 id="org6f5d348"><span class="section-number-4">2.9.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-9-2">
|
||||
<table id="org2b90ef0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org199ae1f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3351,8 +3351,8 @@ electrons and nucleii raised to the power \(p\) defined by <code>cord_num</code>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org39f8c36" class="outline-4">
|
||||
<h4 id="org39f8c36"><span class="section-number-4">2.9.3</span> Test</h4>
|
||||
<div id="outline-container-orgb2b5773" class="outline-4">
|
||||
<h4 id="orgb2b5773"><span class="section-number-4">2.9.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-9-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_electron_provided</span>(<span style="color: #a0522d;">context</span>));
|
||||
@ -3374,8 +3374,8 @@ rc = qmckl_get_jastrow_een_rescaled_n_deriv_e(context, &(een_rescaled_n_deri
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd8e09a6" class="outline-3">
|
||||
<h3 id="orgd8e09a6"><span class="section-number-3">2.10</span> Prepare for electron-electron-nucleus Jastrow \(f_{een}\)</h3>
|
||||
<div id="outline-container-orgdf981a9" class="outline-3">
|
||||
<h3 id="orgdf981a9"><span class="section-number-3">2.10</span> Prepare for electron-electron-nucleus Jastrow \(f_{een}\)</h3>
|
||||
<div class="outline-text-3" id="text-2-10">
|
||||
<p>
|
||||
Prepare <code>cord_vect_full</code> and <code>lkpm_combined_index</code> tables required for the
|
||||
@ -3384,8 +3384,8 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdf8f212" class="outline-4">
|
||||
<h4 id="orgdf8f212"><span class="section-number-4">2.10.1</span> Get</h4>
|
||||
<div id="outline-container-org1c9cdea" class="outline-4">
|
||||
<h4 id="org1c9cdea"><span class="section-number-4">2.10.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-10-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_jastrow_dim_cord_vect</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">int64_t</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">dim_cord_vect</span>);
|
||||
@ -3396,10 +3396,10 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb9a3529" class="outline-4">
|
||||
<h4 id="orgb9a3529"><span class="section-number-4">2.10.2</span> Compute dim<sub>cord</sub><sub>vect</sub></h4>
|
||||
<div id="outline-container-orge9fbd8a" class="outline-4">
|
||||
<h4 id="orge9fbd8a"><span class="section-number-4">2.10.2</span> Compute dim<sub>cord</sub><sub>vect</sub></h4>
|
||||
<div class="outline-text-4" id="text-2-10-2">
|
||||
<table id="orgaf5fa21" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1378cdc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3497,10 +3497,10 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org134b6af" class="outline-4">
|
||||
<h4 id="org134b6af"><span class="section-number-4">2.10.3</span> Compute cord<sub>vect</sub><sub>full</sub></h4>
|
||||
<div id="outline-container-orgec2cc37" class="outline-4">
|
||||
<h4 id="orgec2cc37"><span class="section-number-4">2.10.3</span> Compute cord<sub>vect</sub><sub>full</sub></h4>
|
||||
<div class="outline-text-4" id="text-2-10-3">
|
||||
<table id="org3e40c30" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd5fe458" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3634,10 +3634,10 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org6ea1a8c" class="outline-4">
|
||||
<h4 id="org6ea1a8c"><span class="section-number-4">2.10.4</span> Compute lkpm<sub>combined</sub><sub>index</sub></h4>
|
||||
<div id="outline-container-orga8a6938" class="outline-4">
|
||||
<h4 id="orga8a6938"><span class="section-number-4">2.10.4</span> Compute lkpm<sub>combined</sub><sub>index</sub></h4>
|
||||
<div class="outline-text-4" id="text-2-10-4">
|
||||
<table id="org3158c5a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5b6656a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3755,8 +3755,8 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orge110615" class="outline-4">
|
||||
<h4 id="orge110615"><span class="section-number-4">2.10.5</span> Test</h4>
|
||||
<div id="outline-container-org8d77d2d" class="outline-4">
|
||||
<h4 id="org8d77d2d"><span class="section-number-4">2.10.5</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-10-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">//<span style="color: #b22222;">assert(qmckl_electron_provided(context));</span>
|
||||
@ -3768,8 +3768,8 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf3bca91" class="outline-3">
|
||||
<h3 id="orgf3bca91"><span class="section-number-3">2.11</span> Electron-electron-nucleus Jastrow \(f_{een}\)</h3>
|
||||
<div id="outline-container-org8964e9f" class="outline-3">
|
||||
<h3 id="org8964e9f"><span class="section-number-3">2.11</span> Electron-electron-nucleus Jastrow \(f_{een}\)</h3>
|
||||
<div class="outline-text-3" id="text-2-11">
|
||||
<p>
|
||||
Calculate the electron-electron-nuclear three-body jastrow component <code>factor_een</code>
|
||||
@ -3781,8 +3781,8 @@ TODO: write equations.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org83d234f" class="outline-4">
|
||||
<h4 id="org83d234f"><span class="section-number-4">2.11.1</span> Get</h4>
|
||||
<div id="outline-container-orgeafd81b" class="outline-4">
|
||||
<h4 id="orgeafd81b"><span class="section-number-4">2.11.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-11-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_jastrow_factor_een</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">factor_een</span>);
|
||||
@ -3791,10 +3791,10 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9c2e2b1" class="outline-4">
|
||||
<h4 id="org9c2e2b1"><span class="section-number-4">2.11.2</span> Compute</h4>
|
||||
<div id="outline-container-org450b432" class="outline-4">
|
||||
<h4 id="org450b432"><span class="section-number-4">2.11.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-11-2">
|
||||
<table id="org5ea30be" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga8db1d6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3990,8 +3990,8 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf6aa00f" class="outline-4">
|
||||
<h4 id="orgf6aa00f"><span class="section-number-4">2.11.3</span> Test</h4>
|
||||
<div id="outline-container-org96b6c99" class="outline-4">
|
||||
<h4 id="org96b6c99"><span class="section-number-4">2.11.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-11-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -4007,8 +4007,8 @@ rc = qmckl_get_jastrow_factor_een(context, &(factor_een[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org58d4322" class="outline-3">
|
||||
<h3 id="org58d4322"><span class="section-number-3">2.12</span> Electron-electron-nucleus Jastrow \(f_{een}\) derivative</h3>
|
||||
<div id="outline-container-orgae52977" class="outline-3">
|
||||
<h3 id="orgae52977"><span class="section-number-3">2.12</span> Electron-electron-nucleus Jastrow \(f_{een}\) derivative</h3>
|
||||
<div class="outline-text-3" id="text-2-12">
|
||||
<p>
|
||||
Calculate the electron-electron-nuclear three-body jastrow component <code>factor_een_deriv_e</code>
|
||||
@ -4020,8 +4020,8 @@ TODO: write equations.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org554a3c8" class="outline-4">
|
||||
<h4 id="org554a3c8"><span class="section-number-4">2.12.1</span> Get</h4>
|
||||
<div id="outline-container-orgacbdc4c" class="outline-4">
|
||||
<h4 id="orgacbdc4c"><span class="section-number-4">2.12.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-12-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_jastrow_factor_een_deriv_e</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">factor_een_deriv_e</span>);
|
||||
@ -4030,10 +4030,10 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcaaa318" class="outline-4">
|
||||
<h4 id="orgcaaa318"><span class="section-number-4">2.12.2</span> Compute</h4>
|
||||
<div id="outline-container-orgf7cc197" class="outline-4">
|
||||
<h4 id="orgf7cc197"><span class="section-number-4">2.12.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-12-2">
|
||||
<table id="org177a2fd" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org42afa55" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4266,8 +4266,8 @@ TODO: write equations.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orge0d3ca2" class="outline-4">
|
||||
<h4 id="orge0d3ca2"><span class="section-number-4">2.12.3</span> Test</h4>
|
||||
<div id="outline-container-org88a7ea2" class="outline-4">
|
||||
<h4 id="org88a7ea2"><span class="section-number-4">2.12.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-12-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -4286,7 +4286,7 @@ rc = qmckl_get_jastrow_factor_een_deriv_e(context, &(factor_een_deriv_e[0][0
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 14:37</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 15:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-01-08 Sat 14:37 -->
|
||||
<!-- 2022-01-08 Sat 15:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Local Energy</title>
|
||||
@ -333,43 +333,43 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org5e14af2">1. Context</a>
|
||||
<li><a href="#org1b27118">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgf234314">1.1. Data structure</a></li>
|
||||
<li><a href="#orgaebac76">1.1. Data structure</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2b4f469">2. Computation</a>
|
||||
<li><a href="#orga3b9d1a">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgff679cf">2.1. Kinetic energy</a>
|
||||
<li><a href="#org8da623c">2.1. Kinetic energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgd03c8fe">2.1.1. Get</a></li>
|
||||
<li><a href="#orgbc7279c">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgf4461fc">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org5cbe213">2.1.4. Test</a></li>
|
||||
<li><a href="#orgd00774c">2.1.1. Get</a></li>
|
||||
<li><a href="#orgb23d365">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgba4d44f">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org79bb565">2.1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org009fd4e">2.2. Potential energy</a>
|
||||
<li><a href="#org19a5f1e">2.2. Potential energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgf56f8b1">2.2.1. Get</a></li>
|
||||
<li><a href="#org353f4af">2.2.2. Provide</a></li>
|
||||
<li><a href="#org4b0ca10">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org5e143a7">2.2.4. Test</a></li>
|
||||
<li><a href="#org7bed349">2.2.1. Get</a></li>
|
||||
<li><a href="#orgf3d7807">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgb793c9f">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#orgac0b19e">2.2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org07924c9">2.3. Local energy</a>
|
||||
<li><a href="#orgc511c72">2.3. Local energy</a>
|
||||
<ul>
|
||||
<li><a href="#org389cf89">2.3.1. Get</a></li>
|
||||
<li><a href="#orgb178cf8">2.3.2. Provide</a></li>
|
||||
<li><a href="#org7461545">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#org433ec5b">2.3.4. Test</a></li>
|
||||
<li><a href="#orgfd41456">2.3.1. Get</a></li>
|
||||
<li><a href="#org511c86f">2.3.2. Provide</a></li>
|
||||
<li><a href="#org8c2b517">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#org5f7d175">2.3.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga5d73a1">2.4. Drift vector</a>
|
||||
<li><a href="#orgaa5ab1a">2.4. Drift vector</a>
|
||||
<ul>
|
||||
<li><a href="#org2b4d33a">2.4.1. Get</a></li>
|
||||
<li><a href="#org35fbbab">2.4.2. Provide</a></li>
|
||||
<li><a href="#orgc470b80">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org3034539">2.4.4. Test</a></li>
|
||||
<li><a href="#org297dcf6">2.4.1. Get</a></li>
|
||||
<li><a href="#org557afd2">2.4.2. Provide</a></li>
|
||||
<li><a href="#orgfd4491b">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#orgfc6a26a">2.4.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -378,8 +378,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5e14af2" class="outline-2">
|
||||
<h2 id="org5e14af2"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org1b27118" class="outline-2">
|
||||
<h2 id="org1b27118"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following arrays are stored in the context:
|
||||
@ -452,8 +452,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf234314" class="outline-3">
|
||||
<h3 id="orgf234314"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgaebac76" class="outline-3">
|
||||
<h3 id="orgaebac76"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_local_energy_struct</span> {
|
||||
@ -488,12 +488,12 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2b4f469" class="outline-2">
|
||||
<h2 id="org2b4f469"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orga3b9d1a" class="outline-2">
|
||||
<h2 id="orga3b9d1a"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgff679cf" class="outline-3">
|
||||
<h3 id="orgff679cf"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div id="outline-container-org8da623c" class="outline-3">
|
||||
<h3 id="org8da623c"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
Where the kinetic energy is given as:
|
||||
@ -517,8 +517,8 @@ case is given as follows:
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd03c8fe" class="outline-4">
|
||||
<h4 id="orgd03c8fe"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orgd00774c" class="outline-4">
|
||||
<h4 id="orgd00774c"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_kinetic_energy</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">kinetic_energy</span>);
|
||||
@ -527,14 +527,14 @@ case is given as follows:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbc7279c" class="outline-4">
|
||||
<h4 id="orgbc7279c"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-orgb23d365" class="outline-4">
|
||||
<h4 id="orgb23d365"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf4461fc" class="outline-4">
|
||||
<h4 id="orgf4461fc"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
||||
<div id="outline-container-orgba4d44f" class="outline-4">
|
||||
<h4 id="orgba4d44f"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="orgcd9e400" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3807be1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -777,12 +777,12 @@ case is given as follows:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5cbe213" class="outline-4">
|
||||
<h4 id="org5cbe213"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
<div id="outline-container-org79bb565" class="outline-4">
|
||||
<h4 id="org79bb565"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org009fd4e" class="outline-3">
|
||||
<h3 id="org009fd4e"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div id="outline-container-org19a5f1e" class="outline-3">
|
||||
<h3 id="org19a5f1e"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
The potential energy is the sum of all the following terms
|
||||
@ -818,8 +818,8 @@ contributions.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf56f8b1" class="outline-4">
|
||||
<h4 id="orgf56f8b1"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org7bed349" class="outline-4">
|
||||
<h4 id="org7bed349"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_potential_energy</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">potential_energy</span>);
|
||||
@ -828,14 +828,14 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org353f4af" class="outline-4">
|
||||
<h4 id="org353f4af"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-orgf3d7807" class="outline-4">
|
||||
<h4 id="orgf3d7807"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4b0ca10" class="outline-4">
|
||||
<h4 id="org4b0ca10"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
||||
<div id="outline-container-orgb793c9f" class="outline-4">
|
||||
<h4 id="orgb793c9f"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org1871d13" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org936286c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -963,12 +963,12 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5e143a7" class="outline-4">
|
||||
<h4 id="org5e143a7"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
<div id="outline-container-orgac0b19e" class="outline-4">
|
||||
<h4 id="orgac0b19e"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org07924c9" class="outline-3">
|
||||
<h3 id="org07924c9"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div id="outline-container-orgc511c72" class="outline-3">
|
||||
<h3 id="orgc511c72"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
The local energy is the sum of kinetic and potential energies.
|
||||
@ -982,8 +982,8 @@ E_L = KE + PE
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org389cf89" class="outline-4">
|
||||
<h4 id="org389cf89"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-orgfd41456" class="outline-4">
|
||||
<h4 id="orgfd41456"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_local_energy</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">local_energy</span>);
|
||||
@ -992,14 +992,14 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb178cf8" class="outline-4">
|
||||
<h4 id="orgb178cf8"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-org511c86f" class="outline-4">
|
||||
<h4 id="org511c86f"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7461545" class="outline-4">
|
||||
<h4 id="org7461545"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
||||
<div id="outline-container-org8c2b517" class="outline-4">
|
||||
<h4 id="org8c2b517"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
||||
<div class="outline-text-4" id="text-2-3-3">
|
||||
<table id="orgb8306ee" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org343cfe1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1095,12 +1095,12 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org433ec5b" class="outline-4">
|
||||
<h4 id="org433ec5b"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
<div id="outline-container-org5f7d175" class="outline-4">
|
||||
<h4 id="org5f7d175"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orga5d73a1" class="outline-3">
|
||||
<h3 id="orga5d73a1"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div id="outline-container-orgaa5ab1a" class="outline-3">
|
||||
<h3 id="orgaa5ab1a"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
The drift vector is calculated as the ration of the gradient
|
||||
@ -1114,8 +1114,8 @@ with the determinant of the wavefunction.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2b4d33a" class="outline-4">
|
||||
<h4 id="org2b4d33a"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org297dcf6" class="outline-4">
|
||||
<h4 id="org297dcf6"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_drift_vector</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">drift_vector</span>);
|
||||
@ -1124,14 +1124,14 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org35fbbab" class="outline-4">
|
||||
<h4 id="org35fbbab"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
<div id="outline-container-org557afd2" class="outline-4">
|
||||
<h4 id="org557afd2"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc470b80" class="outline-4">
|
||||
<h4 id="orgc470b80"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
||||
<div id="outline-container-orgfd4491b" class="outline-4">
|
||||
<h4 id="orgfd4491b"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
||||
<div class="outline-text-4" id="text-2-4-3">
|
||||
<table id="org6db2c31" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1a91a04" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1352,15 +1352,15 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3034539" class="outline-4">
|
||||
<h4 id="org3034539"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
<div id="outline-container-orgfc6a26a" class="outline-4">
|
||||
<h4 id="orgfc6a26a"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 14:37</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 15:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-01-08 Sat 14:37 -->
|
||||
<!-- 2022-01-08 Sat 15:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Memory management</title>
|
||||
@ -311,15 +311,15 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org84dc37a">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org3343195">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orgb9c184d">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#orgb14b901">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org231130a">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orgc6cb36b">3. Allocation/deallocation functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org84dc37a" class="outline-2">
|
||||
<h2 id="org84dc37a"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div id="outline-container-orgb14b901" class="outline-2">
|
||||
<h2 id="orgb14b901"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
Every time a new block of memory is allocated, the information
|
||||
@ -361,8 +361,8 @@ array, and the number of allocated blocks.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3343195" class="outline-2">
|
||||
<h2 id="org3343195"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div id="outline-container-org231130a" class="outline-2">
|
||||
<h2 id="org231130a"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
Passing information to the allocation routine should be done by
|
||||
@ -371,8 +371,8 @@ passing an instance of a <code>qmckl_memory_info_struct</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb9c184d" class="outline-2">
|
||||
<h2 id="orgb9c184d"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-orgc6cb36b" class="outline-2">
|
||||
<h2 id="orgc6cb36b"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
Memory allocation inside the library should be done with
|
||||
@ -535,7 +535,7 @@ allocation and needs to be updated.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 14:37</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 15:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-01-08 Sat 14:37 -->
|
||||
<!-- 2022-01-08 Sat 15:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Molecular Orbitals</title>
|
||||
@ -311,21 +311,21 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org47a1b47">1. Context</a>
|
||||
<li><a href="#orgcd03dae">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org8c0760b">1.1. Data structure</a></li>
|
||||
<li><a href="#orge3b9bf1">1.2. Access functions</a></li>
|
||||
<li><a href="#org4608587">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgf8fb835">1.1. Data structure</a></li>
|
||||
<li><a href="#org64a8b0f">1.2. Access functions</a></li>
|
||||
<li><a href="#orgc9bb4e7">1.3. Initialization functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org553840d">2. Computation</a>
|
||||
<li><a href="#orgaa9eb37">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org9cc40e6">2.1. Computation of MOs</a>
|
||||
<li><a href="#org1718c30">2.1. Computation of MOs</a>
|
||||
<ul>
|
||||
<li><a href="#org07c3578">2.1.1. Get</a></li>
|
||||
<li><a href="#org0ff7440">2.1.2. Provide</a></li>
|
||||
<li><a href="#orga8e3154">2.1.3. Compute</a></li>
|
||||
<li><a href="#orgca0c404">2.1.4. Test</a></li>
|
||||
<li><a href="#org27038df">2.1.1. Get</a></li>
|
||||
<li><a href="#org904d350">2.1.2. Provide</a></li>
|
||||
<li><a href="#org3ac39f8">2.1.3. Compute</a></li>
|
||||
<li><a href="#org4693e36">2.1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -334,8 +334,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org47a1b47" class="outline-2">
|
||||
<h2 id="org47a1b47"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgcd03dae" class="outline-2">
|
||||
<h2 id="orgcd03dae"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following arrays are stored in the context:
|
||||
@ -397,8 +397,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8c0760b" class="outline-3">
|
||||
<h3 id="org8c0760b"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgf8fb835" class="outline-3">
|
||||
<h3 id="orgf8fb835"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_mo_basis_struct</span> {
|
||||
@ -447,8 +447,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge3b9bf1" class="outline-3">
|
||||
<h3 id="orge3b9bf1"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org64a8b0f" class="outline-3">
|
||||
<h3 id="org64a8b0f"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
When all the data for the AOs have been provided, the following
|
||||
@ -462,8 +462,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4608587" class="outline-3">
|
||||
<h3 id="org4608587"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgc9bb4e7" class="outline-3">
|
||||
<h3 id="orgc9bb4e7"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To set the basis set, all the following functions need to be
|
||||
@ -484,16 +484,16 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org553840d" class="outline-2">
|
||||
<h2 id="org553840d"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orgaa9eb37" class="outline-2">
|
||||
<h2 id="orgaa9eb37"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org9cc40e6" class="outline-3">
|
||||
<h3 id="org9cc40e6"><span class="section-number-3">2.1</span> Computation of MOs</h3>
|
||||
<div id="outline-container-org1718c30" class="outline-3">
|
||||
<h3 id="org1718c30"><span class="section-number-3">2.1</span> Computation of MOs</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
</div>
|
||||
<div id="outline-container-org07c3578" class="outline-4">
|
||||
<h4 id="org07c3578"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org27038df" class="outline-4">
|
||||
<h4 id="org27038df"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_mo_basis_vgl</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">mo_vgl</span>);
|
||||
@ -502,14 +502,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0ff7440" class="outline-4">
|
||||
<h4 id="org0ff7440"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org904d350" class="outline-4">
|
||||
<h4 id="org904d350"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga8e3154" class="outline-4">
|
||||
<h4 id="orga8e3154"><span class="section-number-4">2.1.3</span> Compute</h4>
|
||||
<div id="outline-container-org3ac39f8" class="outline-4">
|
||||
<h4 id="org3ac39f8"><span class="section-number-4">2.1.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="org0643a86" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc134660" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -667,15 +667,15 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgca0c404" class="outline-4">
|
||||
<h4 id="orgca0c404"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
<div id="outline-container-org4693e36" class="outline-4">
|
||||
<h4 id="org4693e36"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 14:37</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 15:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-01-08 Sat 14:37 -->
|
||||
<!-- 2022-01-08 Sat 15:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Nucleus</title>
|
||||
@ -333,35 +333,35 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org7953a53">1. Context</a>
|
||||
<li><a href="#org2456e95">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgdc01fea">1.1. Data structure</a></li>
|
||||
<li><a href="#org20d8e48">1.2. Access functions</a></li>
|
||||
<li><a href="#org6ead4c5">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org56b4b3c">1.4. Test</a></li>
|
||||
<li><a href="#orgcdaf32d">1.1. Data structure</a></li>
|
||||
<li><a href="#orgb2ae968">1.2. Access functions</a></li>
|
||||
<li><a href="#orga103857">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgc93ae5d">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8b9d9b5">2. Computation</a>
|
||||
<li><a href="#org68baa30">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org0eb8424">2.1. Nucleus-nucleus distances</a>
|
||||
<li><a href="#org1d23fad">2.1. Nucleus-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#orga0dd005">2.1.1. Get</a></li>
|
||||
<li><a href="#orgade3e81">2.1.2. Compute</a></li>
|
||||
<li><a href="#org751f2a5">2.1.3. Test</a></li>
|
||||
<li><a href="#orgca5d83d">2.1.1. Get</a></li>
|
||||
<li><a href="#org79deac3">2.1.2. Compute</a></li>
|
||||
<li><a href="#org5e1af87">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2990c7c">2.2. Nucleus-nucleus rescaled distances</a>
|
||||
<li><a href="#org80fc06d">2.2. Nucleus-nucleus rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgddfded3">2.2.1. Get</a></li>
|
||||
<li><a href="#orgede6e44">2.2.2. Compute</a></li>
|
||||
<li><a href="#org35bf716">2.2.3. Test</a></li>
|
||||
<li><a href="#orgd0d9e4c">2.2.1. Get</a></li>
|
||||
<li><a href="#org50b5667">2.2.2. Compute</a></li>
|
||||
<li><a href="#org167fc85">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc444fe6">2.3. Nuclear repulsion energy</a>
|
||||
<li><a href="#org7cd25b4">2.3. Nuclear repulsion energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgb085244">2.3.1. Get</a></li>
|
||||
<li><a href="#orge22dba2">2.3.2. Compute</a></li>
|
||||
<li><a href="#org2f3f010">2.3.3. Test</a></li>
|
||||
<li><a href="#org15c728b">2.3.1. Get</a></li>
|
||||
<li><a href="#orge956051">2.3.2. Compute</a></li>
|
||||
<li><a href="#org48e060f">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -370,8 +370,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7953a53" class="outline-2">
|
||||
<h2 id="org7953a53"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org2456e95" class="outline-2">
|
||||
<h2 id="org2456e95"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following data stored in the context:
|
||||
@ -486,8 +486,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdc01fea" class="outline-3">
|
||||
<h3 id="orgdc01fea"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgcdaf32d" class="outline-3">
|
||||
<h3 id="orgcdaf32d"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_nucleus_struct</span> {
|
||||
@ -545,8 +545,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org20d8e48" class="outline-3">
|
||||
<h3 id="org20d8e48"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgb2ae968" class="outline-3">
|
||||
<h3 id="orgb2ae968"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
When all the data relative to nuclei have been set, the following
|
||||
@ -560,8 +560,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6ead4c5" class="outline-3">
|
||||
<h3 id="org6ead4c5"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orga103857" class="outline-3">
|
||||
<h3 id="orga103857"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To set the data relative to the nuclei in the context, the
|
||||
@ -596,8 +596,8 @@ atoms. The coordinates should be given in atomic units.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org56b4b3c" class="outline-3">
|
||||
<h3 id="org56b4b3c"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orgc93ae5d" class="outline-3">
|
||||
<h3 id="orgc93ae5d"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">nucl_num</span> = chbrclf_nucl_num;
|
||||
@ -681,8 +681,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8b9d9b5" class="outline-2">
|
||||
<h2 id="org8b9d9b5"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org68baa30" class="outline-2">
|
||||
<h2 id="org68baa30"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The computed data is stored in the context so that it can be reused
|
||||
@ -695,12 +695,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0eb8424" class="outline-3">
|
||||
<h3 id="org0eb8424"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div id="outline-container-org1d23fad" class="outline-3">
|
||||
<h3 id="org1d23fad"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
</div>
|
||||
<div id="outline-container-orga0dd005" class="outline-4">
|
||||
<h4 id="orga0dd005"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orgca5d83d" class="outline-4">
|
||||
<h4 id="orgca5d83d"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_nucleus_nn_distance</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">distance</span>);
|
||||
@ -709,10 +709,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgade3e81" class="outline-4">
|
||||
<h4 id="orgade3e81"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org79deac3" class="outline-4">
|
||||
<h4 id="org79deac3"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org4afb87c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb316bfe" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -790,8 +790,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org751f2a5" class="outline-4">
|
||||
<h4 id="org751f2a5"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org5e1af87" class="outline-4">
|
||||
<h4 id="org5e1af87"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -810,12 +810,12 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2990c7c" class="outline-3">
|
||||
<h3 id="org2990c7c"><span class="section-number-3">2.2</span> Nucleus-nucleus rescaled distances</h3>
|
||||
<div id="outline-container-org80fc06d" class="outline-3">
|
||||
<h3 id="org80fc06d"><span class="section-number-3">2.2</span> Nucleus-nucleus rescaled distances</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
</div>
|
||||
<div id="outline-container-orgddfded3" class="outline-4">
|
||||
<h4 id="orgddfded3"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgd0d9e4c" class="outline-4">
|
||||
<h4 id="orgd0d9e4c"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_nucleus_nn_distance_rescaled</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">distance_rescaled</span>);
|
||||
@ -824,10 +824,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgede6e44" class="outline-4">
|
||||
<h4 id="orgede6e44"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org50b5667" class="outline-4">
|
||||
<h4 id="org50b5667"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orgc11fef5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3c69570" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -906,8 +906,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org35bf716" class="outline-4">
|
||||
<h4 id="org35bf716"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org167fc85" class="outline-4">
|
||||
<h4 id="org167fc85"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -927,8 +927,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc444fe6" class="outline-3">
|
||||
<h3 id="orgc444fe6"><span class="section-number-3">2.3</span> Nuclear repulsion energy</h3>
|
||||
<div id="outline-container-org7cd25b4" class="outline-3">
|
||||
<h3 id="org7cd25b4"><span class="section-number-3">2.3</span> Nuclear repulsion energy</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
\[
|
||||
@ -937,8 +937,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb085244" class="outline-4">
|
||||
<h4 id="orgb085244"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org15c728b" class="outline-4">
|
||||
<h4 id="org15c728b"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_nucleus_repulsion</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">energy</span>);
|
||||
@ -947,10 +947,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge22dba2" class="outline-4">
|
||||
<h4 id="orge22dba2"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-orge956051" class="outline-4">
|
||||
<h4 id="orge956051"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org2f0c28b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgef53042" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1040,8 +1040,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2f3f010" class="outline-4">
|
||||
<h4 id="org2f3f010"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-org48e060f" class="outline-4">
|
||||
<h4 id="org48e060f"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-3-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -1061,7 +1061,7 @@ rc = qmckl_get_nucleus_repulsion(context, &rep);
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 14:37</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 15:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-01-08 Sat 14:37 -->
|
||||
<!-- 2022-01-08 Sat 15:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Numerical precision</title>
|
||||
@ -333,16 +333,16 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgb273d14">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org0428f0c">2. Precision</a></li>
|
||||
<li><a href="#org6c9da35">3. Range</a></li>
|
||||
<li><a href="#org8e57c25">4. Helper functions</a></li>
|
||||
<li><a href="#org9ca38c5">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org8987648">2. Precision</a></li>
|
||||
<li><a href="#org94eadbd">3. Range</a></li>
|
||||
<li><a href="#orgfb49df0">4. Helper functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb273d14" class="outline-2">
|
||||
<h2 id="orgb273d14"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-org9ca38c5" class="outline-2">
|
||||
<h2 id="org9ca38c5"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
Controlling numerical precision enables optimizations. Here, the
|
||||
@ -353,7 +353,7 @@ Arithmetic (IEEE 754),
|
||||
refers to the number of exponent bits.
|
||||
</p>
|
||||
|
||||
<table id="org12b52cc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2801fa2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -397,8 +397,8 @@ integer. The update functions return <code>QMCKL_SUCCESS</code> or
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0428f0c" class="outline-2">
|
||||
<h2 id="org0428f0c"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-org8987648" class="outline-2">
|
||||
<h2 id="org8987648"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
<code>qmckl_context_set_numprec_precision</code> modifies the parameter for the
|
||||
@ -485,8 +485,8 @@ numerical precision in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6c9da35" class="outline-2">
|
||||
<h2 id="org6c9da35"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-org94eadbd" class="outline-2">
|
||||
<h2 id="org94eadbd"><span class="section-number-2">3</span> Range</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
<code>qmckl_set_numprec_range</code> modifies the parameter for the numerical
|
||||
@ -561,8 +561,8 @@ range in a given context.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org8e57c25" class="outline-2">
|
||||
<h2 id="org8e57c25"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-orgfb49df0" class="outline-2">
|
||||
<h2 id="orgfb49df0"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
<code>qmckl_get_numprec_epsilon</code> returns \(\epsilon = 2^{1-n}\) where <code>n</code> is the precision.
|
||||
@ -581,7 +581,7 @@ We need to remove the sign bit from the precision.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 14:37</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 15:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-01-08 Sat 14:37 -->
|
||||
<!-- 2022-01-08 Sat 15:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Sherman-Morrison-Woodbury</title>
|
||||
@ -333,86 +333,86 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org59f689c">1. Headers</a></li>
|
||||
<li><a href="#org80d9a03">2. Naïve Sherman-Morrison</a>
|
||||
<li><a href="#orgc0ac57a">1. Headers</a></li>
|
||||
<li><a href="#org38d45f5">2. Naïve Sherman-Morrison</a>
|
||||
<ul>
|
||||
<li><a href="#org654b5cb">2.1. <code>qmckl_sherman_morrison</code></a>
|
||||
<li><a href="#org5225a9d">2.1. <code>qmckl_sherman_morrison</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgf17b73d">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org6f8e602">2.1.2. C header</a></li>
|
||||
<li><a href="#org3e32a57">2.1.3. C source</a></li>
|
||||
<li><a href="#org510f340">2.1.4. Performance</a></li>
|
||||
<li><a href="#org3823397">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org5169ac8">2.1.2. C header</a></li>
|
||||
<li><a href="#org1050969">2.1.3. C source</a></li>
|
||||
<li><a href="#org48184dd">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org06cba5c">3. Woodbury 2x2</a>
|
||||
<li><a href="#org35d4abd">3. Woodbury 2x2</a>
|
||||
<ul>
|
||||
<li><a href="#orgfe89c8f">3.1. <code>qmckl_woodbury_2</code></a>
|
||||
<li><a href="#orgae89493">3.1. <code>qmckl_woodbury_2</code></a>
|
||||
<ul>
|
||||
<li><a href="#org86d63c9">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org4701190">3.1.2. C header</a></li>
|
||||
<li><a href="#org159f977">3.1.3. C source</a></li>
|
||||
<li><a href="#org624ea6c">3.1.4. Performance</a></li>
|
||||
<li><a href="#org3b04f90">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org35b91df">3.1.2. C header</a></li>
|
||||
<li><a href="#orgc5a5a99">3.1.3. C source</a></li>
|
||||
<li><a href="#orgd3596b0">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb21bcd8">4. Woodbury 3x3</a>
|
||||
<li><a href="#org61176b1">4. Woodbury 3x3</a>
|
||||
<ul>
|
||||
<li><a href="#orgc42b398">4.1. <code>qmckl_woodbury_3</code></a>
|
||||
<li><a href="#orgca6deec">4.1. <code>qmckl_woodbury_3</code></a>
|
||||
<ul>
|
||||
<li><a href="#org9b001b3">4.1.1. Requirements</a></li>
|
||||
<li><a href="#org47ae7fc">4.1.2. C header</a></li>
|
||||
<li><a href="#org343b114">4.1.3. C source</a></li>
|
||||
<li><a href="#org8191e28">4.1.4. Performance…</a></li>
|
||||
<li><a href="#org2c8830c">4.1.1. Requirements</a></li>
|
||||
<li><a href="#org63ac610">4.1.2. C header</a></li>
|
||||
<li><a href="#orgcc87a47">4.1.3. C source</a></li>
|
||||
<li><a href="#orgb3e25ab">4.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1b276fc">5. Sherman-Morrison with update splitting</a>
|
||||
<li><a href="#org1235071">5. Sherman-Morrison with update splitting</a>
|
||||
<ul>
|
||||
<li><a href="#org2a10f89">5.1. <code>qmckl_sherman_morrison_splitting</code></a>
|
||||
<li><a href="#org2dd543c">5.1. <code>qmckl_sherman_morrison_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#org53147b2">5.1.1. Requirements</a></li>
|
||||
<li><a href="#org23fec4b">5.1.2. C header</a></li>
|
||||
<li><a href="#org6f93504">5.1.3. C source</a></li>
|
||||
<li><a href="#org8062c6b">5.1.4. Performance…</a></li>
|
||||
<li><a href="#orgb6d1196">5.1.1. Requirements</a></li>
|
||||
<li><a href="#org0f39b19">5.1.2. C header</a></li>
|
||||
<li><a href="#orgd8ec0dd">5.1.3. C source</a></li>
|
||||
<li><a href="#orgaf6ba9f">5.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9a3cd82">6. Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</a>
|
||||
<li><a href="#orgbf00f92">6. Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</a>
|
||||
<ul>
|
||||
<li><a href="#org08b4516">6.1. <code>qmckl_sherman_morrison_smw32s</code></a>
|
||||
<li><a href="#org583a857">6.1. <code>qmckl_sherman_morrison_smw32s</code></a>
|
||||
<ul>
|
||||
<li><a href="#org48ac82e">6.1.1. Requirements</a></li>
|
||||
<li><a href="#orge7c6aeb">6.1.2. C header</a></li>
|
||||
<li><a href="#org646c5fc">6.1.3. C source</a></li>
|
||||
<li><a href="#orgd28eff6">6.1.4. Performance…</a></li>
|
||||
<li><a href="#orgb46d8d9">6.1.1. Requirements</a></li>
|
||||
<li><a href="#orgb608a6e">6.1.2. C header</a></li>
|
||||
<li><a href="#org305e9b3">6.1.3. C source</a></li>
|
||||
<li><a href="#org4ee50d5">6.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd2cc3de">7. Helper Functions</a>
|
||||
<li><a href="#org8ca3d81">7. Helper Functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgf277075">7.1. <code>qmckl_slagel_splitting</code></a>
|
||||
<li><a href="#org5be6989">7.1. <code>qmckl_slagel_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#org74792ef">7.1.1. Requirements</a></li>
|
||||
<li><a href="#orgb2d2e33">7.1.2. C header</a></li>
|
||||
<li><a href="#org96c51de">7.1.3. C source</a></li>
|
||||
<li><a href="#org3bd2c1e">7.1.4. Performance</a></li>
|
||||
<li><a href="#org9ebc512">7.1.1. Requirements</a></li>
|
||||
<li><a href="#org725084e">7.1.2. C header</a></li>
|
||||
<li><a href="#org3714185">7.1.3. C source</a></li>
|
||||
<li><a href="#orgf40677a">7.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0873ba8">8. End of files</a></li>
|
||||
<li><a href="#org159dafd">8. End of files</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org59f689c" class="outline-2">
|
||||
<h2 id="org59f689c"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div id="outline-container-orgc0ac57a" class="outline-2">
|
||||
<h2 id="orgc0ac57a"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;">"qmckl.h"</span>
|
||||
@ -431,12 +431,12 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org80d9a03" class="outline-2">
|
||||
<h2 id="org80d9a03"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
||||
<div id="outline-container-org38d45f5" class="outline-2">
|
||||
<h2 id="org38d45f5"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org654b5cb" class="outline-3">
|
||||
<h3 id="org654b5cb"><span class="section-number-3">2.1</span> <code>qmckl_sherman_morrison</code></h3>
|
||||
<div id="outline-container-org5225a9d" class="outline-3">
|
||||
<h3 id="org5225a9d"><span class="section-number-3">2.1</span> <code>qmckl_sherman_morrison</code></h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
This is the simplest of the available Sherman-Morrison-Woodbury kernels. It applies rank-1 updates one by one in
|
||||
@ -478,7 +478,7 @@ If the determinant of the Slater-matrix is passed, it will be updated to the det
|
||||
from applying the updates to the original matrix.
|
||||
</p>
|
||||
|
||||
<table id="org2bb3b2f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb2033ab" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -557,8 +557,8 @@ from applying the updates to the original matrix.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf17b73d" class="outline-4">
|
||||
<h4 id="orgf17b73d"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org3823397" class="outline-4">
|
||||
<h4 id="org3823397"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -573,8 +573,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6f8e602" class="outline-4">
|
||||
<h4 id="org6f8e602"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-org5169ac8" class="outline-4">
|
||||
<h4 id="org5169ac8"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sherman_morrison</span> (
|
||||
@ -592,8 +592,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3e32a57" class="outline-4">
|
||||
<h4 id="org3e32a57"><span class="section-number-4">2.1.3</span> C source</h4>
|
||||
<div id="outline-container-org1050969" class="outline-4">
|
||||
<h4 id="org1050969"><span class="section-number-4">2.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -663,8 +663,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org510f340" class="outline-4">
|
||||
<h4 id="org510f340"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org48184dd" class="outline-4">
|
||||
<h4 id="org48184dd"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<p>
|
||||
This function performs best when there is only 1 rank-1 update in the update cycle. It is not useful to
|
||||
@ -676,12 +676,12 @@ where applying the update causes singular behaviour.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org06cba5c" class="outline-2">
|
||||
<h2 id="org06cba5c"><span class="section-number-2">3</span> Woodbury 2x2</h2>
|
||||
<div id="outline-container-org35d4abd" class="outline-2">
|
||||
<h2 id="org35d4abd"><span class="section-number-2">3</span> Woodbury 2x2</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orgfe89c8f" class="outline-3">
|
||||
<h3 id="orgfe89c8f"><span class="section-number-3">3.1</span> <code>qmckl_woodbury_2</code></h3>
|
||||
<div id="outline-container-orgae89493" class="outline-3">
|
||||
<h3 id="orgae89493"><span class="section-number-3">3.1</span> <code>qmckl_woodbury_2</code></h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
The Woodbury 2x2 kernel. It is used to apply two rank-1 updates at once. The formula used in
|
||||
@ -705,7 +705,7 @@ from applying the updates to the original matrix.
|
||||
|
||||
|
||||
|
||||
<table id="org5d89cdf" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4307e20" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -777,8 +777,8 @@ from applying the updates to the original matrix.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org86d63c9" class="outline-4">
|
||||
<h4 id="org86d63c9"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org3b04f90" class="outline-4">
|
||||
<h4 id="org3b04f90"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-3-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>qmckl_null_context</code></li>
|
||||
@ -792,8 +792,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4701190" class="outline-4">
|
||||
<h4 id="org4701190"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-org35b91df" class="outline-4">
|
||||
<h4 id="org35b91df"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_2</span> (
|
||||
@ -810,8 +810,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org159f977" class="outline-4">
|
||||
<h4 id="org159f977"><span class="section-number-4">3.1.3</span> C source</h4>
|
||||
<div id="outline-container-orgc5a5a99" class="outline-4">
|
||||
<h4 id="orgc5a5a99"><span class="section-number-4">3.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-3-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -898,8 +898,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org624ea6c" class="outline-4">
|
||||
<h4 id="org624ea6c"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgd3596b0" class="outline-4">
|
||||
<h4 id="orgd3596b0"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-3-1-4">
|
||||
<p>
|
||||
This function is most efficient when used in cases where there are only 2 rank-1 updates and
|
||||
@ -910,12 +910,12 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb21bcd8" class="outline-2">
|
||||
<h2 id="orgb21bcd8"><span class="section-number-2">4</span> Woodbury 3x3</h2>
|
||||
<div id="outline-container-org61176b1" class="outline-2">
|
||||
<h2 id="org61176b1"><span class="section-number-2">4</span> Woodbury 3x3</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-orgc42b398" class="outline-3">
|
||||
<h3 id="orgc42b398"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_3</code></h3>
|
||||
<div id="outline-container-orgca6deec" class="outline-3">
|
||||
<h3 id="orgca6deec"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_3</code></h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
The 3x3 version of the Woodbury 2x2 kernel. It is used to apply three
|
||||
@ -936,7 +936,7 @@ from applying the updates to the original matrix.
|
||||
|
||||
|
||||
|
||||
<table id="orgae88dfa" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1b9f687" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1008,8 +1008,8 @@ from applying the updates to the original matrix.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9b001b3" class="outline-4">
|
||||
<h4 id="org9b001b3"><span class="section-number-4">4.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org2c8830c" class="outline-4">
|
||||
<h4 id="org2c8830c"><span class="section-number-4">4.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-4-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>qmckl_null_context</code></li>
|
||||
@ -1023,8 +1023,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org47ae7fc" class="outline-4">
|
||||
<h4 id="org47ae7fc"><span class="section-number-4">4.1.2</span> C header</h4>
|
||||
<div id="outline-container-org63ac610" class="outline-4">
|
||||
<h4 id="org63ac610"><span class="section-number-4">4.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-4-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_3</span> (
|
||||
@ -1041,8 +1041,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org343b114" class="outline-4">
|
||||
<h4 id="org343b114"><span class="section-number-4">4.1.3</span> C source</h4>
|
||||
<div id="outline-container-orgcc87a47" class="outline-4">
|
||||
<h4 id="orgcc87a47"><span class="section-number-4">4.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-4-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -1144,8 +1144,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8191e28" class="outline-4">
|
||||
<h4 id="org8191e28"><span class="section-number-4">4.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-orgb3e25ab" class="outline-4">
|
||||
<h4 id="orgb3e25ab"><span class="section-number-4">4.1.4</span> Performance…</h4>
|
||||
<div class="outline-text-4" id="text-4-1-4">
|
||||
<p>
|
||||
This function is most efficient when used in cases where there are only 3 rank-1 updates and
|
||||
@ -1156,12 +1156,12 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1b276fc" class="outline-2">
|
||||
<h2 id="org1b276fc"><span class="section-number-2">5</span> Sherman-Morrison with update splitting</h2>
|
||||
<div id="outline-container-org1235071" class="outline-2">
|
||||
<h2 id="org1235071"><span class="section-number-2">5</span> Sherman-Morrison with update splitting</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
</div>
|
||||
<div id="outline-container-org2a10f89" class="outline-3">
|
||||
<h3 id="org2a10f89"><span class="section-number-3">5.1</span> <code>qmckl_sherman_morrison_splitting</code></h3>
|
||||
<div id="outline-container-org2dd543c" class="outline-3">
|
||||
<h3 id="org2dd543c"><span class="section-number-3">5.1</span> <code>qmckl_sherman_morrison_splitting</code></h3>
|
||||
<div class="outline-text-3" id="text-5-1">
|
||||
<p>
|
||||
This is a variation on the 'Naive' Sherman-Morrison kernel. Whenever the denominator \(1+v_j^T S^{-1} u_j\) in
|
||||
@ -1183,7 +1183,7 @@ If the determinant of the Slater-matrix is passed, it will be updated to the det
|
||||
from applying the updates to the original matrix.
|
||||
</p>
|
||||
|
||||
<table id="org11b6305" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org91a8a0e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1267,8 +1267,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org53147b2" class="outline-4">
|
||||
<h4 id="org53147b2"><span class="section-number-4">5.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgb6d1196" class="outline-4">
|
||||
<h4 id="orgb6d1196"><span class="section-number-4">5.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-5-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1283,8 +1283,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org23fec4b" class="outline-4">
|
||||
<h4 id="org23fec4b"><span class="section-number-4">5.1.2</span> C header</h4>
|
||||
<div id="outline-container-org0f39b19" class="outline-4">
|
||||
<h4 id="org0f39b19"><span class="section-number-4">5.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-5-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sherman_morrison_splitting</span> (
|
||||
@ -1302,8 +1302,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6f93504" class="outline-4">
|
||||
<h4 id="org6f93504"><span class="section-number-4">5.1.3</span> C source</h4>
|
||||
<div id="outline-container-orgd8ec0dd" class="outline-4">
|
||||
<h4 id="orgd8ec0dd"><span class="section-number-4">5.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-5-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -1343,8 +1343,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8062c6b" class="outline-4">
|
||||
<h4 id="org8062c6b"><span class="section-number-4">5.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-orgaf6ba9f" class="outline-4">
|
||||
<h4 id="orgaf6ba9f"><span class="section-number-4">5.1.4</span> Performance…</h4>
|
||||
<div class="outline-text-4" id="text-5-1-4">
|
||||
<p>
|
||||
This kernel performs best when there are 2 or more rank-1 update cycles and fail-rate is high.
|
||||
@ -1354,12 +1354,12 @@ This kernel performs best when there are 2 or more rank-1 update cycles and fail
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9a3cd82" class="outline-2">
|
||||
<h2 id="org9a3cd82"><span class="section-number-2">6</span> Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</h2>
|
||||
<div id="outline-container-orgbf00f92" class="outline-2">
|
||||
<h2 id="orgbf00f92"><span class="section-number-2">6</span> Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</h2>
|
||||
<div class="outline-text-2" id="text-6">
|
||||
</div>
|
||||
<div id="outline-container-org08b4516" class="outline-3">
|
||||
<h3 id="org08b4516"><span class="section-number-3">6.1</span> <code>qmckl_sherman_morrison_smw32s</code></h3>
|
||||
<div id="outline-container-org583a857" class="outline-3">
|
||||
<h3 id="org583a857"><span class="section-number-3">6.1</span> <code>qmckl_sherman_morrison_smw32s</code></h3>
|
||||
<div class="outline-text-3" id="text-6-1">
|
||||
<p>
|
||||
The Woodbury 3x3 and 2x2 kernel with Sherman-Morrison and update splitting combines the low-level Woodbury 3x3 kernel,
|
||||
@ -1374,7 +1374,7 @@ If the determinant of the Slater-matrix is passed, it will be updated to the det
|
||||
from applying the updates to the original matrix.
|
||||
</p>
|
||||
|
||||
<table id="orgf55deb5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd349cd7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1454,8 +1454,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org48ac82e" class="outline-4">
|
||||
<h4 id="org48ac82e"><span class="section-number-4">6.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgb46d8d9" class="outline-4">
|
||||
<h4 id="orgb46d8d9"><span class="section-number-4">6.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-6-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1470,8 +1470,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge7c6aeb" class="outline-4">
|
||||
<h4 id="orge7c6aeb"><span class="section-number-4">6.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgb608a6e" class="outline-4">
|
||||
<h4 id="orgb608a6e"><span class="section-number-4">6.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-6-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sherman_morrison_smw32s</span> (
|
||||
@ -1489,8 +1489,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org646c5fc" class="outline-4">
|
||||
<h4 id="org646c5fc"><span class="section-number-4">6.1.3</span> C source</h4>
|
||||
<div id="outline-container-org305e9b3" class="outline-4">
|
||||
<h4 id="org305e9b3"><span class="section-number-4">6.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-6-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -1568,8 +1568,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd28eff6" class="outline-4">
|
||||
<h4 id="orgd28eff6"><span class="section-number-4">6.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org4ee50d5" class="outline-4">
|
||||
<h4 id="org4ee50d5"><span class="section-number-4">6.1.4</span> Performance…</h4>
|
||||
<div class="outline-text-4" id="text-6-1-4">
|
||||
<p>
|
||||
This kernel performs best for update cycles with 2 or more rank-1 updates and the fail-rate is low.
|
||||
@ -1579,8 +1579,8 @@ This kernel performs best for update cycles with 2 or more rank-1 updates and th
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd2cc3de" class="outline-2">
|
||||
<h2 id="orgd2cc3de"><span class="section-number-2">7</span> Helper Functions</h2>
|
||||
<div id="outline-container-org8ca3d81" class="outline-2">
|
||||
<h2 id="org8ca3d81"><span class="section-number-2">7</span> Helper Functions</h2>
|
||||
<div class="outline-text-2" id="text-7">
|
||||
<p>
|
||||
Private helper-functions that are used by the Sherman-Morrison-Woodbury kernels.
|
||||
@ -1588,8 +1588,8 @@ These functions can only be used internally by the kernels in this module.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf277075" class="outline-3">
|
||||
<h3 id="orgf277075"><span class="section-number-3">7.1</span> <code>qmckl_slagel_splitting</code></h3>
|
||||
<div id="outline-container-org5be6989" class="outline-3">
|
||||
<h3 id="org5be6989"><span class="section-number-3">7.1</span> <code>qmckl_slagel_splitting</code></h3>
|
||||
<div class="outline-text-3" id="text-7-1">
|
||||
<p>
|
||||
<code>qmckl_slagel_splitting</code> is the non-recursive, inner part of the 'Sherman-Morrison with update splitting'-kernel.
|
||||
@ -1609,7 +1609,7 @@ If the determinant of the Slater-matrix is passed, it will be updated to the det
|
||||
from applying the updates to the original matrix.
|
||||
</p>
|
||||
|
||||
<table id="org84f810a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org30c2da0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1703,8 +1703,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org74792ef" class="outline-4">
|
||||
<h4 id="org74792ef"><span class="section-number-4">7.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org9ebc512" class="outline-4">
|
||||
<h4 id="org9ebc512"><span class="section-number-4">7.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-7-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>LDS >= 2</code></li>
|
||||
@ -1721,8 +1721,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb2d2e33" class="outline-4">
|
||||
<h4 id="orgb2d2e33"><span class="section-number-4">7.1.2</span> C header</h4>
|
||||
<div id="outline-container-org725084e" class="outline-4">
|
||||
<h4 id="org725084e"><span class="section-number-4">7.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-7-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">double</span> <span style="color: #0000ff;">qmckl_slagel_splitting</span> (
|
||||
@ -1742,8 +1742,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org96c51de" class="outline-4">
|
||||
<h4 id="org96c51de"><span class="section-number-4">7.1.3</span> C source</h4>
|
||||
<div id="outline-container-org3714185" class="outline-4">
|
||||
<h4 id="org3714185"><span class="section-number-4">7.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-7-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -1821,8 +1821,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3bd2c1e" class="outline-4">
|
||||
<h4 id="org3bd2c1e"><span class="section-number-4">7.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgf40677a" class="outline-4">
|
||||
<h4 id="orgf40677a"><span class="section-number-4">7.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-7-1-4">
|
||||
<p>
|
||||
This function cannot be used by itself and is used in Sherman-Morrison with update splitting and Woodbury 3x3 and 2x2
|
||||
@ -1833,8 +1833,8 @@ with Sherman-Morrison and update splitting. Please look at the performance recco
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0873ba8" class="outline-2">
|
||||
<h2 id="org0873ba8"><span class="section-number-2">8</span> End of files</h2>
|
||||
<div id="outline-container-org159dafd" class="outline-2">
|
||||
<h2 id="org159dafd"><span class="section-number-2">8</span> End of files</h2>
|
||||
<div class="outline-text-2" id="text-8">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"> <span style="color: #0000ff;">assert</span> (<span style="color: #228b22;">qmckl_context_destroy</span>(<span style="color: #a0522d;">context</span>) == QMCKL_SUCCESS);
|
||||
@ -1848,7 +1848,7 @@ with Sherman-Morrison and update splitting. Please look at the performance recco
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 14:37</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 15:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-01-08 Sat 14:37 -->
|
||||
<!-- 2022-01-08 Sat 15:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Data for Tests</title>
|
||||
@ -233,27 +233,27 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org000a3ca">1. CHBrClF</a>
|
||||
<li><a href="#org7dfc751">1. CHBrClF</a>
|
||||
<ul>
|
||||
<li><a href="#orga187c90">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orga81d654">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org0bcecfe">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#orgf9fb0be">1.4. Electron coordinates</a></li>
|
||||
<li><a href="#orgb6c6a7c">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org078b240">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org66f4716">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org54d6247">1.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org75be813">2. N2</a>
|
||||
<li><a href="#orga4bccfe">2. N2</a>
|
||||
<ul>
|
||||
<li><a href="#org608e217">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org9bc602b">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org7458e61">2.3. Jastrow related data</a></li>
|
||||
<li><a href="#orgbc5335e">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org0a64021">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org583c3a0">2.3. Jastrow related data</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org000a3ca" class="outline-2">
|
||||
<h2 id="org000a3ca"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div id="outline-container-org7dfc751" class="outline-2">
|
||||
<h2 id="org7dfc751"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
This test is the all-electron Hartree-Fock wave function of CHClBr,
|
||||
@ -337,8 +337,8 @@ and with a high maximum angular momentum.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orga187c90" class="outline-3">
|
||||
<h3 id="orga187c90"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-orgb6c6a7c" class="outline-3">
|
||||
<h3 id="orgb6c6a7c"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<pre class="example">
|
||||
5
|
||||
@ -368,8 +368,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga81d654" class="outline-3">
|
||||
<h3 id="orga81d654"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div id="outline-container-org078b240" class="outline-3">
|
||||
<h3 id="org078b240"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<pre class="example">
|
||||
HYDROGEN
|
||||
@ -1288,8 +1288,8 @@ F 1
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0bcecfe" class="outline-3">
|
||||
<h3 id="org0bcecfe"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org66f4716" class="outline-3">
|
||||
<h3 id="org66f4716"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">chbrclf_mo_num</span> ((<span style="color: #228b22;">int64_t</span>) 224)
|
||||
@ -60213,8 +60213,8 @@ F 1
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf9fb0be" class="outline-3">
|
||||
<h3 id="orgf9fb0be"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org54d6247" class="outline-3">
|
||||
<h3 id="org54d6247"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
Electron coordinates are stored in atomic units in normal format.
|
||||
@ -60373,8 +60373,8 @@ Electron coordinates are stored in atomic units in normal format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org75be813" class="outline-2">
|
||||
<h2 id="org75be813"><span class="section-number-2">2</span> N2</h2>
|
||||
<div id="outline-container-orga4bccfe" class="outline-2">
|
||||
<h2 id="orga4bccfe"><span class="section-number-2">2</span> N2</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
This test is mainly for the Jastrow factor and was supplied by
|
||||
@ -60415,8 +60415,8 @@ treated by pseudopotentials thus excluded from the actual calculation.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org608e217" class="outline-3">
|
||||
<h3 id="org608e217"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-orgbc5335e" class="outline-3">
|
||||
<h3 id="orgbc5335e"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<pre class="example">
|
||||
2
|
||||
@ -60443,8 +60443,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9bc602b" class="outline-3">
|
||||
<h3 id="org9bc602b"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org0a64021" class="outline-3">
|
||||
<h3 id="org0a64021"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
Electron coordinates are stored in atomic units in normal format.
|
||||
@ -60473,8 +60473,8 @@ Electron coordinates are stored in atomic units in normal format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7458e61" class="outline-3">
|
||||
<h3 id="org7458e61"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div id="outline-container-org583c3a0" class="outline-3">
|
||||
<h3 id="org583c3a0"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
This test is mainly for the Jastrow factor and was supplied by
|
||||
@ -60573,7 +60573,7 @@ Ramon Panades Baruetta.
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="date">Created: 2022-01-08 Sat 14:37</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 15:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-01-08 Sat 14:37 -->
|
||||
<!-- 2022-01-08 Sat 15:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>TREXIO I/O library</title>
|
||||
@ -311,53 +311,53 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org77f781f">1. Local functions</a>
|
||||
<li><a href="#org1ca1c13">1. Local functions</a>
|
||||
<ul>
|
||||
<li><a href="#org7f29231">1.1. Open file</a></li>
|
||||
<li><a href="#org5f97213">1.2. Electron</a></li>
|
||||
<li><a href="#org01cb40e">1.3. Nucleus</a>
|
||||
<li><a href="#org309d3f8">1.1. Open file</a></li>
|
||||
<li><a href="#org227e213">1.2. Electron</a></li>
|
||||
<li><a href="#org602af11">1.3. Nucleus</a>
|
||||
<ul>
|
||||
<li><a href="#org2dc9129">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#org007eea8">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#orgc57690b">1.3.3. Nuclear coordinates</a></li>
|
||||
<li><a href="#org6c920df">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#orgc901341">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#orgda668c3">1.3.3. Nuclear coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org85e5b43">1.4. Basis set and AOs</a>
|
||||
<li><a href="#org4a0097a">1.4. Basis set and AOs</a>
|
||||
<ul>
|
||||
<li><a href="#org51b9ebd">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#orgbefcbe3">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#orgd5f06eb">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#orgb3eaa16">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#orge485f4a">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org8b536f5">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#orgeb0fb66">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org7b41ec9">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#org8aa277e">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#org145e975">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org75ea3cf">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org69ce230">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#org11bfe97">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org45adff9">1.4.14. AO Normalization</a></li>
|
||||
<li><a href="#org8cf2e75">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#org3e572c0">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org46e7bff">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#org3d257b6">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org61727ac">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org7a4a4b0">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#org4635aa1">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#orga41b53a">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#orgec91027">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#orgae728fe">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org07ece03">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org6cab85b">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#orgb578c69">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org6fcfad0">1.4.14. AO Normalization</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0211460">1.5. Molecular orbitals</a>
|
||||
<li><a href="#orgc287251">1.5. Molecular orbitals</a>
|
||||
<ul>
|
||||
<li><a href="#org020e0fe">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#orgd20a0be">1.5.2. MO coefficients</a></li>
|
||||
<li><a href="#orgb0d1d42">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#org973153e">1.5.2. MO coefficients</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org38e59ef">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
<li><a href="#org774c5a0">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org54c2085">2. Read everything</a></li>
|
||||
<li><a href="#org4f45472">3. Test</a>
|
||||
<li><a href="#org5f596da">2. Read everything</a></li>
|
||||
<li><a href="#org540329a">3. Test</a>
|
||||
<ul>
|
||||
<li>
|
||||
<ul>
|
||||
<li><a href="#org04d13ec">3.0.1. Electrons</a></li>
|
||||
<li><a href="#orge31af0b">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#orgf883bd5">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#orgf1a5e0d">3.0.4. MO Basis</a></li>
|
||||
<li><a href="#org3448942">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org0c9412e">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#org61c0409">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org8722bdc">3.0.4. MO Basis</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -366,8 +366,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org77f781f" class="outline-2">
|
||||
<h2 id="org77f781f"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div id="outline-container-org1ca1c13" class="outline-2">
|
||||
<h2 id="org1ca1c13"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
Functions defined in this section are all local: they should not be
|
||||
@ -390,8 +390,8 @@ In the functions defined in this section, we use as local variables
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7f29231" class="outline-3">
|
||||
<h3 id="org7f29231"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div id="outline-container-org309d3f8" class="outline-3">
|
||||
<h3 id="org309d3f8"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
We first define a helper function to open a file by first trying to
|
||||
@ -423,8 +423,8 @@ groups of data by passing the <code>trexio_t</code> handle.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5f97213" class="outline-3">
|
||||
<h3 id="org5f97213"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div id="outline-container-org227e213" class="outline-3">
|
||||
<h3 id="org227e213"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
In this section we read all the data into the electron data structure.
|
||||
@ -475,8 +475,8 @@ We read the number of up-spin and down-spin electrons.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org01cb40e" class="outline-3">
|
||||
<h3 id="org01cb40e"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div id="outline-container-org602af11" class="outline-3">
|
||||
<h3 id="org602af11"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
In this section we read the number of nuclei, the molecular geometry and nuclear charges.
|
||||
@ -496,8 +496,8 @@ In this section we read the number of nuclei, the molecular geometry and nuclear
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2dc9129" class="outline-4">
|
||||
<h4 id="org2dc9129"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div id="outline-container-org6c920df" class="outline-4">
|
||||
<h4 id="org6c920df"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div class="outline-text-4" id="text-1-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">nucleus_num</span> = 0L;
|
||||
@ -520,8 +520,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org007eea8" class="outline-4">
|
||||
<h4 id="org007eea8"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div id="outline-container-orgc901341" class="outline-4">
|
||||
<h4 id="orgc901341"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div class="outline-text-4" id="text-1-3-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -562,8 +562,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc57690b" class="outline-4">
|
||||
<h4 id="orgc57690b"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div id="outline-container-orgda668c3" class="outline-4">
|
||||
<h4 id="orgda668c3"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-3-3">
|
||||
<p>
|
||||
Now, we read the molecular geometry. It is stored in normal format
|
||||
@ -619,8 +619,8 @@ in the TREXIO file (<code>'N'</code>), so it will be automatically transposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org85e5b43" class="outline-3">
|
||||
<h3 id="org85e5b43"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div id="outline-container-org4a0097a" class="outline-3">
|
||||
<h3 id="org4a0097a"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
In this section we read the atomic basis set and atomic orbitals.
|
||||
@ -646,8 +646,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org51b9ebd" class="outline-4">
|
||||
<h4 id="org51b9ebd"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div id="outline-container-org8cf2e75" class="outline-4">
|
||||
<h4 id="org8cf2e75"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div class="outline-text-4" id="text-1-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">MAX_STR_LEN</span> 1024
|
||||
@ -678,8 +678,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbefcbe3" class="outline-4">
|
||||
<h4 id="orgbefcbe3"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div id="outline-container-org3e572c0" class="outline-4">
|
||||
<h4 id="org3e572c0"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div class="outline-text-4" id="text-1-4-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">shell_num</span> = 0L;
|
||||
@ -703,8 +703,8 @@ rc = qmckl_set_ao_basis_shell_num(context, shell_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd5f06eb" class="outline-4">
|
||||
<h4 id="orgd5f06eb"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div id="outline-container-org46e7bff" class="outline-4">
|
||||
<h4 id="org46e7bff"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div class="outline-text-4" id="text-1-4-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">prim_num</span> = 0L;
|
||||
@ -728,8 +728,8 @@ rc = qmckl_set_ao_basis_prim_num(context, prim_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb3eaa16" class="outline-4">
|
||||
<h4 id="orgb3eaa16"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div id="outline-container-org3d257b6" class="outline-4">
|
||||
<h4 id="org3d257b6"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div class="outline-text-4" id="text-1-4-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">ao_num</span> = 0LL;
|
||||
@ -753,8 +753,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge485f4a" class="outline-4">
|
||||
<h4 id="orge485f4a"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div id="outline-container-org61727ac" class="outline-4">
|
||||
<h4 id="org61727ac"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div class="outline-text-4" id="text-1-4-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -836,8 +836,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8b536f5" class="outline-4">
|
||||
<h4 id="org8b536f5"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div id="outline-container-org7a4a4b0" class="outline-4">
|
||||
<h4 id="org7a4a4b0"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div class="outline-text-4" id="text-1-4-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -922,8 +922,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeb0fb66" class="outline-4">
|
||||
<h4 id="orgeb0fb66"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div id="outline-container-org4635aa1" class="outline-4">
|
||||
<h4 id="org4635aa1"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div class="outline-text-4" id="text-1-4-7">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -968,8 +968,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7b41ec9" class="outline-4">
|
||||
<h4 id="org7b41ec9"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
||||
<div id="outline-container-orga41b53a" class="outline-4">
|
||||
<h4 id="orga41b53a"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
||||
<div class="outline-text-4" id="text-1-4-8">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1053,8 +1053,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8aa277e" class="outline-4">
|
||||
<h4 id="org8aa277e"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
||||
<div id="outline-container-orgec91027" class="outline-4">
|
||||
<h4 id="orgec91027"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
||||
<div class="outline-text-4" id="text-1-4-9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1134,8 +1134,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org145e975" class="outline-4">
|
||||
<h4 id="org145e975"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
||||
<div id="outline-container-orgae728fe" class="outline-4">
|
||||
<h4 id="orgae728fe"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
||||
<div class="outline-text-4" id="text-1-4-10">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1180,8 +1180,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org75ea3cf" class="outline-4">
|
||||
<h4 id="org75ea3cf"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||
<div id="outline-container-org07ece03" class="outline-4">
|
||||
<h4 id="org07ece03"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||
<div class="outline-text-4" id="text-1-4-11">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1226,8 +1226,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org69ce230" class="outline-4">
|
||||
<h4 id="org69ce230"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||
<div id="outline-container-org6cab85b" class="outline-4">
|
||||
<h4 id="org6cab85b"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||
<div class="outline-text-4" id="text-1-4-12">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1272,8 +1272,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org11bfe97" class="outline-4">
|
||||
<h4 id="org11bfe97"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
||||
<div id="outline-container-orgb578c69" class="outline-4">
|
||||
<h4 id="orgb578c69"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
||||
<div class="outline-text-4" id="text-1-4-13">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1318,8 +1318,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org45adff9" class="outline-4">
|
||||
<h4 id="org45adff9"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||
<div id="outline-container-org6fcfad0" class="outline-4">
|
||||
<h4 id="org6fcfad0"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||
<div class="outline-text-4" id="text-1-4-14">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1374,8 +1374,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org0211460" class="outline-3">
|
||||
<h3 id="org0211460"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-orgc287251" class="outline-3">
|
||||
<h3 id="orgc287251"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
In this section we read the MO coefficients.
|
||||
@ -1401,8 +1401,8 @@ In this section we read the MO coefficients.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org020e0fe" class="outline-4">
|
||||
<h4 id="org020e0fe"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
||||
<div id="outline-container-orgb0d1d42" class="outline-4">
|
||||
<h4 id="orgb0d1d42"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
||||
<div class="outline-text-4" id="text-1-5-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">mo_num</span> = 0L;
|
||||
@ -1425,8 +1425,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd20a0be" class="outline-4">
|
||||
<h4 id="orgd20a0be"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||
<div id="outline-container-org973153e" class="outline-4">
|
||||
<h4 id="org973153e"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||
<div class="outline-text-4" id="text-1-5-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1475,12 +1475,12 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org38e59ef" class="outline-3">
|
||||
<h3 id="org38e59ef"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
<div id="outline-container-org774c5a0" class="outline-3">
|
||||
<h3 id="org774c5a0"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org54c2085" class="outline-2">
|
||||
<h2 id="org54c2085"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div id="outline-container-org5f596da" class="outline-2">
|
||||
<h2 id="org5f596da"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_trexio_read</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #a020f0;">const</span> <span style="color: #228b22;">char</span>* <span style="color: #a0522d;">file_name</span>);
|
||||
@ -1561,8 +1561,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4f45472" class="outline-2">
|
||||
<h2 id="org4f45472"><span class="section-number-2">3</span> Test</h2>
|
||||
<div id="outline-container-org540329a" class="outline-2">
|
||||
<h2 id="org540329a"><span class="section-number-2">3</span> Test</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_TREXIO
|
||||
@ -1596,8 +1596,8 @@ rc = qmckl_trexio_read(context, fname);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org04d13ec" class="outline-4">
|
||||
<h4 id="org04d13ec"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||
<div id="outline-container-org3448942" class="outline-4">
|
||||
<h4 id="org3448942"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||
<div class="outline-text-4" id="text-3-0-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">printf(<span style="color: #8b2252;">"Electrons\n"</span>);
|
||||
@ -1615,8 +1615,8 @@ rc = qmckl_get_electron_down_num(context, &dn_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge31af0b" class="outline-4">
|
||||
<h4 id="orge31af0b"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||
<div id="outline-container-org0c9412e" class="outline-4">
|
||||
<h4 id="org0c9412e"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||
<div class="outline-text-4" id="text-3-0-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">printf(<span style="color: #8b2252;">"Nuclei\n"</span>);
|
||||
@ -1656,8 +1656,8 @@ coord = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf883bd5" class="outline-4">
|
||||
<h4 id="orgf883bd5"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||
<div id="outline-container-org61c0409" class="outline-4">
|
||||
<h4 id="org61c0409"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||
<div class="outline-text-4" id="text-3-0-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">printf(<span style="color: #8b2252;">"Atomic basis\n"</span>);
|
||||
@ -1765,8 +1765,8 @@ prim_factor = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf1a5e0d" class="outline-4">
|
||||
<h4 id="orgf1a5e0d"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div id="outline-container-org8722bdc" class="outline-4">
|
||||
<h4 id="org8722bdc"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div class="outline-text-4" id="text-3-0-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">printf(<span style="color: #8b2252;">"MOs\n"</span>);
|
||||
@ -1796,7 +1796,7 @@ charge = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 14:37</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 15:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-01-08 Sat 14:37 -->
|
||||
<!-- 2022-01-08 Sat 15:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Utility functions</title>
|
||||
@ -333,13 +333,13 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgdd62e59">1. Matrix operations</a>
|
||||
<li><a href="#org01c983e">1. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#org1c79713">1.1. <code>qmckl_transpose</code></a>
|
||||
<li><a href="#org8fef2b7">1.1. <code>qmckl_transpose</code></a>
|
||||
<ul>
|
||||
<li><a href="#org366f55a">1.1.1. Requirements</a></li>
|
||||
<li><a href="#orgaf2ffaa">1.1.2. C header</a></li>
|
||||
<li><a href="#org0f96186">1.1.3. Source</a></li>
|
||||
<li><a href="#orgd6848b2">1.1.1. Requirements</a></li>
|
||||
<li><a href="#org142b196">1.1.2. C header</a></li>
|
||||
<li><a href="#orge2bb6f1">1.1.3. Source</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -348,18 +348,18 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdd62e59" class="outline-2">
|
||||
<h2 id="orgdd62e59"><span class="section-number-2">1</span> Matrix operations</h2>
|
||||
<div id="outline-container-org01c983e" class="outline-2">
|
||||
<h2 id="org01c983e"><span class="section-number-2">1</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org1c79713" class="outline-3">
|
||||
<h3 id="org1c79713"><span class="section-number-3">1.1</span> <code>qmckl_transpose</code></h3>
|
||||
<div id="outline-container-org8fef2b7" class="outline-3">
|
||||
<h3 id="org8fef2b7"><span class="section-number-3">1.1</span> <code>qmckl_transpose</code></h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</p>
|
||||
|
||||
<table id="org561591b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9b911f2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -424,8 +424,8 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org366f55a" class="outline-4">
|
||||
<h4 id="org366f55a"><span class="section-number-4">1.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgd6848b2" class="outline-4">
|
||||
<h4 id="orgd6848b2"><span class="section-number-4">1.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-1-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -439,8 +439,8 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaf2ffaa" class="outline-4">
|
||||
<h4 id="orgaf2ffaa"><span class="section-number-4">1.1.2</span> C header</h4>
|
||||
<div id="outline-container-org142b196" class="outline-4">
|
||||
<h4 id="org142b196"><span class="section-number-4">1.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-1-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_transpose</span> (
|
||||
@ -456,8 +456,8 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0f96186" class="outline-4">
|
||||
<h4 id="org0f96186"><span class="section-number-4">1.1.3</span> Source</h4>
|
||||
<div id="outline-container-orge2bb6f1" class="outline-4">
|
||||
<h4 id="orge2bb6f1"><span class="section-number-4">1.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-1-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer </span><span style="color: #a020f0;">function</span><span style="color: #a0522d;"> </span><span style="color: #0000ff;">qmckl_transpose_f</span><span style="color: #000000; background-color: #ffffff;">(context, m, n, A, LDA, B, LDB)</span><span style="color: #a0522d;"> </span><span style="color: #a020f0;">&</span>
|
||||
@ -516,7 +516,7 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 14:37</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 15:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-01-08 Sat 14:37 -->
|
||||
<!-- 2022-01-08 Sat 15:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Verificarlo CI</title>
|
||||
@ -311,22 +311,22 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org2d4935f">1. Verificarlo probes</a>
|
||||
<li><a href="#org7246f48">1. Verificarlo probes</a>
|
||||
<ul>
|
||||
<li><a href="#org175466e">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org7b644ee">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org5c91370">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#orgcad09da">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org43fb44d">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org4b8fab2">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#orgf32f88c">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org012c2ab">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#org32174e3">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org86e1cf3">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3ff2a06">2. Fortran wrappers</a></li>
|
||||
<li><a href="#org4e82e3d">2. Fortran wrappers</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2d4935f" class="outline-2">
|
||||
<h2 id="org2d4935f"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div id="outline-container-org7246f48" class="outline-2">
|
||||
<h2 id="org7246f48"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
This file contains utility functions to enable the Verificarlo
|
||||
@ -377,8 +377,8 @@ To learn more about Verificarlo CI :
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org175466e" class="outline-3">
|
||||
<h3 id="org175466e"><span class="section-number-3">1.1</span> Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</h3>
|
||||
<div id="outline-container-org4b8fab2" class="outline-3">
|
||||
<h3 id="org4b8fab2"><span class="section-number-3">1.1</span> Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> VFC_CI
|
||||
@ -398,8 +398,8 @@ To learn more about Verificarlo CI :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7b644ee" class="outline-3">
|
||||
<h3 id="org7b644ee"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div id="outline-container-orgf32f88c" class="outline-3">
|
||||
<h3 id="orgf32f88c"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<ul class="org-ul">
|
||||
<li>if <code>VFC_CI</code> is defined, place a standard probe</li>
|
||||
@ -434,8 +434,8 @@ if <code>VFC_CI</code> is undefined, return <code>false</code> (no error)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5c91370" class="outline-3">
|
||||
<h3 id="org5c91370"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div id="outline-container-org012c2ab" class="outline-3">
|
||||
<h3 id="org012c2ab"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<ul class="org-ul">
|
||||
<li>if <code>VFC_CI</code> is defined, place a probe with an absolute check</li>
|
||||
@ -475,8 +475,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcad09da" class="outline-3">
|
||||
<h3 id="orgcad09da"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div id="outline-container-org32174e3" class="outline-3">
|
||||
<h3 id="org32174e3"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<ul class="org-ul">
|
||||
<li>if <code>VFC_CI</code> is defined, place a probe with a relative check</li>
|
||||
@ -516,8 +516,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org43fb44d" class="outline-3">
|
||||
<h3 id="org43fb44d"><span class="section-number-3">1.5</span> Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</h3>
|
||||
<div id="outline-container-org86e1cf3" class="outline-3">
|
||||
<h3 id="org86e1cf3"><span class="section-number-3">1.5</span> Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> VFC_CI
|
||||
@ -538,8 +538,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3ff2a06" class="outline-2">
|
||||
<h2 id="org3ff2a06"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||
<div id="outline-container-org4e82e3d" class="outline-2">
|
||||
<h2 id="org4e82e3d"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">bool</span> <span style="color: #0000ff;">qmckl_probe_f</span>(
|
||||
@ -663,7 +663,7 @@ and accuracy
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 14:37</p>
|
||||
<p class="date">Created: 2022-01-08 Sat 15:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user