mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-08-24 22:21:46 +02:00
Deploying to gh-pages from @ TREX-CoE/qmckl@6fb14c9a3a 🚀
This commit is contained in:
parent
e167813b99
commit
e37c09e4bc
@ -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-11-17 Thu 13:51 -->
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<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-11-17 Thu 13:51</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</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-11-17 Thu 13:51 -->
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<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="#orgaeca408">1. Installing QMCkl</a>
|
||||
<li><a href="#org5bd46ba">1. Installing QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#orgc4868fc">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org6f8516c">1.2. Installing from the source repository (for developers)</a></li>
|
||||
<li><a href="#orge46500f">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org2c0c250">1.2. Installing from the source repository (for developers)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgdc1fcc8">2. Using QMCkl</a></li>
|
||||
<li><a href="#org09fd8db">3. Developing in QMCkl</a>
|
||||
<li><a href="#orgcc168d5">2. Using QMCkl</a></li>
|
||||
<li><a href="#orgbb8d061">3. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#orgeddef34">3.1. Literate programming</a></li>
|
||||
<li><a href="#orgd91462d">3.2. Source code editing</a></li>
|
||||
<li><a href="#org33b4fe3">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org5e69219">3.4. Coding rules</a></li>
|
||||
<li><a href="#org6095f10">3.5. Design of the library</a></li>
|
||||
<li><a href="#org9b02328">3.6. Naming conventions</a></li>
|
||||
<li><a href="#orgd6fa61e">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org34c4c0b">3.8. Global state</a></li>
|
||||
<li><a href="#org2f1d54e">3.9. Headers</a></li>
|
||||
<li><a href="#orgf35cdcb">3.10. Low-level functions</a></li>
|
||||
<li><a href="#org1f4ffc3">3.11. High-level functions</a></li>
|
||||
<li><a href="#orgdbe0c64">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org20ddfa6">3.13. Algorithms</a></li>
|
||||
<li><a href="#org7d48a0c">3.1. Literate programming</a></li>
|
||||
<li><a href="#org86908f7">3.2. Source code editing</a></li>
|
||||
<li><a href="#orgf97b49a">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#orgc587aef">3.4. Coding rules</a></li>
|
||||
<li><a href="#orgab519c4">3.5. Design of the library</a></li>
|
||||
<li><a href="#orgb5c9a68">3.6. Naming conventions</a></li>
|
||||
<li><a href="#org9780f59">3.7. Application programming interface</a></li>
|
||||
<li><a href="#orgb041298">3.8. Global state</a></li>
|
||||
<li><a href="#orgbf7538f">3.9. Headers</a></li>
|
||||
<li><a href="#org50851c0">3.10. Low-level functions</a></li>
|
||||
<li><a href="#orgf2593e3">3.11. High-level functions</a></li>
|
||||
<li><a href="#org55d0d2a">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org3d73b3c">3.13. Algorithms</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaeca408" class="outline-2">
|
||||
<h2 id="orgaeca408"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div id="outline-container-org5bd46ba" class="outline-2">
|
||||
<h2 id="org5bd46ba"><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-orgc4868fc" class="outline-3">
|
||||
<h3 id="orgc4868fc"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div id="outline-container-orge46500f" class="outline-3">
|
||||
<h3 id="orge46500f"><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-org6f8516c" class="outline-3">
|
||||
<h3 id="org6f8516c"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div id="outline-container-org2c0c250" class="outline-3">
|
||||
<h3 id="org2c0c250"><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-orgdc1fcc8" class="outline-2">
|
||||
<h2 id="orgdc1fcc8"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div id="outline-container-orgcc168d5" class="outline-2">
|
||||
<h2 id="orgcc168d5"><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-org09fd8db" class="outline-2">
|
||||
<h2 id="org09fd8db"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-orgbb8d061" class="outline-2">
|
||||
<h2 id="orgbb8d061"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orgeddef34" class="outline-3">
|
||||
<h3 id="orgeddef34"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div id="outline-container-org7d48a0c" class="outline-3">
|
||||
<h3 id="org7d48a0c"><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-orgd91462d" class="outline-3">
|
||||
<h3 id="orgd91462d"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div id="outline-container-org86908f7" class="outline-3">
|
||||
<h3 id="org86908f7"><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-org33b4fe3" class="outline-3">
|
||||
<h3 id="org33b4fe3"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-orgf97b49a" class="outline-3">
|
||||
<h3 id="orgf97b49a"><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-org5e69219" class="outline-3">
|
||||
<h3 id="org5e69219"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div id="outline-container-orgc587aef" class="outline-3">
|
||||
<h3 id="orgc587aef"><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-org6095f10" class="outline-3">
|
||||
<h3 id="org6095f10"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div id="outline-container-orgab519c4" class="outline-3">
|
||||
<h3 id="orgab519c4"><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-org9b02328" class="outline-3">
|
||||
<h3 id="org9b02328"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-orgb5c9a68" class="outline-3">
|
||||
<h3 id="orgb5c9a68"><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-orgd6fa61e" class="outline-3">
|
||||
<h3 id="orgd6fa61e"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-org9780f59" class="outline-3">
|
||||
<h3 id="org9780f59"><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-org34c4c0b" class="outline-3">
|
||||
<h3 id="org34c4c0b"><span class="section-number-3">3.8</span> Global state</h3>
|
||||
<div id="outline-container-orgb041298" class="outline-3">
|
||||
<h3 id="orgb041298"><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="orgf39507f">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="orgdc75500">=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-org2f1d54e" class="outline-3">
|
||||
<h3 id="org2f1d54e"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div id="outline-container-orgbf7538f" class="outline-3">
|
||||
<h3 id="orgbf7538f"><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-orgf35cdcb" class="outline-3">
|
||||
<h3 id="orgf35cdcb"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-org50851c0" class="outline-3">
|
||||
<h3 id="org50851c0"><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="#orgf39507f"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#orgdc75500"><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-org1f4ffc3" class="outline-3">
|
||||
<h3 id="org1f4ffc3"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div id="outline-container-orgf2593e3" class="outline-3">
|
||||
<h3 id="orgf2593e3"><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-orgdbe0c64" class="outline-3">
|
||||
<h3 id="orgdbe0c64"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-org55d0d2a" class="outline-3">
|
||||
<h3 id="org55d0d2a"><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="#orgf39507f"><code>context</code></a> variable.
|
||||
specified in the <a href="#orgdc75500"><code>context</code></a> variable.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -896,8 +896,8 @@ following points :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org20ddfa6" class="outline-3">
|
||||
<h3 id="org20ddfa6"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div id="outline-container-org3d73b3c" class="outline-3">
|
||||
<h3 id="org3d73b3c"><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-11-17 Thu 13:51</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</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-11-17 Thu 13:52 -->
|
||||
<!-- 2022-11-17 Thu 18:27 -->
|
||||
<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="#org14a939c">1. Introduction</a></li>
|
||||
<li><a href="#org719f211">2. Context</a>
|
||||
<li><a href="#org71b5c0b">1. Introduction</a></li>
|
||||
<li><a href="#org10e2829">2. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org509dcbc">2.1. Constant data</a>
|
||||
<li><a href="#org3589ccb">2.1. Constant data</a>
|
||||
<ul>
|
||||
<li><a href="#orgac02f57">2.1.1. Initialization functions</a>
|
||||
<li><a href="#org4d36e3c">2.1.1. Initialization functions</a>
|
||||
<ul>
|
||||
<li><a href="#org93725bf">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#orgf4ff49b">2.1.1.2. Fortran interface</a></li>
|
||||
<li><a href="#org34956e9">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org44bb0b8">2.1.1.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgba9a560">2.1.2. Access functions</a>
|
||||
<li><a href="#org6bdf00c">2.1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgf7f90a8">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#orgd870e9e">2.1.2.2. Fortran interface</a></li>
|
||||
<li><a href="#org66499ec">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org007b2bd">2.1.2.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3cb0c34">2.2. Computed data</a>
|
||||
<li><a href="#org65198c4">2.2. Computed data</a>
|
||||
<ul>
|
||||
<li><a href="#orgd6107d3">2.2.1. After initialization</a></li>
|
||||
<li><a href="#orge567068">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#orgc5728bd">2.2.3. Access functions</a></li>
|
||||
<li><a href="#org8d722f8">2.2.1. After initialization</a></li>
|
||||
<li><a href="#org5e61af0">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#orgef9402c">2.2.3. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3e38eeb">3. Radial part</a>
|
||||
<li><a href="#orgf0df458">3. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#org95a9db1">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org52998bf">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org2a15e4f">3.3. Computation of shells</a></li>
|
||||
<li><a href="#org031af02">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org6b09e61">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#orgfb6aacf">3.3. Computation of shells</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org96853a1">4. Polynomial part</a>
|
||||
<li><a href="#org03a2959">4. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#orgce663e3">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org4ed4111">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
<li><a href="#org79353b5">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org1362a84">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org029a484">5. Combining radial and polynomial parts</a>
|
||||
<li><a href="#orgcce224e">5. Combining radial and polynomial parts</a>
|
||||
<ul>
|
||||
<li><a href="#orgea3eac9">5.1. Values only</a>
|
||||
<li><a href="#org6ff649f">5.1. Values only</a>
|
||||
<ul>
|
||||
<li><a href="#orgf59daa8">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#orgecd7b77">5.1.2. HPC version</a></li>
|
||||
<li><a href="#org9a038be">5.1.3. Interfaces</a></li>
|
||||
<li><a href="#org1d76168">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#orgfa64fdc">5.1.2. HPC version</a></li>
|
||||
<li><a href="#org2f2be96">5.1.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org78ab328">5.2. Value, gradients, Laplacian</a>
|
||||
<li><a href="#orgd1e1b66">5.2. Value, gradients, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org53bee6a">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#orgdb36a51">5.2.2. HPC version</a></li>
|
||||
<li><a href="#org6b462ed">5.2.3. Interfaces</a></li>
|
||||
<li><a href="#org2a2b904">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#org8021602">5.2.2. HPC version</a></li>
|
||||
<li><a href="#org587fc8a">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-org14a939c" class="outline-2">
|
||||
<h2 id="org14a939c"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div id="outline-container-org71b5c0b" class="outline-2">
|
||||
<h2 id="org71b5c0b"><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-org719f211" class="outline-2">
|
||||
<h2 id="org719f211"><span class="section-number-2">2</span> Context</h2>
|
||||
<div id="outline-container-org10e2829" class="outline-2">
|
||||
<h2 id="org10e2829"><span class="section-number-2">2</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org509dcbc" class="outline-3">
|
||||
<h3 id="org509dcbc"><span class="section-number-3">2.1</span> Constant data</h3>
|
||||
<div id="outline-container-org3589ccb" class="outline-3">
|
||||
<h3 id="org3589ccb"><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="org5485eaf" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org708492f" 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="org7b9515f"><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="org07078d8"><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="org016e4b7"><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="orgafce913"><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-orgac02f57" class="outline-4">
|
||||
<h4 id="orgac02f57"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
||||
<div id="outline-container-org4d36e3c" class="outline-4">
|
||||
<h4 id="org4d36e3c"><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="#org719f211">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org10e2829">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org93725bf" class="outline-5">
|
||||
<h5 id="org93725bf"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div id="outline-container-org34956e9" class="outline-5">
|
||||
<h5 id="org34956e9"><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-orgf4ff49b" class="outline-5">
|
||||
<h5 id="orgf4ff49b"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org44bb0b8" class="outline-5">
|
||||
<h5 id="org44bb0b8"><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-orgba9a560" class="outline-4">
|
||||
<h4 id="orgba9a560"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
||||
<div id="outline-container-org6bdf00c" class="outline-4">
|
||||
<h4 id="org6bdf00c"><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="#org719f211">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org10e2829">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf7f90a8" class="outline-5">
|
||||
<h5 id="orgf7f90a8"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div id="outline-container-org66499ec" class="outline-5">
|
||||
<h5 id="org66499ec"><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-orgd870e9e" class="outline-5">
|
||||
<h5 id="orgd870e9e"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org007b2bd" class="outline-5">
|
||||
<h5 id="org007b2bd"><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-org3cb0c34" class="outline-3">
|
||||
<h3 id="org3cb0c34"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div id="outline-container-org65198c4" class="outline-3">
|
||||
<h3 id="org65198c4"><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-orgd6107d3" class="outline-4">
|
||||
<h4 id="orgd6107d3"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div id="outline-container-org8d722f8" class="outline-4">
|
||||
<h4 id="org8d722f8"><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-orge567068" class="outline-4">
|
||||
<h4 id="orge567068"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
||||
<div id="outline-container-org5e61af0" class="outline-4">
|
||||
<h4 id="org5e61af0"><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-orgc5728bd" class="outline-4">
|
||||
<h4 id="orgc5728bd"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||
<div id="outline-container-orgef9402c" class="outline-4">
|
||||
<h4 id="orgef9402c"><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="#org52998bf">3.2</a>.
|
||||
See section <a href="#org6b09e61">3.2</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1495,7 +1495,7 @@ See section <a href="#org52998bf">3.2</a>.
|
||||
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of contracted shells
|
||||
evaluated at the current coordinates. See section <a href="#org2a15e4f">3.3</a>.
|
||||
evaluated at the current coordinates. See section <a href="#orgfb6aacf">3.3</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1509,7 +1509,7 @@ evaluated at the current coordinates. See section <a href="#org2a15e4f">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="#org029a484">5</a>.
|
||||
See section <a href="#orgcce224e">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="#org029a484">5</a>.
|
||||
the current coordinates. See section <a href="#orgcce224e">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1553,12 +1553,12 @@ Uses the given array to compute the value.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3e38eeb" class="outline-2">
|
||||
<h2 id="org3e38eeb"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div id="outline-container-orgf0df458" class="outline-2">
|
||||
<h2 id="orgf0df458"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org95a9db1" class="outline-3">
|
||||
<h3 id="org95a9db1"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div id="outline-container-org031af02" class="outline-3">
|
||||
<h3 id="org031af02"><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-org52998bf" class="outline-3">
|
||||
<h3 id="org52998bf"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div id="outline-container-org6b09e61" class="outline-3">
|
||||
<h3 id="org6b09e61"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<table id="orge3f323a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0352e02" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1891,10 +1891,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2a15e4f" class="outline-3">
|
||||
<h3 id="org2a15e4f"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div id="outline-container-orgfb6aacf" class="outline-3">
|
||||
<h3 id="orgfb6aacf"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<table id="org61cd67f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org448d548" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2146,8 +2146,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org96853a1" class="outline-2">
|
||||
<h2 id="org96853a1"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div id="outline-container-org03a2959" class="outline-2">
|
||||
<h2 id="org03a2959"><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-orgce663e3" class="outline-3">
|
||||
<h3 id="orgce663e3"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-org79353b5" class="outline-3">
|
||||
<h3 id="org79353b5"><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="orge622875" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5f4e1ab" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2318,8 +2318,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4ed4111" class="outline-3">
|
||||
<h3 id="org4ed4111"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-org1362a84" class="outline-3">
|
||||
<h3 id="org1362a84"><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="org45d38b6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org99290fe" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3143,18 +3143,18 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org029a484" class="outline-2">
|
||||
<h2 id="org029a484"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div id="outline-container-orgcce224e" class="outline-2">
|
||||
<h2 id="orgcce224e"><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-orgea3eac9" class="outline-3">
|
||||
<h3 id="orgea3eac9"><span class="section-number-3">5.1</span> Values only</h3>
|
||||
<div id="outline-container-org6ff649f" class="outline-3">
|
||||
<h3 id="org6ff649f"><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-orgf59daa8" class="outline-4">
|
||||
<h4 id="orgf59daa8"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-org1d76168" class="outline-4">
|
||||
<h4 id="org1d76168"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-1">
|
||||
<table id="org0ded998" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org95aeeae" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3390,10 +3390,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgecd7b77" class="outline-4">
|
||||
<h4 id="orgecd7b77"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div id="outline-container-orgfa64fdc" class="outline-4">
|
||||
<h4 id="orgfa64fdc"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-2">
|
||||
<table id="orgbdde0bd" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6568060" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3551,8 +3551,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9a038be" class="outline-4">
|
||||
<h4 id="org9a038be"><span class="section-number-4">5.1.3</span> Interfaces</h4>
|
||||
<div id="outline-container-org2f2be96" class="outline-4">
|
||||
<h4 id="org2f2be96"><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> (
|
||||
@ -3601,14 +3601,14 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org78ab328" class="outline-3">
|
||||
<h3 id="org78ab328"><span class="section-number-3">5.2</span> Value, gradients, Laplacian</h3>
|
||||
<div id="outline-container-orgd1e1b66" class="outline-3">
|
||||
<h3 id="orgd1e1b66"><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-org53bee6a" class="outline-4">
|
||||
<h4 id="org53bee6a"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-org2a2b904" class="outline-4">
|
||||
<h4 id="org2a2b904"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-1">
|
||||
<table id="orged0daab" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4a39696" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3873,10 +3873,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdb36a51" class="outline-4">
|
||||
<h4 id="orgdb36a51"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div id="outline-container-org8021602" class="outline-4">
|
||||
<h4 id="org8021602"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-2">
|
||||
<table id="orgf212d55" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org984dcc7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4035,8 +4035,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org6b462ed" class="outline-4">
|
||||
<h4 id="org6b462ed"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||
<div id="outline-container-org587fc8a" class="outline-4">
|
||||
<h4 id="org587fc8a"><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> (
|
||||
@ -4088,7 +4088,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-11-17 Thu 13:52</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:27</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
172
qmckl_blas.html
172
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-11-17 Thu 13:51 -->
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<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,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="#org1e21992">-</a></li>
|
||||
<li><a href="#orga26e0d5">1. Data types</a>
|
||||
<li><a href="#org36f08c2">-</a></li>
|
||||
<li><a href="#orgd65de82">1. Data types</a>
|
||||
<ul>
|
||||
<li><a href="#org089a4b3">1.1. Vector</a></li>
|
||||
<li><a href="#org58db250">1.2. Matrix</a></li>
|
||||
<li><a href="#org4aca5fc">1.3. Tensor</a></li>
|
||||
<li><a href="#orgd39621d">1.4. Reshaping</a>
|
||||
<li><a href="#orgf6a111f">1.1. Vector</a></li>
|
||||
<li><a href="#org0a02ee8">1.2. Matrix</a></li>
|
||||
<li><a href="#org7b92c0f">1.3. Tensor</a></li>
|
||||
<li><a href="#org160bd6c">1.4. Reshaping</a>
|
||||
<ul>
|
||||
<li><a href="#org991688d">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#org2d7ce9a">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#orgb73fcd4">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#orgd612c7a">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#org3a7c7f9">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#org07340e9">1.4.6. Tensor -> Matrix</a></li>
|
||||
<li><a href="#org0438bd1">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#orge8618f7">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#org9986f5a">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#org3ed9b7c">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#orgf77053a">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#orgd4e9a30">1.4.6. Tensor -> Matrix</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3b819c0">1.5. Access macros</a></li>
|
||||
<li><a href="#org23c5f74">1.6. Set all elements</a>
|
||||
<li><a href="#org96a9587">1.5. Access macros</a></li>
|
||||
<li><a href="#org648eb5b">1.6. Set all elements</a>
|
||||
<ul>
|
||||
<li><a href="#org9d3744e">1.6.1. Vector</a></li>
|
||||
<li><a href="#org6855e33">1.6.2. Matrix</a></li>
|
||||
<li><a href="#orgf214f68">1.6.3. Tensor</a></li>
|
||||
<li><a href="#orgdae56d2">1.6.1. Vector</a></li>
|
||||
<li><a href="#org4d99312">1.6.2. Matrix</a></li>
|
||||
<li><a href="#orgc79ee9a">1.6.3. Tensor</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3e0bc1b">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#org4e1461e">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org15c8464">2. Matrix operations</a>
|
||||
<li><a href="#org281951c">2. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#org22166cd">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org20ff312">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#org93bbe8c">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org86a6492">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#org22114b8">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<li><a href="#orge298bcd">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org3c64ed8">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#org3f45c5a">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#orgf6f7c45">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#orga7474d2">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<ul>
|
||||
<li><a href="#orge6ea302">2.5.1. C interface</a></li>
|
||||
<li><a href="#org9dd147d">2.5.1. C interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3c9d08d">2.6. <code>qmckl_transpose</code></a></li>
|
||||
<li><a href="#org6a8475a">2.6. <code>qmckl_transpose</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1e21992" class="outline-2">
|
||||
<h2 id="org1e21992">-</h2>
|
||||
<div class="outline-text-2" id="text-org1e21992">
|
||||
<div id="outline-container-org36f08c2" class="outline-2">
|
||||
<h2 id="org36f08c2">-</h2>
|
||||
<div class="outline-text-2" id="text-org36f08c2">
|
||||
<p>
|
||||
Basic linear algebra data types and operations are described in this file.
|
||||
The data types are private, so that HPC implementations can use
|
||||
@ -394,12 +394,12 @@ are not intended to be passed to external codes.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga26e0d5" class="outline-2">
|
||||
<h2 id="orga26e0d5"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div id="outline-container-orgd65de82" class="outline-2">
|
||||
<h2 id="orgd65de82"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org089a4b3" class="outline-3">
|
||||
<h3 id="org089a4b3"><span class="section-number-3">1.1</span> Vector</h3>
|
||||
<div id="outline-container-orgf6a111f" class="outline-3">
|
||||
<h3 id="orgf6a111f"><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">
|
||||
|
||||
@ -453,8 +453,8 @@ Allocates a new vector. If the allocation failed the size is zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org58db250" class="outline-3">
|
||||
<h3 id="org58db250"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||
<div id="outline-container-org0a02ee8" class="outline-3">
|
||||
<h3 id="org0a02ee8"><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">
|
||||
|
||||
@ -514,8 +514,8 @@ Allocates a new matrix. If the allocation failed the sizes are zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4aca5fc" class="outline-3">
|
||||
<h3 id="org4aca5fc"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||
<div id="outline-container-org7b92c0f" class="outline-3">
|
||||
<h3 id="org7b92c0f"><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">
|
||||
|
||||
@ -582,16 +582,16 @@ is zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd39621d" class="outline-3">
|
||||
<h3 id="orgd39621d"><span class="section-number-3">1.4</span> Reshaping</h3>
|
||||
<div id="outline-container-org160bd6c" class="outline-3">
|
||||
<h3 id="org160bd6c"><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-org991688d" class="outline-4">
|
||||
<h4 id="org991688d"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||
<div id="outline-container-org0438bd1" class="outline-4">
|
||||
<h4 id="org0438bd1"><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>
|
||||
@ -607,8 +607,8 @@ Reshapes a vector into a matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2d7ce9a" class="outline-4">
|
||||
<h4 id="org2d7ce9a"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||
<div id="outline-container-orge8618f7" class="outline-4">
|
||||
<h4 id="orge8618f7"><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>
|
||||
@ -624,8 +624,8 @@ Reshapes a vector into a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb73fcd4" class="outline-4">
|
||||
<h4 id="orgb73fcd4"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||
<div id="outline-container-org9986f5a" class="outline-4">
|
||||
<h4 id="org9986f5a"><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>
|
||||
@ -639,8 +639,8 @@ Reshapes a matrix into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd612c7a" class="outline-4">
|
||||
<h4 id="orgd612c7a"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||
<div id="outline-container-org3ed9b7c" class="outline-4">
|
||||
<h4 id="org3ed9b7c"><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>
|
||||
@ -656,8 +656,8 @@ Reshapes a matrix into a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3a7c7f9" class="outline-4">
|
||||
<h4 id="org3a7c7f9"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||
<div id="outline-container-orgf77053a" class="outline-4">
|
||||
<h4 id="orgf77053a"><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>
|
||||
@ -671,8 +671,8 @@ Reshapes a tensor into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org07340e9" class="outline-4">
|
||||
<h4 id="org07340e9"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||
<div id="outline-container-orgd4e9a30" class="outline-4">
|
||||
<h4 id="orgd4e9a30"><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>
|
||||
@ -689,8 +689,8 @@ Reshapes a tensor into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3b819c0" class="outline-3">
|
||||
<h3 id="org3b819c0"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||
<div id="outline-container-org96a9587" class="outline-3">
|
||||
<h3 id="org96a9587"><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
|
||||
@ -714,12 +714,12 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org23c5f74" class="outline-3">
|
||||
<h3 id="org23c5f74"><span class="section-number-3">1.6</span> Set all elements</h3>
|
||||
<div id="outline-container-org648eb5b" class="outline-3">
|
||||
<h3 id="org648eb5b"><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-org9d3744e" class="outline-4">
|
||||
<h4 id="org9d3744e"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||
<div id="outline-container-orgdae56d2" class="outline-4">
|
||||
<h4 id="orgdae56d2"><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>
|
||||
@ -729,8 +729,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6855e33" class="outline-4">
|
||||
<h4 id="org6855e33"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||
<div id="outline-container-org4d99312" class="outline-4">
|
||||
<h4 id="org4d99312"><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>
|
||||
@ -740,8 +740,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf214f68" class="outline-4">
|
||||
<h4 id="orgf214f68"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||
<div id="outline-container-orgc79ee9a" class="outline-4">
|
||||
<h4 id="orgc79ee9a"><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>
|
||||
@ -752,8 +752,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3e0bc1b" class="outline-3">
|
||||
<h3 id="org3e0bc1b"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||
<div id="outline-container-org4e1461e" class="outline-3">
|
||||
<h3 id="org4e1461e"><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>
|
||||
@ -836,12 +836,12 @@ Converts a <code>double*</code> to a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org15c8464" class="outline-2">
|
||||
<h2 id="org15c8464"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div id="outline-container-org281951c" class="outline-2">
|
||||
<h2 id="org281951c"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org22166cd" class="outline-3">
|
||||
<h3 id="org22166cd"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div id="outline-container-orge298bcd" class="outline-3">
|
||||
<h3 id="orge298bcd"><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:
|
||||
@ -853,7 +853,7 @@ Matrix multiplication with a BLAS interface:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="orgb990ef2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf3f367c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1012,8 +1012,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org20ff312" class="outline-3">
|
||||
<h3 id="org20ff312"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
||||
<div id="outline-container-org3c64ed8" class="outline-3">
|
||||
<h3 id="org3c64ed8"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
"Size-safe" proxy function with the same functionality as <code>qmckl_dgemm</code>
|
||||
@ -1022,7 +1022,7 @@ are required primarily for the Python API, where compatibility with
|
||||
NumPy arrays implies that sizes of the input and output arrays are provided.
|
||||
</p>
|
||||
|
||||
<table id="org10f92d3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org02967bc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1208,8 +1208,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org93bbe8c" class="outline-3">
|
||||
<h3 id="org93bbe8c"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
||||
<div id="outline-container-org3f45c5a" class="outline-3">
|
||||
<h3 id="org3f45c5a"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
@ -1221,7 +1221,7 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="org3e75230" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgfa303b0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1315,8 +1315,8 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org86a6492" class="outline-3">
|
||||
<h3 id="org86a6492"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
||||
<div id="outline-container-orgf6f7c45" class="outline-3">
|
||||
<h3 id="orgf6f7c45"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
Given a matrix \(\mathbf{A}\), the adjugate matrix
|
||||
@ -1334,7 +1334,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="org50afa8f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org68e9b2d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1530,8 +1530,8 @@ determinant with the inverse:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org22114b8" class="outline-3">
|
||||
<h3 id="org22114b8"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
||||
<div id="outline-container-orga7474d2" class="outline-3">
|
||||
<h3 id="orga7474d2"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
<p>
|
||||
"Size-safe" proxy function with the same functionality as <code>qmckl_adjugate</code>
|
||||
@ -1541,7 +1541,7 @@ NumPy arrays implies that sizes of the input and output arrays are provided.
|
||||
</p>
|
||||
|
||||
|
||||
<table id="org80cd35f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgeeeed75" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1663,13 +1663,13 @@ LAPACK library.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge6ea302" class="outline-4">
|
||||
<h4 id="orge6ea302"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
<div id="outline-container-org9dd147d" class="outline-4">
|
||||
<h4 id="org9dd147d"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3c9d08d" class="outline-3">
|
||||
<h3 id="org3c9d08d"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
||||
<div id="outline-container-org6a8475a" class="outline-3">
|
||||
<h3 id="org6a8475a"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
||||
@ -1732,7 +1732,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-11-17 Thu 13:51</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</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-11-17 Thu 13:51 -->
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<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="#org863145c">1. Context handling</a>
|
||||
<li><a href="#org7196b40">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#orgd800f64">1.1. Data structure</a></li>
|
||||
<li><a href="#org5368f93">1.2. Creation</a></li>
|
||||
<li><a href="#org5e60cb8">1.3. Locking</a></li>
|
||||
<li><a href="#org4814289">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org602ab8d">1.5. Destroy</a></li>
|
||||
<li><a href="#org874864e">1.1. Data structure</a></li>
|
||||
<li><a href="#org88d296c">1.2. Creation</a></li>
|
||||
<li><a href="#org6715cca">1.3. Locking</a></li>
|
||||
<li><a href="#orgb3642f4">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org929a4bd">1.5. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org863145c" class="outline-2">
|
||||
<h2 id="org863145c"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-org7196b40" class="outline-2">
|
||||
<h2 id="org7196b40"><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="org53dfb3d"><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="org1e40ead"><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-orgd800f64" class="outline-3">
|
||||
<h3 id="orgd800f64"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org874864e" class="outline-3">
|
||||
<h3 id="org874864e"><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="#org5368f93"><code>qmckl_context_create</code></a> <a href="#org602ab8d"><code>qmckl_context_destroy</code></a> and <a href="#org4814289"><code>qmckl_context_copy</code></a>
|
||||
<a href="#org88d296c"><code>qmckl_context_create</code></a> <a href="#org929a4bd"><code>qmckl_context_destroy</code></a> and <a href="#orgb3642f4"><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-org5368f93" class="outline-3">
|
||||
<h3 id="org5368f93"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-org88d296c" class="outline-3">
|
||||
<h3 id="org88d296c"><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-org5e60cb8" class="outline-3">
|
||||
<h3 id="org5e60cb8"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-org6715cca" class="outline-3">
|
||||
<h3 id="org6715cca"><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-org4814289" class="outline-3">
|
||||
<h3 id="org4814289"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div id="outline-container-orgb3642f4" class="outline-3">
|
||||
<h3 id="orgb3642f4"><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-org602ab8d" class="outline-3">
|
||||
<h3 id="org602ab8d"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-org929a4bd" class="outline-3">
|
||||
<h3 id="org929a4bd"><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-11-17 Thu 13:51</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</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-11-17 Thu 13:51 -->
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<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="#org9173501">1. Context</a>
|
||||
<li><a href="#org0fb913e">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org632b941">1.1. Data structure</a></li>
|
||||
<li><a href="#org008cd2a">1.2. Access functions</a></li>
|
||||
<li><a href="#org770c033">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org3c3caa8">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#org01a9f99">1.5. Test</a></li>
|
||||
<li><a href="#org04a8c47">1.1. Data structure</a></li>
|
||||
<li><a href="#org0a08b4c">1.2. Access functions</a></li>
|
||||
<li><a href="#org0e93916">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org392978a">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#org5918d09">1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9c643d1">2. Computation</a>
|
||||
<li><a href="#orgd356032">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgfc14281">2.1. Determinant matrix</a>
|
||||
<li><a href="#org6c3848d">2.1. Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org64b5ba0">2.1.1. Get</a></li>
|
||||
<li><a href="#org41471f8">2.1.2. Provide</a></li>
|
||||
<li><a href="#org622d767">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#orgb12db3f">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#org94185be">2.1.5. Test</a></li>
|
||||
<li><a href="#org0afaa4f">2.1.1. Get</a></li>
|
||||
<li><a href="#org83d7459">2.1.2. Provide</a></li>
|
||||
<li><a href="#org50ee4d3">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#org2d6139c">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#orgc0bc611">2.1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb5e878d">2.2. Inverse of Determinant matrix</a>
|
||||
<li><a href="#orgc4f455e">2.2. Inverse of Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#orgbc31c91">2.2.1. Get</a></li>
|
||||
<li><a href="#org98e9e62">2.2.2. Provide</a></li>
|
||||
<li><a href="#org8e72b61">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#orgdd46a28">2.2.4. Compute beta</a></li>
|
||||
<li><a href="#orgcda751b">2.2.1. Get</a></li>
|
||||
<li><a href="#orgc38493b">2.2.2. Provide</a></li>
|
||||
<li><a href="#org7bca945">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#org21dd948">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-org9173501" class="outline-2">
|
||||
<h2 id="org9173501"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org0fb913e" class="outline-2">
|
||||
<h2 id="org0fb913e"><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:
|
||||
@ -522,8 +522,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org632b941" class="outline-3">
|
||||
<h3 id="org632b941"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org04a8c47" class="outline-3">
|
||||
<h3 id="org04a8c47"><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> {
|
||||
@ -591,8 +591,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org008cd2a" class="outline-3">
|
||||
<h3 id="org008cd2a"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org0a08b4c" class="outline-3">
|
||||
<h3 id="org0a08b4c"><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
|
||||
@ -606,8 +606,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org770c033" class="outline-3">
|
||||
<h3 id="org770c033"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org0e93916" class="outline-3">
|
||||
<h3 id="org0e93916"><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
|
||||
@ -630,24 +630,24 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3c3caa8" class="outline-3">
|
||||
<h3 id="org3c3caa8"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
<div id="outline-container-org392978a" class="outline-3">
|
||||
<h3 id="org392978a"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
</div>
|
||||
<div id="outline-container-org01a9f99" class="outline-3">
|
||||
<h3 id="org01a9f99"><span class="section-number-3">1.5</span> Test</h3>
|
||||
<div id="outline-container-org5918d09" class="outline-3">
|
||||
<h3 id="org5918d09"><span class="section-number-3">1.5</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org9c643d1" class="outline-2">
|
||||
<h2 id="org9c643d1"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orgd356032" class="outline-2">
|
||||
<h2 id="orgd356032"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgfc14281" class="outline-3">
|
||||
<h3 id="orgfc14281"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
||||
<div id="outline-container-org6c3848d" class="outline-3">
|
||||
<h3 id="org6c3848d"><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-org64b5ba0" class="outline-4">
|
||||
<h4 id="org64b5ba0"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org0afaa4f" class="outline-4">
|
||||
<h4 id="org0afaa4f"><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>);
|
||||
@ -657,14 +657,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org41471f8" class="outline-4">
|
||||
<h4 id="org41471f8"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org83d7459" class="outline-4">
|
||||
<h4 id="org83d7459"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org622d767" class="outline-4">
|
||||
<h4 id="org622d767"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org50ee4d3" class="outline-4">
|
||||
<h4 id="org50ee4d3"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="org6eb8667" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org285002e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -838,10 +838,10 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb12db3f" class="outline-4">
|
||||
<h4 id="orgb12db3f"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org2d6139c" class="outline-4">
|
||||
<h4 id="org2d6139c"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<table id="org14fe973" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf5e9d7f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1015,18 +1015,18 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org94185be" class="outline-4">
|
||||
<h4 id="org94185be"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
<div id="outline-container-orgc0bc611" class="outline-4">
|
||||
<h4 id="orgc0bc611"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb5e878d" class="outline-3">
|
||||
<h3 id="orgb5e878d"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
||||
<div id="outline-container-orgc4f455e" class="outline-3">
|
||||
<h3 id="orgc4f455e"><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-orgbc31c91" class="outline-4">
|
||||
<h4 id="orgbc31c91"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgcda751b" class="outline-4">
|
||||
<h4 id="orgcda751b"><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>);
|
||||
@ -1040,14 +1040,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org98e9e62" class="outline-4">
|
||||
<h4 id="org98e9e62"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-orgc38493b" class="outline-4">
|
||||
<h4 id="orgc38493b"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8e72b61" class="outline-4">
|
||||
<h4 id="org8e72b61"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org7bca945" class="outline-4">
|
||||
<h4 id="org7bca945"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="orgc41c2da" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4416c06" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1209,10 +1209,10 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdd46a28" class="outline-4">
|
||||
<h4 id="orgdd46a28"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org21dd948" class="outline-4">
|
||||
<h4 id="org21dd948"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<table id="org481b039" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6fef6fa" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1379,7 +1379,7 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 13:51</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</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-11-17 Thu 13:52 -->
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<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="#orgccf646b">1. Squared distance</a>
|
||||
<li><a href="#orgfcf5c6b">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#org12af97f">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#org679c4d0">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgca1dc57">1.1.1. Performance</a></li>
|
||||
<li><a href="#orge8a5b9b">1.1.1. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5f89cb0">2. Distance</a>
|
||||
<li><a href="#orgb55291d">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org3b20974">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#orga0173b2">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#org20f89d1">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org3792018">2.1.2. C header</a></li>
|
||||
<li><a href="#org9ba9579">2.1.3. Source</a></li>
|
||||
<li><a href="#orgabe8215">2.1.4. Performance</a></li>
|
||||
<li><a href="#org6507af6">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orga8a1c69">2.1.2. C header</a></li>
|
||||
<li><a href="#orgd9b5ba4">2.1.3. Source</a></li>
|
||||
<li><a href="#org727e786">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org48926f7">3. Rescaled Distance</a>
|
||||
<li><a href="#org67d6af5">3. Rescaled Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org3e2b7d8">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<li><a href="#org653d8fe">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgf7c250b">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org1d94683">3.1.2. C header</a></li>
|
||||
<li><a href="#orgf19f275">3.1.3. Source</a></li>
|
||||
<li><a href="#orge51574e">3.1.4. Performance</a></li>
|
||||
<li><a href="#org34289b5">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org776dabc">3.1.2. C header</a></li>
|
||||
<li><a href="#orgf8dd1d5">3.1.3. Source</a></li>
|
||||
<li><a href="#org10a7f37">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org765ae0f">4. Rescaled Distance Derivatives</a>
|
||||
<li><a href="#orga1ad34d">4. Rescaled Distance Derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#orgaeb61b4">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a></li>
|
||||
<li><a href="#orga408562">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgccf646b" class="outline-2">
|
||||
<h2 id="orgccf646b"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-orgfcf5c6b" class="outline-2">
|
||||
<h2 id="orgfcf5c6b"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org12af97f" class="outline-3">
|
||||
<h3 id="org12af97f"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-org679c4d0" class="outline-3">
|
||||
<h3 id="org679c4d0"><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="orgeaa27cf" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1281801" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -659,8 +659,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgca1dc57" class="outline-4">
|
||||
<h4 id="orgca1dc57"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div id="outline-container-orge8a5b9b" class="outline-4">
|
||||
<h4 id="orge8a5b9b"><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-org5f89cb0" class="outline-2">
|
||||
<h2 id="org5f89cb0"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-orgb55291d" class="outline-2">
|
||||
<h2 id="orgb55291d"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org3b20974" class="outline-3">
|
||||
<h3 id="org3b20974"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div id="outline-container-orga0173b2" class="outline-3">
|
||||
<h3 id="orga0173b2"><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="orgbc9c822" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1d35e58" 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-org20f89d1" class="outline-4">
|
||||
<h4 id="org20f89d1"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org6507af6" class="outline-4">
|
||||
<h4 id="org6507af6"><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-org3792018" class="outline-4">
|
||||
<h4 id="org3792018"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-orga8a1c69" class="outline-4">
|
||||
<h4 id="orga8a1c69"><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-org9ba9579" class="outline-4">
|
||||
<h4 id="org9ba9579"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgd9b5ba4" class="outline-4">
|
||||
<h4 id="orgd9b5ba4"><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-orgabe8215" class="outline-4">
|
||||
<h4 id="orgabe8215"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org727e786" class="outline-4">
|
||||
<h4 id="org727e786"><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-org48926f7" class="outline-2">
|
||||
<h2 id="org48926f7"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div id="outline-container-org67d6af5" class="outline-2">
|
||||
<h2 id="org67d6af5"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org3e2b7d8" class="outline-3">
|
||||
<h3 id="org3e2b7d8"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div id="outline-container-org653d8fe" class="outline-3">
|
||||
<h3 id="org653d8fe"><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="org9494605" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org07ff5e6" 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-orgf7c250b" class="outline-4">
|
||||
<h4 id="orgf7c250b"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org34289b5" class="outline-4">
|
||||
<h4 id="org34289b5"><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-org1d94683" class="outline-4">
|
||||
<h4 id="org1d94683"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-org776dabc" class="outline-4">
|
||||
<h4 id="org776dabc"><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-orgf19f275" class="outline-4">
|
||||
<h4 id="orgf19f275"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgf8dd1d5" class="outline-4">
|
||||
<h4 id="orgf8dd1d5"><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-orge51574e" class="outline-4">
|
||||
<h4 id="orge51574e"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org10a7f37" class="outline-4">
|
||||
<h4 id="org10a7f37"><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-org765ae0f" class="outline-2">
|
||||
<h2 id="org765ae0f"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div id="outline-container-orga1ad34d" class="outline-2">
|
||||
<h2 id="orga1ad34d"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-orgaeb61b4" class="outline-3">
|
||||
<h3 id="orgaeb61b4"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_deriv_e</code></h3>
|
||||
<div id="outline-container-orga408562" class="outline-3">
|
||||
<h3 id="orga408562"><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="org14fff92" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5d674b2" 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-11-17 Thu 13:52</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</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-11-17 Thu 13:51 -->
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<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,59 +333,59 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgce5cd44">1. Context</a>
|
||||
<li><a href="#orgce5fbc6">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgbdd2034">1.1. Data structure</a></li>
|
||||
<li><a href="#orgc1665e1">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org24ebdac">1.3. Access functions</a>
|
||||
<li><a href="#org4d05c75">1.1. Data structure</a></li>
|
||||
<li><a href="#org7b4b58e">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org6018393">1.3. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org04e9b72">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#org8edc441">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#org0a9bfc8">1.3.3. Electron coordinates</a></li>
|
||||
<li><a href="#org582dc8e">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#orgd13bee3">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#org2c49047">1.3.3. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb985e98">1.4. Test</a></li>
|
||||
<li><a href="#org66c2935">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5239e19">2. Computation</a>
|
||||
<li><a href="#orgecdc31d">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org1d5be8a">2.1. Electron-electron distances</a>
|
||||
<li><a href="#orgc416adb">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#org9fa7b67">2.1.1. Get</a></li>
|
||||
<li><a href="#orgfce693a">2.1.2. Compute</a></li>
|
||||
<li><a href="#org3ffceee">2.1.3. Test</a></li>
|
||||
<li><a href="#orgc670246">2.1.1. Get</a></li>
|
||||
<li><a href="#orgcc169bf">2.1.2. Compute</a></li>
|
||||
<li><a href="#orge312541">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga4aa2a3">2.2. Electron-electron potential</a>
|
||||
<li><a href="#orga4873e5">2.2. Electron-electron potential</a>
|
||||
<ul>
|
||||
<li><a href="#org1b17a3d">2.2.1. Get</a></li>
|
||||
<li><a href="#org491890b">2.2.2. Compute</a></li>
|
||||
<li><a href="#org0a31318">2.2.3. Test</a></li>
|
||||
<li><a href="#orgb77f075">2.2.1. Get</a></li>
|
||||
<li><a href="#org7b7f4cd">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgfec87fc">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org848e136">2.3. Electron-nucleus distances</a>
|
||||
<li><a href="#org7c01aa2">2.3. Electron-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org1a3a1d4">2.3.1. Get</a></li>
|
||||
<li><a href="#org90c48eb">2.3.2. Compute</a></li>
|
||||
<li><a href="#org62e8738">2.3.3. Test</a></li>
|
||||
<li><a href="#org8f82895">2.3.1. Get</a></li>
|
||||
<li><a href="#orge526149">2.3.2. Compute</a></li>
|
||||
<li><a href="#orgd7e9135">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9102ed1">2.4. Electron-nucleus potential</a>
|
||||
<li><a href="#org611340f">2.4. Electron-nucleus potential</a>
|
||||
<ul>
|
||||
<li><a href="#org5f2851f">2.4.1. Get</a></li>
|
||||
<li><a href="#orgf53d334">2.4.2. Compute</a></li>
|
||||
<li><a href="#orge847718">2.4.3. Test</a></li>
|
||||
<li><a href="#org813ff84">2.4.1. Get</a></li>
|
||||
<li><a href="#orga93d954">2.4.2. Compute</a></li>
|
||||
<li><a href="#orgf267621">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf546c58">2.5. Generate initial coordinates</a></li>
|
||||
<li><a href="#org1e34af4">2.5. Generate initial coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgce5cd44" class="outline-2">
|
||||
<h2 id="orgce5cd44"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgce5fbc6" class="outline-2">
|
||||
<h2 id="orgce5fbc6"><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:
|
||||
@ -526,8 +526,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbdd2034" class="outline-3">
|
||||
<h3 id="orgbdd2034"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org4d05c75" class="outline-3">
|
||||
<h3 id="org4d05c75"><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">
|
||||
@ -596,8 +596,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc1665e1" class="outline-3">
|
||||
<h3 id="orgc1665e1"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-org7b4b58e" class="outline-3">
|
||||
<h3 id="org7b4b58e"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To set the data relative to the electrons in the context, the
|
||||
@ -670,8 +670,8 @@ in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org24ebdac" class="outline-3">
|
||||
<h3 id="org24ebdac"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div id="outline-container-org6018393" class="outline-3">
|
||||
<h3 id="org6018393"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
Access functions return <code>QMCKL_SUCCESS</code> when the data has been
|
||||
@ -683,12 +683,12 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org04e9b72" class="outline-4">
|
||||
<h4 id="org04e9b72"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
<div id="outline-container-org582dc8e" class="outline-4">
|
||||
<h4 id="org582dc8e"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8edc441" class="outline-4">
|
||||
<h4 id="org8edc441"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
||||
<div id="outline-container-orgd13bee3" class="outline-4">
|
||||
<h4 id="orgd13bee3"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
||||
<div class="outline-text-4" id="text-1-3-2">
|
||||
<p>
|
||||
A walker is a set of electron coordinates that are arguments of
|
||||
@ -697,8 +697,8 @@ the wave function. <code>walk_num</code> is the number of walkers.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0a9bfc8" class="outline-4">
|
||||
<h4 id="org0a9bfc8"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
||||
<div id="outline-container-org2c49047" class="outline-4">
|
||||
<h4 id="org2c49047"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-3-3">
|
||||
<p>
|
||||
Returns the current electron coordinates. The pointer is assumed
|
||||
@ -748,8 +748,8 @@ current points.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb985e98" class="outline-3">
|
||||
<h3 id="orgb985e98"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org66c2935" class="outline-3">
|
||||
<h3 id="org66c2935"><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>*/
|
||||
@ -828,8 +828,8 @@ rc = qmckl_get_electron_coord (context, <span style="color: #8b2252;">'N'</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5239e19" class="outline-2">
|
||||
<h2 id="org5239e19"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orgecdc31d" class="outline-2">
|
||||
<h2 id="orgecdc31d"><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
|
||||
@ -842,12 +842,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1d5be8a" class="outline-3">
|
||||
<h3 id="org1d5be8a"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-orgc416adb" class="outline-3">
|
||||
<h3 id="orgc416adb"><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-org9fa7b67" class="outline-4">
|
||||
<h4 id="org9fa7b67"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orgc670246" class="outline-4">
|
||||
<h4 id="orgc670246"><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>);
|
||||
@ -856,10 +856,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfce693a" class="outline-4">
|
||||
<h4 id="orgfce693a"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-orgcc169bf" class="outline-4">
|
||||
<h4 id="orgcc169bf"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org86b540a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf59e712" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -964,8 +964,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3ffceee" class="outline-4">
|
||||
<h4 id="org3ffceee"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orge312541" class="outline-4">
|
||||
<h4 id="orge312541"><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>));
|
||||
@ -999,8 +999,8 @@ rc = qmckl_get_electron_ee_distance(context, ee_distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga4aa2a3" class="outline-3">
|
||||
<h3 id="orga4aa2a3"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
||||
<div id="outline-container-orga4873e5" class="outline-3">
|
||||
<h3 id="orga4873e5"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
<code>ee_potential</code> is given by
|
||||
@ -1018,8 +1018,8 @@ distance.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1b17a3d" class="outline-4">
|
||||
<h4 id="org1b17a3d"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgb77f075" class="outline-4">
|
||||
<h4 id="orgb77f075"><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_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_potential</span>);
|
||||
@ -1028,10 +1028,10 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org491890b" class="outline-4">
|
||||
<h4 id="org491890b"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org7b7f4cd" class="outline-4">
|
||||
<h4 id="org7b7f4cd"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orgbdda5ba" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3c9268c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1147,8 +1147,8 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0a31318" class="outline-4">
|
||||
<h4 id="org0a31318"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-orgfec87fc" class="outline-4">
|
||||
<h4 id="orgfec87fc"><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: #228b22;">double</span> <span style="color: #a0522d;">ee_potential</span>[walk_num];
|
||||
@ -1160,12 +1160,12 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org848e136" class="outline-3">
|
||||
<h3 id="org848e136"><span class="section-number-3">2.3</span> Electron-nucleus distances</h3>
|
||||
<div id="outline-container-org7c01aa2" class="outline-3">
|
||||
<h3 id="org7c01aa2"><span class="section-number-3">2.3</span> Electron-nucleus distances</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
</div>
|
||||
<div id="outline-container-org1a3a1d4" class="outline-4">
|
||||
<h4 id="org1a3a1d4"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org8f82895" class="outline-4">
|
||||
<h4 id="org8f82895"><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_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>);
|
||||
@ -1174,10 +1174,10 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org90c48eb" class="outline-4">
|
||||
<h4 id="org90c48eb"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-orge526149" class="outline-4">
|
||||
<h4 id="orge526149"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org6d4dbf0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5024d33" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1302,8 +1302,8 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org62e8738" class="outline-4">
|
||||
<h4 id="org62e8738"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-orgd7e9135" class="outline-4">
|
||||
<h4 id="orgd7e9135"><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">
|
||||
@ -1351,8 +1351,8 @@ rc = qmckl_get_electron_en_distance(context, &(en_distance[0][0][0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9102ed1" class="outline-3">
|
||||
<h3 id="org9102ed1"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
||||
<div id="outline-container-org611340f" class="outline-3">
|
||||
<h3 id="org611340f"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
<code>en_potential</code> stores the <code>en</code> potential energy
|
||||
@ -1370,8 +1370,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5f2851f" class="outline-4">
|
||||
<h4 id="org5f2851f"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org813ff84" class="outline-4">
|
||||
<h4 id="org813ff84"><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_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_potential</span>);
|
||||
@ -1380,10 +1380,10 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf53d334" class="outline-4">
|
||||
<h4 id="orgf53d334"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-orga93d954" class="outline-4">
|
||||
<h4 id="orga93d954"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="org28e547b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org506adb1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1517,8 +1517,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge847718" class="outline-4">
|
||||
<h4 id="orge847718"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-orgf267621" class="outline-4">
|
||||
<h4 id="orgf267621"><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;">en_potential</span>[walk_num];
|
||||
@ -1531,14 +1531,14 @@ rc = qmckl_get_electron_en_potential(context, &(en_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf546c58" class="outline-3">
|
||||
<h3 id="orgf546c58"><span class="section-number-3">2.5</span> Generate initial coordinates</h3>
|
||||
<div id="outline-container-org1e34af4" class="outline-3">
|
||||
<h3 id="org1e34af4"><span class="section-number-3">2.5</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-11-17 Thu 13:51</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</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-11-17 Thu 13:51 -->
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<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,29 +311,29 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgbec6fae">-</a></li>
|
||||
<li><a href="#orgb151551">1. Decoding errors</a></li>
|
||||
<li><a href="#org63a702b">2. Data structure in context</a></li>
|
||||
<li><a href="#org3db830b">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org80177f7">4. Get the error</a></li>
|
||||
<li><a href="#orge9ec11c">5. Failing</a></li>
|
||||
<li><a href="#orgd697896">6. Last error</a>
|
||||
<li><a href="#orgc3270d7">-</a></li>
|
||||
<li><a href="#org9a1adad">1. Decoding errors</a></li>
|
||||
<li><a href="#org0189fd4">2. Data structure in context</a></li>
|
||||
<li><a href="#org3f643ee">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org042163e">4. Get the error</a></li>
|
||||
<li><a href="#orga32900c">5. Failing</a></li>
|
||||
<li><a href="#org2b751de">6. Last error</a>
|
||||
<ul>
|
||||
<li><a href="#org90a42b4">6.1. Fortran inteface</a></li>
|
||||
<li><a href="#org0995826">6.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9abd7d7">7. Helper functions for debugging</a>
|
||||
<li><a href="#org223cf42">7. Helper functions for debugging</a>
|
||||
<ul>
|
||||
<li><a href="#org5885d8d">7.1. Fortran inteface</a></li>
|
||||
<li><a href="#org2f490ad">7.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbec6fae" class="outline-2">
|
||||
<h2 id="orgbec6fae">-</h2>
|
||||
<div class="outline-text-2" id="text-orgbec6fae">
|
||||
<div id="outline-container-orgc3270d7" class="outline-2">
|
||||
<h2 id="orgc3270d7">-</h2>
|
||||
<div class="outline-text-2" id="text-orgc3270d7">
|
||||
<p>
|
||||
The library should never make the calling programs abort, nor
|
||||
perform any input/output operations. This decision has to be taken
|
||||
@ -344,7 +344,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="orgb84e0d3"><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="org6d6f311"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int32_t</span> <span style="color: #228b22;">qmckl_exit_code</span>;
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -361,7 +361,7 @@ error code is returned to the program.
|
||||
Here is the complete list of exit codes.
|
||||
</p>
|
||||
|
||||
<table id="orgb40b1c7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org41fb57c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -569,8 +569,8 @@ string is assumed to be large enough to contain the error message
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb151551" class="outline-2">
|
||||
<h2 id="orgb151551"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-org9a1adad" class="outline-2">
|
||||
<h2 id="org9a1adad"><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
|
||||
@ -588,8 +588,8 @@ The text strings are extracted from the previous table.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org63a702b" class="outline-2">
|
||||
<h2 id="org63a702b"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-org0189fd4" class="outline-2">
|
||||
<h2 id="org0189fd4"><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
|
||||
@ -612,8 +612,8 @@ dynamic memory allocation.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3db830b" class="outline-2">
|
||||
<h2 id="org3db830b"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div id="outline-container-org3f643ee" class="outline-2">
|
||||
<h2 id="org3f643ee"><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>.
|
||||
@ -632,8 +632,8 @@ explaining the error. The exit code can't be <code>QMCKL_SUCCESS</code>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org80177f7" class="outline-2">
|
||||
<h2 id="org80177f7"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div id="outline-container-org042163e" class="outline-2">
|
||||
<h2 id="org042163e"><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
|
||||
@ -652,8 +652,8 @@ function name and message is mandatory.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orge9ec11c" class="outline-2">
|
||||
<h2 id="orge9ec11c"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div id="outline-container-orga32900c" class="outline-2">
|
||||
<h2 id="orga32900c"><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
|
||||
@ -690,8 +690,8 @@ For example, this function can be used as
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd697896" class="outline-2">
|
||||
<h2 id="orgd697896"><span class="section-number-2">6</span> Last error</h2>
|
||||
<div id="outline-container-org2b751de" class="outline-2">
|
||||
<h2 id="org2b751de"><span class="section-number-2">6</span> Last error</h2>
|
||||
<div class="outline-text-2" id="text-6">
|
||||
<p>
|
||||
Returns a string describing the last error, using <code>qmckl_get_error</code>.
|
||||
@ -703,13 +703,13 @@ Returns a string describing the last error, using <code>qmckl_get_error</code>.
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org90a42b4" class="outline-3">
|
||||
<h3 id="org90a42b4"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-org0995826" class="outline-3">
|
||||
<h3 id="org0995826"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9abd7d7" class="outline-2">
|
||||
<h2 id="org9abd7d7"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
||||
<div id="outline-container-org223cf42" class="outline-2">
|
||||
<h2 id="org223cf42"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
||||
<div class="outline-text-2" id="text-7">
|
||||
<p>
|
||||
The following function prints to <code>stderr</code> an error message is the return code is
|
||||
@ -735,14 +735,14 @@ It should be used as:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5885d8d" class="outline-3">
|
||||
<h3 id="org5885d8d"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-org2f490ad" class="outline-3">
|
||||
<h3 id="org2f490ad"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 13:51</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</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-11-17 Thu 13:51 -->
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<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="#org85eb880">1. Python</a>
|
||||
<li><a href="#orga848f64">1. Python</a>
|
||||
<ul>
|
||||
<li><a href="#org77bc433">1.1. Check numerically that MOs are orthonormal</a></li>
|
||||
<li><a href="#org5e518ce">1.1. Check numerically that MOs are orthonormal</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgfe69cb2">2. Fortran</a>
|
||||
<li><a href="#org55eb596">2. Fortran</a>
|
||||
<ul>
|
||||
<li><a href="#org3be231f">2.1. Checking errors</a></li>
|
||||
<li><a href="#org16a343f">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
<li><a href="#orgb9b9e85">2.1. Checking errors</a></li>
|
||||
<li><a href="#org77815ea">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org85eb880" class="outline-2">
|
||||
<h2 id="org85eb880"><span class="section-number-2">1</span> Python</h2>
|
||||
<div id="outline-container-orga848f64" class="outline-2">
|
||||
<h2 id="orga848f64"><span class="section-number-2">1</span> Python</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org77bc433" class="outline-3">
|
||||
<h3 id="org77bc433"><span class="section-number-3">1.1</span> Check numerically that MOs are orthonormal</h3>
|
||||
<div id="outline-container-org5e518ce" class="outline-3">
|
||||
<h3 id="org5e518ce"><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-orgfe69cb2" class="outline-2">
|
||||
<h2 id="orgfe69cb2"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div id="outline-container-org55eb596" class="outline-2">
|
||||
<h2 id="org55eb596"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org3be231f" class="outline-3">
|
||||
<h3 id="org3be231f"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div id="outline-container-orgb9b9e85" class="outline-3">
|
||||
<h3 id="orgb9b9e85"><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="orgd3a80a2"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<pre class="src src-f90" id="org7d1df79"><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-org16a343f" class="outline-3">
|
||||
<h3 id="org16a343f"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div id="outline-container-org77815ea" class="outline-3">
|
||||
<h3 id="org77815ea"><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-11-17 Thu 13:51</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
1415
qmckl_jastrow.html
1415
qmckl_jastrow.html
File diff suppressed because it is too large
Load Diff
@ -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-11-17 Thu 13:52 -->
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<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,44 +333,44 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org1c608c6">1. Context</a>
|
||||
<li><a href="#org7df34d1">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgf0f1b10">1.1. Data structure</a></li>
|
||||
<li><a href="#org92e18af">1.2. Access functions</a></li>
|
||||
<li><a href="#org0cd4069">1.1. Data structure</a></li>
|
||||
<li><a href="#org045ad8a">1.2. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgedf36f0">2. Computation</a>
|
||||
<li><a href="#org8a0ec66">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org1957960">2.1. Kinetic energy</a>
|
||||
<li><a href="#org55b0b3b">2.1. Kinetic energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgcd1d2a0">2.1.1. Get</a></li>
|
||||
<li><a href="#org420e695">2.1.2. Provide</a></li>
|
||||
<li><a href="#org6649242">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#orgaf29a82">2.1.4. Test</a></li>
|
||||
<li><a href="#org5cd2c16">2.1.1. Get</a></li>
|
||||
<li><a href="#orga4943a3">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgd386200">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org01a147d">2.1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1dad982">2.2. Potential energy</a>
|
||||
<li><a href="#org556cba9">2.2. Potential energy</a>
|
||||
<ul>
|
||||
<li><a href="#org2509b0d">2.2.1. Get</a></li>
|
||||
<li><a href="#orgeeeed04">2.2.2. Provide</a></li>
|
||||
<li><a href="#org4b44bd8">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org38455ee">2.2.4. Test</a></li>
|
||||
<li><a href="#org5d85b2b">2.2.1. Get</a></li>
|
||||
<li><a href="#orgc959469">2.2.2. Provide</a></li>
|
||||
<li><a href="#orge45246e">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org8b596cc">2.2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7cb799b">2.3. Local energy</a>
|
||||
<li><a href="#org05e95d7">2.3. Local energy</a>
|
||||
<ul>
|
||||
<li><a href="#org4d67ff7">2.3.1. Get</a></li>
|
||||
<li><a href="#orgaa2f506">2.3.2. Provide</a></li>
|
||||
<li><a href="#org9d0620e">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#org58c205f">2.3.4. Test</a></li>
|
||||
<li><a href="#org3ccbe73">2.3.1. Get</a></li>
|
||||
<li><a href="#org3983cd9">2.3.2. Provide</a></li>
|
||||
<li><a href="#org2c6a80d">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#orgc21ce1f">2.3.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbe8eefe">2.4. Drift vector</a>
|
||||
<li><a href="#org7de8da0">2.4. Drift vector</a>
|
||||
<ul>
|
||||
<li><a href="#orgcae44e8">2.4.1. Get</a></li>
|
||||
<li><a href="#orgf38ac06">2.4.2. Provide</a></li>
|
||||
<li><a href="#org9e3e064">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org22c2065">2.4.4. Test</a></li>
|
||||
<li><a href="#orgadcb9bb">2.4.1. Get</a></li>
|
||||
<li><a href="#orgac329df">2.4.2. Provide</a></li>
|
||||
<li><a href="#orgc5ca11b">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#orgc37cc5b">2.4.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -379,8 +379,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1c608c6" class="outline-2">
|
||||
<h2 id="org1c608c6"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org7df34d1" class="outline-2">
|
||||
<h2 id="org7df34d1"><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:
|
||||
@ -453,8 +453,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf0f1b10" class="outline-3">
|
||||
<h3 id="orgf0f1b10"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org0cd4069" class="outline-3">
|
||||
<h3 id="org0cd4069"><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,8 +488,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org92e18af" class="outline-3">
|
||||
<h3 id="org92e18af"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org045ad8a" class="outline-3">
|
||||
<h3 id="org045ad8a"><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 local energy have been provided, the following
|
||||
@ -504,12 +504,12 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgedf36f0" class="outline-2">
|
||||
<h2 id="orgedf36f0"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org8a0ec66" class="outline-2">
|
||||
<h2 id="org8a0ec66"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org1957960" class="outline-3">
|
||||
<h3 id="org1957960"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div id="outline-container-org55b0b3b" class="outline-3">
|
||||
<h3 id="org55b0b3b"><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:
|
||||
@ -533,8 +533,8 @@ case is given as follows:
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcd1d2a0" class="outline-4">
|
||||
<h4 id="orgcd1d2a0"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org5cd2c16" class="outline-4">
|
||||
<h4 id="org5cd2c16"><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>);
|
||||
@ -543,14 +543,14 @@ case is given as follows:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org420e695" class="outline-4">
|
||||
<h4 id="org420e695"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-orga4943a3" class="outline-4">
|
||||
<h4 id="orga4943a3"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6649242" class="outline-4">
|
||||
<h4 id="org6649242"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
||||
<div id="outline-container-orgd386200" class="outline-4">
|
||||
<h4 id="orgd386200"><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="org20d264e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org46ca496" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -779,12 +779,12 @@ case is given as follows:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaf29a82" class="outline-4">
|
||||
<h4 id="orgaf29a82"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
<div id="outline-container-org01a147d" class="outline-4">
|
||||
<h4 id="org01a147d"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org1dad982" class="outline-3">
|
||||
<h3 id="org1dad982"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div id="outline-container-org556cba9" class="outline-3">
|
||||
<h3 id="org556cba9"><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
|
||||
@ -820,8 +820,8 @@ contributions.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2509b0d" class="outline-4">
|
||||
<h4 id="org2509b0d"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org5d85b2b" class="outline-4">
|
||||
<h4 id="org5d85b2b"><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>);
|
||||
@ -830,14 +830,14 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeeeed04" class="outline-4">
|
||||
<h4 id="orgeeeed04"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-orgc959469" class="outline-4">
|
||||
<h4 id="orgc959469"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4b44bd8" class="outline-4">
|
||||
<h4 id="org4b44bd8"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
||||
<div id="outline-container-orge45246e" class="outline-4">
|
||||
<h4 id="orge45246e"><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="org3f3082e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org51a0f78" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -964,12 +964,12 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org38455ee" class="outline-4">
|
||||
<h4 id="org38455ee"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
<div id="outline-container-org8b596cc" class="outline-4">
|
||||
<h4 id="org8b596cc"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org7cb799b" class="outline-3">
|
||||
<h3 id="org7cb799b"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div id="outline-container-org05e95d7" class="outline-3">
|
||||
<h3 id="org05e95d7"><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.
|
||||
@ -983,8 +983,8 @@ E_L = KE + PE
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org4d67ff7" class="outline-4">
|
||||
<h4 id="org4d67ff7"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org3ccbe73" class="outline-4">
|
||||
<h4 id="org3ccbe73"><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>);
|
||||
@ -993,14 +993,14 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaa2f506" class="outline-4">
|
||||
<h4 id="orgaa2f506"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-org3983cd9" class="outline-4">
|
||||
<h4 id="org3983cd9"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9d0620e" class="outline-4">
|
||||
<h4 id="org9d0620e"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
||||
<div id="outline-container-org2c6a80d" class="outline-4">
|
||||
<h4 id="org2c6a80d"><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="org33f68c6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgff70793" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1096,12 +1096,12 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org58c205f" class="outline-4">
|
||||
<h4 id="org58c205f"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
<div id="outline-container-orgc21ce1f" class="outline-4">
|
||||
<h4 id="orgc21ce1f"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgbe8eefe" class="outline-3">
|
||||
<h3 id="orgbe8eefe"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div id="outline-container-org7de8da0" class="outline-3">
|
||||
<h3 id="org7de8da0"><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
|
||||
@ -1115,8 +1115,8 @@ with the determinant of the wavefunction.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcae44e8" class="outline-4">
|
||||
<h4 id="orgcae44e8"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-orgadcb9bb" class="outline-4">
|
||||
<h4 id="orgadcb9bb"><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>);
|
||||
@ -1125,14 +1125,14 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf38ac06" class="outline-4">
|
||||
<h4 id="orgf38ac06"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
<div id="outline-container-orgac329df" class="outline-4">
|
||||
<h4 id="orgac329df"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9e3e064" class="outline-4">
|
||||
<h4 id="org9e3e064"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
||||
<div id="outline-container-orgc5ca11b" class="outline-4">
|
||||
<h4 id="orgc5ca11b"><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="org85a1c53" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc625d1f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1353,15 +1353,15 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org22c2065" class="outline-4">
|
||||
<h4 id="org22c2065"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
<div id="outline-container-orgc37cc5b" class="outline-4">
|
||||
<h4 id="orgc37cc5b"><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-11-17 Thu 13:52</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</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-11-17 Thu 13:52 -->
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<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,16 +311,16 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgc639546">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org8177e20">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orgc5e748d">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#org2cd4a3e">4. Get the size of a memory block</a></li>
|
||||
<li><a href="#org2f45dfa">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org7e4c378">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orgf9b0322">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#org29dad3a">4. Get the size of a memory block</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc639546" class="outline-2">
|
||||
<h2 id="orgc639546"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div id="outline-container-org2f45dfa" class="outline-2">
|
||||
<h2 id="org2f45dfa"><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
|
||||
@ -362,8 +362,8 @@ array, and the number of allocated blocks.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8177e20" class="outline-2">
|
||||
<h2 id="org8177e20"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div id="outline-container-org7e4c378" class="outline-2">
|
||||
<h2 id="org7e4c378"><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
|
||||
@ -372,8 +372,8 @@ passing an instance of a <code>qmckl_memory_info_struct</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc5e748d" class="outline-2">
|
||||
<h2 id="orgc5e748d"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-orgf9b0322" class="outline-2">
|
||||
<h2 id="orgf9b0322"><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
|
||||
@ -537,8 +537,8 @@ allocation and needs to be updated.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org2cd4a3e" class="outline-2">
|
||||
<h2 id="org2cd4a3e"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
||||
<div id="outline-container-org29dad3a" class="outline-2">
|
||||
<h2 id="org29dad3a"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
All the blocks allocated with <code>qmckl_malloc</code> keep track of how many
|
||||
@ -633,7 +633,7 @@ rc = qmckl_context_destroy(context);
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 13:52</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
134
qmckl_mo.html
134
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-11-17 Thu 13:52 -->
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<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,54 +311,54 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgd629739">1. Context</a>
|
||||
<li><a href="#org2c4ffcf">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org7375338">1.1. Data structure</a></li>
|
||||
<li><a href="#org791fc3f">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org9d43731">1.3. Access functions</a>
|
||||
<li><a href="#orgbc18ba1">1.1. Data structure</a></li>
|
||||
<li><a href="#org24b8cf0">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org2d505d8">1.3. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org405a3a5">1.3.1. Fortran interfaces</a></li>
|
||||
<li><a href="#org8d29b74">1.3.1. Fortran interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5f8105e">1.4. Update</a>
|
||||
<li><a href="#org46b6222">1.4. Update</a>
|
||||
<ul>
|
||||
<li><a href="#org54d0c1e">1.4.1. Fortran interface</a></li>
|
||||
<li><a href="#org7700e80">1.4.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb1f8db8">2. Computation</a>
|
||||
<li><a href="#org8181221">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org4b6c637">2.1. Computation of MOs: values only</a>
|
||||
<li><a href="#org1786064">2.1. Computation of MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#org5873150">2.1.1. Get</a></li>
|
||||
<li><a href="#org4477af1">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgae0cded">2.1.3. Compute</a></li>
|
||||
<li><a href="#org33673cd">2.1.4. HPC version</a></li>
|
||||
<li><a href="#org4e8e84b">2.1.1. Get</a></li>
|
||||
<li><a href="#org314831a">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgbf0de63">2.1.3. Compute</a></li>
|
||||
<li><a href="#orgcf29deb">2.1.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5cdcf76">2.2. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<li><a href="#orgdb89c84">2.2. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#orgb0b35f6">2.2.1. Get</a></li>
|
||||
<li><a href="#orgb3fd8a0">2.2.2. Provide</a></li>
|
||||
<li><a href="#org01d5a6d">2.2.3. Compute</a></li>
|
||||
<li><a href="#org6d0cd06">2.2.4. HPC version</a></li>
|
||||
<li><a href="#org88a73fe">2.2.1. Get</a></li>
|
||||
<li><a href="#orgb529fe8">2.2.2. Provide</a></li>
|
||||
<li><a href="#orga257f29">2.2.3. Compute</a></li>
|
||||
<li><a href="#orgecf5212">2.2.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2dcfd4c">2.3. Rescaling of MO coefficients</a>
|
||||
<li><a href="#orgab6e322">2.3. Rescaling of MO coefficients</a>
|
||||
<ul>
|
||||
<li><a href="#org95cae9b">2.3.1. Fortran interface</a></li>
|
||||
<li><a href="#org7448dc9">2.3.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbb5f3a4">2.4. Test</a></li>
|
||||
<li><a href="#org4b2106f">2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd629739" class="outline-2">
|
||||
<h2 id="orgd629739"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org2c4ffcf" class="outline-2">
|
||||
<h2 id="org2c4ffcf"><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:
|
||||
@ -438,8 +438,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7375338" class="outline-3">
|
||||
<h3 id="org7375338"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgbc18ba1" class="outline-3">
|
||||
<h3 id="orgbc18ba1"><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> {
|
||||
@ -491,8 +491,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org791fc3f" class="outline-3">
|
||||
<h3 id="org791fc3f"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-org24b8cf0" class="outline-3">
|
||||
<h3 id="org24b8cf0"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To set the basis set, all the following functions need to be
|
||||
@ -512,8 +512,8 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9d43731" class="outline-3">
|
||||
<h3 id="org9d43731"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div id="outline-container-org2d505d8" class="outline-3">
|
||||
<h3 id="org2d505d8"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
When all the data for the AOs have been provided, the following
|
||||
@ -526,13 +526,13 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org405a3a5" class="outline-4">
|
||||
<h4 id="org405a3a5"><span class="section-number-4">1.3.1</span> Fortran interfaces</h4>
|
||||
<div id="outline-container-org8d29b74" class="outline-4">
|
||||
<h4 id="org8d29b74"><span class="section-number-4">1.3.1</span> Fortran interfaces</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5f8105e" class="outline-3">
|
||||
<h3 id="org5f8105e"><span class="section-number-3">1.4</span> Update</h3>
|
||||
<div id="outline-container-org46b6222" class="outline-3">
|
||||
<h3 id="org46b6222"><span class="section-number-3">1.4</span> Update</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
Useless MOs can be removed, for instance virtual MOs in a single
|
||||
@ -553,22 +553,22 @@ otherwise it is kept.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org54d0c1e" class="outline-4">
|
||||
<h4 id="org54d0c1e"><span class="section-number-4">1.4.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-org7700e80" class="outline-4">
|
||||
<h4 id="org7700e80"><span class="section-number-4">1.4.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb1f8db8" class="outline-2">
|
||||
<h2 id="orgb1f8db8"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org8181221" class="outline-2">
|
||||
<h2 id="org8181221"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org4b6c637" class="outline-3">
|
||||
<h3 id="org4b6c637"><span class="section-number-3">2.1</span> Computation of MOs: values only</h3>
|
||||
<div id="outline-container-org1786064" class="outline-3">
|
||||
<h3 id="org1786064"><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-org5873150" class="outline-4">
|
||||
<h4 id="org5873150"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org4e8e84b" class="outline-4">
|
||||
<h4 id="org4e8e84b"><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>
|
||||
@ -592,8 +592,8 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4477af1" class="outline-4">
|
||||
<h4 id="org4477af1"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org314831a" class="outline-4">
|
||||
<h4 id="org314831a"><span class="section-number-4">2.1.2</span> Provide</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_provide_mo_basis_mo_value</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>);
|
||||
@ -678,10 +678,10 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgae0cded" class="outline-4">
|
||||
<h4 id="orgae0cded"><span class="section-number-4">2.1.3</span> Compute</h4>
|
||||
<div id="outline-container-orgbf0de63" class="outline-4">
|
||||
<h4 id="orgbf0de63"><span class="section-number-4">2.1.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="org01824c7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6cc86df" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -855,8 +855,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org33673cd" class="outline-4">
|
||||
<h4 id="org33673cd"><span class="section-number-4">2.1.4</span> HPC version</h4>
|
||||
<div id="outline-container-orgcf29deb" class="outline-4">
|
||||
<h4 id="orgcf29deb"><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
|
||||
@ -949,12 +949,12 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5cdcf76" class="outline-3">
|
||||
<h3 id="org5cdcf76"><span class="section-number-3">2.2</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-orgdb89c84" class="outline-3">
|
||||
<h3 id="orgdb89c84"><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-orgb0b35f6" class="outline-4">
|
||||
<h4 id="orgb0b35f6"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org88a73fe" class="outline-4">
|
||||
<h4 id="org88a73fe"><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>
|
||||
@ -978,8 +978,8 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb3fd8a0" class="outline-4">
|
||||
<h4 id="orgb3fd8a0"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-orgb529fe8" class="outline-4">
|
||||
<h4 id="orgb529fe8"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_provide_mo_basis_mo_vgl</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>);
|
||||
@ -1063,10 +1063,10 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org01d5a6d" class="outline-4">
|
||||
<h4 id="org01d5a6d"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div id="outline-container-orga257f29" class="outline-4">
|
||||
<h4 id="orga257f29"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org413f3e8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2cef08b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1238,8 +1238,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6d0cd06" class="outline-4">
|
||||
<h4 id="org6d0cd06"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
||||
<div id="outline-container-orgecf5212" class="outline-4">
|
||||
<h4 id="orgecf5212"><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
|
||||
@ -1385,8 +1385,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2dcfd4c" class="outline-3">
|
||||
<h3 id="org2dcfd4c"><span class="section-number-3">2.3</span> Rescaling of MO coefficients</h3>
|
||||
<div id="outline-container-orgab6e322" class="outline-3">
|
||||
<h3 id="orgab6e322"><span class="section-number-3">2.3</span> Rescaling of MO coefficients</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
When evaluating Slater determinants, the value of the determinants
|
||||
@ -1403,19 +1403,19 @@ correct range.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org95cae9b" class="outline-4">
|
||||
<h4 id="org95cae9b"><span class="section-number-4">2.3.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-org7448dc9" class="outline-4">
|
||||
<h4 id="org7448dc9"><span class="section-number-4">2.3.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbb5f3a4" class="outline-3">
|
||||
<h3 id="orgbb5f3a4"><span class="section-number-3">2.4</span> Test</h3>
|
||||
<div id="outline-container-org4b2106f" class="outline-3">
|
||||
<h3 id="org4b2106f"><span class="section-number-3">2.4</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 13:52</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</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-11-17 Thu 13:51 -->
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<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,28 +333,28 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org1bf77ac">1. Context</a>
|
||||
<li><a href="#orge3b8d66">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgd40752e">1.1. Data structure</a></li>
|
||||
<li><a href="#orgf9d45ff">1.2. Access functions</a></li>
|
||||
<li><a href="#orgbeb871a">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgf1507a8">1.4. Test</a></li>
|
||||
<li><a href="#org3cf8707">1.1. Data structure</a></li>
|
||||
<li><a href="#orge5fefbc">1.2. Access functions</a></li>
|
||||
<li><a href="#org7072343">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgea1b799">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org13cc63b">2. Computation</a>
|
||||
<li><a href="#org8defe5f">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgec41ad0">2.1. Nucleus-nucleus distances</a>
|
||||
<li><a href="#org4381834">2.1. Nucleus-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org4417be0">2.1.1. Get</a></li>
|
||||
<li><a href="#org599b2a0">2.1.2. Compute</a></li>
|
||||
<li><a href="#org24c9516">2.1.3. Test</a></li>
|
||||
<li><a href="#orgaab46b6">2.1.1. Get</a></li>
|
||||
<li><a href="#org5bc2321">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgd9ce7f7">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge5984a6">2.2. Nuclear repulsion energy</a>
|
||||
<li><a href="#org9e4d911">2.2. Nuclear repulsion energy</a>
|
||||
<ul>
|
||||
<li><a href="#orge5365e5">2.2.1. Get</a></li>
|
||||
<li><a href="#org5c87f7c">2.2.2. Compute</a></li>
|
||||
<li><a href="#org135c98c">2.2.3. Test</a></li>
|
||||
<li><a href="#org1e1246c">2.2.1. Get</a></li>
|
||||
<li><a href="#orge11012a">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgc328551">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -363,8 +363,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1bf77ac" class="outline-2">
|
||||
<h2 id="org1bf77ac"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orge3b8d66" class="outline-2">
|
||||
<h2 id="orge3b8d66"><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:
|
||||
@ -461,8 +461,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd40752e" class="outline-3">
|
||||
<h3 id="orgd40752e"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org3cf8707" class="outline-3">
|
||||
<h3 id="org3cf8707"><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> {
|
||||
@ -516,8 +516,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf9d45ff" class="outline-3">
|
||||
<h3 id="orgf9d45ff"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orge5fefbc" class="outline-3">
|
||||
<h3 id="orge5fefbc"><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
|
||||
@ -531,8 +531,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbeb871a" class="outline-3">
|
||||
<h3 id="orgbeb871a"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org7072343" class="outline-3">
|
||||
<h3 id="org7072343"><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
|
||||
@ -578,8 +578,8 @@ are be given in atomic units.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf1507a8" class="outline-3">
|
||||
<h3 id="orgf1507a8"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orgea1b799" class="outline-3">
|
||||
<h3 id="orgea1b799"><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;
|
||||
@ -648,8 +648,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2, chbrclf_nucl_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org13cc63b" class="outline-2">
|
||||
<h2 id="org13cc63b"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org8defe5f" class="outline-2">
|
||||
<h2 id="org8defe5f"><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
|
||||
@ -662,12 +662,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgec41ad0" class="outline-3">
|
||||
<h3 id="orgec41ad0"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div id="outline-container-org4381834" class="outline-3">
|
||||
<h3 id="org4381834"><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-org4417be0" class="outline-4">
|
||||
<h4 id="org4417be0"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orgaab46b6" class="outline-4">
|
||||
<h4 id="orgaab46b6"><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>
|
||||
@ -679,10 +679,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org599b2a0" class="outline-4">
|
||||
<h4 id="org599b2a0"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org5bc2321" class="outline-4">
|
||||
<h4 id="org5bc2321"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orgb40b46b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf4bcf09" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -760,8 +760,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org24c9516" class="outline-4">
|
||||
<h4 id="org24c9516"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orgd9ce7f7" class="outline-4">
|
||||
<h4 id="orgd9ce7f7"><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>*/
|
||||
@ -780,8 +780,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge5984a6" class="outline-3">
|
||||
<h3 id="orge5984a6"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
||||
<div id="outline-container-org9e4d911" class="outline-3">
|
||||
<h3 id="org9e4d911"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
\[
|
||||
@ -790,8 +790,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge5365e5" class="outline-4">
|
||||
<h4 id="orge5365e5"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org1e1246c" class="outline-4">
|
||||
<h4 id="org1e1246c"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_nucleus_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>);
|
||||
@ -800,10 +800,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5c87f7c" class="outline-4">
|
||||
<h4 id="org5c87f7c"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-orge11012a" class="outline-4">
|
||||
<h4 id="orge11012a"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="org9a1725b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org370378c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -893,8 +893,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org135c98c" class="outline-4">
|
||||
<h4 id="org135c98c"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-orgc328551" class="outline-4">
|
||||
<h4 id="orgc328551"><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>*/
|
||||
@ -914,7 +914,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-11-17 Thu 13:51</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</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-11-17 Thu 13:52 -->
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<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="#orgafd08a4">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org2e789d0">2. Precision</a></li>
|
||||
<li><a href="#org9720818">3. Range</a></li>
|
||||
<li><a href="#orgf15784d">4. Helper functions</a></li>
|
||||
<li><a href="#org258e50f">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org60d2adb">2. Precision</a></li>
|
||||
<li><a href="#orgb813b85">3. Range</a></li>
|
||||
<li><a href="#orgb8c853b">4. Helper functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgafd08a4" class="outline-2">
|
||||
<h2 id="orgafd08a4"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-org258e50f" class="outline-2">
|
||||
<h2 id="org258e50f"><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="org28b352a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd45b30e" 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-org2e789d0" class="outline-2">
|
||||
<h2 id="org2e789d0"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-org60d2adb" class="outline-2">
|
||||
<h2 id="org60d2adb"><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-org9720818" class="outline-2">
|
||||
<h2 id="org9720818"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-orgb813b85" class="outline-2">
|
||||
<h2 id="orgb813b85"><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-orgf15784d" class="outline-2">
|
||||
<h2 id="orgf15784d"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-orgb8c853b" class="outline-2">
|
||||
<h2 id="orgb8c853b"><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-11-17 Thu 13:52</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</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-11-17 Thu 13:51 -->
|
||||
<!-- 2022-11-17 Thu 18:26 -->
|
||||
<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="#org18fa36e">1. Context</a>
|
||||
<li><a href="#org7b40614">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org1b2121f">1.1. Data structure</a></li>
|
||||
<li><a href="#orgbfbc137">1.2. Access functions</a>
|
||||
<li><a href="#org2649e86">1.1. Data structure</a></li>
|
||||
<li><a href="#org2ab4352">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgcd48ea2">1.2.1. Number of points</a></li>
|
||||
<li><a href="#org692c718">1.2.2. Point coordinates</a></li>
|
||||
<li><a href="#orga4ac632">1.2.1. Number of points</a></li>
|
||||
<li><a href="#org4ecc5b6">1.2.2. Point coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb3e3749">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org21fff7e">1.4. Test</a></li>
|
||||
<li><a href="#org0f98f02">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org54ab09a">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org18fa36e" class="outline-2">
|
||||
<h2 id="org18fa36e"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org7b40614" class="outline-2">
|
||||
<h2 id="org7b40614"><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-org1b2121f" class="outline-3">
|
||||
<h3 id="org1b2121f"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org2649e86" class="outline-3">
|
||||
<h3 id="org2649e86"><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-orgbfbc137" class="outline-3">
|
||||
<h3 id="orgbfbc137"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org2ab4352" class="outline-3">
|
||||
<h3 id="org2ab4352"><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-orgcd48ea2" class="outline-4">
|
||||
<h4 id="orgcd48ea2"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div id="outline-container-orga4ac632" class="outline-4">
|
||||
<h4 id="orga4ac632"><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-org692c718" class="outline-4">
|
||||
<h4 id="org692c718"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div id="outline-container-org4ecc5b6" class="outline-4">
|
||||
<h4 id="org4ecc5b6"><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-orgb3e3749" class="outline-3">
|
||||
<h3 id="orgb3e3749"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org0f98f02" class="outline-3">
|
||||
<h3 id="org0f98f02"><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
|
||||
@ -635,8 +635,8 @@ Copy a sequence of <code>num</code> points \((x,y,z)\) into the context.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org21fff7e" class="outline-3">
|
||||
<h3 id="org21fff7e"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org54ab09a" class="outline-3">
|
||||
<h3 id="org54ab09a"><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>*/
|
||||
@ -695,7 +695,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-11-17 Thu 13:51</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:26</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-11-17 Thu 13:52 -->
|
||||
<!-- 2022-11-17 Thu 18:27 -->
|
||||
<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="#org4491e29">1. Headers</a></li>
|
||||
<li><a href="#orgda52269">2. Naïve Sherman-Morrison</a>
|
||||
<li><a href="#org559a417">1. Headers</a></li>
|
||||
<li><a href="#orgbfc23e9">2. Naïve Sherman-Morrison</a>
|
||||
<ul>
|
||||
<li><a href="#orged7a3fb">2.1. <code>qmckl_sherman_morrison</code></a>
|
||||
<li><a href="#orgbaf6a06">2.1. <code>qmckl_sherman_morrison</code></a>
|
||||
<ul>
|
||||
<li><a href="#org89c89cf">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org6e4bf56">2.1.2. C header</a></li>
|
||||
<li><a href="#org1119b99">2.1.3. C source</a></li>
|
||||
<li><a href="#org504797d">2.1.4. Performance</a></li>
|
||||
<li><a href="#orgc9875ee">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org64ad90f">2.1.2. C header</a></li>
|
||||
<li><a href="#orga9c6fc6">2.1.3. C source</a></li>
|
||||
<li><a href="#org84f6891">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orged4d9fd">3. Woodbury 2x2</a>
|
||||
<li><a href="#org7230bc0">3. Woodbury 2x2</a>
|
||||
<ul>
|
||||
<li><a href="#org1faaa5e">3.1. <code>qmckl_woodbury_2</code></a>
|
||||
<li><a href="#orged4a330">3.1. <code>qmckl_woodbury_2</code></a>
|
||||
<ul>
|
||||
<li><a href="#org42f9733">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org32e8e94">3.1.2. C header</a></li>
|
||||
<li><a href="#org746da51">3.1.3. C source</a></li>
|
||||
<li><a href="#orgc3cf196">3.1.4. Performance</a></li>
|
||||
<li><a href="#org07c0c7c">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org523764f">3.1.2. C header</a></li>
|
||||
<li><a href="#org41c3b7a">3.1.3. C source</a></li>
|
||||
<li><a href="#org1e28a3c">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org787dfb6">4. Woodbury 3x3</a>
|
||||
<li><a href="#org2b49c7f">4. Woodbury 3x3</a>
|
||||
<ul>
|
||||
<li><a href="#orgbc149b4">4.1. <code>qmckl_woodbury_3</code></a>
|
||||
<li><a href="#org5b63207">4.1. <code>qmckl_woodbury_3</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgfd7f163">4.1.1. Requirements</a></li>
|
||||
<li><a href="#orgd4383e4">4.1.2. C header</a></li>
|
||||
<li><a href="#orga12303c">4.1.3. C source</a></li>
|
||||
<li><a href="#org2b19664">4.1.4. Performance…</a></li>
|
||||
<li><a href="#orgf7f6368">4.1.1. Requirements</a></li>
|
||||
<li><a href="#orgda0f531">4.1.2. C header</a></li>
|
||||
<li><a href="#orgbf1cf78">4.1.3. C source</a></li>
|
||||
<li><a href="#orgc42a33e">4.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org07f7f09">5. Sherman-Morrison with update splitting</a>
|
||||
<li><a href="#orgc1e157e">5. Sherman-Morrison with update splitting</a>
|
||||
<ul>
|
||||
<li><a href="#orgf99c816">5.1. <code>qmckl_sherman_morrison_splitting</code></a>
|
||||
<li><a href="#org0f32133">5.1. <code>qmckl_sherman_morrison_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgc9f336d">5.1.1. Requirements</a></li>
|
||||
<li><a href="#org6db66a8">5.1.2. C header</a></li>
|
||||
<li><a href="#org878a30f">5.1.3. C source</a></li>
|
||||
<li><a href="#org69f8a6f">5.1.4. Performance…</a></li>
|
||||
<li><a href="#org60aae96">5.1.1. Requirements</a></li>
|
||||
<li><a href="#org38a9f02">5.1.2. C header</a></li>
|
||||
<li><a href="#org5061303">5.1.3. C source</a></li>
|
||||
<li><a href="#orga62b992">5.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb3feb16">6. Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</a>
|
||||
<li><a href="#org932a1c2">6. Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</a>
|
||||
<ul>
|
||||
<li><a href="#orgfe5dbea">6.1. <code>qmckl_sherman_morrison_smw32s</code></a>
|
||||
<li><a href="#orgd89b396">6.1. <code>qmckl_sherman_morrison_smw32s</code></a>
|
||||
<ul>
|
||||
<li><a href="#org1300312">6.1.1. Requirements</a></li>
|
||||
<li><a href="#org3384474">6.1.2. C header</a></li>
|
||||
<li><a href="#org81e4fc0">6.1.3. C source</a></li>
|
||||
<li><a href="#orga2add19">6.1.4. Performance…</a></li>
|
||||
<li><a href="#org9354dbb">6.1.1. Requirements</a></li>
|
||||
<li><a href="#org70eee96">6.1.2. C header</a></li>
|
||||
<li><a href="#org6b58b3b">6.1.3. C source</a></li>
|
||||
<li><a href="#org0f2b271">6.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6b7066c">7. Helper Functions</a>
|
||||
<li><a href="#orga773668">7. Helper Functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgc3aa24a">7.1. <code>qmckl_slagel_splitting</code></a>
|
||||
<li><a href="#orgc5cc755">7.1. <code>qmckl_slagel_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#org4ba839b">7.1.1. Requirements</a></li>
|
||||
<li><a href="#orge8a200e">7.1.2. C header</a></li>
|
||||
<li><a href="#org9608256">7.1.3. C source</a></li>
|
||||
<li><a href="#org3a1730b">7.1.4. Performance</a></li>
|
||||
<li><a href="#org88a719f">7.1.1. Requirements</a></li>
|
||||
<li><a href="#org0d48f00">7.1.2. C header</a></li>
|
||||
<li><a href="#org8990be5">7.1.3. C source</a></li>
|
||||
<li><a href="#org4475ea6">7.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9b11cf2">8. End of files</a></li>
|
||||
<li><a href="#org1a068bd">8. End of files</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4491e29" class="outline-2">
|
||||
<h2 id="org4491e29"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div id="outline-container-org559a417" class="outline-2">
|
||||
<h2 id="org559a417"><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-orgda52269" class="outline-2">
|
||||
<h2 id="orgda52269"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
||||
<div id="outline-container-orgbfc23e9" class="outline-2">
|
||||
<h2 id="orgbfc23e9"><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-orged7a3fb" class="outline-3">
|
||||
<h3 id="orged7a3fb"><span class="section-number-3">2.1</span> <code>qmckl_sherman_morrison</code></h3>
|
||||
<div id="outline-container-orgbaf6a06" class="outline-3">
|
||||
<h3 id="orgbaf6a06"><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="org638026a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb1ae61f" 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-org89c89cf" class="outline-4">
|
||||
<h4 id="org89c89cf"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgc9875ee" class="outline-4">
|
||||
<h4 id="orgc9875ee"><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-org6e4bf56" class="outline-4">
|
||||
<h4 id="org6e4bf56"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-org64ad90f" class="outline-4">
|
||||
<h4 id="org64ad90f"><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-org1119b99" class="outline-4">
|
||||
<h4 id="org1119b99"><span class="section-number-4">2.1.3</span> C source</h4>
|
||||
<div id="outline-container-orga9c6fc6" class="outline-4">
|
||||
<h4 id="orga9c6fc6"><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-org504797d" class="outline-4">
|
||||
<h4 id="org504797d"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org84f6891" class="outline-4">
|
||||
<h4 id="org84f6891"><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-orged4d9fd" class="outline-2">
|
||||
<h2 id="orged4d9fd"><span class="section-number-2">3</span> Woodbury 2x2</h2>
|
||||
<div id="outline-container-org7230bc0" class="outline-2">
|
||||
<h2 id="org7230bc0"><span class="section-number-2">3</span> Woodbury 2x2</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org1faaa5e" class="outline-3">
|
||||
<h3 id="org1faaa5e"><span class="section-number-3">3.1</span> <code>qmckl_woodbury_2</code></h3>
|
||||
<div id="outline-container-orged4a330" class="outline-3">
|
||||
<h3 id="orged4a330"><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="orgd944244" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8bc21c4" 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-org42f9733" class="outline-4">
|
||||
<h4 id="org42f9733"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org07c0c7c" class="outline-4">
|
||||
<h4 id="org07c0c7c"><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-org32e8e94" class="outline-4">
|
||||
<h4 id="org32e8e94"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-org523764f" class="outline-4">
|
||||
<h4 id="org523764f"><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-org746da51" class="outline-4">
|
||||
<h4 id="org746da51"><span class="section-number-4">3.1.3</span> C source</h4>
|
||||
<div id="outline-container-org41c3b7a" class="outline-4">
|
||||
<h4 id="org41c3b7a"><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-orgc3cf196" class="outline-4">
|
||||
<h4 id="orgc3cf196"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org1e28a3c" class="outline-4">
|
||||
<h4 id="org1e28a3c"><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-org787dfb6" class="outline-2">
|
||||
<h2 id="org787dfb6"><span class="section-number-2">4</span> Woodbury 3x3</h2>
|
||||
<div id="outline-container-org2b49c7f" class="outline-2">
|
||||
<h2 id="org2b49c7f"><span class="section-number-2">4</span> Woodbury 3x3</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-orgbc149b4" class="outline-3">
|
||||
<h3 id="orgbc149b4"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_3</code></h3>
|
||||
<div id="outline-container-org5b63207" class="outline-3">
|
||||
<h3 id="org5b63207"><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="org6cd18c2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org428c9dd" 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-orgfd7f163" class="outline-4">
|
||||
<h4 id="orgfd7f163"><span class="section-number-4">4.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgf7f6368" class="outline-4">
|
||||
<h4 id="orgf7f6368"><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-orgd4383e4" class="outline-4">
|
||||
<h4 id="orgd4383e4"><span class="section-number-4">4.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgda0f531" class="outline-4">
|
||||
<h4 id="orgda0f531"><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-orga12303c" class="outline-4">
|
||||
<h4 id="orga12303c"><span class="section-number-4">4.1.3</span> C source</h4>
|
||||
<div id="outline-container-orgbf1cf78" class="outline-4">
|
||||
<h4 id="orgbf1cf78"><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-org2b19664" class="outline-4">
|
||||
<h4 id="org2b19664"><span class="section-number-4">4.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-orgc42a33e" class="outline-4">
|
||||
<h4 id="orgc42a33e"><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-org07f7f09" class="outline-2">
|
||||
<h2 id="org07f7f09"><span class="section-number-2">5</span> Sherman-Morrison with update splitting</h2>
|
||||
<div id="outline-container-orgc1e157e" class="outline-2">
|
||||
<h2 id="orgc1e157e"><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-orgf99c816" class="outline-3">
|
||||
<h3 id="orgf99c816"><span class="section-number-3">5.1</span> <code>qmckl_sherman_morrison_splitting</code></h3>
|
||||
<div id="outline-container-org0f32133" class="outline-3">
|
||||
<h3 id="org0f32133"><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="org49badd8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org83f948a" 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-orgc9f336d" class="outline-4">
|
||||
<h4 id="orgc9f336d"><span class="section-number-4">5.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org60aae96" class="outline-4">
|
||||
<h4 id="org60aae96"><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-org6db66a8" class="outline-4">
|
||||
<h4 id="org6db66a8"><span class="section-number-4">5.1.2</span> C header</h4>
|
||||
<div id="outline-container-org38a9f02" class="outline-4">
|
||||
<h4 id="org38a9f02"><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-org878a30f" class="outline-4">
|
||||
<h4 id="org878a30f"><span class="section-number-4">5.1.3</span> C source</h4>
|
||||
<div id="outline-container-org5061303" class="outline-4">
|
||||
<h4 id="org5061303"><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-org69f8a6f" class="outline-4">
|
||||
<h4 id="org69f8a6f"><span class="section-number-4">5.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-orga62b992" class="outline-4">
|
||||
<h4 id="orga62b992"><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-orgb3feb16" class="outline-2">
|
||||
<h2 id="orgb3feb16"><span class="section-number-2">6</span> Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</h2>
|
||||
<div id="outline-container-org932a1c2" class="outline-2">
|
||||
<h2 id="org932a1c2"><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-orgfe5dbea" class="outline-3">
|
||||
<h3 id="orgfe5dbea"><span class="section-number-3">6.1</span> <code>qmckl_sherman_morrison_smw32s</code></h3>
|
||||
<div id="outline-container-orgd89b396" class="outline-3">
|
||||
<h3 id="orgd89b396"><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="orgb80762e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4bed16a" 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-org1300312" class="outline-4">
|
||||
<h4 id="org1300312"><span class="section-number-4">6.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org9354dbb" class="outline-4">
|
||||
<h4 id="org9354dbb"><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-org3384474" class="outline-4">
|
||||
<h4 id="org3384474"><span class="section-number-4">6.1.2</span> C header</h4>
|
||||
<div id="outline-container-org70eee96" class="outline-4">
|
||||
<h4 id="org70eee96"><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-org81e4fc0" class="outline-4">
|
||||
<h4 id="org81e4fc0"><span class="section-number-4">6.1.3</span> C source</h4>
|
||||
<div id="outline-container-org6b58b3b" class="outline-4">
|
||||
<h4 id="org6b58b3b"><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-orga2add19" class="outline-4">
|
||||
<h4 id="orga2add19"><span class="section-number-4">6.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org0f2b271" class="outline-4">
|
||||
<h4 id="org0f2b271"><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-org6b7066c" class="outline-2">
|
||||
<h2 id="org6b7066c"><span class="section-number-2">7</span> Helper Functions</h2>
|
||||
<div id="outline-container-orga773668" class="outline-2">
|
||||
<h2 id="orga773668"><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-orgc3aa24a" class="outline-3">
|
||||
<h3 id="orgc3aa24a"><span class="section-number-3">7.1</span> <code>qmckl_slagel_splitting</code></h3>
|
||||
<div id="outline-container-orgc5cc755" class="outline-3">
|
||||
<h3 id="orgc5cc755"><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="org4421bd7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1d85cff" 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-org4ba839b" class="outline-4">
|
||||
<h4 id="org4ba839b"><span class="section-number-4">7.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org88a719f" class="outline-4">
|
||||
<h4 id="org88a719f"><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-orge8a200e" class="outline-4">
|
||||
<h4 id="orge8a200e"><span class="section-number-4">7.1.2</span> C header</h4>
|
||||
<div id="outline-container-org0d48f00" class="outline-4">
|
||||
<h4 id="org0d48f00"><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-org9608256" class="outline-4">
|
||||
<h4 id="org9608256"><span class="section-number-4">7.1.3</span> C source</h4>
|
||||
<div id="outline-container-org8990be5" class="outline-4">
|
||||
<h4 id="org8990be5"><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-org3a1730b" class="outline-4">
|
||||
<h4 id="org3a1730b"><span class="section-number-4">7.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org4475ea6" class="outline-4">
|
||||
<h4 id="org4475ea6"><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-org9b11cf2" class="outline-2">
|
||||
<h2 id="org9b11cf2"><span class="section-number-2">8</span> End of files</h2>
|
||||
<div id="outline-container-org1a068bd" class="outline-2">
|
||||
<h2 id="org1a068bd"><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-11-17 Thu 13:52</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:27</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-11-17 Thu 13:52 -->
|
||||
<!-- 2022-11-17 Thu 18:27 -->
|
||||
<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="#org39984b4">1. CHBrClF</a>
|
||||
<li><a href="#org4918c2d">1. CHBrClF</a>
|
||||
<ul>
|
||||
<li><a href="#orge2ecb0e">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orga022d15">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#orga7a6d17">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#orgf7221b1">1.4. Electron coordinates</a></li>
|
||||
<li><a href="#org4bb2bd4">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org753f892">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org48bd074">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org3eaa218">1.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7d4ccaa">2. N2</a>
|
||||
<li><a href="#org5f24cd3">2. N2</a>
|
||||
<ul>
|
||||
<li><a href="#org976e124">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orge882f97">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org5a27154">2.3. Jastrow related data</a></li>
|
||||
<li><a href="#orgc68ef03">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org3d0edf0">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org218e88b">2.3. Jastrow related data</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org39984b4" class="outline-2">
|
||||
<h2 id="org39984b4"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div id="outline-container-org4918c2d" class="outline-2">
|
||||
<h2 id="org4918c2d"><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-orge2ecb0e" class="outline-3">
|
||||
<h3 id="orge2ecb0e"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org4bb2bd4" class="outline-3">
|
||||
<h3 id="org4bb2bd4"><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-orga022d15" class="outline-3">
|
||||
<h3 id="orga022d15"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div id="outline-container-org753f892" class="outline-3">
|
||||
<h3 id="org753f892"><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-orga7a6d17" class="outline-3">
|
||||
<h3 id="orga7a6d17"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org48bd074" class="outline-3">
|
||||
<h3 id="org48bd074"><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-orgf7221b1" class="outline-3">
|
||||
<h3 id="orgf7221b1"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org3eaa218" class="outline-3">
|
||||
<h3 id="org3eaa218"><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-org7d4ccaa" class="outline-2">
|
||||
<h2 id="org7d4ccaa"><span class="section-number-2">2</span> N2</h2>
|
||||
<div id="outline-container-org5f24cd3" class="outline-2">
|
||||
<h2 id="org5f24cd3"><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-org976e124" class="outline-3">
|
||||
<h3 id="org976e124"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-orgc68ef03" class="outline-3">
|
||||
<h3 id="orgc68ef03"><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-orge882f97" class="outline-3">
|
||||
<h3 id="orge882f97"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org3d0edf0" class="outline-3">
|
||||
<h3 id="org3d0edf0"><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-org5a27154" class="outline-3">
|
||||
<h3 id="org5a27154"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div id="outline-container-org218e88b" class="outline-3">
|
||||
<h3 id="org218e88b"><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-11-17 Thu 13:52</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:27</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-11-17 Thu 13:52 -->
|
||||
<!-- 2022-11-17 Thu 18:27 -->
|
||||
<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="#org94968d9">1. Local functions</a>
|
||||
<li><a href="#orgb0a03d6">1. Local functions</a>
|
||||
<ul>
|
||||
<li><a href="#org474396e">1.1. Open file</a></li>
|
||||
<li><a href="#orgd979f44">1.2. Electron</a></li>
|
||||
<li><a href="#orgbb364d6">1.3. Nucleus</a>
|
||||
<li><a href="#orgd04ec7c">1.1. Open file</a></li>
|
||||
<li><a href="#org029a368">1.2. Electron</a></li>
|
||||
<li><a href="#org83badc3">1.3. Nucleus</a>
|
||||
<ul>
|
||||
<li><a href="#orgac772cc">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#orgd648b10">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org2f2982e">1.3.3. Nuclear coordinates</a></li>
|
||||
<li><a href="#orgceb6d24">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#org9315706">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org30ecd6c">1.3.3. Nuclear coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9079291">1.4. Basis set and AOs</a>
|
||||
<li><a href="#org5a6ae37">1.4. Basis set and AOs</a>
|
||||
<ul>
|
||||
<li><a href="#orgb119a77">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#org72137b9">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org8cfc468">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#orgee8c9c2">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org37a2b08">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org4cb017d">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#orgea54070">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org47921cb">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#org3c5a809">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#orgf570c82">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org5207806">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org1dead79">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#org76f57df">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org14efba4">1.4.14. AO Normalization</a></li>
|
||||
<li><a href="#orgb80a2b7">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#orga31652d">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org4a76396">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#orgdfeb0f4">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org2942181">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org9d7380b">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#orga189173">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#orgebb4f58">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#org35a0dc3">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#org2f3ab2f">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org161f424">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org950a90f">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#orgd187023">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org16da683">1.4.14. AO Normalization</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb1e3e7e">1.5. Molecular orbitals</a>
|
||||
<li><a href="#org08cc4ba">1.5. Molecular orbitals</a>
|
||||
<ul>
|
||||
<li><a href="#org2742d2d">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#org0d23c39">1.5.2. MO coefficients</a></li>
|
||||
<li><a href="#orgbf36aba">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#orga87d04e">1.5.2. MO coefficients</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga39c477">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
<li><a href="#org7e122f2">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb2deb4d">2. Read everything</a></li>
|
||||
<li><a href="#org2425d37">3. Test</a>
|
||||
<li><a href="#orgd9d2da3">2. Read everything</a></li>
|
||||
<li><a href="#org0c431e5">3. Test</a>
|
||||
<ul>
|
||||
<li>
|
||||
<ul>
|
||||
<li><a href="#orgaa6896c">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org0d5344b">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#orgae66aee">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#orgab4835f">3.0.4. MO Basis</a></li>
|
||||
<li><a href="#org7542d58">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org99d6c08">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#org7e338ae">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org1df4403">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-org94968d9" class="outline-2">
|
||||
<h2 id="org94968d9"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div id="outline-container-orgb0a03d6" class="outline-2">
|
||||
<h2 id="orgb0a03d6"><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-org474396e" class="outline-3">
|
||||
<h3 id="org474396e"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div id="outline-container-orgd04ec7c" class="outline-3">
|
||||
<h3 id="orgd04ec7c"><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
|
||||
@ -429,8 +429,8 @@ groups of data by passing the <code>trexio_t</code> handle.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd979f44" class="outline-3">
|
||||
<h3 id="orgd979f44"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div id="outline-container-org029a368" class="outline-3">
|
||||
<h3 id="org029a368"><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.
|
||||
@ -481,8 +481,8 @@ We read the number of up-spin and down-spin electrons.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbb364d6" class="outline-3">
|
||||
<h3 id="orgbb364d6"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div id="outline-container-org83badc3" class="outline-3">
|
||||
<h3 id="org83badc3"><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.
|
||||
@ -502,8 +502,8 @@ In this section we read the number of nuclei, the molecular geometry and nuclear
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgac772cc" class="outline-4">
|
||||
<h4 id="orgac772cc"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div id="outline-container-orgceb6d24" class="outline-4">
|
||||
<h4 id="orgceb6d24"><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;
|
||||
@ -526,8 +526,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd648b10" class="outline-4">
|
||||
<h4 id="orgd648b10"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div id="outline-container-org9315706" class="outline-4">
|
||||
<h4 id="org9315706"><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">{
|
||||
@ -567,8 +567,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2f2982e" class="outline-4">
|
||||
<h4 id="org2f2982e"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div id="outline-container-org30ecd6c" class="outline-4">
|
||||
<h4 id="org30ecd6c"><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
|
||||
@ -623,8 +623,8 @@ in the TREXIO file (<code>'N'</code>), so it will be automatically transposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9079291" class="outline-3">
|
||||
<h3 id="org9079291"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div id="outline-container-org5a6ae37" class="outline-3">
|
||||
<h3 id="org5a6ae37"><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.
|
||||
@ -650,8 +650,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb119a77" class="outline-4">
|
||||
<h4 id="orgb119a77"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div id="outline-container-orgb80a2b7" class="outline-4">
|
||||
<h4 id="orgb80a2b7"><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
|
||||
@ -682,8 +682,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org72137b9" class="outline-4">
|
||||
<h4 id="org72137b9"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div id="outline-container-orga31652d" class="outline-4">
|
||||
<h4 id="orga31652d"><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;
|
||||
@ -707,8 +707,8 @@ rc = qmckl_set_ao_basis_shell_num(context, shell_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8cfc468" class="outline-4">
|
||||
<h4 id="org8cfc468"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div id="outline-container-org4a76396" class="outline-4">
|
||||
<h4 id="org4a76396"><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;
|
||||
@ -732,8 +732,8 @@ rc = qmckl_set_ao_basis_prim_num(context, prim_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgee8c9c2" class="outline-4">
|
||||
<h4 id="orgee8c9c2"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div id="outline-container-orgdfeb0f4" class="outline-4">
|
||||
<h4 id="orgdfeb0f4"><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;
|
||||
@ -757,8 +757,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org37a2b08" class="outline-4">
|
||||
<h4 id="org37a2b08"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div id="outline-container-org2942181" class="outline-4">
|
||||
<h4 id="org2942181"><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">{
|
||||
@ -838,8 +838,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4cb017d" class="outline-4">
|
||||
<h4 id="org4cb017d"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div id="outline-container-org9d7380b" class="outline-4">
|
||||
<h4 id="org9d7380b"><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">{
|
||||
@ -924,8 +924,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgea54070" class="outline-4">
|
||||
<h4 id="orgea54070"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div id="outline-container-orga189173" class="outline-4">
|
||||
<h4 id="orga189173"><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">{
|
||||
@ -970,8 +970,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org47921cb" class="outline-4">
|
||||
<h4 id="org47921cb"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
||||
<div id="outline-container-orgebb4f58" class="outline-4">
|
||||
<h4 id="orgebb4f58"><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">{
|
||||
@ -1055,8 +1055,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3c5a809" class="outline-4">
|
||||
<h4 id="org3c5a809"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
||||
<div id="outline-container-org35a0dc3" class="outline-4">
|
||||
<h4 id="org35a0dc3"><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">{
|
||||
@ -1136,8 +1136,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf570c82" class="outline-4">
|
||||
<h4 id="orgf570c82"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
||||
<div id="outline-container-org2f3ab2f" class="outline-4">
|
||||
<h4 id="org2f3ab2f"><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">{
|
||||
@ -1182,8 +1182,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5207806" class="outline-4">
|
||||
<h4 id="org5207806"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||
<div id="outline-container-org161f424" class="outline-4">
|
||||
<h4 id="org161f424"><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">{
|
||||
@ -1228,8 +1228,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1dead79" class="outline-4">
|
||||
<h4 id="org1dead79"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||
<div id="outline-container-org950a90f" class="outline-4">
|
||||
<h4 id="org950a90f"><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">{
|
||||
@ -1274,8 +1274,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org76f57df" class="outline-4">
|
||||
<h4 id="org76f57df"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
||||
<div id="outline-container-orgd187023" class="outline-4">
|
||||
<h4 id="orgd187023"><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">{
|
||||
@ -1320,8 +1320,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org14efba4" class="outline-4">
|
||||
<h4 id="org14efba4"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||
<div id="outline-container-org16da683" class="outline-4">
|
||||
<h4 id="org16da683"><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">{
|
||||
@ -1376,8 +1376,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgb1e3e7e" class="outline-3">
|
||||
<h3 id="orgb1e3e7e"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org08cc4ba" class="outline-3">
|
||||
<h3 id="org08cc4ba"><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.
|
||||
@ -1403,8 +1403,8 @@ In this section we read the MO coefficients.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2742d2d" class="outline-4">
|
||||
<h4 id="org2742d2d"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
||||
<div id="outline-container-orgbf36aba" class="outline-4">
|
||||
<h4 id="orgbf36aba"><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;
|
||||
@ -1427,8 +1427,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0d23c39" class="outline-4">
|
||||
<h4 id="org0d23c39"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||
<div id="outline-container-orga87d04e" class="outline-4">
|
||||
<h4 id="orga87d04e"><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">{
|
||||
@ -1477,12 +1477,12 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga39c477" class="outline-3">
|
||||
<h3 id="orga39c477"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
<div id="outline-container-org7e122f2" class="outline-3">
|
||||
<h3 id="org7e122f2"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgb2deb4d" class="outline-2">
|
||||
<h2 id="orgb2deb4d"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div id="outline-container-orgd9d2da3" class="outline-2">
|
||||
<h2 id="orgd9d2da3"><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>
|
||||
@ -1557,8 +1557,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2425d37" class="outline-2">
|
||||
<h2 id="org2425d37"><span class="section-number-2">3</span> Test</h2>
|
||||
<div id="outline-container-org0c431e5" class="outline-2">
|
||||
<h2 id="org0c431e5"><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
|
||||
@ -1582,8 +1582,8 @@ rc = qmckl_trexio_read(context, filename, 255);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaa6896c" class="outline-4">
|
||||
<h4 id="orgaa6896c"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||
<div id="outline-container-org7542d58" class="outline-4">
|
||||
<h4 id="org7542d58"><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>);
|
||||
@ -1601,8 +1601,8 @@ rc = qmckl_get_electron_down_num(context, &dn_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0d5344b" class="outline-4">
|
||||
<h4 id="org0d5344b"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||
<div id="outline-container-org99d6c08" class="outline-4">
|
||||
<h4 id="org99d6c08"><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>);
|
||||
@ -1642,8 +1642,8 @@ coord = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgae66aee" class="outline-4">
|
||||
<h4 id="orgae66aee"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||
<div id="outline-container-org7e338ae" class="outline-4">
|
||||
<h4 id="org7e338ae"><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>);
|
||||
@ -1751,8 +1751,8 @@ prim_factor = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgab4835f" class="outline-4">
|
||||
<h4 id="orgab4835f"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div id="outline-container-org1df4403" class="outline-4">
|
||||
<h4 id="org1df4403"><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>);
|
||||
@ -1783,7 +1783,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-11-17 Thu 13:52</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:27</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-11-17 Thu 13:52 -->
|
||||
<!-- 2022-11-17 Thu 18:27 -->
|
||||
<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="#org75123bf">1. Verificarlo probes</a>
|
||||
<li><a href="#org15e2dd6">1. Verificarlo probes</a>
|
||||
<ul>
|
||||
<li><a href="#org9c91d92">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org17562fb">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#orgd62205f">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#orgc5b267f">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org76ec33a">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#orga8a404f">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#orgd5c2b83">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org1247dcb">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#orgf5ef246">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#orgde73367">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="#orgc5a614b">2. Fortran wrappers</a></li>
|
||||
<li><a href="#orgffa769c">2. Fortran wrappers</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org75123bf" class="outline-2">
|
||||
<h2 id="org75123bf"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div id="outline-container-org15e2dd6" class="outline-2">
|
||||
<h2 id="org15e2dd6"><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-org9c91d92" class="outline-3">
|
||||
<h3 id="org9c91d92"><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-orga8a404f" class="outline-3">
|
||||
<h3 id="orga8a404f"><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: #228b22;">void</span> <span style="color: #0000ff;">qmckl_init_probes</span>();
|
||||
@ -396,8 +396,8 @@ To learn more about Verificarlo CI :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org17562fb" class="outline-3">
|
||||
<h3 id="org17562fb"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div id="outline-container-orgd5c2b83" class="outline-3">
|
||||
<h3 id="orgd5c2b83"><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>
|
||||
@ -432,8 +432,8 @@ if <code>VFC_CI</code> is undefined, return <code>false</code> (no error)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd62205f" class="outline-3">
|
||||
<h3 id="orgd62205f"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div id="outline-container-org1247dcb" class="outline-3">
|
||||
<h3 id="org1247dcb"><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>
|
||||
@ -473,8 +473,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc5b267f" class="outline-3">
|
||||
<h3 id="orgc5b267f"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div id="outline-container-orgf5ef246" class="outline-3">
|
||||
<h3 id="orgf5ef246"><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>
|
||||
@ -514,8 +514,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org76ec33a" class="outline-3">
|
||||
<h3 id="org76ec33a"><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-orgde73367" class="outline-3">
|
||||
<h3 id="orgde73367"><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: #228b22;">void</span> <span style="color: #0000ff;">qmckl_dump_probes</span>();
|
||||
@ -534,8 +534,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc5a614b" class="outline-2">
|
||||
<h2 id="orgc5a614b"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||
<div id="outline-container-orgffa769c" class="outline-2">
|
||||
<h2 id="orgffa769c"><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>(
|
||||
@ -659,7 +659,7 @@ and accuracy
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 13:52</p>
|
||||
<p class="date">Created: 2022-11-17 Thu 18:27</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