mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-11-03 12:43:57 +01:00
Deploying to gh-pages from @ TREX-CoE/qmckl@a9902740ec 🚀
This commit is contained in:
parent
0421b5ee0d
commit
5aed84bac1
@ -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-06-15 Wed 21:22 -->
|
||||
<!-- 2022-06-16 Thu 15:18 -->
|
||||
<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>
|
||||
@ -362,7 +362,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-06-15 Wed 21:22</p>
|
||||
<p class="date">Created: 2022-06-16 Thu 15:18</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
118
qmckl.html
118
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-06-15 Wed 21:22 -->
|
||||
<!-- 2022-06-16 Thu 15:19 -->
|
||||
<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,36 +333,36 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgc3e1dbb">1. Installing QMCkl</a>
|
||||
<li><a href="#org02e8643">1. Installing QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#org7a1c473">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org53f9429">1.2. Installing from the source repository (for developers)</a></li>
|
||||
<li><a href="#orgb42bcc6">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org83baf67">1.2. Installing from the source repository (for developers)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga4d08a0">2. Using QMCkl</a></li>
|
||||
<li><a href="#org2b3ee22">3. Developing in QMCkl</a>
|
||||
<li><a href="#org715346d">2. Using QMCkl</a></li>
|
||||
<li><a href="#org74855a8">3. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#org62b395f">3.1. Literate programming</a></li>
|
||||
<li><a href="#org1000ab4">3.2. Source code editing</a></li>
|
||||
<li><a href="#org5d373bd">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#orga6905e9">3.4. Coding rules</a></li>
|
||||
<li><a href="#orgd9f2bc9">3.5. Design of the library</a></li>
|
||||
<li><a href="#org1d6237b">3.6. Naming conventions</a></li>
|
||||
<li><a href="#org3ec6159">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org085eb0d">3.8. Global state</a></li>
|
||||
<li><a href="#org96bfdab">3.9. Headers</a></li>
|
||||
<li><a href="#org8b2dedd">3.10. Low-level functions</a></li>
|
||||
<li><a href="#org8905411">3.11. High-level functions</a></li>
|
||||
<li><a href="#org42702eb">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org63b792b">3.13. Algorithms</a></li>
|
||||
<li><a href="#orgbb23f13">3.1. Literate programming</a></li>
|
||||
<li><a href="#orge660b22">3.2. Source code editing</a></li>
|
||||
<li><a href="#orga1bacd1">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org0bce542">3.4. Coding rules</a></li>
|
||||
<li><a href="#orgf26759c">3.5. Design of the library</a></li>
|
||||
<li><a href="#org94c56ed">3.6. Naming conventions</a></li>
|
||||
<li><a href="#org078de8f">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org9a1cf40">3.8. Global state</a></li>
|
||||
<li><a href="#org195f2cc">3.9. Headers</a></li>
|
||||
<li><a href="#orgcd4116f">3.10. Low-level functions</a></li>
|
||||
<li><a href="#org242c58c">3.11. High-level functions</a></li>
|
||||
<li><a href="#org37b7f95">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org04f5513">3.13. Algorithms</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc3e1dbb" class="outline-2">
|
||||
<h2 id="orgc3e1dbb"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div id="outline-container-org02e8643" class="outline-2">
|
||||
<h2 id="org02e8643"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The latest version fo QMCkl can be downloaded
|
||||
@ -371,8 +371,8 @@ The latest version fo QMCkl can be downloaded
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7a1c473" class="outline-3">
|
||||
<h3 id="org7a1c473"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div id="outline-container-orgb42bcc6" class="outline-3">
|
||||
<h3 id="orgb42bcc6"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
QMCkl is built with GNU Autotools, so the usual
|
||||
@ -387,8 +387,8 @@ options are defined using <code>CFLAGS</code> and <code>FCFLAGS</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org53f9429" class="outline-3">
|
||||
<h3 id="org53f9429"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div id="outline-container-org83baf67" class="outline-3">
|
||||
<h3 id="org83baf67"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To compile from the source repository, additional dependencies are
|
||||
@ -409,8 +409,8 @@ to be executed first.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga4d08a0" class="outline-2">
|
||||
<h2 id="orga4d08a0"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div id="outline-container-org715346d" class="outline-2">
|
||||
<h2 id="org715346d"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The <code>qmckl.h</code> header file installed in the <code>${prefix}/include</code> directory
|
||||
@ -439,12 +439,12 @@ Both files are located in the <code>include/</code> directory.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2b3ee22" class="outline-2">
|
||||
<h2 id="org2b3ee22"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-org74855a8" class="outline-2">
|
||||
<h2 id="org74855a8"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org62b395f" class="outline-3">
|
||||
<h3 id="org62b395f"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div id="outline-container-orgbb23f13" class="outline-3">
|
||||
<h3 id="orgbb23f13"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
In a traditional source code, most of the lines of source files of a program
|
||||
@ -494,8 +494,8 @@ tarball contains the generated source code.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1000ab4" class="outline-3">
|
||||
<h3 id="org1000ab4"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div id="outline-container-orge660b22" class="outline-3">
|
||||
<h3 id="orge660b22"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div class="outline-text-3" id="text-3-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>.
|
||||
@ -526,8 +526,8 @@ org-mode.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5d373bd" class="outline-3">
|
||||
<h3 id="org5d373bd"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-orga1bacd1" class="outline-3">
|
||||
<h3 id="orga1bacd1"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<p>
|
||||
Most of the codes of the <a href="https://trex-coe.eu">TREX CoE</a> are written in Fortran with some
|
||||
@ -591,8 +591,8 @@ For more guidelines on using Fortran to generate a C interface, see
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga6905e9" class="outline-3">
|
||||
<h3 id="orga6905e9"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div id="outline-container-org0bce542" class="outline-3">
|
||||
<h3 id="org0bce542"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div class="outline-text-3" id="text-3-4">
|
||||
<p>
|
||||
The authors should follow the recommendations of the C99
|
||||
@ -612,8 +612,8 @@ make cppcheck ; cat cppcheck.out
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd9f2bc9" class="outline-3">
|
||||
<h3 id="orgd9f2bc9"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div id="outline-container-orgf26759c" class="outline-3">
|
||||
<h3 id="orgf26759c"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div class="outline-text-3" id="text-3-5">
|
||||
<p>
|
||||
The proposed API should allow the library to: deal with memory transfers
|
||||
@ -624,8 +624,8 @@ functions (see below).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1d6237b" class="outline-3">
|
||||
<h3 id="org1d6237b"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-org94c56ed" class="outline-3">
|
||||
<h3 id="org94c56ed"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div class="outline-text-3" id="text-3-6">
|
||||
<p>
|
||||
To avoid namespace collisions, we use <code>qmckl_</code> as a prefix for all exported
|
||||
@ -646,8 +646,8 @@ form is allowed.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3ec6159" class="outline-3">
|
||||
<h3 id="org3ec6159"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-org078de8f" class="outline-3">
|
||||
<h3 id="org078de8f"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div class="outline-text-3" id="text-3-7">
|
||||
<p>
|
||||
In the C language, the number of bits used by the integer types can change
|
||||
@ -679,15 +679,15 @@ bindings in other languages in other repositories.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org085eb0d" class="outline-3">
|
||||
<h3 id="org085eb0d"><span class="section-number-3">3.8</span> Global state</h3>
|
||||
<div id="outline-container-org9a1cf40" class="outline-3">
|
||||
<h3 id="org9a1cf40"><span class="section-number-3">3.8</span> Global state</h3>
|
||||
<div class="outline-text-3" id="text-3-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="org8d5845a">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="orgd5576f0">=context=</a> contains the global
|
||||
state of the library, and is used as the first argument of many
|
||||
QMCkl functions.
|
||||
</p>
|
||||
@ -701,8 +701,8 @@ the state is done by setters and getters, prefixed by
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org96bfdab" class="outline-3">
|
||||
<h3 id="org96bfdab"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div id="outline-container-org195f2cc" class="outline-3">
|
||||
<h3 id="org195f2cc"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div class="outline-text-3" id="text-3-9">
|
||||
<p>
|
||||
A single <code>qmckl.h</code> header to be distributed by the library
|
||||
@ -790,8 +790,8 @@ and the types definitions should be written in the <code>*fh_type.f90</code> fil
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8b2dedd" class="outline-3">
|
||||
<h3 id="org8b2dedd"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-orgcd4116f" class="outline-3">
|
||||
<h3 id="orgcd4116f"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div class="outline-text-3" id="text-3-10">
|
||||
<p>
|
||||
Low-level functions are very simple functions which are leaves of
|
||||
@ -800,14 +800,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="#org8d5845a"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#orgd5576f0"><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-org8905411" class="outline-3">
|
||||
<h3 id="org8905411"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div id="outline-container-org242c58c" class="outline-3">
|
||||
<h3 id="org242c58c"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div class="outline-text-3" id="text-3-11">
|
||||
<p>
|
||||
High-level functions are at the top of the function call tree.
|
||||
@ -819,8 +819,8 @@ temporary storage, to simplify the use of accelerators.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org42702eb" class="outline-3">
|
||||
<h3 id="org42702eb"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-org37b7f95" class="outline-3">
|
||||
<h3 id="org37b7f95"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div class="outline-text-3" id="text-3-12">
|
||||
<p>
|
||||
The minimal number of bits of precision required for a function
|
||||
@ -828,7 +828,7 @@ 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="#org8d5845a"><code>context</code></a> variable.
|
||||
specified in the <a href="#orgd5576f0"><code>context</code></a> variable.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -896,8 +896,8 @@ following points :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org63b792b" class="outline-3">
|
||||
<h3 id="org63b792b"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div id="outline-container-org04f5513" class="outline-3">
|
||||
<h3 id="org04f5513"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div class="outline-text-3" id="text-3-13">
|
||||
<p>
|
||||
Reducing the scaling of an algorithm usually implies also reducing
|
||||
@ -913,7 +913,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-06-15 Wed 21:22</p>
|
||||
<p class="date">Created: 2022-06-16 Thu 15:19</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
212
qmckl_ao.html
212
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-06-15 Wed 21:23 -->
|
||||
<!-- 2022-06-16 Thu 15:19 -->
|
||||
<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,61 +333,61 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgea6b477">1. Introduction</a></li>
|
||||
<li><a href="#org18b0a15">2. Context</a>
|
||||
<li><a href="#orgd5a42cb">1. Introduction</a></li>
|
||||
<li><a href="#orgb21db0c">2. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org7d0251d">2.1. Constant data</a>
|
||||
<li><a href="#orgb4d0bab">2.1. Constant data</a>
|
||||
<ul>
|
||||
<li><a href="#org7220e0b">2.1.1. Initialization functions</a>
|
||||
<li><a href="#org2c4d26d">2.1.1. Initialization functions</a>
|
||||
<ul>
|
||||
<li><a href="#org4e0b378">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org1c94a44">2.1.1.2. Fortran interface</a></li>
|
||||
<li><a href="#org4f13cb1">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org8b5f3fb">2.1.1.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org33a6c46">2.1.2. Access functions</a>
|
||||
<li><a href="#orgd6d4829">2.1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org10bb10e">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org40d7666">2.1.2.2. Fortran interface</a></li>
|
||||
<li><a href="#org551a4e6">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org1a9c226">2.1.2.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6f8300c">2.2. Computed data</a>
|
||||
<li><a href="#org586e7e7">2.2. Computed data</a>
|
||||
<ul>
|
||||
<li><a href="#org0d37ad2">2.2.1. After initialization</a></li>
|
||||
<li><a href="#org4e1a1e1">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#org0c2303c">2.2.3. Access functions</a></li>
|
||||
<li><a href="#orga896bda">2.2.1. After initialization</a></li>
|
||||
<li><a href="#orgb8779ee">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#orgdc4f299">2.2.3. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf8dfecf">3. Radial part</a>
|
||||
<li><a href="#org60fab90">3. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#orgf3b195e">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org103c26f">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org4264c07">3.3. Computation of shells</a></li>
|
||||
<li><a href="#org5607522">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org0ad9890">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org027071d">3.3. Computation of shells</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3faa15c">4. Polynomial part</a>
|
||||
<li><a href="#org2ec0357">4. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#org9245f65">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org72b13ba">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
<li><a href="#orgb0d861d">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#orgf0fe9cc">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orged68a9a">5. Combining radial and polynomial parts</a>
|
||||
<li><a href="#orgfd321bc">5. Combining radial and polynomial parts</a>
|
||||
<ul>
|
||||
<li><a href="#org627daa1">5.1. Values only</a>
|
||||
<li><a href="#orgc494845">5.1. Values only</a>
|
||||
<ul>
|
||||
<li><a href="#orge17eb1e">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#orga968cd8">5.1.2. HPC version</a></li>
|
||||
<li><a href="#orgf4832e3">5.1.3. Interfaces</a></li>
|
||||
<li><a href="#orga09924e">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#org367880e">5.1.2. HPC version</a></li>
|
||||
<li><a href="#orgfc8a2e7">5.1.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1803bf4">5.2. Value, gradients, Laplacian</a>
|
||||
<li><a href="#org331ae64">5.2. Value, gradients, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org031d7b7">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#org2f9fab9">5.2.2. HPC version</a></li>
|
||||
<li><a href="#orgcccd666">5.2.3. Interfaces</a></li>
|
||||
<li><a href="#org73cb676">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#orgd2db39e">5.2.2. HPC version</a></li>
|
||||
<li><a href="#orge6ad47b">5.2.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -396,8 +396,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgea6b477" class="outline-2">
|
||||
<h2 id="orgea6b477"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div id="outline-container-orgd5a42cb" class="outline-2">
|
||||
<h2 id="orgd5a42cb"><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
|
||||
@ -450,19 +450,19 @@ gradients and Laplacian of the atomic basis functions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org18b0a15" class="outline-2">
|
||||
<h2 id="org18b0a15"><span class="section-number-2">2</span> Context</h2>
|
||||
<div id="outline-container-orgb21db0c" class="outline-2">
|
||||
<h2 id="orgb21db0c"><span class="section-number-2">2</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org7d0251d" class="outline-3">
|
||||
<h3 id="org7d0251d"><span class="section-number-3">2.1</span> Constant data</h3>
|
||||
<div id="outline-container-orgb4d0bab" class="outline-3">
|
||||
<h3 id="orgb4d0bab"><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="org52a2dc3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb175ac9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -636,7 +636,7 @@ calling the functions:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="orgcec934d"><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="orgee62191"><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>,
|
||||
@ -673,7 +673,7 @@ For array variables, use the rule:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="org4df5812"><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="org3ad312e"><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>);
|
||||
|
||||
@ -711,17 +711,17 @@ For array variables, use the rule:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7220e0b" class="outline-4">
|
||||
<h4 id="org7220e0b"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
||||
<div id="outline-container-org2c4d26d" class="outline-4">
|
||||
<h4 id="org2c4d26d"><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="#org18b0a15">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#orgb21db0c">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4e0b378" class="outline-5">
|
||||
<h5 id="org4e0b378"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div id="outline-container-org4f13cb1" class="outline-5">
|
||||
<h5 id="org4f13cb1"><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
|
||||
@ -845,8 +845,8 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1c94a44" class="outline-5">
|
||||
<h5 id="org1c94a44"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org8b5f3fb" class="outline-5">
|
||||
<h5 id="org8b5f3fb"><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>
|
||||
@ -1029,17 +1029,17 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org33a6c46" class="outline-4">
|
||||
<h4 id="org33a6c46"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
||||
<div id="outline-container-orgd6d4829" class="outline-4">
|
||||
<h4 id="orgd6d4829"><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="#org18b0a15">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#orgb21db0c">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org10bb10e" class="outline-5">
|
||||
<h5 id="org10bb10e"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div id="outline-container-org551a4e6" class="outline-5">
|
||||
<h5 id="org551a4e6"><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>
|
||||
@ -1161,8 +1161,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org40d7666" class="outline-5">
|
||||
<h5 id="org40d7666"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org1a9c226" class="outline-5">
|
||||
<h5 id="org1a9c226"><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>
|
||||
@ -1346,8 +1346,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6f8300c" class="outline-3">
|
||||
<h3 id="org6f8300c"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div id="outline-container-org586e7e7" class="outline-3">
|
||||
<h3 id="org586e7e7"><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:
|
||||
@ -1422,8 +1422,8 @@ The following data is computed as described in the next sections:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0d37ad2" class="outline-4">
|
||||
<h4 id="org0d37ad2"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div id="outline-container-orga896bda" class="outline-4">
|
||||
<h4 id="orga896bda"><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
|
||||
@ -1437,8 +1437,8 @@ the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4e1a1e1" class="outline-4">
|
||||
<h4 id="org4e1a1e1"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
||||
<div id="outline-container-orgb8779ee" class="outline-4">
|
||||
<h4 id="orgb8779ee"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<p>
|
||||
For faster access, we provide extra arrays for the shell information as:
|
||||
@ -1468,8 +1468,8 @@ which is a matrix-vector product.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0c2303c" class="outline-4">
|
||||
<h4 id="org0c2303c"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||
<div id="outline-container-orgdc4f299" class="outline-4">
|
||||
<h4 id="orgdc4f299"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1482,7 +1482,7 @@ which is a matrix-vector product.
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of primitive
|
||||
basis functions evaluated at the current coordinates.
|
||||
See section <a href="#org103c26f">3.2</a>.
|
||||
See section <a href="#org0ad9890">3.2</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1495,7 +1495,7 @@ See section <a href="#org103c26f">3.2</a>.
|
||||
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of contracted shells
|
||||
evaluated at the current coordinates. See section <a href="#org4264c07">3.3</a>.
|
||||
evaluated at the current coordinates. See section <a href="#org027071d">3.3</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1509,7 +1509,7 @@ evaluated at the current coordinates. See section <a href="#org4264c07">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="#orged68a9a">5</a>.
|
||||
See section <a href="#orgfd321bc">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1534,7 +1534,7 @@ Uses the given array to compute the VGL.
|
||||
|
||||
<p>
|
||||
Returns the array of values of the atomic orbitals evaluated at
|
||||
the current coordinates. See section <a href="#orged68a9a">5</a>.
|
||||
the current coordinates. See section <a href="#orgfd321bc">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1553,12 +1553,12 @@ Uses the given array to compute the value.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf8dfecf" class="outline-2">
|
||||
<h2 id="orgf8dfecf"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div id="outline-container-org60fab90" class="outline-2">
|
||||
<h2 id="org60fab90"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orgf3b195e" class="outline-3">
|
||||
<h3 id="orgf3b195e"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div id="outline-container-org5607522" class="outline-3">
|
||||
<h3 id="org5607522"><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
|
||||
@ -1729,10 +1729,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org103c26f" class="outline-3">
|
||||
<h3 id="org103c26f"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div id="outline-container-org0ad9890" class="outline-3">
|
||||
<h3 id="org0ad9890"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<table id="org9a45f92" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga63da3a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1891,10 +1891,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4264c07" class="outline-3">
|
||||
<h3 id="org4264c07"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div id="outline-container-org027071d" class="outline-3">
|
||||
<h3 id="org027071d"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<table id="org3bf8781" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc847dc1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2146,8 +2146,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3faa15c" class="outline-2">
|
||||
<h2 id="org3faa15c"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div id="outline-container-org2ec0357" class="outline-2">
|
||||
<h2 id="org2ec0357"><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
|
||||
@ -2167,8 +2167,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-org9245f65" class="outline-3">
|
||||
<h3 id="org9245f65"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-orgb0d861d" class="outline-3">
|
||||
<h3 id="orgb0d861d"><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>
|
||||
@ -2180,7 +2180,7 @@ the \(n\) points:
|
||||
\[ P_{ik} = X_i^k \]
|
||||
</p>
|
||||
|
||||
<table id="orgaed101f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2def49b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2318,8 +2318,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org72b13ba" class="outline-3">
|
||||
<h3 id="org72b13ba"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-orgf0fe9cc" class="outline-3">
|
||||
<h3 id="orgf0fe9cc"><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\)
|
||||
@ -2364,7 +2364,7 @@ Laplacians at a given point in space, of all polynomials with an
|
||||
angular momentum up to <code>lmax</code>.
|
||||
</p>
|
||||
|
||||
<table id="orgf4f19ab" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org372c931" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3128,18 +3128,18 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orged68a9a" class="outline-2">
|
||||
<h2 id="orged68a9a"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div id="outline-container-orgfd321bc" class="outline-2">
|
||||
<h2 id="orgfd321bc"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
</div>
|
||||
<div id="outline-container-org627daa1" class="outline-3">
|
||||
<h3 id="org627daa1"><span class="section-number-3">5.1</span> Values only</h3>
|
||||
<div id="outline-container-orgc494845" class="outline-3">
|
||||
<h3 id="orgc494845"><span class="section-number-3">5.1</span> Values only</h3>
|
||||
<div class="outline-text-3" id="text-5-1">
|
||||
</div>
|
||||
<div id="outline-container-orge17eb1e" class="outline-4">
|
||||
<h4 id="orge17eb1e"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-orga09924e" class="outline-4">
|
||||
<h4 id="orga09924e"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-1">
|
||||
<table id="org629d53d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org33a0822" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3375,10 +3375,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga968cd8" class="outline-4">
|
||||
<h4 id="orga968cd8"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div id="outline-container-org367880e" class="outline-4">
|
||||
<h4 id="org367880e"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-2">
|
||||
<table id="org2d859f1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgeffaa83" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3536,8 +3536,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf4832e3" class="outline-4">
|
||||
<h4 id="orgf4832e3"><span class="section-number-4">5.1.3</span> Interfaces</h4>
|
||||
<div id="outline-container-orgfc8a2e7" class="outline-4">
|
||||
<h4 id="orgfc8a2e7"><span class="section-number-4">5.1.3</span> Interfaces</h4>
|
||||
<div class="outline-text-4" id="text-5-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_compute_ao_value_doc</span> (
|
||||
@ -3586,14 +3586,14 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1803bf4" class="outline-3">
|
||||
<h3 id="org1803bf4"><span class="section-number-3">5.2</span> Value, gradients, Laplacian</h3>
|
||||
<div id="outline-container-org331ae64" class="outline-3">
|
||||
<h3 id="org331ae64"><span class="section-number-3">5.2</span> Value, gradients, Laplacian</h3>
|
||||
<div class="outline-text-3" id="text-5-2">
|
||||
</div>
|
||||
<div id="outline-container-org031d7b7" class="outline-4">
|
||||
<h4 id="org031d7b7"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-org73cb676" class="outline-4">
|
||||
<h4 id="org73cb676"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-1">
|
||||
<table id="orgd4eacb0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb70742b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3858,10 +3858,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2f9fab9" class="outline-4">
|
||||
<h4 id="org2f9fab9"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div id="outline-container-orgd2db39e" class="outline-4">
|
||||
<h4 id="orgd2db39e"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-2">
|
||||
<table id="orgcb07264" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgfc80f7b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4020,8 +4020,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgcccd666" class="outline-4">
|
||||
<h4 id="orgcccd666"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||
<div id="outline-container-orge6ad47b" class="outline-4">
|
||||
<h4 id="orge6ad47b"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||
<div class="outline-text-4" id="text-5-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_compute_ao_vgl_doc</span> (
|
||||
@ -4073,7 +4073,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-06-15 Wed 21:23</p>
|
||||
<p class="date">Created: 2022-06-16 Thu 15:19</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
150
qmckl_blas.html
150
qmckl_blas.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-06-15 Wed 21:22 -->
|
||||
<!-- 2022-06-16 Thu 15:19 -->
|
||||
<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,48 +333,48 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org3667fd1">-</a></li>
|
||||
<li><a href="#orgb7ec037">1. Data types</a>
|
||||
<li><a href="#org3c6520b">-</a></li>
|
||||
<li><a href="#orga115285">1. Data types</a>
|
||||
<ul>
|
||||
<li><a href="#org4cbfdd6">1.1. Vector</a></li>
|
||||
<li><a href="#orge401f35">1.2. Matrix</a></li>
|
||||
<li><a href="#orgb66aa65">1.3. Tensor</a></li>
|
||||
<li><a href="#org81215c9">1.4. Reshaping</a>
|
||||
<li><a href="#org9687045">1.1. Vector</a></li>
|
||||
<li><a href="#org1d7b322">1.2. Matrix</a></li>
|
||||
<li><a href="#orga4709e1">1.3. Tensor</a></li>
|
||||
<li><a href="#org8a46040">1.4. Reshaping</a>
|
||||
<ul>
|
||||
<li><a href="#org5a8f74b">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#orgcf3c54a">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#orgea15a12">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#org0677b92">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#org3624a38">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#orgbbb48fc">1.4.6. Tensor -> Matrix</a></li>
|
||||
<li><a href="#org4c8cbac">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#orgb8d1c23">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#org85e09f5">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#org65470d2">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#org308c6ec">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#org2abd97c">1.4.6. Tensor -> Matrix</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge577762">1.5. Access macros</a></li>
|
||||
<li><a href="#org77914f4">1.6. Set all elements</a>
|
||||
<li><a href="#org7c5bab3">1.5. Access macros</a></li>
|
||||
<li><a href="#orgc427843">1.6. Set all elements</a>
|
||||
<ul>
|
||||
<li><a href="#org09fc672">1.6.1. Vector</a></li>
|
||||
<li><a href="#org3767ea7">1.6.2. Matrix</a></li>
|
||||
<li><a href="#org6e5e2c6">1.6.3. Tensor</a></li>
|
||||
<li><a href="#orgb6d02f9">1.6.1. Vector</a></li>
|
||||
<li><a href="#org838a54b">1.6.2. Matrix</a></li>
|
||||
<li><a href="#orgbe09483">1.6.3. Tensor</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge57fd2d">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#orgc77292f">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga19887e">2. Matrix operations</a>
|
||||
<li><a href="#orgcc13f74">2. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#orged58c06">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org796fd66">2.2. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org6e60f2c">2.3. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#org23fc2cd">2.4. <code>qmckl_transpose</code></a></li>
|
||||
<li><a href="#orgc50628a">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#orgdce13ba">2.2. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org5168b48">2.3. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#org6d12d76">2.4. <code>qmckl_transpose</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3667fd1" class="outline-2">
|
||||
<h2 id="org3667fd1">-</h2>
|
||||
<div class="outline-text-2" id="text-org3667fd1">
|
||||
<div id="outline-container-org3c6520b" class="outline-2">
|
||||
<h2 id="org3c6520b">-</h2>
|
||||
<div class="outline-text-2" id="text-org3c6520b">
|
||||
<p>
|
||||
Basic linear algebra data types and operations are described in this file.
|
||||
The data types are private, so that HPC implementations can use
|
||||
@ -388,12 +388,12 @@ are not intended to be passed to external codes.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb7ec037" class="outline-2">
|
||||
<h2 id="orgb7ec037"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div id="outline-container-orga115285" class="outline-2">
|
||||
<h2 id="orga115285"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org4cbfdd6" class="outline-3">
|
||||
<h3 id="org4cbfdd6"><span class="section-number-3">1.1</span> Vector</h3>
|
||||
<div id="outline-container-org9687045" class="outline-3">
|
||||
<h3 id="org9687045"><span class="section-number-3">1.1</span> Vector</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
@ -447,8 +447,8 @@ Allocates a new vector. If the allocation failed the size is zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge401f35" class="outline-3">
|
||||
<h3 id="orge401f35"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||
<div id="outline-container-org1d7b322" class="outline-3">
|
||||
<h3 id="org1d7b322"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
@ -508,8 +508,8 @@ Allocates a new matrix. If the allocation failed the sizes are zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb66aa65" class="outline-3">
|
||||
<h3 id="orgb66aa65"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||
<div id="outline-container-orga4709e1" class="outline-3">
|
||||
<h3 id="orga4709e1"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
@ -576,16 +576,16 @@ is zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org81215c9" class="outline-3">
|
||||
<h3 id="org81215c9"><span class="section-number-3">1.4</span> Reshaping</h3>
|
||||
<div id="outline-container-org8a46040" class="outline-3">
|
||||
<h3 id="org8a46040"><span class="section-number-3">1.4</span> Reshaping</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
Reshaping occurs in-place and the pointer to the data is copied.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5a8f74b" class="outline-4">
|
||||
<h4 id="org5a8f74b"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||
<div id="outline-container-org4c8cbac" class="outline-4">
|
||||
<h4 id="org4c8cbac"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||
<div class="outline-text-4" id="text-1-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||
@ -601,8 +601,8 @@ Reshapes a vector into a matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcf3c54a" class="outline-4">
|
||||
<h4 id="orgcf3c54a"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||
<div id="outline-container-orgb8d1c23" class="outline-4">
|
||||
<h4 id="orgb8d1c23"><span class="section-number-4">1.4.2</span> Vector -> Tensor</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;">qmckl_tensor</span>
|
||||
@ -618,8 +618,8 @@ Reshapes a vector into a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgea15a12" class="outline-4">
|
||||
<h4 id="orgea15a12"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||
<div id="outline-container-org85e09f5" class="outline-4">
|
||||
<h4 id="org85e09f5"><span class="section-number-4">1.4.3</span> Matrix -> Vector</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;">qmckl_vector</span>
|
||||
@ -633,8 +633,8 @@ Reshapes a matrix into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0677b92" class="outline-4">
|
||||
<h4 id="org0677b92"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||
<div id="outline-container-org65470d2" class="outline-4">
|
||||
<h4 id="org65470d2"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</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;">qmckl_tensor</span>
|
||||
@ -650,8 +650,8 @@ Reshapes a matrix into a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3624a38" class="outline-4">
|
||||
<h4 id="org3624a38"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||
<div id="outline-container-org308c6ec" class="outline-4">
|
||||
<h4 id="org308c6ec"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||
<div class="outline-text-4" id="text-1-4-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||
@ -665,8 +665,8 @@ Reshapes a tensor into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbbb48fc" class="outline-4">
|
||||
<h4 id="orgbbb48fc"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||
<div id="outline-container-org2abd97c" class="outline-4">
|
||||
<h4 id="org2abd97c"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||
<div class="outline-text-4" id="text-1-4-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||
@ -683,8 +683,8 @@ Reshapes a tensor into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge577762" class="outline-3">
|
||||
<h3 id="orge577762"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||
<div id="outline-container-org7c5bab3" class="outline-3">
|
||||
<h3 id="org7c5bab3"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
Macros are provided to ease the access to vectors, matrices and
|
||||
@ -708,12 +708,12 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org77914f4" class="outline-3">
|
||||
<h3 id="org77914f4"><span class="section-number-3">1.6</span> Set all elements</h3>
|
||||
<div id="outline-container-orgc427843" class="outline-3">
|
||||
<h3 id="orgc427843"><span class="section-number-3">1.6</span> Set all elements</h3>
|
||||
<div class="outline-text-3" id="text-1-6">
|
||||
</div>
|
||||
<div id="outline-container-org09fc672" class="outline-4">
|
||||
<h4 id="org09fc672"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||
<div id="outline-container-orgb6d02f9" class="outline-4">
|
||||
<h4 id="orgb6d02f9"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||
<div class="outline-text-4" id="text-1-6-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||
@ -723,8 +723,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3767ea7" class="outline-4">
|
||||
<h4 id="org3767ea7"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||
<div id="outline-container-org838a54b" class="outline-4">
|
||||
<h4 id="org838a54b"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||
<div class="outline-text-4" id="text-1-6-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||
@ -734,8 +734,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6e5e2c6" class="outline-4">
|
||||
<h4 id="org6e5e2c6"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||
<div id="outline-container-orgbe09483" class="outline-4">
|
||||
<h4 id="orgbe09483"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||
<div class="outline-text-4" id="text-1-6-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||
@ -746,8 +746,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge57fd2d" class="outline-3">
|
||||
<h3 id="orge57fd2d"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||
<div id="outline-container-orgc77292f" class="outline-3">
|
||||
<h3 id="orgc77292f"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||
<div class="outline-text-3" id="text-1-7">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -830,12 +830,12 @@ Converts a <code>double*</code> to a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga19887e" class="outline-2">
|
||||
<h2 id="orga19887e"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div id="outline-container-orgcc13f74" class="outline-2">
|
||||
<h2 id="orgcc13f74"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orged58c06" class="outline-3">
|
||||
<h3 id="orged58c06"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div id="outline-container-orgc50628a" class="outline-3">
|
||||
<h3 id="orgc50628a"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
Matrix multiplication with a BLAS interface:
|
||||
@ -847,7 +847,7 @@ Matrix multiplication with a BLAS interface:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="org9cfbbd3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge5220fd" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1006,8 +1006,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org796fd66" class="outline-3">
|
||||
<h3 id="org796fd66"><span class="section-number-3">2.2</span> <code>qmckl_matmul</code></h3>
|
||||
<div id="outline-container-orgdce13ba" class="outline-3">
|
||||
<h3 id="orgdce13ba"><span class="section-number-3">2.2</span> <code>qmckl_matmul</code></h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
@ -1019,7 +1019,7 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="org56c28fe" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org84b8f60" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1113,8 +1113,8 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6e60f2c" class="outline-3">
|
||||
<h3 id="org6e60f2c"><span class="section-number-3">2.3</span> <code>qmckl_adjugate</code></h3>
|
||||
<div id="outline-container-org5168b48" class="outline-3">
|
||||
<h3 id="org5168b48"><span class="section-number-3">2.3</span> <code>qmckl_adjugate</code></h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
Given a matrix \(\mathbf{A}\), the adjugate matrix
|
||||
@ -1132,7 +1132,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="org1a34c04" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf52dc12" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1328,8 +1328,8 @@ determinant with the inverse:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org23fc2cd" class="outline-3">
|
||||
<h3 id="org23fc2cd"><span class="section-number-3">2.4</span> <code>qmckl_transpose</code></h3>
|
||||
<div id="outline-container-org6d12d76" class="outline-3">
|
||||
<h3 id="org6d12d76"><span class="section-number-3">2.4</span> <code>qmckl_transpose</code></h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
||||
@ -1392,7 +1392,7 @@ Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-06-15 Wed 21:22</p>
|
||||
<p class="date">Created: 2022-06-16 Thu 15:19</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-06-15 Wed 21:22 -->
|
||||
<!-- 2022-06-16 Thu 15:18 -->
|
||||
<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="#org6c75ec5">1. Context handling</a>
|
||||
<li><a href="#org50b09be">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#org3715adc">1.1. Data structure</a></li>
|
||||
<li><a href="#orgacc1308">1.2. Creation</a></li>
|
||||
<li><a href="#org7211ec7">1.3. Locking</a></li>
|
||||
<li><a href="#orgec9604d">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org56cbb4e">1.5. Destroy</a></li>
|
||||
<li><a href="#orgcfb195d">1.1. Data structure</a></li>
|
||||
<li><a href="#orgfacd96c">1.2. Creation</a></li>
|
||||
<li><a href="#org59daf58">1.3. Locking</a></li>
|
||||
<li><a href="#orgc7806ba">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org5eb03e8">1.5. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6c75ec5" class="outline-2">
|
||||
<h2 id="org6c75ec5"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-org50b09be" class="outline-2">
|
||||
<h2 id="org50b09be"><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="orgb6b2b50"><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="orge1990ba"><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-org3715adc" class="outline-3">
|
||||
<h3 id="org3715adc"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgcfb195d" class="outline-3">
|
||||
<h3 id="orgcfb195d"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
A tag is used internally to check if the memory domain pointed
|
||||
@ -385,7 +385,7 @@ to be recomputed. The date is incremented when the context is touched.
|
||||
|
||||
<p>
|
||||
When a new element is added to the context, the functions
|
||||
<a href="#orgacc1308"><code>qmckl_context_create</code></a> <a href="#org56cbb4e"><code>qmckl_context_destroy</code></a> and <a href="#orgec9604d"><code>qmckl_context_copy</code></a>
|
||||
<a href="#orgfacd96c"><code>qmckl_context_create</code></a> <a href="#org5eb03e8"><code>qmckl_context_destroy</code></a> and <a href="#orgc7806ba"><code>qmckl_context_copy</code></a>
|
||||
should be updated in order to make deep copies.
|
||||
</p>
|
||||
|
||||
@ -406,8 +406,8 @@ This has the effect to increment the date of the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgacc1308" class="outline-3">
|
||||
<h3 id="orgacc1308"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-orgfacd96c" class="outline-3">
|
||||
<h3 id="orgfacd96c"><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.
|
||||
@ -424,8 +424,8 @@ To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org7211ec7" class="outline-3">
|
||||
<h3 id="org7211ec7"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-org59daf58" class="outline-3">
|
||||
<h3 id="org59daf58"><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
|
||||
@ -441,8 +441,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgec9604d" class="outline-3">
|
||||
<h3 id="orgec9604d"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div id="outline-container-orgc7806ba" class="outline-3">
|
||||
<h3 id="orgc7806ba"><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
|
||||
@ -450,8 +450,8 @@ number of times the thread has locked it is saved in the
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org56cbb4e" class="outline-3">
|
||||
<h3 id="org56cbb4e"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-org5eb03e8" class="outline-3">
|
||||
<h3 id="org5eb03e8"><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.
|
||||
@ -469,7 +469,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-06-15 Wed 21:22</p>
|
||||
<p class="date">Created: 2022-06-16 Thu 15:18</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-06-15 Wed 21:22 -->
|
||||
<!-- 2022-06-16 Thu 15:18 -->
|
||||
<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="#org813f1d9">1. Context</a>
|
||||
<li><a href="#org4ed852a">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgfe5142a">1.1. Data structure</a></li>
|
||||
<li><a href="#org6c1b29b">1.2. Access functions</a></li>
|
||||
<li><a href="#org1fb116e">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgc164750">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#org235b38a">1.5. Test</a></li>
|
||||
<li><a href="#org2834026">1.1. Data structure</a></li>
|
||||
<li><a href="#orgd2f7950">1.2. Access functions</a></li>
|
||||
<li><a href="#org02542ab">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org17900da">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#org446b4c3">1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgdd9ff11">2. Computation</a>
|
||||
<li><a href="#org0eb8a51">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org16cf9bc">2.1. Determinant matrix</a>
|
||||
<li><a href="#org454ace7">2.1. Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org99e3721">2.1.1. Get</a></li>
|
||||
<li><a href="#org43a3bf1">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgd826414">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#org516e6b0">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#orgecadfd1">2.1.5. Test</a></li>
|
||||
<li><a href="#orga9cf87e">2.1.1. Get</a></li>
|
||||
<li><a href="#org089893c">2.1.2. Provide</a></li>
|
||||
<li><a href="#org681cdd3">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#org3785aef">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#orgb236658">2.1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgced9deb">2.2. Inverse of Determinant matrix</a>
|
||||
<li><a href="#org7a16ef4">2.2. Inverse of Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org6b5d8cb">2.2.1. Get</a></li>
|
||||
<li><a href="#org8be4dad">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgbb4f3c8">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#org6ef96b5">2.2.4. Compute beta</a></li>
|
||||
<li><a href="#org23fd658">2.2.1. Get</a></li>
|
||||
<li><a href="#org433e286">2.2.2. Provide</a></li>
|
||||
<li><a href="#org6e5f180">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#org328da73">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-org813f1d9" class="outline-2">
|
||||
<h2 id="org813f1d9"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org4ed852a" class="outline-2">
|
||||
<h2 id="org4ed852a"><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-orgfe5142a" class="outline-3">
|
||||
<h3 id="orgfe5142a"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org2834026" class="outline-3">
|
||||
<h3 id="org2834026"><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-org6c1b29b" class="outline-3">
|
||||
<h3 id="org6c1b29b"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgd2f7950" class="outline-3">
|
||||
<h3 id="orgd2f7950"><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-org1fb116e" class="outline-3">
|
||||
<h3 id="org1fb116e"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org02542ab" class="outline-3">
|
||||
<h3 id="org02542ab"><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-orgc164750" class="outline-3">
|
||||
<h3 id="orgc164750"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
<div id="outline-container-org17900da" class="outline-3">
|
||||
<h3 id="org17900da"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
</div>
|
||||
<div id="outline-container-org235b38a" class="outline-3">
|
||||
<h3 id="org235b38a"><span class="section-number-3">1.5</span> Test</h3>
|
||||
<div id="outline-container-org446b4c3" class="outline-3">
|
||||
<h3 id="org446b4c3"><span class="section-number-3">1.5</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgdd9ff11" class="outline-2">
|
||||
<h2 id="orgdd9ff11"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org0eb8a51" class="outline-2">
|
||||
<h2 id="org0eb8a51"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org16cf9bc" class="outline-3">
|
||||
<h3 id="org16cf9bc"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
||||
<div id="outline-container-org454ace7" class="outline-3">
|
||||
<h3 id="org454ace7"><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-org99e3721" class="outline-4">
|
||||
<h4 id="org99e3721"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orga9cf87e" class="outline-4">
|
||||
<h4 id="orga9cf87e"><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-org43a3bf1" class="outline-4">
|
||||
<h4 id="org43a3bf1"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org089893c" class="outline-4">
|
||||
<h4 id="org089893c"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd826414" class="outline-4">
|
||||
<h4 id="orgd826414"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org681cdd3" class="outline-4">
|
||||
<h4 id="org681cdd3"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="orgbed658c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7e0f4b4" 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-org516e6b0" class="outline-4">
|
||||
<h4 id="org516e6b0"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org3785aef" class="outline-4">
|
||||
<h4 id="org3785aef"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<table id="org10ed656" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga9f6b9e" 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-orgecadfd1" class="outline-4">
|
||||
<h4 id="orgecadfd1"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
<div id="outline-container-orgb236658" class="outline-4">
|
||||
<h4 id="orgb236658"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgced9deb" class="outline-3">
|
||||
<h3 id="orgced9deb"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
||||
<div id="outline-container-org7a16ef4" class="outline-3">
|
||||
<h3 id="org7a16ef4"><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-org6b5d8cb" class="outline-4">
|
||||
<h4 id="org6b5d8cb"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org23fd658" class="outline-4">
|
||||
<h4 id="org23fd658"><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-org8be4dad" class="outline-4">
|
||||
<h4 id="org8be4dad"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org433e286" class="outline-4">
|
||||
<h4 id="org433e286"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbb4f3c8" class="outline-4">
|
||||
<h4 id="orgbb4f3c8"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org6e5f180" class="outline-4">
|
||||
<h4 id="org6e5f180"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="orgaf78b6d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge883926" 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-org6ef96b5" class="outline-4">
|
||||
<h4 id="org6ef96b5"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org328da73" class="outline-4">
|
||||
<h4 id="org328da73"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<table id="org9d9f0a0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org03647a7" 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-06-15 Wed 21:22</p>
|
||||
<p class="date">Created: 2022-06-16 Thu 15:18</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-06-15 Wed 21:22 -->
|
||||
<!-- 2022-06-16 Thu 15:18 -->
|
||||
<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="#org79bd43c">1. Squared distance</a>
|
||||
<li><a href="#orgb4bb213">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#org8951ba8">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#orge6c3a0b">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgb0458a4">1.1.1. Performance</a></li>
|
||||
<li><a href="#orga0b3819">1.1.1. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga6fa9fc">2. Distance</a>
|
||||
<li><a href="#orge4bc707">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org2bc92a8">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#orgd17dabe">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#orga4d3df4">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org080534f">2.1.2. C header</a></li>
|
||||
<li><a href="#org3074a28">2.1.3. Source</a></li>
|
||||
<li><a href="#orgcb4c8b9">2.1.4. Performance</a></li>
|
||||
<li><a href="#org7a7b32b">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org91910cd">2.1.2. C header</a></li>
|
||||
<li><a href="#org90837fb">2.1.3. Source</a></li>
|
||||
<li><a href="#orgb7d1466">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf30adf4">3. Rescaled Distance</a>
|
||||
<li><a href="#org47f9704">3. Rescaled Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org9c5ef35">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<li><a href="#org69c3d7c">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<ul>
|
||||
<li><a href="#org31640d0">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org8e82aea">3.1.2. C header</a></li>
|
||||
<li><a href="#org6641aa9">3.1.3. Source</a></li>
|
||||
<li><a href="#orgd2cae38">3.1.4. Performance</a></li>
|
||||
<li><a href="#orgf297338">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org350c10e">3.1.2. C header</a></li>
|
||||
<li><a href="#org573ea5c">3.1.3. Source</a></li>
|
||||
<li><a href="#orgc3bfe8c">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org05d3bc3">4. Rescaled Distance Derivatives</a>
|
||||
<li><a href="#orga9f212d">4. Rescaled Distance Derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#orgdbd5381">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a></li>
|
||||
<li><a href="#orgd7b34e7">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org79bd43c" class="outline-2">
|
||||
<h2 id="org79bd43c"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-orgb4bb213" class="outline-2">
|
||||
<h2 id="orgb4bb213"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org8951ba8" class="outline-3">
|
||||
<h3 id="org8951ba8"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-orge6c3a0b" class="outline-3">
|
||||
<h3 id="orge6c3a0b"><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="orgab6e167" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org23f4733" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -659,8 +659,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb0458a4" class="outline-4">
|
||||
<h4 id="orgb0458a4"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div id="outline-container-orga0b3819" class="outline-4">
|
||||
<h4 id="orga0b3819"><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-orga6fa9fc" class="outline-2">
|
||||
<h2 id="orga6fa9fc"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-orge4bc707" class="outline-2">
|
||||
<h2 id="orge4bc707"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org2bc92a8" class="outline-3">
|
||||
<h3 id="org2bc92a8"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div id="outline-container-orgd17dabe" class="outline-3">
|
||||
<h3 id="orgd17dabe"><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="org740cb70" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgdac53a2" 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-orga4d3df4" class="outline-4">
|
||||
<h4 id="orga4d3df4"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org7a7b32b" class="outline-4">
|
||||
<h4 id="org7a7b32b"><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-org080534f" class="outline-4">
|
||||
<h4 id="org080534f"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-org91910cd" class="outline-4">
|
||||
<h4 id="org91910cd"><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-org3074a28" class="outline-4">
|
||||
<h4 id="org3074a28"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-org90837fb" class="outline-4">
|
||||
<h4 id="org90837fb"><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-orgcb4c8b9" class="outline-4">
|
||||
<h4 id="orgcb4c8b9"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgb7d1466" class="outline-4">
|
||||
<h4 id="orgb7d1466"><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-orgf30adf4" class="outline-2">
|
||||
<h2 id="orgf30adf4"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div id="outline-container-org47f9704" class="outline-2">
|
||||
<h2 id="org47f9704"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org9c5ef35" class="outline-3">
|
||||
<h3 id="org9c5ef35"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div id="outline-container-org69c3d7c" class="outline-3">
|
||||
<h3 id="org69c3d7c"><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="org546314d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org29fec56" 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-org31640d0" class="outline-4">
|
||||
<h4 id="org31640d0"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgf297338" class="outline-4">
|
||||
<h4 id="orgf297338"><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-org8e82aea" class="outline-4">
|
||||
<h4 id="org8e82aea"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-org350c10e" class="outline-4">
|
||||
<h4 id="org350c10e"><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-org6641aa9" class="outline-4">
|
||||
<h4 id="org6641aa9"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-org573ea5c" class="outline-4">
|
||||
<h4 id="org573ea5c"><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-orgd2cae38" class="outline-4">
|
||||
<h4 id="orgd2cae38"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgc3bfe8c" class="outline-4">
|
||||
<h4 id="orgc3bfe8c"><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-org05d3bc3" class="outline-2">
|
||||
<h2 id="org05d3bc3"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div id="outline-container-orga9f212d" class="outline-2">
|
||||
<h2 id="orga9f212d"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-orgdbd5381" class="outline-3">
|
||||
<h3 id="orgdbd5381"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_deriv_e</code></h3>
|
||||
<div id="outline-container-orgd7b34e7" class="outline-3">
|
||||
<h3 id="orgd7b34e7"><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="orgb29ca71" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd0b8774" 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-06-15 Wed 21:22</p>
|
||||
<p class="date">Created: 2022-06-16 Thu 15:18</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-06-15 Wed 21:22 -->
|
||||
<!-- 2022-06-16 Thu 15:18 -->
|
||||
<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,88 +333,88 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgb81a06e">1. Context</a>
|
||||
<li><a href="#orgd112bcb">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org65f25a1">1.1. Data structure</a></li>
|
||||
<li><a href="#orgababf5e">1.2. Access functions</a>
|
||||
<li><a href="#org0e84ebc">1.1. Data structure</a></li>
|
||||
<li><a href="#org3a924f7">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org4a62efa">1.2.1. Number of electrons</a></li>
|
||||
<li><a href="#org637a6ab">1.2.2. Number of walkers</a></li>
|
||||
<li><a href="#orgae3dc55">1.2.3. Scaling factors Kappa</a></li>
|
||||
<li><a href="#org6aae355">1.2.4. Electron coordinates</a></li>
|
||||
<li><a href="#orge9c8f5d">1.2.1. Number of electrons</a></li>
|
||||
<li><a href="#org640c97e">1.2.2. Number of walkers</a></li>
|
||||
<li><a href="#orgc4f5ec9">1.2.3. Scaling factors Kappa</a></li>
|
||||
<li><a href="#org86465d8">1.2.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org79b5c10">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org0947c1f">1.4. Test</a></li>
|
||||
<li><a href="#org8d5df23">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org0cdf2cb">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbf0e074">2. Computation</a>
|
||||
<li><a href="#org61414af">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgaa514ab">2.1. Electron-electron distances</a>
|
||||
<li><a href="#orge5a5aa3">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#org4a7a285">2.1.1. Get</a></li>
|
||||
<li><a href="#org121f563">2.1.2. Compute</a></li>
|
||||
<li><a href="#org8d5e3c5">2.1.3. Test</a></li>
|
||||
<li><a href="#org3f89669">2.1.1. Get</a></li>
|
||||
<li><a href="#org1328480">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgbc64fd2">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgdca5931">2.2. Electron-electron rescaled distances</a>
|
||||
<li><a href="#org84acacf">2.2. Electron-electron rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgd7ccd09">2.2.1. Get</a></li>
|
||||
<li><a href="#org6b16666">2.2.2. Compute</a></li>
|
||||
<li><a href="#org186834b">2.2.3. Test</a></li>
|
||||
<li><a href="#org9ecf480">2.2.1. Get</a></li>
|
||||
<li><a href="#orgacf6886">2.2.2. Compute</a></li>
|
||||
<li><a href="#org4e5a4dc">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org21864db">2.3. Electron-electron rescaled distance gradients and Laplacian with respect to electron coords</a>
|
||||
<li><a href="#org4a5987c">2.3. Electron-electron rescaled distance gradients and Laplacian with respect to electron coords</a>
|
||||
<ul>
|
||||
<li><a href="#orgb291870">2.3.1. Get</a></li>
|
||||
<li><a href="#orga5517a4">2.3.2. Compute</a></li>
|
||||
<li><a href="#orgde3eb86">2.3.3. Test</a></li>
|
||||
<li><a href="#org069c018">2.3.1. Get</a></li>
|
||||
<li><a href="#orga7f969c">2.3.2. Compute</a></li>
|
||||
<li><a href="#org1270683">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2e2e4e4">2.4. Electron-electron potential</a>
|
||||
<li><a href="#org843740b">2.4. Electron-electron potential</a>
|
||||
<ul>
|
||||
<li><a href="#orgb2dc029">2.4.1. Get</a></li>
|
||||
<li><a href="#org5884f53">2.4.2. Compute</a></li>
|
||||
<li><a href="#orgc2f3411">2.4.3. Test</a></li>
|
||||
<li><a href="#org743b40d">2.4.1. Get</a></li>
|
||||
<li><a href="#orge7e26b4">2.4.2. Compute</a></li>
|
||||
<li><a href="#org92bad59">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgcbc4160">2.5. Electron-nucleus distances</a>
|
||||
<li><a href="#org496565c">2.5. Electron-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgf259e45">2.5.1. Get</a></li>
|
||||
<li><a href="#org13f8c91">2.5.2. Compute</a></li>
|
||||
<li><a href="#orgfc63252">2.5.3. Test</a></li>
|
||||
<li><a href="#org0e7849a">2.5.1. Get</a></li>
|
||||
<li><a href="#orgb4ca3a3">2.5.2. Compute</a></li>
|
||||
<li><a href="#orge7aa27a">2.5.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4ca54eb">2.6. Electron-nucleus rescaled distances</a>
|
||||
<li><a href="#orgf779653">2.6. Electron-nucleus rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#orge2157fd">2.6.1. Get</a></li>
|
||||
<li><a href="#orgba05adf">2.6.2. Compute</a></li>
|
||||
<li><a href="#org0d60899">2.6.3. Test</a></li>
|
||||
<li><a href="#orgecd9e01">2.6.1. Get</a></li>
|
||||
<li><a href="#orgda59e37">2.6.2. Compute</a></li>
|
||||
<li><a href="#org4fa7e5f">2.6.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1b6d8c0">2.7. Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<li><a href="#orgc48d637">2.7. Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<ul>
|
||||
<li><a href="#orgbe75b1c">2.7.1. Get</a></li>
|
||||
<li><a href="#org4b4b880">2.7.2. Compute</a></li>
|
||||
<li><a href="#org2a61d6a">2.7.3. Test</a></li>
|
||||
<li><a href="#orgb90a7b3">2.7.1. Get</a></li>
|
||||
<li><a href="#org437f828">2.7.2. Compute</a></li>
|
||||
<li><a href="#org6821eef">2.7.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge9a97c2">2.8. Electron-nucleus potential</a>
|
||||
<li><a href="#org0058e3c">2.8. Electron-nucleus potential</a>
|
||||
<ul>
|
||||
<li><a href="#orga4fc7c8">2.8.1. Get</a></li>
|
||||
<li><a href="#orgfb7cac8">2.8.2. Compute</a></li>
|
||||
<li><a href="#org6127ac7">2.8.3. Test</a></li>
|
||||
<li><a href="#orgcf0e858">2.8.1. Get</a></li>
|
||||
<li><a href="#orgc44d821">2.8.2. Compute</a></li>
|
||||
<li><a href="#orgf88f83c">2.8.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2970bfd">2.9. Generate initial coordinates</a></li>
|
||||
<li><a href="#org0db5b6d">2.9. Generate initial coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb81a06e" class="outline-2">
|
||||
<h2 id="orgb81a06e"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgd112bcb" class="outline-2">
|
||||
<h2 id="orgd112bcb"><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:
|
||||
@ -627,8 +627,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org65f25a1" class="outline-3">
|
||||
<h3 id="org65f25a1"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org0e84ebc" class="outline-3">
|
||||
<h3 id="org0e84ebc"><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> {
|
||||
@ -707,8 +707,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgababf5e" class="outline-3">
|
||||
<h3 id="orgababf5e"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org3a924f7" class="outline-3">
|
||||
<h3 id="org3a924f7"><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
|
||||
@ -720,12 +720,12 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4a62efa" class="outline-4">
|
||||
<h4 id="org4a62efa"><span class="section-number-4">1.2.1</span> Number of electrons</h4>
|
||||
<div id="outline-container-orge9c8f5d" class="outline-4">
|
||||
<h4 id="orge9c8f5d"><span class="section-number-4">1.2.1</span> Number of electrons</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org637a6ab" class="outline-4">
|
||||
<h4 id="org637a6ab"><span class="section-number-4">1.2.2</span> Number of walkers</h4>
|
||||
<div id="outline-container-org640c97e" class="outline-4">
|
||||
<h4 id="org640c97e"><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
|
||||
@ -734,12 +734,12 @@ the wave function. <code>walk_num</code> is the number of walkers.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgae3dc55" class="outline-4">
|
||||
<h4 id="orgae3dc55"><span class="section-number-4">1.2.3</span> Scaling factors Kappa</h4>
|
||||
<div id="outline-container-orgc4f5ec9" class="outline-4">
|
||||
<h4 id="orgc4f5ec9"><span class="section-number-4">1.2.3</span> Scaling factors Kappa</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6aae355" class="outline-4">
|
||||
<h4 id="org6aae355"><span class="section-number-4">1.2.4</span> Electron coordinates</h4>
|
||||
<div id="outline-container-org86465d8" class="outline-4">
|
||||
<h4 id="org86465d8"><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
|
||||
@ -789,8 +789,8 @@ returning the current points.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org79b5c10" class="outline-3">
|
||||
<h3 id="org79b5c10"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org8d5df23" class="outline-3">
|
||||
<h3 id="org8d5df23"><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
|
||||
@ -884,8 +884,8 @@ in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0947c1f" class="outline-3">
|
||||
<h3 id="org0947c1f"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org0cdf2cb" class="outline-3">
|
||||
<h3 id="org0cdf2cb"><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>*/
|
||||
@ -992,8 +992,8 @@ rc = qmckl_get_electron_coord (context, <span style="color: #8b2252;">'N'</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbf0e074" class="outline-2">
|
||||
<h2 id="orgbf0e074"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org61414af" class="outline-2">
|
||||
<h2 id="org61414af"><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
|
||||
@ -1006,12 +1006,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaa514ab" class="outline-3">
|
||||
<h3 id="orgaa514ab"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-orge5a5aa3" class="outline-3">
|
||||
<h3 id="orge5a5aa3"><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-org4a7a285" class="outline-4">
|
||||
<h4 id="org4a7a285"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org3f89669" class="outline-4">
|
||||
<h4 id="org3f89669"><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>);
|
||||
@ -1020,10 +1020,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org121f563" class="outline-4">
|
||||
<h4 id="org121f563"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org1328480" class="outline-4">
|
||||
<h4 id="org1328480"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org3c8efed" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3079a6e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1128,8 +1128,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8d5e3c5" class="outline-4">
|
||||
<h4 id="org8d5e3c5"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orgbc64fd2" class="outline-4">
|
||||
<h4 id="orgbc64fd2"><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>));
|
||||
@ -1163,8 +1163,8 @@ rc = qmckl_get_electron_ee_distance(context, ee_distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdca5931" class="outline-3">
|
||||
<h3 id="orgdca5931"><span class="section-number-3">2.2</span> Electron-electron rescaled distances</h3>
|
||||
<div id="outline-container-org84acacf" class="outline-3">
|
||||
<h3 id="org84acacf"><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
|
||||
@ -1182,8 +1182,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd7ccd09" class="outline-4">
|
||||
<h4 id="orgd7ccd09"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org9ecf480" class="outline-4">
|
||||
<h4 id="org9ecf480"><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>);
|
||||
@ -1192,10 +1192,10 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6b16666" class="outline-4">
|
||||
<h4 id="org6b16666"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-orgacf6886" class="outline-4">
|
||||
<h4 id="orgacf6886"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="org848ae83" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1dcb1a5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1308,8 +1308,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org186834b" class="outline-4">
|
||||
<h4 id="org186834b"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org4e5a4dc" class="outline-4">
|
||||
<h4 id="org4e5a4dc"><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>));
|
||||
@ -1343,8 +1343,8 @@ rc = qmckl_get_electron_ee_distance_rescaled(context, ee_distance_rescaled);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org21864db" class="outline-3">
|
||||
<h3 id="org21864db"><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-org4a5987c" class="outline-3">
|
||||
<h3 id="org4a5987c"><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\)
|
||||
@ -1356,8 +1356,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb291870" class="outline-4">
|
||||
<h4 id="orgb291870"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org069c018" class="outline-4">
|
||||
<h4 id="org069c018"><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>);
|
||||
@ -1366,10 +1366,10 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga5517a4" class="outline-4">
|
||||
<h4 id="orga5517a4"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-orga7f969c" class="outline-4">
|
||||
<h4 id="orga7f969c"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org25e00d7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1591f88" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1482,8 +1482,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgde3eb86" class="outline-4">
|
||||
<h4 id="orgde3eb86"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-org1270683" class="outline-4">
|
||||
<h4 id="org1270683"><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>));
|
||||
@ -1518,8 +1518,8 @@ rc = qmckl_get_electron_ee_distance_rescaled_deriv_e(context, ee_distance_rescal
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2e2e4e4" class="outline-3">
|
||||
<h3 id="org2e2e4e4"><span class="section-number-3">2.4</span> Electron-electron potential</h3>
|
||||
<div id="outline-container-org843740b" class="outline-3">
|
||||
<h3 id="org843740b"><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.
|
||||
@ -1537,8 +1537,8 @@ distance.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb2dc029" class="outline-4">
|
||||
<h4 id="orgb2dc029"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org743b40d" class="outline-4">
|
||||
<h4 id="org743b40d"><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>);
|
||||
@ -1547,10 +1547,10 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5884f53" class="outline-4">
|
||||
<h4 id="org5884f53"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-orge7e26b4" class="outline-4">
|
||||
<h4 id="orge7e26b4"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="org54db7f6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgdf0bc3e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1666,8 +1666,8 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc2f3411" class="outline-4">
|
||||
<h4 id="orgc2f3411"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-org92bad59" class="outline-4">
|
||||
<h4 id="org92bad59"><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];
|
||||
@ -1679,12 +1679,12 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_pot[0]));
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgcbc4160" class="outline-3">
|
||||
<h3 id="orgcbc4160"><span class="section-number-3">2.5</span> Electron-nucleus distances</h3>
|
||||
<div id="outline-container-org496565c" class="outline-3">
|
||||
<h3 id="org496565c"><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-orgf259e45" class="outline-4">
|
||||
<h4 id="orgf259e45"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div id="outline-container-org0e7849a" class="outline-4">
|
||||
<h4 id="org0e7849a"><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>);
|
||||
@ -1693,10 +1693,10 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_pot[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org13f8c91" class="outline-4">
|
||||
<h4 id="org13f8c91"><span class="section-number-4">2.5.2</span> Compute</h4>
|
||||
<div id="outline-container-orgb4ca3a3" class="outline-4">
|
||||
<h4 id="orgb4ca3a3"><span class="section-number-4">2.5.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-5-2">
|
||||
<table id="org57c6b13" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0dbd429" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1821,8 +1821,8 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_pot[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfc63252" class="outline-4">
|
||||
<h4 id="orgfc63252"><span class="section-number-4">2.5.3</span> Test</h4>
|
||||
<div id="outline-container-orge7aa27a" class="outline-4">
|
||||
<h4 id="orge7aa27a"><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">
|
||||
@ -1870,8 +1870,8 @@ rc = qmckl_get_electron_en_distance(context, &(en_distance[0][0][0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4ca54eb" class="outline-3">
|
||||
<h3 id="org4ca54eb"><span class="section-number-3">2.6</span> Electron-nucleus rescaled distances</h3>
|
||||
<div id="outline-container-orgf779653" class="outline-3">
|
||||
<h3 id="orgf779653"><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
|
||||
@ -1889,8 +1889,8 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge2157fd" class="outline-4">
|
||||
<h4 id="orge2157fd"><span class="section-number-4">2.6.1</span> Get</h4>
|
||||
<div id="outline-container-orgecd9e01" class="outline-4">
|
||||
<h4 id="orgecd9e01"><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>);
|
||||
@ -1900,10 +1900,10 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgba05adf" class="outline-4">
|
||||
<h4 id="orgba05adf"><span class="section-number-4">2.6.2</span> Compute</h4>
|
||||
<div id="outline-container-orgda59e37" class="outline-4">
|
||||
<h4 id="orgda59e37"><span class="section-number-4">2.6.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-6-2">
|
||||
<table id="org26c0283" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge405700" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2043,8 +2043,8 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0d60899" class="outline-4">
|
||||
<h4 id="org0d60899"><span class="section-number-4">2.6.3</span> Test</h4>
|
||||
<div id="outline-container-org4fa7e5f" class="outline-4">
|
||||
<h4 id="org4fa7e5f"><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">
|
||||
@ -2092,8 +2092,8 @@ rc = qmckl_get_electron_en_distance_rescaled(context, &(en_distance_rescaled
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1b6d8c0" class="outline-3">
|
||||
<h3 id="org1b6d8c0"><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-orgc48d637" class="outline-3">
|
||||
<h3 id="orgc48d637"><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\)
|
||||
@ -2105,8 +2105,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbe75b1c" class="outline-4">
|
||||
<h4 id="orgbe75b1c"><span class="section-number-4">2.7.1</span> Get</h4>
|
||||
<div id="outline-container-orgb90a7b3" class="outline-4">
|
||||
<h4 id="orgb90a7b3"><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>);
|
||||
@ -2115,10 +2115,10 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4b4b880" class="outline-4">
|
||||
<h4 id="org4b4b880"><span class="section-number-4">2.7.2</span> Compute</h4>
|
||||
<div id="outline-container-org437f828" class="outline-4">
|
||||
<h4 id="org437f828"><span class="section-number-4">2.7.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-7-2">
|
||||
<table id="org17963af" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb7365c6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2259,8 +2259,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2a61d6a" class="outline-4">
|
||||
<h4 id="org2a61d6a"><span class="section-number-4">2.7.3</span> Test</h4>
|
||||
<div id="outline-container-org6821eef" class="outline-4">
|
||||
<h4 id="org6821eef"><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">
|
||||
@ -2312,8 +2312,8 @@ rc = qmckl_get_electron_en_distance_rescaled_deriv_e(context, &(en_distance_
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge9a97c2" class="outline-3">
|
||||
<h3 id="orge9a97c2"><span class="section-number-3">2.8</span> Electron-nucleus potential</h3>
|
||||
<div id="outline-container-org0058e3c" class="outline-3">
|
||||
<h3 id="org0058e3c"><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
|
||||
@ -2331,8 +2331,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga4fc7c8" class="outline-4">
|
||||
<h4 id="orga4fc7c8"><span class="section-number-4">2.8.1</span> Get</h4>
|
||||
<div id="outline-container-orgcf0e858" class="outline-4">
|
||||
<h4 id="orgcf0e858"><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>);
|
||||
@ -2341,10 +2341,10 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfb7cac8" class="outline-4">
|
||||
<h4 id="orgfb7cac8"><span class="section-number-4">2.8.2</span> Compute</h4>
|
||||
<div id="outline-container-orgc44d821" class="outline-4">
|
||||
<h4 id="orgc44d821"><span class="section-number-4">2.8.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-8-2">
|
||||
<table id="orgb5a19ab" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgbe87f79" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2478,8 +2478,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6127ac7" class="outline-4">
|
||||
<h4 id="org6127ac7"><span class="section-number-4">2.8.3</span> Test</h4>
|
||||
<div id="outline-container-orgf88f83c" class="outline-4">
|
||||
<h4 id="orgf88f83c"><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];
|
||||
@ -2492,14 +2492,14 @@ rc = qmckl_get_electron_en_potential(context, &(en_pot[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2970bfd" class="outline-3">
|
||||
<h3 id="org2970bfd"><span class="section-number-3">2.9</span> Generate initial coordinates</h3>
|
||||
<div id="outline-container-org0db5b6d" class="outline-3">
|
||||
<h3 id="org0db5b6d"><span class="section-number-3">2.9</span> Generate initial coordinates</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-06-15 Wed 21:22</p>
|
||||
<p class="date">Created: 2022-06-16 Thu 15:18</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-06-15 Wed 21:22 -->
|
||||
<!-- 2022-06-16 Thu 15:18 -->
|
||||
<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,19 +311,19 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org8ac8f32">-</a></li>
|
||||
<li><a href="#orgb6462d6">1. Decoding errors</a></li>
|
||||
<li><a href="#orgfbaaa56">2. Data structure in context</a></li>
|
||||
<li><a href="#orgd89e6cd">3. Updating errors in the context</a></li>
|
||||
<li><a href="#orga03f3cf">4. Get the error</a></li>
|
||||
<li><a href="#orgace47f6">5. Failing</a></li>
|
||||
<li><a href="#org88921a1">-</a></li>
|
||||
<li><a href="#org775351a">1. Decoding errors</a></li>
|
||||
<li><a href="#org1c16e09">2. Data structure in context</a></li>
|
||||
<li><a href="#org92cc44e">3. Updating errors in the context</a></li>
|
||||
<li><a href="#orge5eca7b">4. Get the error</a></li>
|
||||
<li><a href="#org0f8047a">5. Failing</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8ac8f32" class="outline-2">
|
||||
<h2 id="org8ac8f32">-</h2>
|
||||
<div class="outline-text-2" id="text-org8ac8f32">
|
||||
<div id="outline-container-org88921a1" class="outline-2">
|
||||
<h2 id="org88921a1">-</h2>
|
||||
<div class="outline-text-2" id="text-org88921a1">
|
||||
<p>
|
||||
The library should never make the calling programs abort, nor
|
||||
perform any input/output operations. This decision has to be taken
|
||||
@ -334,7 +334,7 @@ by the developer of the code calling the library.
|
||||
All the functions return with an exit code, defined as
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org9d0bb31"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int32_t</span> <span style="color: #228b22;">qmckl_exit_code</span>;
|
||||
<pre class="src src-c" id="org271d99c"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int32_t</span> <span style="color: #228b22;">qmckl_exit_code</span>;
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -351,7 +351,7 @@ error code is returned to the program.
|
||||
Here is the complete list of exit codes.
|
||||
</p>
|
||||
|
||||
<table id="org0e1efb9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb4ed282" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -553,8 +553,8 @@ string is assumed to be large enough to contain the error message
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb6462d6" class="outline-2">
|
||||
<h2 id="orgb6462d6"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-org775351a" class="outline-2">
|
||||
<h2 id="org775351a"><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
|
||||
@ -572,8 +572,8 @@ The text strings are extracted from the previous table.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgfbaaa56" class="outline-2">
|
||||
<h2 id="orgfbaaa56"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-org1c16e09" class="outline-2">
|
||||
<h2 id="org1c16e09"><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 internally with a maximum fixed size to avoid
|
||||
@ -596,8 +596,8 @@ dynamic memory allocation.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd89e6cd" class="outline-2">
|
||||
<h2 id="orgd89e6cd"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div id="outline-container-org92cc44e" class="outline-2">
|
||||
<h2 id="org92cc44e"><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>.
|
||||
@ -616,8 +616,8 @@ explaining the error. The exit code can't be <code>QMCKL_SUCCESS</code>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orga03f3cf" class="outline-2">
|
||||
<h2 id="orga03f3cf"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div id="outline-container-orge5eca7b" class="outline-2">
|
||||
<h2 id="orge5eca7b"><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
|
||||
@ -636,8 +636,8 @@ function name and message is mandatory.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgace47f6" class="outline-2">
|
||||
<h2 id="orgace47f6"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div id="outline-container-org0f8047a" class="outline-2">
|
||||
<h2 id="org0f8047a"><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
|
||||
@ -676,7 +676,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-06-15 Wed 21:22</p>
|
||||
<p class="date">Created: 2022-06-16 Thu 15:18</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-06-15 Wed 21:22 -->
|
||||
<!-- 2022-06-16 Thu 15:19 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Code examples</title>
|
||||
@ -333,27 +333,27 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orga64498d">1. Python</a>
|
||||
<li><a href="#orgb99342c">1. Python</a>
|
||||
<ul>
|
||||
<li><a href="#org0515837">1.1. Check numerically that MOs are orthonormal</a></li>
|
||||
<li><a href="#org05cd5e5">1.1. Check numerically that MOs are orthonormal</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgcad747c">2. Fortran</a>
|
||||
<li><a href="#orga8c0881">2. Fortran</a>
|
||||
<ul>
|
||||
<li><a href="#org96ec6c7">2.1. Checking errors</a></li>
|
||||
<li><a href="#org756bde9">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
<li><a href="#orgcabde99">2.1. Checking errors</a></li>
|
||||
<li><a href="#org60e35c9">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga64498d" class="outline-2">
|
||||
<h2 id="orga64498d"><span class="section-number-2">1</span> Python</h2>
|
||||
<div id="outline-container-orgb99342c" class="outline-2">
|
||||
<h2 id="orgb99342c"><span class="section-number-2">1</span> Python</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org0515837" class="outline-3">
|
||||
<h3 id="org0515837"><span class="section-number-3">1.1</span> Check numerically that MOs are orthonormal</h3>
|
||||
<div id="outline-container-org05cd5e5" class="outline-3">
|
||||
<h3 id="org05cd5e5"><span class="section-number-3">1.1</span> Check numerically that MOs are orthonormal</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
In this example, we will compute numerically the overlap
|
||||
@ -529,12 +529,12 @@ and finally we compute the overlap between all the MOs as
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcad747c" class="outline-2">
|
||||
<h2 id="orgcad747c"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div id="outline-container-orga8c0881" class="outline-2">
|
||||
<h2 id="orga8c0881"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org96ec6c7" class="outline-3">
|
||||
<h3 id="org96ec6c7"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div id="outline-container-orgcabde99" class="outline-3">
|
||||
<h3 id="orgcabde99"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
All QMCkl functions return an error code. A convenient way to handle
|
||||
@ -543,7 +543,7 @@ error in text format and exits the program.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90" id="orge7f0219"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<pre class="src src-f90" id="orgc1d9f38"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl</span>
|
||||
<span style="color: #a020f0;">implicit</span> <span style="color: #228b22;">none</span>
|
||||
<span style="color: #228b22;">integer</span>(qmckl_exit_code), <span style="color: #a020f0;">intent</span>(in) ::<span style="color: #a0522d;"> rc</span>
|
||||
@ -561,8 +561,8 @@ error in text format and exits the program.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org756bde9" class="outline-3">
|
||||
<h3 id="org756bde9"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div id="outline-container-org60e35c9" class="outline-3">
|
||||
<h3 id="org60e35c9"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
The following program, in Fortran, computes the values of an atomic
|
||||
@ -781,7 +781,7 @@ We finally print the value and Laplacian of the AO:
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-06-15 Wed 21:22</p>
|
||||
<p class="date">Created: 2022-06-16 Thu 15:19</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-06-15 Wed 21:22 -->
|
||||
<!-- 2022-06-16 Thu 15:19 -->
|
||||
<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,105 +333,105 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgbaf5827">1. Introduction</a></li>
|
||||
<li><a href="#orgf550d8d">2. Context</a>
|
||||
<li><a href="#orgcc99c6f">1. Introduction</a></li>
|
||||
<li><a href="#org91ab40a">2. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org2b406c9">2.1. Data structure</a></li>
|
||||
<li><a href="#org99f7b6b">2.2. Access functions</a></li>
|
||||
<li><a href="#org1dc3cb4">2.3. Initialization functions</a></li>
|
||||
<li><a href="#orgc2ed6b2">2.4. Test</a></li>
|
||||
<li><a href="#org3aa10dd">2.1. Data structure</a></li>
|
||||
<li><a href="#org3da1b19">2.2. Access functions</a></li>
|
||||
<li><a href="#orgae441b7">2.3. Initialization functions</a></li>
|
||||
<li><a href="#org847ed97">2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8ea23ec">3. Computation</a>
|
||||
<li><a href="#org2d6e96e">3. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org2df05db">3.1. Asymptotic component for \(J_{ee}\)</a>
|
||||
<li><a href="#org461bfee">3.1. Asymptotic component for \(J_{ee}\)</a>
|
||||
<ul>
|
||||
<li><a href="#orga55abe8">3.1.1. Get</a></li>
|
||||
<li><a href="#org9cbcc57">3.1.2. Compute</a></li>
|
||||
<li><a href="#org9715bb1">3.1.3. Test</a></li>
|
||||
<li><a href="#org2c48427">3.1.1. Get</a></li>
|
||||
<li><a href="#org408f61e">3.1.2. Compute</a></li>
|
||||
<li><a href="#orgada80eb">3.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6713574">3.2. Electron-electron component \(f_{ee}\)</a>
|
||||
<li><a href="#orgf5c4730">3.2. Electron-electron component \(f_{ee}\)</a>
|
||||
<ul>
|
||||
<li><a href="#org4d2b8c6">3.2.1. Get</a></li>
|
||||
<li><a href="#orgc452ab7">3.2.2. Compute</a></li>
|
||||
<li><a href="#orgc705bf2">3.2.3. Test</a></li>
|
||||
<li><a href="#orgd8fba97">3.2.1. Get</a></li>
|
||||
<li><a href="#org5791dba">3.2.2. Compute</a></li>
|
||||
<li><a href="#orga5826b3">3.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7b45329">3.3. Electron-electron component derivative \(f'_{ee}\)</a>
|
||||
<li><a href="#org94a52b5">3.3. Electron-electron component derivative \(f'_{ee}\)</a>
|
||||
<ul>
|
||||
<li><a href="#orga6672af">3.3.1. Get</a></li>
|
||||
<li><a href="#orgc5a9947">3.3.2. Compute</a></li>
|
||||
<li><a href="#org3cc3caf">3.3.3. Test</a></li>
|
||||
<li><a href="#org52c09a7">3.3.1. Get</a></li>
|
||||
<li><a href="#orga2713ce">3.3.2. Compute</a></li>
|
||||
<li><a href="#org29915f1">3.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org21e1241">3.4. Electron-nucleus component \(f_{en}\)</a>
|
||||
<li><a href="#orgc688c79">3.4. Electron-nucleus component \(f_{en}\)</a>
|
||||
<ul>
|
||||
<li><a href="#org7c2cde4">3.4.1. Get</a></li>
|
||||
<li><a href="#org625bb51">3.4.2. Compute</a></li>
|
||||
<li><a href="#org174b910">3.4.3. Test</a></li>
|
||||
<li><a href="#org3608b1d">3.4.1. Get</a></li>
|
||||
<li><a href="#org5d46532">3.4.2. Compute</a></li>
|
||||
<li><a href="#org1b827c5">3.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2958d05">3.5. Electron-nucleus component derivative \(f'_{en}\)</a>
|
||||
<li><a href="#orgf93b760">3.5. Electron-nucleus component derivative \(f'_{en}\)</a>
|
||||
<ul>
|
||||
<li><a href="#org242ca6c">3.5.1. Get</a></li>
|
||||
<li><a href="#org0eaeb8a">3.5.2. Compute</a></li>
|
||||
<li><a href="#orgaa12bfa">3.5.3. Test</a></li>
|
||||
<li><a href="#org515b4ee">3.5.1. Get</a></li>
|
||||
<li><a href="#org15d57b1">3.5.2. Compute</a></li>
|
||||
<li><a href="#org439f644">3.5.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0447b03">3.6. Electron-electron rescaled distances for each order</a>
|
||||
<li><a href="#org5201e2d">3.6. Electron-electron rescaled distances for each order</a>
|
||||
<ul>
|
||||
<li><a href="#orgfa5e648">3.6.1. Get</a></li>
|
||||
<li><a href="#org7c32f62">3.6.2. Compute</a></li>
|
||||
<li><a href="#org1e45cdb">3.6.3. Test</a></li>
|
||||
<li><a href="#orgb709fea">3.6.1. Get</a></li>
|
||||
<li><a href="#org663b899">3.6.2. Compute</a></li>
|
||||
<li><a href="#orgf976304">3.6.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1cbcef4">3.7. Electron-electron rescaled distances for each order and derivatives</a>
|
||||
<li><a href="#org591cf5d">3.7. Electron-electron rescaled distances for each order and derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#org088273f">3.7.1. Get</a></li>
|
||||
<li><a href="#orged3463f">3.7.2. Compute</a></li>
|
||||
<li><a href="#org0f3a238">3.7.3. Test</a></li>
|
||||
<li><a href="#org9820ca4">3.7.1. Get</a></li>
|
||||
<li><a href="#orge7603fa">3.7.2. Compute</a></li>
|
||||
<li><a href="#org289f384">3.7.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5514041">3.8. Electron-nucleus rescaled distances for each order</a>
|
||||
<li><a href="#orgf1b0eb7">3.8. Electron-nucleus rescaled distances for each order</a>
|
||||
<ul>
|
||||
<li><a href="#org08d9e90">3.8.1. Get</a></li>
|
||||
<li><a href="#orgf9df782">3.8.2. Compute</a></li>
|
||||
<li><a href="#orgd60f409">3.8.3. Test</a></li>
|
||||
<li><a href="#org96b3443">3.8.1. Get</a></li>
|
||||
<li><a href="#org11f9048">3.8.2. Compute</a></li>
|
||||
<li><a href="#org5f0dadb">3.8.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgef5125f">3.9. Electron-nucleus rescaled distances for each order and derivatives</a>
|
||||
<li><a href="#orgf25e52c">3.9. Electron-nucleus rescaled distances for each order and derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#orgc1a9545">3.9.1. Get</a></li>
|
||||
<li><a href="#org0378952">3.9.2. Compute</a></li>
|
||||
<li><a href="#org9c90e7f">3.9.3. Test</a></li>
|
||||
<li><a href="#org246de90">3.9.1. Get</a></li>
|
||||
<li><a href="#org7e91ea7">3.9.2. Compute</a></li>
|
||||
<li><a href="#orgeb74709">3.9.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org31ffedd">3.10. Prepare for electron-electron-nucleus Jastrow \(f_{een}\)</a>
|
||||
<li><a href="#org5e2c7a2">3.10. Prepare for electron-electron-nucleus Jastrow \(f_{een}\)</a>
|
||||
<ul>
|
||||
<li><a href="#org421779f">3.10.1. Get</a></li>
|
||||
<li><a href="#org9759e6c">3.10.2. Compute dim<sub>cord</sub><sub>vect</sub></a></li>
|
||||
<li><a href="#org06771bc">3.10.3. Compute cord<sub>vect</sub><sub>full</sub></a></li>
|
||||
<li><a href="#orged3e67a">3.10.4. Compute lkpm<sub>combined</sub><sub>index</sub></a></li>
|
||||
<li><a href="#org60d9917">3.10.5. Compute tmp<sub>c</sub></a></li>
|
||||
<li><a href="#org9ddf9d8">3.10.6. Compute dtmp<sub>c</sub></a></li>
|
||||
<li><a href="#orgcf9cec1">3.10.7. Test</a></li>
|
||||
<li><a href="#orgc8e834a">3.10.1. Get</a></li>
|
||||
<li><a href="#org26062cc">3.10.2. Compute dim<sub>cord</sub><sub>vect</sub></a></li>
|
||||
<li><a href="#org8b678b9">3.10.3. Compute cord<sub>vect</sub><sub>full</sub></a></li>
|
||||
<li><a href="#org6f72400">3.10.4. Compute lkpm<sub>combined</sub><sub>index</sub></a></li>
|
||||
<li><a href="#org8af62a4">3.10.5. Compute tmp<sub>c</sub></a></li>
|
||||
<li><a href="#org28450ac">3.10.6. Compute dtmp<sub>c</sub></a></li>
|
||||
<li><a href="#org5f744ea">3.10.7. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgcecad02">3.11. Electron-electron-nucleus Jastrow \(f_{een}\)</a>
|
||||
<li><a href="#org72e4b35">3.11. Electron-electron-nucleus Jastrow \(f_{een}\)</a>
|
||||
<ul>
|
||||
<li><a href="#orgbdaaa59">3.11.1. Get</a></li>
|
||||
<li><a href="#org5cc876c">3.11.2. Compute naive</a></li>
|
||||
<li><a href="#org5e704cb">3.11.3. Compute</a></li>
|
||||
<li><a href="#orgec26102">3.11.4. Test</a></li>
|
||||
<li><a href="#org69a193c">3.11.1. Get</a></li>
|
||||
<li><a href="#orgdac41a8">3.11.2. Compute naive</a></li>
|
||||
<li><a href="#org9e3f9db">3.11.3. Compute</a></li>
|
||||
<li><a href="#orgc41dfb5">3.11.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgefb0b71">3.12. Electron-electron-nucleus Jastrow \(f_{een}\) derivative</a>
|
||||
<li><a href="#orgd267221">3.12. Electron-electron-nucleus Jastrow \(f_{een}\) derivative</a>
|
||||
<ul>
|
||||
<li><a href="#org7162a1b">3.12.1. Get</a></li>
|
||||
<li><a href="#org6bcd56e">3.12.2. Compute Naive</a></li>
|
||||
<li><a href="#org1ec69d3">3.12.3. Compute</a></li>
|
||||
<li><a href="#orgaa75d56">3.12.4. Test</a></li>
|
||||
<li><a href="#org5951dd4">3.12.1. Get</a></li>
|
||||
<li><a href="#orge9342ed">3.12.2. Compute Naive</a></li>
|
||||
<li><a href="#org78c5103">3.12.3. Compute</a></li>
|
||||
<li><a href="#orged715c0">3.12.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -440,8 +440,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbaf5827" class="outline-2">
|
||||
<h2 id="orgbaf5827"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div id="outline-container-orgcc99c6f" class="outline-2">
|
||||
<h2 id="orgcc99c6f"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The Jastrow factor depends on the electronic (\(\mathbf{r}\)) and
|
||||
@ -522,14 +522,14 @@ The terms \(J_{\text{ee}}^\infty\) and \(J_{\text{eN}}^\infty\) are shifts to en
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf550d8d" class="outline-2">
|
||||
<h2 id="orgf550d8d"><span class="section-number-2">2</span> Context</h2>
|
||||
<div id="outline-container-org91ab40a" class="outline-2">
|
||||
<h2 id="org91ab40a"><span class="section-number-2">2</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The following data stored in the context:
|
||||
</p>
|
||||
|
||||
<table id="orgdec4aae" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4fc05f0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -833,8 +833,8 @@ computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2b406c9" class="outline-3">
|
||||
<h3 id="org2b406c9"><span class="section-number-3">2.1</span> Data structure</h3>
|
||||
<div id="outline-container-org3aa10dd" class="outline-3">
|
||||
<h3 id="org3aa10dd"><span class="section-number-3">2.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-2-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>{
|
||||
@ -925,8 +925,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org99f7b6b" class="outline-3">
|
||||
<h3 id="org99f7b6b"><span class="section-number-3">2.2</span> Access functions</h3>
|
||||
<div id="outline-container-org3da1b19" class="outline-3">
|
||||
<h3 id="org3da1b19"><span class="section-number-3">2.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
Along with these core functions, calculation of the jastrow factor
|
||||
@ -946,8 +946,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1dc3cb4" class="outline-3">
|
||||
<h3 id="org1dc3cb4"><span class="section-number-3">2.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgae441b7" class="outline-3">
|
||||
<h3 id="orgae441b7"><span class="section-number-3">2.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
To prepare for the Jastrow and its derivative, all the following functions need to be
|
||||
@ -972,8 +972,8 @@ are precontracted using BLAS LEVEL 3 operations for an optimal flop count.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc2ed6b2" class="outline-3">
|
||||
<h3 id="orgc2ed6b2"><span class="section-number-3">2.4</span> Test</h3>
|
||||
<div id="outline-container-org847ed97" class="outline-3">
|
||||
<h3 id="org847ed97"><span class="section-number-3">2.4</span> Test</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -1149,8 +1149,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2, nucl_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8ea23ec" class="outline-2">
|
||||
<h2 id="org8ea23ec"><span class="section-number-2">3</span> Computation</h2>
|
||||
<div id="outline-container-org2d6e96e" class="outline-2">
|
||||
<h2 id="org2d6e96e"><span class="section-number-2">3</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
The computed data is stored in the context so that it can be reused
|
||||
@ -1163,8 +1163,8 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2df05db" class="outline-3">
|
||||
<h3 id="org2df05db"><span class="section-number-3">3.1</span> Asymptotic component for \(J_{ee}\)</h3>
|
||||
<div id="outline-container-org461bfee" class="outline-3">
|
||||
<h3 id="org461bfee"><span class="section-number-3">3.1</span> Asymptotic component for \(J_{ee}\)</h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
Calculate the asymptotic component <code>asymp_jasb</code> to be substracted from the final
|
||||
@ -1179,8 +1179,8 @@ via the <code>bord_vector</code> and the electron-electron rescale factor <code>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga55abe8" class="outline-4">
|
||||
<h4 id="orga55abe8"><span class="section-number-4">3.1.1</span> Get</h4>
|
||||
<div id="outline-container-org2c48427" class="outline-4">
|
||||
<h4 id="org2c48427"><span class="section-number-4">3.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1192,10 +1192,10 @@ via the <code>bord_vector</code> and the electron-electron rescale factor <code>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9cbcc57" class="outline-4">
|
||||
<h4 id="org9cbcc57"><span class="section-number-4">3.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org408f61e" class="outline-4">
|
||||
<h4 id="org408f61e"><span class="section-number-4">3.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<table id="org70e49e0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org28f0ad8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1331,8 +1331,8 @@ via the <code>bord_vector</code> and the electron-electron rescale factor <code>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9715bb1" class="outline-4">
|
||||
<h4 id="org9715bb1"><span class="section-number-4">3.1.3</span> Test</h4>
|
||||
<div id="outline-container-orgada80eb" class="outline-4">
|
||||
<h4 id="orgada80eb"><span class="section-number-4">3.1.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-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>));
|
||||
@ -1383,8 +1383,8 @@ rc = qmckl_get_jastrow_asymp_jasb(context, asymp_jasb,2);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6713574" class="outline-3">
|
||||
<h3 id="org6713574"><span class="section-number-3">3.2</span> Electron-electron component \(f_{ee}\)</h3>
|
||||
<div id="outline-container-orgf5c4730" class="outline-3">
|
||||
<h3 id="orgf5c4730"><span class="section-number-3">3.2</span> Electron-electron component \(f_{ee}\)</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<p>
|
||||
Calculate the electron-electron jastrow component <code>factor_ee</code> using the <code>asymp_jasb</code>
|
||||
@ -1399,8 +1399,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-org4d2b8c6" class="outline-4">
|
||||
<h4 id="org4d2b8c6"><span class="section-number-4">3.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgd8fba97" class="outline-4">
|
||||
<h4 id="orgd8fba97"><span class="section-number-4">3.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1412,10 +1412,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-orgc452ab7" class="outline-4">
|
||||
<h4 id="orgc452ab7"><span class="section-number-4">3.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org5791dba" class="outline-4">
|
||||
<h4 id="org5791dba"><span class="section-number-4">3.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-2-2">
|
||||
<table id="orgd53b302" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org84cd3cb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1642,8 +1642,8 @@ 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-orgc705bf2" class="outline-4">
|
||||
<h4 id="orgc705bf2"><span class="section-number-4">3.2.3</span> Test</h4>
|
||||
<div id="outline-container-orga5826b3" class="outline-4">
|
||||
<h4 id="orga5826b3"><span class="section-number-4">3.2.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -1661,8 +1661,8 @@ rc = qmckl_get_jastrow_factor_ee(context, factor_ee, walk_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7b45329" class="outline-3">
|
||||
<h3 id="org7b45329"><span class="section-number-3">3.3</span> Electron-electron component derivative \(f'_{ee}\)</h3>
|
||||
<div id="outline-container-org94a52b5" class="outline-3">
|
||||
<h3 id="org94a52b5"><span class="section-number-3">3.3</span> Electron-electron component derivative \(f'_{ee}\)</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<p>
|
||||
Calculate the derivative of the <code>factor_ee</code> using the <code>ee_distance_rescaled</code> and
|
||||
@ -1677,8 +1677,8 @@ TODO: Add equation
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orga6672af" class="outline-4">
|
||||
<h4 id="orga6672af"><span class="section-number-4">3.3.1</span> Get</h4>
|
||||
<div id="outline-container-org52c09a7" class="outline-4">
|
||||
<h4 id="org52c09a7"><span class="section-number-4">3.3.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1690,10 +1690,10 @@ TODO: Add equation
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc5a9947" class="outline-4">
|
||||
<h4 id="orgc5a9947"><span class="section-number-4">3.3.2</span> Compute</h4>
|
||||
<div id="outline-container-orga2713ce" class="outline-4">
|
||||
<h4 id="orga2713ce"><span class="section-number-4">3.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-3-2">
|
||||
<table id="org6198322" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf9171aa" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2055,8 +2055,8 @@ TODO: Add equation
|
||||
|
||||
|
||||
|
||||
<div id="outline-container-org3cc3caf" class="outline-4">
|
||||
<h4 id="org3cc3caf"><span class="section-number-4">3.3.3</span> Test</h4>
|
||||
<div id="outline-container-org29915f1" class="outline-4">
|
||||
<h4 id="org29915f1"><span class="section-number-4">3.3.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-3-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -2077,8 +2077,8 @@ rc = qmckl_get_jastrow_factor_ee_deriv_e(context, &(factor_ee_deriv_e[0][0][
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org21e1241" class="outline-3">
|
||||
<h3 id="org21e1241"><span class="section-number-3">3.4</span> Electron-nucleus component \(f_{en}\)</h3>
|
||||
<div id="outline-container-orgc688c79" class="outline-3">
|
||||
<h3 id="orgc688c79"><span class="section-number-3">3.4</span> Electron-nucleus component \(f_{en}\)</h3>
|
||||
<div class="outline-text-3" id="text-3-4">
|
||||
<p>
|
||||
Calculate the electron-electron jastrow component <code>factor_en</code> using the <code>aord_vector</code>
|
||||
@ -2093,8 +2093,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-org7c2cde4" class="outline-4">
|
||||
<h4 id="org7c2cde4"><span class="section-number-4">3.4.1</span> Get</h4>
|
||||
<div id="outline-container-org3608b1d" class="outline-4">
|
||||
<h4 id="org3608b1d"><span class="section-number-4">3.4.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -2106,10 +2106,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-org625bb51" class="outline-4">
|
||||
<h4 id="org625bb51"><span class="section-number-4">3.4.2</span> Compute</h4>
|
||||
<div id="outline-container-org5d46532" class="outline-4">
|
||||
<h4 id="org5d46532"><span class="section-number-4">3.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-4-2">
|
||||
<table id="orgcf3c241" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6018571" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2362,8 +2362,8 @@ 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-org174b910" class="outline-4">
|
||||
<h4 id="org174b910"><span class="section-number-4">3.4.3</span> Test</h4>
|
||||
<div id="outline-container-org1b827c5" class="outline-4">
|
||||
<h4 id="org1b827c5"><span class="section-number-4">3.4.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-4-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -2381,8 +2381,8 @@ rc = qmckl_get_jastrow_factor_en(context, factor_en,walk_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2958d05" class="outline-3">
|
||||
<h3 id="org2958d05"><span class="section-number-3">3.5</span> Electron-nucleus component derivative \(f'_{en}\)</h3>
|
||||
<div id="outline-container-orgf93b760" class="outline-3">
|
||||
<h3 id="orgf93b760"><span class="section-number-3">3.5</span> Electron-nucleus component derivative \(f'_{en}\)</h3>
|
||||
<div class="outline-text-3" id="text-3-5">
|
||||
<p>
|
||||
Calculate the electron-electron jastrow component <code>factor_en_deriv_e</code> derivative
|
||||
@ -2395,8 +2395,8 @@ TODO: write equations.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org242ca6c" class="outline-4">
|
||||
<h4 id="org242ca6c"><span class="section-number-4">3.5.1</span> Get</h4>
|
||||
<div id="outline-container-org515b4ee" class="outline-4">
|
||||
<h4 id="org515b4ee"><span class="section-number-4">3.5.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-5-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -2408,10 +2408,10 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0eaeb8a" class="outline-4">
|
||||
<h4 id="org0eaeb8a"><span class="section-number-4">3.5.2</span> Compute</h4>
|
||||
<div id="outline-container-org15d57b1" class="outline-4">
|
||||
<h4 id="org15d57b1"><span class="section-number-4">3.5.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-5-2">
|
||||
<table id="org091601c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7495757" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2616,8 +2616,8 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaa12bfa" class="outline-4">
|
||||
<h4 id="orgaa12bfa"><span class="section-number-4">3.5.3</span> Test</h4>
|
||||
<div id="outline-container-org439f644" class="outline-4">
|
||||
<h4 id="org439f644"><span class="section-number-4">3.5.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-5-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -2639,8 +2639,8 @@ rc = qmckl_get_jastrow_factor_en_deriv_e(context, &(factor_en_deriv_e[0][0][
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0447b03" class="outline-3">
|
||||
<h3 id="org0447b03"><span class="section-number-3">3.6</span> Electron-electron rescaled distances for each order</h3>
|
||||
<div id="outline-container-org5201e2d" class="outline-3">
|
||||
<h3 id="org5201e2d"><span class="section-number-3">3.6</span> Electron-electron rescaled distances for each order</h3>
|
||||
<div class="outline-text-3" id="text-3-6">
|
||||
<p>
|
||||
<code>een_rescaled_e</code> stores the table of the rescaled distances between all
|
||||
@ -2658,8 +2658,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfa5e648" class="outline-4">
|
||||
<h4 id="orgfa5e648"><span class="section-number-4">3.6.1</span> Get</h4>
|
||||
<div id="outline-container-orgb709fea" class="outline-4">
|
||||
<h4 id="orgb709fea"><span class="section-number-4">3.6.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-6-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -2671,10 +2671,10 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7c32f62" class="outline-4">
|
||||
<h4 id="org7c32f62"><span class="section-number-4">3.6.2</span> Compute</h4>
|
||||
<div id="outline-container-org663b899" class="outline-4">
|
||||
<h4 id="org663b899"><span class="section-number-4">3.6.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-6-2">
|
||||
<table id="org4df9fe6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org92b4030" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3003,8 +3003,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org1e45cdb" class="outline-4">
|
||||
<h4 id="org1e45cdb"><span class="section-number-4">3.6.3</span> Test</h4>
|
||||
<div id="outline-container-orgf976304" class="outline-4">
|
||||
<h4 id="orgf976304"><span class="section-number-4">3.6.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-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>));
|
||||
@ -3026,8 +3026,8 @@ rc = qmckl_get_jastrow_een_rescaled_e(context, &(een_rescaled_e[0][0][0][0])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1cbcef4" class="outline-3">
|
||||
<h3 id="org1cbcef4"><span class="section-number-3">3.7</span> Electron-electron rescaled distances for each order and derivatives</h3>
|
||||
<div id="outline-container-org591cf5d" class="outline-3">
|
||||
<h3 id="org591cf5d"><span class="section-number-3">3.7</span> Electron-electron rescaled distances for each order and derivatives</h3>
|
||||
<div class="outline-text-3" id="text-3-7">
|
||||
<p>
|
||||
<code>een_rescaled_e_deriv_e</code> stores the table of the derivatives of the
|
||||
@ -3042,8 +3042,8 @@ TODO: write formulae
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org088273f" class="outline-4">
|
||||
<h4 id="org088273f"><span class="section-number-4">3.7.1</span> Get</h4>
|
||||
<div id="outline-container-org9820ca4" class="outline-4">
|
||||
<h4 id="org9820ca4"><span class="section-number-4">3.7.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-7-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -3055,10 +3055,10 @@ TODO: write formulae
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orged3463f" class="outline-4">
|
||||
<h4 id="orged3463f"><span class="section-number-4">3.7.2</span> Compute</h4>
|
||||
<div id="outline-container-orge7603fa" class="outline-4">
|
||||
<h4 id="orge7603fa"><span class="section-number-4">3.7.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-7-2">
|
||||
<table id="org2f7346e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0e08246" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3236,8 +3236,8 @@ TODO: write formulae
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0f3a238" class="outline-4">
|
||||
<h4 id="org0f3a238"><span class="section-number-4">3.7.3</span> Test</h4>
|
||||
<div id="outline-container-org289f384" class="outline-4">
|
||||
<h4 id="org289f384"><span class="section-number-4">3.7.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-7-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">//<span style="color: #b22222;">assert(qmckl_electron_provided(context));</span>
|
||||
@ -3259,8 +3259,8 @@ rc = qmckl_get_jastrow_een_rescaled_e_deriv_e(context,
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5514041" class="outline-3">
|
||||
<h3 id="org5514041"><span class="section-number-3">3.8</span> Electron-nucleus rescaled distances for each order</h3>
|
||||
<div id="outline-container-orgf1b0eb7" class="outline-3">
|
||||
<h3 id="orgf1b0eb7"><span class="section-number-3">3.8</span> Electron-nucleus rescaled distances for each order</h3>
|
||||
<div class="outline-text-3" id="text-3-8">
|
||||
<p>
|
||||
<code>een_rescaled_n</code> stores the table of the rescaled distances between
|
||||
@ -3278,8 +3278,8 @@ where \(C_{ia}\) is the matrix of electron-nucleus distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org08d9e90" class="outline-4">
|
||||
<h4 id="org08d9e90"><span class="section-number-4">3.8.1</span> Get</h4>
|
||||
<div id="outline-container-org96b3443" class="outline-4">
|
||||
<h4 id="org96b3443"><span class="section-number-4">3.8.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-8-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -3291,10 +3291,10 @@ where \(C_{ia}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf9df782" class="outline-4">
|
||||
<h4 id="orgf9df782"><span class="section-number-4">3.8.2</span> Compute</h4>
|
||||
<div id="outline-container-org11f9048" class="outline-4">
|
||||
<h4 id="org11f9048"><span class="section-number-4">3.8.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-8-2">
|
||||
<table id="org897c3fc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org27c9199" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3511,8 +3511,8 @@ where \(C_{ia}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd60f409" class="outline-4">
|
||||
<h4 id="orgd60f409"><span class="section-number-4">3.8.3</span> Test</h4>
|
||||
<div id="outline-container-org5f0dadb" class="outline-4">
|
||||
<h4 id="org5f0dadb"><span class="section-number-4">3.8.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-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>));
|
||||
@ -3534,8 +3534,8 @@ rc = qmckl_get_jastrow_een_rescaled_n(context, &(een_rescaled_n[0][0][0][0])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgef5125f" class="outline-3">
|
||||
<h3 id="orgef5125f"><span class="section-number-3">3.9</span> Electron-nucleus rescaled distances for each order and derivatives</h3>
|
||||
<div id="outline-container-orgf25e52c" class="outline-3">
|
||||
<h3 id="orgf25e52c"><span class="section-number-3">3.9</span> Electron-nucleus rescaled distances for each order and derivatives</h3>
|
||||
<div class="outline-text-3" id="text-3-9">
|
||||
<p>
|
||||
<code>een_rescaled_n_deriv_e</code> stores the table of the rescaled distances between
|
||||
@ -3544,8 +3544,8 @@ electrons and nucleii raised to the power \(p\) defined by <code>cord_num</code>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgc1a9545" class="outline-4">
|
||||
<h4 id="orgc1a9545"><span class="section-number-4">3.9.1</span> Get</h4>
|
||||
<div id="outline-container-org246de90" class="outline-4">
|
||||
<h4 id="org246de90"><span class="section-number-4">3.9.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-9-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -3557,10 +3557,10 @@ electrons and nucleii raised to the power \(p\) defined by <code>cord_num</code>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0378952" class="outline-4">
|
||||
<h4 id="org0378952"><span class="section-number-4">3.9.2</span> Compute</h4>
|
||||
<div id="outline-container-org7e91ea7" class="outline-4">
|
||||
<h4 id="org7e91ea7"><span class="section-number-4">3.9.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-9-2">
|
||||
<table id="org8bf39e0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgffbf994" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3760,8 +3760,8 @@ electrons and nucleii raised to the power \(p\) defined by <code>cord_num</code>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9c90e7f" class="outline-4">
|
||||
<h4 id="org9c90e7f"><span class="section-number-4">3.9.3</span> Test</h4>
|
||||
<div id="outline-container-orgeb74709" class="outline-4">
|
||||
<h4 id="orgeb74709"><span class="section-number-4">3.9.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-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>));
|
||||
@ -3784,8 +3784,8 @@ rc = qmckl_get_jastrow_een_rescaled_n_deriv_e(context, &(een_rescaled_n_deri
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org31ffedd" class="outline-3">
|
||||
<h3 id="org31ffedd"><span class="section-number-3">3.10</span> Prepare for electron-electron-nucleus Jastrow \(f_{een}\)</h3>
|
||||
<div id="outline-container-org5e2c7a2" class="outline-3">
|
||||
<h3 id="org5e2c7a2"><span class="section-number-3">3.10</span> Prepare for electron-electron-nucleus Jastrow \(f_{een}\)</h3>
|
||||
<div class="outline-text-3" id="text-3-10">
|
||||
<p>
|
||||
Prepare <code>cord_vect_full</code> and <code>lkpm_combined_index</code> tables required for the
|
||||
@ -3794,8 +3794,8 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org421779f" class="outline-4">
|
||||
<h4 id="org421779f"><span class="section-number-4">3.10.1</span> Get</h4>
|
||||
<div id="outline-container-orgc8e834a" class="outline-4">
|
||||
<h4 id="orgc8e834a"><span class="section-number-4">3.10.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-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>);
|
||||
@ -3808,10 +3808,10 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9759e6c" class="outline-4">
|
||||
<h4 id="org9759e6c"><span class="section-number-4">3.10.2</span> Compute dim<sub>cord</sub><sub>vect</sub></h4>
|
||||
<div id="outline-container-org26062cc" class="outline-4">
|
||||
<h4 id="org26062cc"><span class="section-number-4">3.10.2</span> Compute dim<sub>cord</sub><sub>vect</sub></h4>
|
||||
<div class="outline-text-4" id="text-3-10-2">
|
||||
<table id="orgdb1ac1a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgffa42f8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3939,10 +3939,10 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org06771bc" class="outline-4">
|
||||
<h4 id="org06771bc"><span class="section-number-4">3.10.3</span> Compute cord<sub>vect</sub><sub>full</sub></h4>
|
||||
<div id="outline-container-org8b678b9" class="outline-4">
|
||||
<h4 id="org8b678b9"><span class="section-number-4">3.10.3</span> Compute cord<sub>vect</sub><sub>full</sub></h4>
|
||||
<div class="outline-text-4" id="text-3-10-3">
|
||||
<table id="orge7eb012" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga05e728" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4147,10 +4147,10 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
|
||||
|
||||
|
||||
<div id="outline-container-orged3e67a" class="outline-4">
|
||||
<h4 id="orged3e67a"><span class="section-number-4">3.10.4</span> Compute lkpm<sub>combined</sub><sub>index</sub></h4>
|
||||
<div id="outline-container-org6f72400" class="outline-4">
|
||||
<h4 id="org6f72400"><span class="section-number-4">3.10.4</span> Compute lkpm<sub>combined</sub><sub>index</sub></h4>
|
||||
<div class="outline-text-4" id="text-3-10-4">
|
||||
<table id="org72cc9c4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5add40b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4306,10 +4306,10 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org60d9917" class="outline-4">
|
||||
<h4 id="org60d9917"><span class="section-number-4">3.10.5</span> Compute tmp<sub>c</sub></h4>
|
||||
<div id="outline-container-org8af62a4" class="outline-4">
|
||||
<h4 id="org8af62a4"><span class="section-number-4">3.10.5</span> Compute tmp<sub>c</sub></h4>
|
||||
<div class="outline-text-4" id="text-3-10-5">
|
||||
<table id="org189abaa" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9971270" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4492,10 +4492,10 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org9ddf9d8" class="outline-4">
|
||||
<h4 id="org9ddf9d8"><span class="section-number-4">3.10.6</span> Compute dtmp<sub>c</sub></h4>
|
||||
<div id="outline-container-org28450ac" class="outline-4">
|
||||
<h4 id="org28450ac"><span class="section-number-4">3.10.6</span> Compute dtmp<sub>c</sub></h4>
|
||||
<div class="outline-text-4" id="text-3-10-6">
|
||||
<table id="org449342d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org871ee55" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4668,8 +4668,8 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcf9cec1" class="outline-4">
|
||||
<h4 id="orgcf9cec1"><span class="section-number-4">3.10.7</span> Test</h4>
|
||||
<div id="outline-container-org5f744ea" class="outline-4">
|
||||
<h4 id="org5f744ea"><span class="section-number-4">3.10.7</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-10-7">
|
||||
<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>));
|
||||
@ -4692,8 +4692,8 @@ printf(<span style="color: #8b2252;">"%e\n%e\n"</span>, tmp_c[0][1][0][0][0],0.2
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcecad02" class="outline-3">
|
||||
<h3 id="orgcecad02"><span class="section-number-3">3.11</span> Electron-electron-nucleus Jastrow \(f_{een}\)</h3>
|
||||
<div id="outline-container-org72e4b35" class="outline-3">
|
||||
<h3 id="org72e4b35"><span class="section-number-3">3.11</span> Electron-electron-nucleus Jastrow \(f_{een}\)</h3>
|
||||
<div class="outline-text-3" id="text-3-11">
|
||||
<p>
|
||||
Calculate the electron-electron-nuclear three-body jastrow component <code>factor_een</code>
|
||||
@ -4705,8 +4705,8 @@ TODO: write equations.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbdaaa59" class="outline-4">
|
||||
<h4 id="orgbdaaa59"><span class="section-number-4">3.11.1</span> Get</h4>
|
||||
<div id="outline-container-org69a193c" class="outline-4">
|
||||
<h4 id="org69a193c"><span class="section-number-4">3.11.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-11-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -4718,10 +4718,10 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5cc876c" class="outline-4">
|
||||
<h4 id="org5cc876c"><span class="section-number-4">3.11.2</span> Compute naive</h4>
|
||||
<div id="outline-container-orgdac41a8" class="outline-4">
|
||||
<h4 id="orgdac41a8"><span class="section-number-4">3.11.2</span> Compute naive</h4>
|
||||
<div class="outline-text-4" id="text-3-11-2">
|
||||
<table id="orge728d3f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5b2777d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4902,10 +4902,10 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5e704cb" class="outline-4">
|
||||
<h4 id="org5e704cb"><span class="section-number-4">3.11.3</span> Compute</h4>
|
||||
<div id="outline-container-org9e3f9db" class="outline-4">
|
||||
<h4 id="org9e3f9db"><span class="section-number-4">3.11.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-11-3">
|
||||
<table id="org5282784" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge5169ea" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -5079,8 +5079,8 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgec26102" class="outline-4">
|
||||
<h4 id="orgec26102"><span class="section-number-4">3.11.4</span> Test</h4>
|
||||
<div id="outline-container-orgc41dfb5" class="outline-4">
|
||||
<h4 id="orgc41dfb5"><span class="section-number-4">3.11.4</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-11-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -5097,8 +5097,8 @@ rc = qmckl_get_jastrow_factor_een(context, &(factor_een[0]),walk_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgefb0b71" class="outline-3">
|
||||
<h3 id="orgefb0b71"><span class="section-number-3">3.12</span> Electron-electron-nucleus Jastrow \(f_{een}\) derivative</h3>
|
||||
<div id="outline-container-orgd267221" class="outline-3">
|
||||
<h3 id="orgd267221"><span class="section-number-3">3.12</span> Electron-electron-nucleus Jastrow \(f_{een}\) derivative</h3>
|
||||
<div class="outline-text-3" id="text-3-12">
|
||||
<p>
|
||||
Calculate the electron-electron-nuclear three-body jastrow component <code>factor_een_deriv_e</code>
|
||||
@ -5110,8 +5110,8 @@ TODO: write equations.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7162a1b" class="outline-4">
|
||||
<h4 id="org7162a1b"><span class="section-number-4">3.12.1</span> Get</h4>
|
||||
<div id="outline-container-org5951dd4" class="outline-4">
|
||||
<h4 id="org5951dd4"><span class="section-number-4">3.12.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-12-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -5123,10 +5123,10 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6bcd56e" class="outline-4">
|
||||
<h4 id="org6bcd56e"><span class="section-number-4">3.12.2</span> Compute Naive</h4>
|
||||
<div id="outline-container-orge9342ed" class="outline-4">
|
||||
<h4 id="orge9342ed"><span class="section-number-4">3.12.2</span> Compute Naive</h4>
|
||||
<div class="outline-text-4" id="text-3-12-2">
|
||||
<table id="org49b469a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge46048a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -5340,10 +5340,10 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1ec69d3" class="outline-4">
|
||||
<h4 id="org1ec69d3"><span class="section-number-4">3.12.3</span> Compute</h4>
|
||||
<div id="outline-container-org78c5103" class="outline-4">
|
||||
<h4 id="org78c5103"><span class="section-number-4">3.12.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-12-3">
|
||||
<table id="org132b144" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgec37f76" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -5551,8 +5551,8 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaa75d56" class="outline-4">
|
||||
<h4 id="orgaa75d56"><span class="section-number-4">3.12.4</span> Test</h4>
|
||||
<div id="outline-container-orged715c0" class="outline-4">
|
||||
<h4 id="orged715c0"><span class="section-number-4">3.12.4</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-12-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -5571,7 +5571,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-06-15 Wed 21:22</p>
|
||||
<p class="date">Created: 2022-06-16 Thu 15:19</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-06-15 Wed 21:22 -->
|
||||
<!-- 2022-06-16 Thu 15:19 -->
|
||||
<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="#org46ab5da">1. Context</a>
|
||||
<li><a href="#orgf3c45cd">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgb63d607">1.1. Data structure</a></li>
|
||||
<li><a href="#org0d6e00c">1.1. Data structure</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgdd9345e">2. Computation</a>
|
||||
<li><a href="#org544537e">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org1de1296">2.1. Kinetic energy</a>
|
||||
<li><a href="#org8134f7a">2.1. Kinetic energy</a>
|
||||
<ul>
|
||||
<li><a href="#org09731e5">2.1.1. Get</a></li>
|
||||
<li><a href="#org3d0535b">2.1.2. Provide</a></li>
|
||||
<li><a href="#org32762dc">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org62520ac">2.1.4. Test</a></li>
|
||||
<li><a href="#org8eaee9d">2.1.1. Get</a></li>
|
||||
<li><a href="#orgb99b71e">2.1.2. Provide</a></li>
|
||||
<li><a href="#org025ca5d">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org709102b">2.1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5f3030e">2.2. Potential energy</a>
|
||||
<li><a href="#orgcf616ca">2.2. Potential energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgd21cb32">2.2.1. Get</a></li>
|
||||
<li><a href="#org26f6655">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgd13ddc1">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#orgcfb87c9">2.2.4. Test</a></li>
|
||||
<li><a href="#org5d4b29f">2.2.1. Get</a></li>
|
||||
<li><a href="#org8e84c8e">2.2.2. Provide</a></li>
|
||||
<li><a href="#org2589453">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#orgff5c1d3">2.2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge90292d">2.3. Local energy</a>
|
||||
<li><a href="#org0ba1607">2.3. Local energy</a>
|
||||
<ul>
|
||||
<li><a href="#org1d9e402">2.3.1. Get</a></li>
|
||||
<li><a href="#orgd46ec7e">2.3.2. Provide</a></li>
|
||||
<li><a href="#org6abb55e">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#org52580b5">2.3.4. Test</a></li>
|
||||
<li><a href="#org5d61e45">2.3.1. Get</a></li>
|
||||
<li><a href="#orge3d9aa8">2.3.2. Provide</a></li>
|
||||
<li><a href="#org70194a7">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#org9948abb">2.3.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgae7bbe8">2.4. Drift vector</a>
|
||||
<li><a href="#org5caf5a6">2.4. Drift vector</a>
|
||||
<ul>
|
||||
<li><a href="#orga3d45eb">2.4.1. Get</a></li>
|
||||
<li><a href="#orge8ce544">2.4.2. Provide</a></li>
|
||||
<li><a href="#org7a086d8">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org0589395">2.4.4. Test</a></li>
|
||||
<li><a href="#orgc94d671">2.4.1. Get</a></li>
|
||||
<li><a href="#org6a4f956">2.4.2. Provide</a></li>
|
||||
<li><a href="#org71f070f">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org8ba0cb1">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-org46ab5da" class="outline-2">
|
||||
<h2 id="org46ab5da"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgf3c45cd" class="outline-2">
|
||||
<h2 id="orgf3c45cd"><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-orgb63d607" class="outline-3">
|
||||
<h3 id="orgb63d607"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org0d6e00c" class="outline-3">
|
||||
<h3 id="org0d6e00c"><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-orgdd9345e" class="outline-2">
|
||||
<h2 id="orgdd9345e"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org544537e" class="outline-2">
|
||||
<h2 id="org544537e"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org1de1296" class="outline-3">
|
||||
<h3 id="org1de1296"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div id="outline-container-org8134f7a" class="outline-3">
|
||||
<h3 id="org8134f7a"><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-org09731e5" class="outline-4">
|
||||
<h4 id="org09731e5"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org8eaee9d" class="outline-4">
|
||||
<h4 id="org8eaee9d"><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-org3d0535b" class="outline-4">
|
||||
<h4 id="org3d0535b"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-orgb99b71e" class="outline-4">
|
||||
<h4 id="orgb99b71e"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org32762dc" class="outline-4">
|
||||
<h4 id="org32762dc"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
||||
<div id="outline-container-org025ca5d" class="outline-4">
|
||||
<h4 id="org025ca5d"><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="orgca6fd9d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga015c57" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -763,12 +763,12 @@ case is given as follows:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org62520ac" class="outline-4">
|
||||
<h4 id="org62520ac"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
<div id="outline-container-org709102b" class="outline-4">
|
||||
<h4 id="org709102b"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org5f3030e" class="outline-3">
|
||||
<h3 id="org5f3030e"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div id="outline-container-orgcf616ca" class="outline-3">
|
||||
<h3 id="orgcf616ca"><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
|
||||
@ -804,8 +804,8 @@ contributions.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd21cb32" class="outline-4">
|
||||
<h4 id="orgd21cb32"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org5d4b29f" class="outline-4">
|
||||
<h4 id="org5d4b29f"><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>);
|
||||
@ -814,14 +814,14 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org26f6655" class="outline-4">
|
||||
<h4 id="org26f6655"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org8e84c8e" class="outline-4">
|
||||
<h4 id="org8e84c8e"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd13ddc1" class="outline-4">
|
||||
<h4 id="orgd13ddc1"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
||||
<div id="outline-container-org2589453" class="outline-4">
|
||||
<h4 id="org2589453"><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="orgd92f2f5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3e91571" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -949,12 +949,12 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcfb87c9" class="outline-4">
|
||||
<h4 id="orgcfb87c9"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
<div id="outline-container-orgff5c1d3" class="outline-4">
|
||||
<h4 id="orgff5c1d3"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orge90292d" class="outline-3">
|
||||
<h3 id="orge90292d"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div id="outline-container-org0ba1607" class="outline-3">
|
||||
<h3 id="org0ba1607"><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.
|
||||
@ -968,8 +968,8 @@ E_L = KE + PE
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org1d9e402" class="outline-4">
|
||||
<h4 id="org1d9e402"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org5d61e45" class="outline-4">
|
||||
<h4 id="org5d61e45"><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>, <span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">size_max</span>);
|
||||
@ -978,14 +978,14 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd46ec7e" class="outline-4">
|
||||
<h4 id="orgd46ec7e"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-orge3d9aa8" class="outline-4">
|
||||
<h4 id="orge3d9aa8"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6abb55e" class="outline-4">
|
||||
<h4 id="org6abb55e"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
||||
<div id="outline-container-org70194a7" class="outline-4">
|
||||
<h4 id="org70194a7"><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="orgbad69eb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge619fa9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1081,12 +1081,12 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org52580b5" class="outline-4">
|
||||
<h4 id="org52580b5"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
<div id="outline-container-org9948abb" class="outline-4">
|
||||
<h4 id="org9948abb"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgae7bbe8" class="outline-3">
|
||||
<h3 id="orgae7bbe8"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div id="outline-container-org5caf5a6" class="outline-3">
|
||||
<h3 id="org5caf5a6"><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
|
||||
@ -1100,8 +1100,8 @@ with the determinant of the wavefunction.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga3d45eb" class="outline-4">
|
||||
<h4 id="orga3d45eb"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-orgc94d671" class="outline-4">
|
||||
<h4 id="orgc94d671"><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>);
|
||||
@ -1110,14 +1110,14 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge8ce544" class="outline-4">
|
||||
<h4 id="orge8ce544"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
<div id="outline-container-org6a4f956" class="outline-4">
|
||||
<h4 id="org6a4f956"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7a086d8" class="outline-4">
|
||||
<h4 id="org7a086d8"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
||||
<div id="outline-container-org71f070f" class="outline-4">
|
||||
<h4 id="org71f070f"><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="orgb7dddd2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1a6b329" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1338,15 +1338,15 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0589395" class="outline-4">
|
||||
<h4 id="org0589395"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
<div id="outline-container-org8ba0cb1" class="outline-4">
|
||||
<h4 id="org8ba0cb1"><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-06-15 Wed 21:22</p>
|
||||
<p class="date">Created: 2022-06-16 Thu 15:19</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-06-15 Wed 21:22 -->
|
||||
<!-- 2022-06-16 Thu 15:19 -->
|
||||
<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="#org376750b">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#orgc311724">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orga0255a7">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#orgde7a9c8">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org517c0cd">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#org0e76f88">3. Allocation/deallocation functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org376750b" class="outline-2">
|
||||
<h2 id="org376750b"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div id="outline-container-orgde7a9c8" class="outline-2">
|
||||
<h2 id="orgde7a9c8"><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-orgc311724" class="outline-2">
|
||||
<h2 id="orgc311724"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div id="outline-container-org517c0cd" class="outline-2">
|
||||
<h2 id="org517c0cd"><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-orga0255a7" class="outline-2">
|
||||
<h2 id="orga0255a7"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-org0e76f88" class="outline-2">
|
||||
<h2 id="org0e76f88"><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-06-15 Wed 21:22</p>
|
||||
<p class="date">Created: 2022-06-16 Thu 15:19</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
110
qmckl_mo.html
110
qmckl_mo.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-06-15 Wed 21:22 -->
|
||||
<!-- 2022-06-16 Thu 15:19 -->
|
||||
<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,44 +311,44 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org955e45a">1. Context</a>
|
||||
<li><a href="#orgb1bf8c6">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orge033176">1.1. Data structure</a></li>
|
||||
<li><a href="#org18ecc67">1.2. Access functions</a>
|
||||
<li><a href="#org9f6e5fa">1.1. Data structure</a></li>
|
||||
<li><a href="#org2deebbd">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org656ed33">1.2.1. Fortran interfaces</a></li>
|
||||
<li><a href="#orgfa1a756">1.2.1. Fortran interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6d6843a">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org1fc218d">1.3. Initialization functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org284f6dd">2. Computation</a>
|
||||
<li><a href="#org9c3acfd">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org213630c">2.1. Computation of MOs: values only</a>
|
||||
<li><a href="#org1669f32">2.1. Computation of MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#orgcd34c51">2.1.1. Get</a></li>
|
||||
<li><a href="#org83ff0a3">2.1.2. Provide</a></li>
|
||||
<li><a href="#orge546dc7">2.1.3. Compute</a></li>
|
||||
<li><a href="#org6ddb413">2.1.4. HPC version</a></li>
|
||||
<li><a href="#org857962e">2.1.1. Get</a></li>
|
||||
<li><a href="#orgcd4e6b1">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgf0fbe8e">2.1.3. Compute</a></li>
|
||||
<li><a href="#org6971e3d">2.1.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb7be818">2.2. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<li><a href="#org846c774">2.2. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org8c5d69f">2.2.1. Get</a></li>
|
||||
<li><a href="#org5cdc328">2.2.2. Provide</a></li>
|
||||
<li><a href="#org5263f75">2.2.3. Compute</a></li>
|
||||
<li><a href="#orga77f930">2.2.4. HPC version</a></li>
|
||||
<li><a href="#org4754513">2.2.1. Get</a></li>
|
||||
<li><a href="#orga989314">2.2.2. Provide</a></li>
|
||||
<li><a href="#org5493992">2.2.3. Compute</a></li>
|
||||
<li><a href="#org372b061">2.2.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2c75a31">2.3. Test</a></li>
|
||||
<li><a href="#orgbc0f070">2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org955e45a" class="outline-2">
|
||||
<h2 id="org955e45a"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgb1bf8c6" class="outline-2">
|
||||
<h2 id="orgb1bf8c6"><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:
|
||||
@ -428,8 +428,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge033176" class="outline-3">
|
||||
<h3 id="orge033176"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org9f6e5fa" class="outline-3">
|
||||
<h3 id="org9f6e5fa"><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> {
|
||||
@ -481,8 +481,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org18ecc67" class="outline-3">
|
||||
<h3 id="org18ecc67"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org2deebbd" class="outline-3">
|
||||
<h3 id="org2deebbd"><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
|
||||
@ -495,13 +495,13 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org656ed33" class="outline-4">
|
||||
<h4 id="org656ed33"><span class="section-number-4">1.2.1</span> Fortran interfaces</h4>
|
||||
<div id="outline-container-orgfa1a756" class="outline-4">
|
||||
<h4 id="orgfa1a756"><span class="section-number-4">1.2.1</span> Fortran interfaces</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6d6843a" class="outline-3">
|
||||
<h3 id="org6d6843a"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org1fc218d" class="outline-3">
|
||||
<h3 id="org1fc218d"><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
|
||||
@ -522,16 +522,16 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org284f6dd" class="outline-2">
|
||||
<h2 id="org284f6dd"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org9c3acfd" class="outline-2">
|
||||
<h2 id="org9c3acfd"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org213630c" class="outline-3">
|
||||
<h3 id="org213630c"><span class="section-number-3">2.1</span> Computation of MOs: values only</h3>
|
||||
<div id="outline-container-org1669f32" class="outline-3">
|
||||
<h3 id="org1669f32"><span class="section-number-3">2.1</span> Computation of MOs: values only</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
</div>
|
||||
<div id="outline-container-orgcd34c51" class="outline-4">
|
||||
<h4 id="orgcd34c51"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org857962e" class="outline-4">
|
||||
<h4 id="org857962e"><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>
|
||||
@ -555,14 +555,14 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org83ff0a3" class="outline-4">
|
||||
<h4 id="org83ff0a3"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-orgcd4e6b1" class="outline-4">
|
||||
<h4 id="orgcd4e6b1"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge546dc7" class="outline-4">
|
||||
<h4 id="orge546dc7"><span class="section-number-4">2.1.3</span> Compute</h4>
|
||||
<div id="outline-container-orgf0fbe8e" class="outline-4">
|
||||
<h4 id="orgf0fbe8e"><span class="section-number-4">2.1.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="org6771d17" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org57e770c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -736,8 +736,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6ddb413" class="outline-4">
|
||||
<h4 id="org6ddb413"><span class="section-number-4">2.1.4</span> HPC version</h4>
|
||||
<div id="outline-container-org6971e3d" class="outline-4">
|
||||
<h4 id="org6971e3d"><span class="section-number-4">2.1.4</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
@ -831,12 +831,12 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb7be818" class="outline-3">
|
||||
<h3 id="orgb7be818"><span class="section-number-3">2.2</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-org846c774" class="outline-3">
|
||||
<h3 id="org846c774"><span class="section-number-3">2.2</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
</div>
|
||||
<div id="outline-container-org8c5d69f" class="outline-4">
|
||||
<h4 id="org8c5d69f"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org4754513" class="outline-4">
|
||||
<h4 id="org4754513"><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>
|
||||
@ -860,14 +860,14 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5cdc328" class="outline-4">
|
||||
<h4 id="org5cdc328"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-orga989314" class="outline-4">
|
||||
<h4 id="orga989314"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5263f75" class="outline-4">
|
||||
<h4 id="org5263f75"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div id="outline-container-org5493992" class="outline-4">
|
||||
<h4 id="org5493992"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="orga17d55c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7215f28" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1039,8 +1039,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga77f930" class="outline-4">
|
||||
<h4 id="orga77f930"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
||||
<div id="outline-container-org372b061" class="outline-4">
|
||||
<h4 id="org372b061"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
@ -1187,14 +1187,14 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2c75a31" class="outline-3">
|
||||
<h3 id="org2c75a31"><span class="section-number-3">2.3</span> Test</h3>
|
||||
<div id="outline-container-orgbc0f070" class="outline-3">
|
||||
<h3 id="orgbc0f070"><span class="section-number-3">2.3</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-06-15 Wed 21:22</p>
|
||||
<p class="date">Created: 2022-06-16 Thu 15:19</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-06-15 Wed 21:22 -->
|
||||
<!-- 2022-06-16 Thu 15:18 -->
|
||||
<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="#org1d29a37">1. Context</a>
|
||||
<li><a href="#org8168dde">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgcc30624">1.1. Data structure</a></li>
|
||||
<li><a href="#orgbc86f32">1.2. Access functions</a></li>
|
||||
<li><a href="#orgf7aa964">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgffc4e79">1.4. Test</a></li>
|
||||
<li><a href="#org4c2f7d8">1.1. Data structure</a></li>
|
||||
<li><a href="#orga50e1f1">1.2. Access functions</a></li>
|
||||
<li><a href="#org2610d77">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgcc087a3">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf1bee0f">2. Computation</a>
|
||||
<li><a href="#orgb17f8c3">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org7f07cf4">2.1. Nucleus-nucleus distances</a>
|
||||
<li><a href="#orgb5f7667">2.1. Nucleus-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org545e36a">2.1.1. Get</a></li>
|
||||
<li><a href="#orgbae3e80">2.1.2. Compute</a></li>
|
||||
<li><a href="#org643cf47">2.1.3. Test</a></li>
|
||||
<li><a href="#orga8ab800">2.1.1. Get</a></li>
|
||||
<li><a href="#org045cdae">2.1.2. Compute</a></li>
|
||||
<li><a href="#org4d7d31d">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgeeb7b2c">2.2. Nucleus-nucleus rescaled distances</a>
|
||||
<li><a href="#orgc5723e1">2.2. Nucleus-nucleus rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgc37b9d7">2.2.1. Get</a></li>
|
||||
<li><a href="#orgf352e0b">2.2.2. Compute</a></li>
|
||||
<li><a href="#org54a08d9">2.2.3. Test</a></li>
|
||||
<li><a href="#orgfcd4bc7">2.2.1. Get</a></li>
|
||||
<li><a href="#orgf4832bd">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgd83884b">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9e5b7f0">2.3. Nuclear repulsion energy</a>
|
||||
<li><a href="#org99a46c0">2.3. Nuclear repulsion energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgad63fb1">2.3.1. Get</a></li>
|
||||
<li><a href="#orgd81f2f5">2.3.2. Compute</a></li>
|
||||
<li><a href="#org3f8405b">2.3.3. Test</a></li>
|
||||
<li><a href="#org1302629">2.3.1. Get</a></li>
|
||||
<li><a href="#orgb679cba">2.3.2. Compute</a></li>
|
||||
<li><a href="#org86f8d4a">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-org1d29a37" class="outline-2">
|
||||
<h2 id="org1d29a37"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org8168dde" class="outline-2">
|
||||
<h2 id="org8168dde"><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-orgcc30624" class="outline-3">
|
||||
<h3 id="orgcc30624"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org4c2f7d8" class="outline-3">
|
||||
<h3 id="org4c2f7d8"><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-orgbc86f32" class="outline-3">
|
||||
<h3 id="orgbc86f32"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orga50e1f1" class="outline-3">
|
||||
<h3 id="orga50e1f1"><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-orgf7aa964" class="outline-3">
|
||||
<h3 id="orgf7aa964"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org2610d77" class="outline-3">
|
||||
<h3 id="org2610d77"><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
|
||||
@ -618,8 +618,8 @@ Sets the rescale parameter for the nuclear distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgffc4e79" class="outline-3">
|
||||
<h3 id="orgffc4e79"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orgcc087a3" class="outline-3">
|
||||
<h3 id="orgcc087a3"><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;">double</span>* <span style="color: #a0522d;">nucl_charge</span> = chbrclf_charge;
|
||||
@ -702,8 +702,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2, chbrclf_nucl_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf1bee0f" class="outline-2">
|
||||
<h2 id="orgf1bee0f"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orgb17f8c3" class="outline-2">
|
||||
<h2 id="orgb17f8c3"><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
|
||||
@ -716,12 +716,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7f07cf4" class="outline-3">
|
||||
<h3 id="org7f07cf4"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div id="outline-container-orgb5f7667" class="outline-3">
|
||||
<h3 id="orgb5f7667"><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-org545e36a" class="outline-4">
|
||||
<h4 id="org545e36a"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orga8ab800" class="outline-4">
|
||||
<h4 id="orga8ab800"><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>
|
||||
@ -733,10 +733,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbae3e80" class="outline-4">
|
||||
<h4 id="orgbae3e80"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org045cdae" class="outline-4">
|
||||
<h4 id="org045cdae"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org964bcde" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgddb6959" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -814,8 +814,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org643cf47" class="outline-4">
|
||||
<h4 id="org643cf47"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org4d7d31d" class="outline-4">
|
||||
<h4 id="org4d7d31d"><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>*/
|
||||
@ -834,12 +834,12 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeeb7b2c" class="outline-3">
|
||||
<h3 id="orgeeb7b2c"><span class="section-number-3">2.2</span> Nucleus-nucleus rescaled distances</h3>
|
||||
<div id="outline-container-orgc5723e1" class="outline-3">
|
||||
<h3 id="orgc5723e1"><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-orgc37b9d7" class="outline-4">
|
||||
<h4 id="orgc37b9d7"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgfcd4bc7" class="outline-4">
|
||||
<h4 id="orgfcd4bc7"><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>
|
||||
@ -851,10 +851,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf352e0b" class="outline-4">
|
||||
<h4 id="orgf352e0b"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-orgf4832bd" class="outline-4">
|
||||
<h4 id="orgf4832bd"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orgf4e0141" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3d64818" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -933,8 +933,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org54a08d9" class="outline-4">
|
||||
<h4 id="org54a08d9"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-orgd83884b" class="outline-4">
|
||||
<h4 id="orgd83884b"><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>*/
|
||||
@ -954,8 +954,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9e5b7f0" class="outline-3">
|
||||
<h3 id="org9e5b7f0"><span class="section-number-3">2.3</span> Nuclear repulsion energy</h3>
|
||||
<div id="outline-container-org99a46c0" class="outline-3">
|
||||
<h3 id="org99a46c0"><span class="section-number-3">2.3</span> Nuclear repulsion energy</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
\[
|
||||
@ -964,8 +964,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgad63fb1" class="outline-4">
|
||||
<h4 id="orgad63fb1"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org1302629" class="outline-4">
|
||||
<h4 id="org1302629"><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: #a020f0;">const</span> <span style="color: #a0522d;">energy</span>);
|
||||
@ -974,10 +974,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd81f2f5" class="outline-4">
|
||||
<h4 id="orgd81f2f5"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-orgb679cba" class="outline-4">
|
||||
<h4 id="orgb679cba"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org6990b8b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org663bc6a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1067,8 +1067,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3f8405b" class="outline-4">
|
||||
<h4 id="org3f8405b"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-org86f8d4a" class="outline-4">
|
||||
<h4 id="org86f8d4a"><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>*/
|
||||
@ -1088,7 +1088,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-06-15 Wed 21:22</p>
|
||||
<p class="date">Created: 2022-06-16 Thu 15:18</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-06-15 Wed 21:22 -->
|
||||
<!-- 2022-06-16 Thu 15:19 -->
|
||||
<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="#orgc2293b4">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#orgf5383c9">2. Precision</a></li>
|
||||
<li><a href="#org27ac101">3. Range</a></li>
|
||||
<li><a href="#orga6237a1">4. Helper functions</a></li>
|
||||
<li><a href="#org956bad2">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org9c61d3e">2. Precision</a></li>
|
||||
<li><a href="#org8d99ccb">3. Range</a></li>
|
||||
<li><a href="#org31a5394">4. Helper functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc2293b4" class="outline-2">
|
||||
<h2 id="orgc2293b4"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-org956bad2" class="outline-2">
|
||||
<h2 id="org956bad2"><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="org45ecfe2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc4ad5d1" 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-orgf5383c9" class="outline-2">
|
||||
<h2 id="orgf5383c9"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-org9c61d3e" class="outline-2">
|
||||
<h2 id="org9c61d3e"><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-org27ac101" class="outline-2">
|
||||
<h2 id="org27ac101"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-org8d99ccb" class="outline-2">
|
||||
<h2 id="org8d99ccb"><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-orga6237a1" class="outline-2">
|
||||
<h2 id="orga6237a1"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-org31a5394" class="outline-2">
|
||||
<h2 id="org31a5394"><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-06-15 Wed 21:22</p>
|
||||
<p class="date">Created: 2022-06-16 Thu 15:19</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-06-15 Wed 21:22 -->
|
||||
<!-- 2022-06-16 Thu 15:18 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Point</title>
|
||||
@ -333,25 +333,25 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgb3c7d41">1. Context</a>
|
||||
<li><a href="#org8e90a3f">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org0a753e2">1.1. Data structure</a></li>
|
||||
<li><a href="#org4d351eb">1.2. Access functions</a>
|
||||
<li><a href="#orgc4e5e12">1.1. Data structure</a></li>
|
||||
<li><a href="#org273bb4d">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org1ef9cf9">1.2.1. Number of points</a></li>
|
||||
<li><a href="#org8fb56a7">1.2.2. Point coordinates</a></li>
|
||||
<li><a href="#orga43ea6f">1.2.1. Number of points</a></li>
|
||||
<li><a href="#orgcade366">1.2.2. Point coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8f98620">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org66296bb">1.4. Test</a></li>
|
||||
<li><a href="#orgdbc821e">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orge9826ab">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb3c7d41" class="outline-2">
|
||||
<h2 id="orgb3c7d41"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org8e90a3f" class="outline-2">
|
||||
<h2 id="org8e90a3f"><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:
|
||||
@ -401,8 +401,8 @@ corresponds to the 3 × <code>num</code> matrix.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0a753e2" class="outline-3">
|
||||
<h3 id="org0a753e2"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgc4e5e12" class="outline-3">
|
||||
<h3 id="orgc4e5e12"><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_point_struct</span> {
|
||||
@ -438,8 +438,8 @@ corresponds to the 3 × <code>num</code> matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4d351eb" class="outline-3">
|
||||
<h3 id="org4d351eb"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org273bb4d" class="outline-3">
|
||||
<h3 id="org273bb4d"><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
|
||||
@ -450,8 +450,8 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1ef9cf9" class="outline-4">
|
||||
<h4 id="org1ef9cf9"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div id="outline-container-orga43ea6f" class="outline-4">
|
||||
<h4 id="orga43ea6f"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div class="outline-text-4" id="text-1-2-1">
|
||||
<p>
|
||||
Returns the number of points stored in the context.
|
||||
@ -473,8 +473,8 @@ Returns the number of points stored in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8fb56a7" class="outline-4">
|
||||
<h4 id="org8fb56a7"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div id="outline-container-orgcade366" class="outline-4">
|
||||
<h4 id="orgcade366"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-2-2">
|
||||
<p>
|
||||
Returns the point coordinates as sequences of (x,y,z).
|
||||
@ -502,8 +502,8 @@ The pointer is assumed to point on a memory block of size
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org8f98620" class="outline-3">
|
||||
<h3 id="org8f98620"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgdbc821e" class="outline-3">
|
||||
<h3 id="orgdbc821e"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
When the data is set in the context, if the arrays are large
|
||||
@ -636,8 +636,8 @@ Copy a sequence of <code>num</code> points \((x,y,z)\) into the context.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org66296bb" class="outline-3">
|
||||
<h3 id="org66296bb"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orge9826ab" class="outline-3">
|
||||
<h3 id="orge9826ab"><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>*/
|
||||
@ -696,7 +696,7 @@ rc = qmckl_get_point (context, <span style="color: #8b2252;">'N'</span>, coord3,
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-06-15 Wed 21:22</p>
|
||||
<p class="date">Created: 2022-06-16 Thu 15:18</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-06-15 Wed 21:22 -->
|
||||
<!-- 2022-06-16 Thu 15:19 -->
|
||||
<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="#org2cc2044">1. Headers</a></li>
|
||||
<li><a href="#org465b762">2. Naïve Sherman-Morrison</a>
|
||||
<li><a href="#org294f644">1. Headers</a></li>
|
||||
<li><a href="#org682e857">2. Naïve Sherman-Morrison</a>
|
||||
<ul>
|
||||
<li><a href="#org7e687dd">2.1. <code>qmckl_sherman_morrison</code></a>
|
||||
<li><a href="#org8f56c4d">2.1. <code>qmckl_sherman_morrison</code></a>
|
||||
<ul>
|
||||
<li><a href="#org6a1e67c">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orga39e651">2.1.2. C header</a></li>
|
||||
<li><a href="#orgf265efd">2.1.3. C source</a></li>
|
||||
<li><a href="#org0b6fc80">2.1.4. Performance</a></li>
|
||||
<li><a href="#orgd2e89db">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orgca093b4">2.1.2. C header</a></li>
|
||||
<li><a href="#orgdcd5b11">2.1.3. C source</a></li>
|
||||
<li><a href="#org060698f">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org41f49cd">3. Woodbury 2x2</a>
|
||||
<li><a href="#orgb1a4670">3. Woodbury 2x2</a>
|
||||
<ul>
|
||||
<li><a href="#org0cdd965">3.1. <code>qmckl_woodbury_2</code></a>
|
||||
<li><a href="#orge97e0e6">3.1. <code>qmckl_woodbury_2</code></a>
|
||||
<ul>
|
||||
<li><a href="#org78a32c9">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orgd3cb2ed">3.1.2. C header</a></li>
|
||||
<li><a href="#orgd099a46">3.1.3. C source</a></li>
|
||||
<li><a href="#org6c88232">3.1.4. Performance</a></li>
|
||||
<li><a href="#org5af4d69">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org61ec451">3.1.2. C header</a></li>
|
||||
<li><a href="#org4624fa3">3.1.3. C source</a></li>
|
||||
<li><a href="#org9e0278c">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org06579a3">4. Woodbury 3x3</a>
|
||||
<li><a href="#org37b80ed">4. Woodbury 3x3</a>
|
||||
<ul>
|
||||
<li><a href="#org0f33f7f">4.1. <code>qmckl_woodbury_3</code></a>
|
||||
<li><a href="#org7cae9d2">4.1. <code>qmckl_woodbury_3</code></a>
|
||||
<ul>
|
||||
<li><a href="#orga2c3208">4.1.1. Requirements</a></li>
|
||||
<li><a href="#orgd787a68">4.1.2. C header</a></li>
|
||||
<li><a href="#org49fb68b">4.1.3. C source</a></li>
|
||||
<li><a href="#org2e526dc">4.1.4. Performance…</a></li>
|
||||
<li><a href="#org41ba060">4.1.1. Requirements</a></li>
|
||||
<li><a href="#orgdc32cb6">4.1.2. C header</a></li>
|
||||
<li><a href="#org6a4caa6">4.1.3. C source</a></li>
|
||||
<li><a href="#org36e4e2f">4.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6cd56c2">5. Sherman-Morrison with update splitting</a>
|
||||
<li><a href="#org73c84f0">5. Sherman-Morrison with update splitting</a>
|
||||
<ul>
|
||||
<li><a href="#org62c1589">5.1. <code>qmckl_sherman_morrison_splitting</code></a>
|
||||
<li><a href="#orgb871d54">5.1. <code>qmckl_sherman_morrison_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#org1481593">5.1.1. Requirements</a></li>
|
||||
<li><a href="#orgb5bc1bc">5.1.2. C header</a></li>
|
||||
<li><a href="#org25cd28f">5.1.3. C source</a></li>
|
||||
<li><a href="#org404b5e5">5.1.4. Performance…</a></li>
|
||||
<li><a href="#orgafbddea">5.1.1. Requirements</a></li>
|
||||
<li><a href="#org52da63c">5.1.2. C header</a></li>
|
||||
<li><a href="#orgab05724">5.1.3. C source</a></li>
|
||||
<li><a href="#org47ab920">5.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9370a81">6. Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</a>
|
||||
<li><a href="#org4f2ca1e">6. Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</a>
|
||||
<ul>
|
||||
<li><a href="#org4d74c2c">6.1. <code>qmckl_sherman_morrison_smw32s</code></a>
|
||||
<li><a href="#org853b7b5">6.1. <code>qmckl_sherman_morrison_smw32s</code></a>
|
||||
<ul>
|
||||
<li><a href="#org00cf563">6.1.1. Requirements</a></li>
|
||||
<li><a href="#orgddfbeac">6.1.2. C header</a></li>
|
||||
<li><a href="#org4dea666">6.1.3. C source</a></li>
|
||||
<li><a href="#org2f56fcc">6.1.4. Performance…</a></li>
|
||||
<li><a href="#orgd0d0255">6.1.1. Requirements</a></li>
|
||||
<li><a href="#org46c919c">6.1.2. C header</a></li>
|
||||
<li><a href="#org5823846">6.1.3. C source</a></li>
|
||||
<li><a href="#org845dac3">6.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb6eb1b2">7. Helper Functions</a>
|
||||
<li><a href="#org0e2ab09">7. Helper Functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgc1969b8">7.1. <code>qmckl_slagel_splitting</code></a>
|
||||
<li><a href="#org0229506">7.1. <code>qmckl_slagel_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgad65aac">7.1.1. Requirements</a></li>
|
||||
<li><a href="#org586eeaa">7.1.2. C header</a></li>
|
||||
<li><a href="#org55edc1e">7.1.3. C source</a></li>
|
||||
<li><a href="#org5c08083">7.1.4. Performance</a></li>
|
||||
<li><a href="#org4fb6496">7.1.1. Requirements</a></li>
|
||||
<li><a href="#org44ee480">7.1.2. C header</a></li>
|
||||
<li><a href="#org025c862">7.1.3. C source</a></li>
|
||||
<li><a href="#org34ad701">7.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org98024fb">8. End of files</a></li>
|
||||
<li><a href="#org1ca2d4f">8. End of files</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2cc2044" class="outline-2">
|
||||
<h2 id="org2cc2044"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div id="outline-container-org294f644" class="outline-2">
|
||||
<h2 id="org294f644"><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-org465b762" class="outline-2">
|
||||
<h2 id="org465b762"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
||||
<div id="outline-container-org682e857" class="outline-2">
|
||||
<h2 id="org682e857"><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-org7e687dd" class="outline-3">
|
||||
<h3 id="org7e687dd"><span class="section-number-3">2.1</span> <code>qmckl_sherman_morrison</code></h3>
|
||||
<div id="outline-container-org8f56c4d" class="outline-3">
|
||||
<h3 id="org8f56c4d"><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="orgc4dc201" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org99c09ee" 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-org6a1e67c" class="outline-4">
|
||||
<h4 id="org6a1e67c"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgd2e89db" class="outline-4">
|
||||
<h4 id="orgd2e89db"><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-orga39e651" class="outline-4">
|
||||
<h4 id="orga39e651"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgca093b4" class="outline-4">
|
||||
<h4 id="orgca093b4"><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-orgf265efd" class="outline-4">
|
||||
<h4 id="orgf265efd"><span class="section-number-4">2.1.3</span> C source</h4>
|
||||
<div id="outline-container-orgdcd5b11" class="outline-4">
|
||||
<h4 id="orgdcd5b11"><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-org0b6fc80" class="outline-4">
|
||||
<h4 id="org0b6fc80"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org060698f" class="outline-4">
|
||||
<h4 id="org060698f"><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-org41f49cd" class="outline-2">
|
||||
<h2 id="org41f49cd"><span class="section-number-2">3</span> Woodbury 2x2</h2>
|
||||
<div id="outline-container-orgb1a4670" class="outline-2">
|
||||
<h2 id="orgb1a4670"><span class="section-number-2">3</span> Woodbury 2x2</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org0cdd965" class="outline-3">
|
||||
<h3 id="org0cdd965"><span class="section-number-3">3.1</span> <code>qmckl_woodbury_2</code></h3>
|
||||
<div id="outline-container-orge97e0e6" class="outline-3">
|
||||
<h3 id="orge97e0e6"><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="org9f4808d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0fad51a" 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-org78a32c9" class="outline-4">
|
||||
<h4 id="org78a32c9"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org5af4d69" class="outline-4">
|
||||
<h4 id="org5af4d69"><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-orgd3cb2ed" class="outline-4">
|
||||
<h4 id="orgd3cb2ed"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-org61ec451" class="outline-4">
|
||||
<h4 id="org61ec451"><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-orgd099a46" class="outline-4">
|
||||
<h4 id="orgd099a46"><span class="section-number-4">3.1.3</span> C source</h4>
|
||||
<div id="outline-container-org4624fa3" class="outline-4">
|
||||
<h4 id="org4624fa3"><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-org6c88232" class="outline-4">
|
||||
<h4 id="org6c88232"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org9e0278c" class="outline-4">
|
||||
<h4 id="org9e0278c"><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-org06579a3" class="outline-2">
|
||||
<h2 id="org06579a3"><span class="section-number-2">4</span> Woodbury 3x3</h2>
|
||||
<div id="outline-container-org37b80ed" class="outline-2">
|
||||
<h2 id="org37b80ed"><span class="section-number-2">4</span> Woodbury 3x3</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org0f33f7f" class="outline-3">
|
||||
<h3 id="org0f33f7f"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_3</code></h3>
|
||||
<div id="outline-container-org7cae9d2" class="outline-3">
|
||||
<h3 id="org7cae9d2"><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="org45ad077" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd17cb57" 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-orga2c3208" class="outline-4">
|
||||
<h4 id="orga2c3208"><span class="section-number-4">4.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org41ba060" class="outline-4">
|
||||
<h4 id="org41ba060"><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-orgd787a68" class="outline-4">
|
||||
<h4 id="orgd787a68"><span class="section-number-4">4.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgdc32cb6" class="outline-4">
|
||||
<h4 id="orgdc32cb6"><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-org49fb68b" class="outline-4">
|
||||
<h4 id="org49fb68b"><span class="section-number-4">4.1.3</span> C source</h4>
|
||||
<div id="outline-container-org6a4caa6" class="outline-4">
|
||||
<h4 id="org6a4caa6"><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-org2e526dc" class="outline-4">
|
||||
<h4 id="org2e526dc"><span class="section-number-4">4.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org36e4e2f" class="outline-4">
|
||||
<h4 id="org36e4e2f"><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-org6cd56c2" class="outline-2">
|
||||
<h2 id="org6cd56c2"><span class="section-number-2">5</span> Sherman-Morrison with update splitting</h2>
|
||||
<div id="outline-container-org73c84f0" class="outline-2">
|
||||
<h2 id="org73c84f0"><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-org62c1589" class="outline-3">
|
||||
<h3 id="org62c1589"><span class="section-number-3">5.1</span> <code>qmckl_sherman_morrison_splitting</code></h3>
|
||||
<div id="outline-container-orgb871d54" class="outline-3">
|
||||
<h3 id="orgb871d54"><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="orgd3bc9fa" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9f31995" 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-org1481593" class="outline-4">
|
||||
<h4 id="org1481593"><span class="section-number-4">5.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgafbddea" class="outline-4">
|
||||
<h4 id="orgafbddea"><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-orgb5bc1bc" class="outline-4">
|
||||
<h4 id="orgb5bc1bc"><span class="section-number-4">5.1.2</span> C header</h4>
|
||||
<div id="outline-container-org52da63c" class="outline-4">
|
||||
<h4 id="org52da63c"><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-org25cd28f" class="outline-4">
|
||||
<h4 id="org25cd28f"><span class="section-number-4">5.1.3</span> C source</h4>
|
||||
<div id="outline-container-orgab05724" class="outline-4">
|
||||
<h4 id="orgab05724"><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-org404b5e5" class="outline-4">
|
||||
<h4 id="org404b5e5"><span class="section-number-4">5.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org47ab920" class="outline-4">
|
||||
<h4 id="org47ab920"><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-org9370a81" class="outline-2">
|
||||
<h2 id="org9370a81"><span class="section-number-2">6</span> Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</h2>
|
||||
<div id="outline-container-org4f2ca1e" class="outline-2">
|
||||
<h2 id="org4f2ca1e"><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-org4d74c2c" class="outline-3">
|
||||
<h3 id="org4d74c2c"><span class="section-number-3">6.1</span> <code>qmckl_sherman_morrison_smw32s</code></h3>
|
||||
<div id="outline-container-org853b7b5" class="outline-3">
|
||||
<h3 id="org853b7b5"><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="org9fac906" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3796648" 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-org00cf563" class="outline-4">
|
||||
<h4 id="org00cf563"><span class="section-number-4">6.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgd0d0255" class="outline-4">
|
||||
<h4 id="orgd0d0255"><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-orgddfbeac" class="outline-4">
|
||||
<h4 id="orgddfbeac"><span class="section-number-4">6.1.2</span> C header</h4>
|
||||
<div id="outline-container-org46c919c" class="outline-4">
|
||||
<h4 id="org46c919c"><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-org4dea666" class="outline-4">
|
||||
<h4 id="org4dea666"><span class="section-number-4">6.1.3</span> C source</h4>
|
||||
<div id="outline-container-org5823846" class="outline-4">
|
||||
<h4 id="org5823846"><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-org2f56fcc" class="outline-4">
|
||||
<h4 id="org2f56fcc"><span class="section-number-4">6.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org845dac3" class="outline-4">
|
||||
<h4 id="org845dac3"><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-orgb6eb1b2" class="outline-2">
|
||||
<h2 id="orgb6eb1b2"><span class="section-number-2">7</span> Helper Functions</h2>
|
||||
<div id="outline-container-org0e2ab09" class="outline-2">
|
||||
<h2 id="org0e2ab09"><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-orgc1969b8" class="outline-3">
|
||||
<h3 id="orgc1969b8"><span class="section-number-3">7.1</span> <code>qmckl_slagel_splitting</code></h3>
|
||||
<div id="outline-container-org0229506" class="outline-3">
|
||||
<h3 id="org0229506"><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="org7f1fcdc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge118a12" 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-orgad65aac" class="outline-4">
|
||||
<h4 id="orgad65aac"><span class="section-number-4">7.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org4fb6496" class="outline-4">
|
||||
<h4 id="org4fb6496"><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-org586eeaa" class="outline-4">
|
||||
<h4 id="org586eeaa"><span class="section-number-4">7.1.2</span> C header</h4>
|
||||
<div id="outline-container-org44ee480" class="outline-4">
|
||||
<h4 id="org44ee480"><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-org55edc1e" class="outline-4">
|
||||
<h4 id="org55edc1e"><span class="section-number-4">7.1.3</span> C source</h4>
|
||||
<div id="outline-container-org025c862" class="outline-4">
|
||||
<h4 id="org025c862"><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-org5c08083" class="outline-4">
|
||||
<h4 id="org5c08083"><span class="section-number-4">7.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org34ad701" class="outline-4">
|
||||
<h4 id="org34ad701"><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-org98024fb" class="outline-2">
|
||||
<h2 id="org98024fb"><span class="section-number-2">8</span> End of files</h2>
|
||||
<div id="outline-container-org1ca2d4f" class="outline-2">
|
||||
<h2 id="org1ca2d4f"><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-06-15 Wed 21:22</p>
|
||||
<p class="date">Created: 2022-06-16 Thu 15:19</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-06-15 Wed 21:23 -->
|
||||
<!-- 2022-06-16 Thu 15:19 -->
|
||||
<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="#org0cfced7">1. CHBrClF</a>
|
||||
<li><a href="#org33cea8e">1. CHBrClF</a>
|
||||
<ul>
|
||||
<li><a href="#org8806c50">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org7a48c31">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org32bd7af">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org10861ec">1.4. Electron coordinates</a></li>
|
||||
<li><a href="#org81e9c29">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orgc9d3096">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org894d7ff">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org6966237">1.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8e0e786">2. N2</a>
|
||||
<li><a href="#orgc2a979f">2. N2</a>
|
||||
<ul>
|
||||
<li><a href="#org0faaa27">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org89fa9cd">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#orgb78a76d">2.3. Jastrow related data</a></li>
|
||||
<li><a href="#orgcc1beee">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org6d20a2d">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org0ec727e">2.3. Jastrow related data</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0cfced7" class="outline-2">
|
||||
<h2 id="org0cfced7"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div id="outline-container-org33cea8e" class="outline-2">
|
||||
<h2 id="org33cea8e"><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-org8806c50" class="outline-3">
|
||||
<h3 id="org8806c50"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org81e9c29" class="outline-3">
|
||||
<h3 id="org81e9c29"><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-org7a48c31" class="outline-3">
|
||||
<h3 id="org7a48c31"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div id="outline-container-orgc9d3096" class="outline-3">
|
||||
<h3 id="orgc9d3096"><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-org32bd7af" class="outline-3">
|
||||
<h3 id="org32bd7af"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org894d7ff" class="outline-3">
|
||||
<h3 id="org894d7ff"><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-org10861ec" class="outline-3">
|
||||
<h3 id="org10861ec"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org6966237" class="outline-3">
|
||||
<h3 id="org6966237"><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-org8e0e786" class="outline-2">
|
||||
<h2 id="org8e0e786"><span class="section-number-2">2</span> N2</h2>
|
||||
<div id="outline-container-orgc2a979f" class="outline-2">
|
||||
<h2 id="orgc2a979f"><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-org0faaa27" class="outline-3">
|
||||
<h3 id="org0faaa27"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-orgcc1beee" class="outline-3">
|
||||
<h3 id="orgcc1beee"><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-org89fa9cd" class="outline-3">
|
||||
<h3 id="org89fa9cd"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org6d20a2d" class="outline-3">
|
||||
<h3 id="org6d20a2d"><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-orgb78a76d" class="outline-3">
|
||||
<h3 id="orgb78a76d"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div id="outline-container-org0ec727e" class="outline-3">
|
||||
<h3 id="org0ec727e"><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-06-15 Wed 21:23</p>
|
||||
<p class="date">Created: 2022-06-16 Thu 15:19</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-06-15 Wed 21:22 -->
|
||||
<!-- 2022-06-16 Thu 15:18 -->
|
||||
<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="#org5e26362">1. Local functions</a>
|
||||
<li><a href="#org3900779">1. Local functions</a>
|
||||
<ul>
|
||||
<li><a href="#org6c273f6">1.1. Open file</a></li>
|
||||
<li><a href="#org4caac51">1.2. Electron</a></li>
|
||||
<li><a href="#org8e1f617">1.3. Nucleus</a>
|
||||
<li><a href="#orgbdf5369">1.1. Open file</a></li>
|
||||
<li><a href="#org36dc2a9">1.2. Electron</a></li>
|
||||
<li><a href="#org9f0b3f4">1.3. Nucleus</a>
|
||||
<ul>
|
||||
<li><a href="#org617cdab">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#org471ed11">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org15ae876">1.3.3. Nuclear coordinates</a></li>
|
||||
<li><a href="#org9c52853">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#org968a4a6">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org72ca176">1.3.3. Nuclear coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org123757f">1.4. Basis set and AOs</a>
|
||||
<li><a href="#orgb0c74d0">1.4. Basis set and AOs</a>
|
||||
<ul>
|
||||
<li><a href="#org6502697">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#orga8f1c05">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org16e29b1">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#org45178f8">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org0d4f61f">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#orgf86db17">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#org899512b">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org5c801ba">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#org69de1a5">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#orgc298b82">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org419f27f">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org36c5fbb">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#org5e498c7">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org4706b1a">1.4.14. AO Normalization</a></li>
|
||||
<li><a href="#org52a76dc">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#org1f476fe">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#orgdd231b5">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#org3083254">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#orgdc97c81">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org2819cea">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#orgc292567">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org1863019">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#org6379976">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#orgc2a91bf">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org484ec4f">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org9347633">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#orga32cb94">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org1facc3e">1.4.14. AO Normalization</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org893e275">1.5. Molecular orbitals</a>
|
||||
<li><a href="#org5b84d03">1.5. Molecular orbitals</a>
|
||||
<ul>
|
||||
<li><a href="#orge3be5ba">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#orgc59ecd0">1.5.2. MO coefficients</a></li>
|
||||
<li><a href="#org01cb265">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#org3459705">1.5.2. MO coefficients</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf5c74ff">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
<li><a href="#org4a9597d">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc32be7c">2. Read everything</a></li>
|
||||
<li><a href="#orge194589">3. Test</a>
|
||||
<li><a href="#orga69300d">2. Read everything</a></li>
|
||||
<li><a href="#org4303741">3. Test</a>
|
||||
<ul>
|
||||
<li>
|
||||
<ul>
|
||||
<li><a href="#orgab39307">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org17d791e">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#orgb1f4a0f">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org538ca85">3.0.4. MO Basis</a></li>
|
||||
<li><a href="#org710b348">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org38a56c4">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#org0a6148b">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org2e12fad">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-org5e26362" class="outline-2">
|
||||
<h2 id="org5e26362"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div id="outline-container-org3900779" class="outline-2">
|
||||
<h2 id="org3900779"><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-org6c273f6" class="outline-3">
|
||||
<h3 id="org6c273f6"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div id="outline-container-orgbdf5369" class="outline-3">
|
||||
<h3 id="orgbdf5369"><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-org4caac51" class="outline-3">
|
||||
<h3 id="org4caac51"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div id="outline-container-org36dc2a9" class="outline-3">
|
||||
<h3 id="org36dc2a9"><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-org8e1f617" class="outline-3">
|
||||
<h3 id="org8e1f617"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div id="outline-container-org9f0b3f4" class="outline-3">
|
||||
<h3 id="org9f0b3f4"><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-org617cdab" class="outline-4">
|
||||
<h4 id="org617cdab"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div id="outline-container-org9c52853" class="outline-4">
|
||||
<h4 id="org9c52853"><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-org471ed11" class="outline-4">
|
||||
<h4 id="org471ed11"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div id="outline-container-org968a4a6" class="outline-4">
|
||||
<h4 id="org968a4a6"><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">{
|
||||
@ -561,8 +561,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org15ae876" class="outline-4">
|
||||
<h4 id="org15ae876"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div id="outline-container-org72ca176" class="outline-4">
|
||||
<h4 id="org72ca176"><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
|
||||
@ -617,8 +617,8 @@ in the TREXIO file (<code>'N'</code>), so it will be automatically transposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org123757f" class="outline-3">
|
||||
<h3 id="org123757f"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div id="outline-container-orgb0c74d0" class="outline-3">
|
||||
<h3 id="orgb0c74d0"><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.
|
||||
@ -644,8 +644,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6502697" class="outline-4">
|
||||
<h4 id="org6502697"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div id="outline-container-org52a76dc" class="outline-4">
|
||||
<h4 id="org52a76dc"><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
|
||||
@ -676,8 +676,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga8f1c05" class="outline-4">
|
||||
<h4 id="orga8f1c05"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div id="outline-container-org1f476fe" class="outline-4">
|
||||
<h4 id="org1f476fe"><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;
|
||||
@ -701,8 +701,8 @@ rc = qmckl_set_ao_basis_shell_num(context, shell_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org16e29b1" class="outline-4">
|
||||
<h4 id="org16e29b1"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div id="outline-container-orgdd231b5" class="outline-4">
|
||||
<h4 id="orgdd231b5"><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;
|
||||
@ -726,8 +726,8 @@ rc = qmckl_set_ao_basis_prim_num(context, prim_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org45178f8" class="outline-4">
|
||||
<h4 id="org45178f8"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div id="outline-container-org3083254" class="outline-4">
|
||||
<h4 id="org3083254"><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;
|
||||
@ -751,8 +751,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0d4f61f" class="outline-4">
|
||||
<h4 id="org0d4f61f"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div id="outline-container-orgdc97c81" class="outline-4">
|
||||
<h4 id="orgdc97c81"><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">{
|
||||
@ -839,8 +839,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf86db17" class="outline-4">
|
||||
<h4 id="orgf86db17"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div id="outline-container-org2819cea" class="outline-4">
|
||||
<h4 id="org2819cea"><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">{
|
||||
@ -925,8 +925,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org899512b" class="outline-4">
|
||||
<h4 id="org899512b"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div id="outline-container-orgc292567" class="outline-4">
|
||||
<h4 id="orgc292567"><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">{
|
||||
@ -971,8 +971,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5c801ba" class="outline-4">
|
||||
<h4 id="org5c801ba"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
||||
<div id="outline-container-org1863019" class="outline-4">
|
||||
<h4 id="org1863019"><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">{
|
||||
@ -1056,8 +1056,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org69de1a5" class="outline-4">
|
||||
<h4 id="org69de1a5"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
||||
<div id="outline-container-org6379976" class="outline-4">
|
||||
<h4 id="org6379976"><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">{
|
||||
@ -1137,8 +1137,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc298b82" class="outline-4">
|
||||
<h4 id="orgc298b82"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
||||
<div id="outline-container-orgc2a91bf" class="outline-4">
|
||||
<h4 id="orgc2a91bf"><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">{
|
||||
@ -1183,8 +1183,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org419f27f" class="outline-4">
|
||||
<h4 id="org419f27f"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||
<div id="outline-container-org484ec4f" class="outline-4">
|
||||
<h4 id="org484ec4f"><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">{
|
||||
@ -1229,8 +1229,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org36c5fbb" class="outline-4">
|
||||
<h4 id="org36c5fbb"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||
<div id="outline-container-org9347633" class="outline-4">
|
||||
<h4 id="org9347633"><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">{
|
||||
@ -1275,8 +1275,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5e498c7" class="outline-4">
|
||||
<h4 id="org5e498c7"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
||||
<div id="outline-container-orga32cb94" class="outline-4">
|
||||
<h4 id="orga32cb94"><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">{
|
||||
@ -1321,8 +1321,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4706b1a" class="outline-4">
|
||||
<h4 id="org4706b1a"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||
<div id="outline-container-org1facc3e" class="outline-4">
|
||||
<h4 id="org1facc3e"><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">{
|
||||
@ -1377,8 +1377,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org893e275" class="outline-3">
|
||||
<h3 id="org893e275"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org5b84d03" class="outline-3">
|
||||
<h3 id="org5b84d03"><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.
|
||||
@ -1404,8 +1404,8 @@ In this section we read the MO coefficients.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge3be5ba" class="outline-4">
|
||||
<h4 id="orge3be5ba"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
||||
<div id="outline-container-org01cb265" class="outline-4">
|
||||
<h4 id="org01cb265"><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;
|
||||
@ -1428,8 +1428,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc59ecd0" class="outline-4">
|
||||
<h4 id="orgc59ecd0"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||
<div id="outline-container-org3459705" class="outline-4">
|
||||
<h4 id="org3459705"><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">{
|
||||
@ -1478,12 +1478,12 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf5c74ff" class="outline-3">
|
||||
<h3 id="orgf5c74ff"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
<div id="outline-container-org4a9597d" class="outline-3">
|
||||
<h3 id="org4a9597d"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgc32be7c" class="outline-2">
|
||||
<h2 id="orgc32be7c"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div id="outline-container-orga69300d" class="outline-2">
|
||||
<h2 id="orga69300d"><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>
|
||||
@ -1570,8 +1570,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge194589" class="outline-2">
|
||||
<h2 id="orge194589"><span class="section-number-2">3</span> Test</h2>
|
||||
<div id="outline-container-org4303741" class="outline-2">
|
||||
<h2 id="org4303741"><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
|
||||
@ -1605,8 +1605,8 @@ rc = qmckl_trexio_read(context, fname, 255);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgab39307" class="outline-4">
|
||||
<h4 id="orgab39307"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||
<div id="outline-container-org710b348" class="outline-4">
|
||||
<h4 id="org710b348"><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>);
|
||||
@ -1624,8 +1624,8 @@ rc = qmckl_get_electron_down_num(context, &dn_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org17d791e" class="outline-4">
|
||||
<h4 id="org17d791e"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||
<div id="outline-container-org38a56c4" class="outline-4">
|
||||
<h4 id="org38a56c4"><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>);
|
||||
@ -1665,8 +1665,8 @@ coord = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb1f4a0f" class="outline-4">
|
||||
<h4 id="orgb1f4a0f"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||
<div id="outline-container-org0a6148b" class="outline-4">
|
||||
<h4 id="org0a6148b"><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>);
|
||||
@ -1774,8 +1774,8 @@ prim_factor = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org538ca85" class="outline-4">
|
||||
<h4 id="org538ca85"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div id="outline-container-org2e12fad" class="outline-4">
|
||||
<h4 id="org2e12fad"><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>);
|
||||
@ -1805,7 +1805,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-06-15 Wed 21:22</p>
|
||||
<p class="date">Created: 2022-06-16 Thu 15:18</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-06-15 Wed 21:22 -->
|
||||
<!-- 2022-06-16 Thu 15:19 -->
|
||||
<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="#org8c21d30">1. Verificarlo probes</a>
|
||||
<li><a href="#org9d17182">1. Verificarlo probes</a>
|
||||
<ul>
|
||||
<li><a href="#org0c0b871">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#orgb4bdbbb">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org6c10a79">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#org02705f5">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#orgcc69c87">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org1f2fa3b">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org554f96c">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#orgd18e8dd">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#org95da3cd">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#orgba6bcd3">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="#org6f9f4a6">2. Fortran wrappers</a></li>
|
||||
<li><a href="#orged7bb5b">2. Fortran wrappers</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8c21d30" class="outline-2">
|
||||
<h2 id="org8c21d30"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div id="outline-container-org9d17182" class="outline-2">
|
||||
<h2 id="org9d17182"><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-org0c0b871" class="outline-3">
|
||||
<h3 id="org0c0b871"><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-org1f2fa3b" class="outline-3">
|
||||
<h3 id="org1f2fa3b"><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-orgb4bdbbb" class="outline-3">
|
||||
<h3 id="orgb4bdbbb"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div id="outline-container-org554f96c" class="outline-3">
|
||||
<h3 id="org554f96c"><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-org6c10a79" class="outline-3">
|
||||
<h3 id="org6c10a79"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div id="outline-container-orgd18e8dd" class="outline-3">
|
||||
<h3 id="orgd18e8dd"><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-org02705f5" class="outline-3">
|
||||
<h3 id="org02705f5"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div id="outline-container-org95da3cd" class="outline-3">
|
||||
<h3 id="org95da3cd"><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-orgcc69c87" class="outline-3">
|
||||
<h3 id="orgcc69c87"><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-orgba6bcd3" class="outline-3">
|
||||
<h3 id="orgba6bcd3"><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-org6f9f4a6" class="outline-2">
|
||||
<h2 id="org6f9f4a6"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||
<div id="outline-container-orged7bb5b" class="outline-2">
|
||||
<h2 id="orged7bb5b"><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-06-15 Wed 21:22</p>
|
||||
<p class="date">Created: 2022-06-16 Thu 15:19</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