mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2025-01-08 04:19:15 +01:00
Deploying to gh-pages from @ TREX-CoE/qmckl@bbf596bb4c 🚀
This commit is contained in:
parent
84f9736827
commit
9681c63639
@ -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>
|
||||
<!-- 2023-08-24 Thu 08:00 -->
|
||||
<!-- 2023-08-24 Thu 08:15 -->
|
||||
<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>
|
||||
@ -375,7 +375,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: 2023-08-24 Thu 08:00</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:15</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>
|
||||
<!-- 2023-08-24 Thu 08:01 -->
|
||||
<!-- 2023-08-24 Thu 08:16 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Introduction</title>
|
||||
@ -346,36 +346,36 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org3495c6f">1. Installing QMCkl</a>
|
||||
<li><a href="#orgca13d42">1. Installing QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#org34e5a2b">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#orgcd712ae">1.2. Installing from the source repository (for developers)</a></li>
|
||||
<li><a href="#org4e13814">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org92c37c3">1.2. Installing from the source repository (for developers)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge329fef">2. Using QMCkl</a></li>
|
||||
<li><a href="#orgbeb934b">3. Developing in QMCkl</a>
|
||||
<li><a href="#orgb158175">2. Using QMCkl</a></li>
|
||||
<li><a href="#org3e9923d">3. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#orgda0cef9">3.1. Literate programming</a></li>
|
||||
<li><a href="#org5a4fc23">3.2. Source code editing</a></li>
|
||||
<li><a href="#org032a534">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#orga6bf8d8">3.4. Coding rules</a></li>
|
||||
<li><a href="#orgf3a435c">3.5. Design of the library</a></li>
|
||||
<li><a href="#orgd982a88">3.6. Naming conventions</a></li>
|
||||
<li><a href="#org2a3dae3">3.7. Application programming interface</a></li>
|
||||
<li><a href="#orgc81e6d8">3.8. Global state</a></li>
|
||||
<li><a href="#orgc6be3d5">3.9. Headers</a></li>
|
||||
<li><a href="#orgfb1b7c6">3.10. Low-level functions</a></li>
|
||||
<li><a href="#org16d3c37">3.11. High-level functions</a></li>
|
||||
<li><a href="#orgac169e5">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org47b48d6">3.13. Algorithms</a></li>
|
||||
<li><a href="#org4712034">3.1. Literate programming</a></li>
|
||||
<li><a href="#orgc224431">3.2. Source code editing</a></li>
|
||||
<li><a href="#org274bf7f">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org11c3a3a">3.4. Coding rules</a></li>
|
||||
<li><a href="#org62ac6c4">3.5. Design of the library</a></li>
|
||||
<li><a href="#orgba965c5">3.6. Naming conventions</a></li>
|
||||
<li><a href="#org175fc32">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org1394a23">3.8. Global state</a></li>
|
||||
<li><a href="#orga1931f1">3.9. Headers</a></li>
|
||||
<li><a href="#org70fc62a">3.10. Low-level functions</a></li>
|
||||
<li><a href="#orgd3fd22d">3.11. High-level functions</a></li>
|
||||
<li><a href="#org35728e0">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org1068b93">3.13. Algorithms</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3495c6f" class="outline-2">
|
||||
<h2 id="org3495c6f"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div id="outline-container-orgca13d42" class="outline-2">
|
||||
<h2 id="orgca13d42"><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
|
||||
@ -384,8 +384,8 @@ The latest version fo QMCkl can be downloaded
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org34e5a2b" class="outline-3">
|
||||
<h3 id="org34e5a2b"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div id="outline-container-org4e13814" class="outline-3">
|
||||
<h3 id="org4e13814"><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
|
||||
@ -400,8 +400,8 @@ options are defined using <code>CFLAGS</code> and <code>FCFLAGS</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcd712ae" class="outline-3">
|
||||
<h3 id="orgcd712ae"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div id="outline-container-org92c37c3" class="outline-3">
|
||||
<h3 id="org92c37c3"><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
|
||||
@ -422,8 +422,8 @@ to be executed first.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge329fef" class="outline-2">
|
||||
<h2 id="orge329fef"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div id="outline-container-orgb158175" class="outline-2">
|
||||
<h2 id="orgb158175"><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
|
||||
@ -452,12 +452,12 @@ Both files are located in the <code>include/</code> directory.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbeb934b" class="outline-2">
|
||||
<h2 id="orgbeb934b"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-org3e9923d" class="outline-2">
|
||||
<h2 id="org3e9923d"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orgda0cef9" class="outline-3">
|
||||
<h3 id="orgda0cef9"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div id="outline-container-org4712034" class="outline-3">
|
||||
<h3 id="org4712034"><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
|
||||
@ -507,8 +507,8 @@ tarball contains the generated source code.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5a4fc23" class="outline-3">
|
||||
<h3 id="org5a4fc23"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div id="outline-container-orgc224431" class="outline-3">
|
||||
<h3 id="orgc224431"><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>.
|
||||
@ -539,8 +539,8 @@ org-mode.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org032a534" class="outline-3">
|
||||
<h3 id="org032a534"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-org274bf7f" class="outline-3">
|
||||
<h3 id="org274bf7f"><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
|
||||
@ -604,8 +604,8 @@ For more guidelines on using Fortran to generate a C interface, see
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga6bf8d8" class="outline-3">
|
||||
<h3 id="orga6bf8d8"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div id="outline-container-org11c3a3a" class="outline-3">
|
||||
<h3 id="org11c3a3a"><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
|
||||
@ -625,8 +625,8 @@ make cppcheck ; cat cppcheck.out
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf3a435c" class="outline-3">
|
||||
<h3 id="orgf3a435c"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div id="outline-container-org62ac6c4" class="outline-3">
|
||||
<h3 id="org62ac6c4"><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
|
||||
@ -637,8 +637,8 @@ functions (see below).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd982a88" class="outline-3">
|
||||
<h3 id="orgd982a88"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-orgba965c5" class="outline-3">
|
||||
<h3 id="orgba965c5"><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
|
||||
@ -659,8 +659,8 @@ form is allowed.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2a3dae3" class="outline-3">
|
||||
<h3 id="org2a3dae3"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-org175fc32" class="outline-3">
|
||||
<h3 id="org175fc32"><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
|
||||
@ -692,15 +692,15 @@ bindings in other languages in other repositories.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc81e6d8" class="outline-3">
|
||||
<h3 id="orgc81e6d8"><span class="section-number-3">3.8</span> Global state</h3>
|
||||
<div id="outline-container-org1394a23" class="outline-3">
|
||||
<h3 id="org1394a23"><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="org5d15600">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="org775bf9a">=context=</a> contains the global
|
||||
state of the library, and is used as the first argument of many
|
||||
QMCkl functions.
|
||||
</p>
|
||||
@ -714,8 +714,8 @@ the state is done by setters and getters, prefixed by
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc6be3d5" class="outline-3">
|
||||
<h3 id="orgc6be3d5"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div id="outline-container-orga1931f1" class="outline-3">
|
||||
<h3 id="orga1931f1"><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
|
||||
@ -803,8 +803,8 @@ and the types definitions should be written in the <code>*fh_type.f90</code> fil
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfb1b7c6" class="outline-3">
|
||||
<h3 id="orgfb1b7c6"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-org70fc62a" class="outline-3">
|
||||
<h3 id="org70fc62a"><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
|
||||
@ -813,14 +813,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="#org5d15600"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#org775bf9a"><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-org16d3c37" class="outline-3">
|
||||
<h3 id="org16d3c37"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div id="outline-container-orgd3fd22d" class="outline-3">
|
||||
<h3 id="orgd3fd22d"><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.
|
||||
@ -832,8 +832,8 @@ temporary storage, to simplify the use of accelerators.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgac169e5" class="outline-3">
|
||||
<h3 id="orgac169e5"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-org35728e0" class="outline-3">
|
||||
<h3 id="org35728e0"><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
|
||||
@ -841,7 +841,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="#org5d15600"><code>context</code></a> variable.
|
||||
specified in the <a href="#org775bf9a"><code>context</code></a> variable.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -909,8 +909,8 @@ following points :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org47b48d6" class="outline-3">
|
||||
<h3 id="org47b48d6"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div id="outline-container-org1068b93" class="outline-3">
|
||||
<h3 id="org1068b93"><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
|
||||
@ -926,7 +926,7 @@ implemented adapted to different problem sizes.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:01</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:16</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
213
qmckl_ao.html
213
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>
|
||||
<!-- 2023-08-24 Thu 08:01 -->
|
||||
<!-- 2023-08-24 Thu 08:16 -->
|
||||
<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>
|
||||
@ -346,61 +346,61 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org5299cc7">1. Introduction</a></li>
|
||||
<li><a href="#org525779e">2. Context</a>
|
||||
<li><a href="#orgd025e43">1. Introduction</a></li>
|
||||
<li><a href="#org2cc1b04">2. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgf968a5b">2.1. Constant data</a>
|
||||
<li><a href="#org86f6b0a">2.1. Constant data</a>
|
||||
<ul>
|
||||
<li><a href="#org20fee71">2.1.1. Initialization functions</a>
|
||||
<li><a href="#org4fe166e">2.1.1. Initialization functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgdbd0beb">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org8deb490">2.1.1.2. Fortran interface</a></li>
|
||||
<li><a href="#org35e4008">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#orge32f7c6">2.1.1.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1e2e9cd">2.1.2. Access functions</a>
|
||||
<li><a href="#orgb9ea2c2">2.1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org33140cd">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#orgcb2e694">2.1.2.2. Fortran interface</a></li>
|
||||
<li><a href="#org147e27f">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org22785f1">2.1.2.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgfd5571d">2.2. Computed data</a>
|
||||
<li><a href="#org82c9e90">2.2. Computed data</a>
|
||||
<ul>
|
||||
<li><a href="#orgcac5deb">2.2.1. After initialization</a></li>
|
||||
<li><a href="#org39d9fc3">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#org197ff19">2.2.3. Access functions</a></li>
|
||||
<li><a href="#orgd52b73f">2.2.1. After initialization</a></li>
|
||||
<li><a href="#org8f008dc">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#org362321c">2.2.3. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2d515bf">3. Radial part</a>
|
||||
<li><a href="#org8beb390">3. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#orgb0edf6f">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#orgdc3634f">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org745ddab">3.3. Computation of shells</a></li>
|
||||
<li><a href="#orgc579adf">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#orgf21fce4">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org2fc42d5">3.3. Computation of shells</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga756948">4. Polynomial part</a>
|
||||
<li><a href="#orgff1d604">4. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#org489b003">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org4c0eb98">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
<li><a href="#orgfdd24a7">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#orgc7feac9">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgdf74698">5. Combining radial and polynomial parts</a>
|
||||
<li><a href="#org3752d33">5. Combining radial and polynomial parts</a>
|
||||
<ul>
|
||||
<li><a href="#org08d9fcb">5.1. Values only</a>
|
||||
<li><a href="#orgce29406">5.1. Values only</a>
|
||||
<ul>
|
||||
<li><a href="#org332b83c">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#orgb298173">5.1.2. HPC version</a></li>
|
||||
<li><a href="#org8151584">5.1.3. Interfaces</a></li>
|
||||
<li><a href="#orgb57aa61">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#org8ad7794">5.1.2. HPC version</a></li>
|
||||
<li><a href="#orgfcc9bea">5.1.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0cde824">5.2. Value, gradients, Laplacian</a>
|
||||
<li><a href="#orgfcb43f6">5.2. Value, gradients, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org2f00d19">5.2.1. Reference version</a></li>
|
||||
<li><a href="#orgad3517c">5.2.2. HPC version</a></li>
|
||||
<li><a href="#org3b4ffc7">5.2.3. Interfaces</a></li>
|
||||
<li><a href="#orgd5f72ce">5.2.1. Reference version</a></li>
|
||||
<li><a href="#orgd9eaf5e">5.2.2. HPC version</a></li>
|
||||
<li><a href="#orgb800fac">5.2.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -409,8 +409,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5299cc7" class="outline-2">
|
||||
<h2 id="org5299cc7"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div id="outline-container-orgd025e43" class="outline-2">
|
||||
<h2 id="orgd025e43"><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
|
||||
@ -463,19 +463,19 @@ gradients and Laplacian of the atomic basis functions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org525779e" class="outline-2">
|
||||
<h2 id="org525779e"><span class="section-number-2">2</span> Context</h2>
|
||||
<div id="outline-container-org2cc1b04" class="outline-2">
|
||||
<h2 id="org2cc1b04"><span class="section-number-2">2</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgf968a5b" class="outline-3">
|
||||
<h3 id="orgf968a5b"><span class="section-number-3">2.1</span> Constant data</h3>
|
||||
<div id="outline-container-org86f6b0a" class="outline-3">
|
||||
<h3 id="org86f6b0a"><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="org78a529b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0d7f4f5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -709,7 +709,7 @@ calling the functions:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="org29a0067"><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="orgd2766b9"><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>,
|
||||
@ -746,7 +746,7 @@ For array variables, use the rule:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="org091a7df"><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="orgbca3212"><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>);
|
||||
|
||||
@ -784,17 +784,17 @@ For array variables, use the rule:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org20fee71" class="outline-4">
|
||||
<h4 id="org20fee71"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
||||
<div id="outline-container-org4fe166e" class="outline-4">
|
||||
<h4 id="org4fe166e"><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="#org525779e">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org2cc1b04">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdbd0beb" class="outline-5">
|
||||
<h5 id="orgdbd0beb"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div id="outline-container-org35e4008" class="outline-5">
|
||||
<h5 id="org35e4008"><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
|
||||
@ -918,8 +918,8 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8deb490" class="outline-5">
|
||||
<h5 id="org8deb490"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-orge32f7c6" class="outline-5">
|
||||
<h5 id="orge32f7c6"><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>
|
||||
@ -1102,17 +1102,17 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1e2e9cd" class="outline-4">
|
||||
<h4 id="org1e2e9cd"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
||||
<div id="outline-container-orgb9ea2c2" class="outline-4">
|
||||
<h4 id="orgb9ea2c2"><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="#org525779e">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org2cc1b04">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org33140cd" class="outline-5">
|
||||
<h5 id="org33140cd"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div id="outline-container-org147e27f" class="outline-5">
|
||||
<h5 id="org147e27f"><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>
|
||||
@ -1234,8 +1234,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcb2e694" class="outline-5">
|
||||
<h5 id="orgcb2e694"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org22785f1" class="outline-5">
|
||||
<h5 id="org22785f1"><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>
|
||||
@ -1419,8 +1419,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfd5571d" class="outline-3">
|
||||
<h3 id="orgfd5571d"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div id="outline-container-org82c9e90" class="outline-3">
|
||||
<h3 id="org82c9e90"><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:
|
||||
@ -1495,8 +1495,8 @@ The following data is computed as described in the next sections:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcac5deb" class="outline-4">
|
||||
<h4 id="orgcac5deb"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div id="outline-container-orgd52b73f" class="outline-4">
|
||||
<h4 id="orgd52b73f"><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
|
||||
@ -1510,8 +1510,8 @@ the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org39d9fc3" class="outline-4">
|
||||
<h4 id="org39d9fc3"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
||||
<div id="outline-container-org8f008dc" class="outline-4">
|
||||
<h4 id="org8f008dc"><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:
|
||||
@ -1541,8 +1541,8 @@ which is a matrix-vector product.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org197ff19" class="outline-4">
|
||||
<h4 id="org197ff19"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||
<div id="outline-container-org362321c" class="outline-4">
|
||||
<h4 id="org362321c"><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>
|
||||
@ -1555,7 +1555,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="#orgdc3634f">3.2</a>.
|
||||
See section <a href="#orgf21fce4">3.2</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1568,7 +1568,7 @@ See section <a href="#orgdc3634f">3.2</a>.
|
||||
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of contracted shells
|
||||
evaluated at the current coordinates. See section <a href="#org745ddab">3.3</a>.
|
||||
evaluated at the current coordinates. See section <a href="#org2fc42d5">3.3</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1582,7 +1582,7 @@ evaluated at the current coordinates. See section <a href="#org745ddab">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="#orgdf74698">5</a>.
|
||||
See section <a href="#org3752d33">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1607,7 +1607,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="#orgdf74698">5</a>.
|
||||
the current coordinates. See section <a href="#org3752d33">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1626,12 +1626,12 @@ Uses the given array to compute the value.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2d515bf" class="outline-2">
|
||||
<h2 id="org2d515bf"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div id="outline-container-org8beb390" class="outline-2">
|
||||
<h2 id="org8beb390"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orgb0edf6f" class="outline-3">
|
||||
<h3 id="orgb0edf6f"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div id="outline-container-orgc579adf" class="outline-3">
|
||||
<h3 id="orgc579adf"><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
|
||||
@ -1802,10 +1802,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdc3634f" class="outline-3">
|
||||
<h3 id="orgdc3634f"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div id="outline-container-orgf21fce4" class="outline-3">
|
||||
<h3 id="orgf21fce4"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<table id="orgcff9b46" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5e541d1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1964,10 +1964,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org745ddab" class="outline-3">
|
||||
<h3 id="org745ddab"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div id="outline-container-org2fc42d5" class="outline-3">
|
||||
<h3 id="org2fc42d5"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<table id="org0e46f1d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf3bd066" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2219,8 +2219,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga756948" class="outline-2">
|
||||
<h2 id="orga756948"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div id="outline-container-orgff1d604" class="outline-2">
|
||||
<h2 id="orgff1d604"><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
|
||||
@ -2240,8 +2240,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-org489b003" class="outline-3">
|
||||
<h3 id="org489b003"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-orgfdd24a7" class="outline-3">
|
||||
<h3 id="orgfdd24a7"><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>
|
||||
@ -2253,7 +2253,7 @@ the \(n\) points:
|
||||
\[ P_{ik} = X_i^k \]
|
||||
</p>
|
||||
|
||||
<table id="orgd40954d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2f67e07" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2391,8 +2391,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4c0eb98" class="outline-3">
|
||||
<h3 id="org4c0eb98"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-orgc7feac9" class="outline-3">
|
||||
<h3 id="orgc7feac9"><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\)
|
||||
@ -2437,7 +2437,7 @@ Laplacians at a given point in space, of all polynomials with an
|
||||
angular momentum up to <code>lmax</code>.
|
||||
</p>
|
||||
|
||||
<table id="org42bfed1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org21f3dd1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3217,18 +3217,18 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdf74698" class="outline-2">
|
||||
<h2 id="orgdf74698"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div id="outline-container-org3752d33" class="outline-2">
|
||||
<h2 id="org3752d33"><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-org08d9fcb" class="outline-3">
|
||||
<h3 id="org08d9fcb"><span class="section-number-3">5.1</span> Values only</h3>
|
||||
<div id="outline-container-orgce29406" class="outline-3">
|
||||
<h3 id="orgce29406"><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-org332b83c" class="outline-4">
|
||||
<h4 id="org332b83c"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-orgb57aa61" class="outline-4">
|
||||
<h4 id="orgb57aa61"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-1">
|
||||
<table id="org4cc7b2a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org06bce1a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3420,6 +3420,7 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
e_coord(1) = coord(ipoint,1)
|
||||
e_coord(2) = coord(ipoint,2)
|
||||
e_coord(3) = coord(ipoint,3)
|
||||
ao_value(:,ipoint) = 0.d0
|
||||
<span style="color: #a020f0;">do</span> inucl=1,nucl_num
|
||||
n_coord(1) = nucl_coord(inucl,1)
|
||||
n_coord(2) = nucl_coord(inucl,2)
|
||||
@ -3464,10 +3465,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb298173" class="outline-4">
|
||||
<h4 id="orgb298173"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div id="outline-container-org8ad7794" class="outline-4">
|
||||
<h4 id="org8ad7794"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-2">
|
||||
<table id="orga3a229f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org720bfb5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3625,8 +3626,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8151584" class="outline-4">
|
||||
<h4 id="org8151584"><span class="section-number-4">5.1.3</span> Interfaces</h4>
|
||||
<div id="outline-container-orgfcc9bea" class="outline-4">
|
||||
<h4 id="orgfcc9bea"><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> (
|
||||
@ -3675,14 +3676,14 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0cde824" class="outline-3">
|
||||
<h3 id="org0cde824"><span class="section-number-3">5.2</span> Value, gradients, Laplacian</h3>
|
||||
<div id="outline-container-orgfcb43f6" class="outline-3">
|
||||
<h3 id="orgfcb43f6"><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-org2f00d19" class="outline-4">
|
||||
<h4 id="org2f00d19"><span class="section-number-4">5.2.1</span> Reference version</h4>
|
||||
<div id="outline-container-orgd5f72ce" class="outline-4">
|
||||
<h4 id="orgd5f72ce"><span class="section-number-4">5.2.1</span> Reference version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-1">
|
||||
<table id="orgfb41351" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org666dcac" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3948,10 +3949,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgad3517c" class="outline-4">
|
||||
<h4 id="orgad3517c"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div id="outline-container-orgd9eaf5e" class="outline-4">
|
||||
<h4 id="orgd9eaf5e"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-2">
|
||||
<table id="orgb3100c7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2cd99a6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4110,8 +4111,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org3b4ffc7" class="outline-4">
|
||||
<h4 id="org3b4ffc7"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||
<div id="outline-container-orgb800fac" class="outline-4">
|
||||
<h4 id="orgb800fac"><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> (
|
||||
@ -4163,7 +4164,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: 2023-08-24 Thu 08:01</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:16</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
184
qmckl_blas.html
184
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>
|
||||
<!-- 2023-08-24 Thu 08:01 -->
|
||||
<!-- 2023-08-24 Thu 08:16 -->
|
||||
<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>
|
||||
@ -346,56 +346,56 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org55c816e">-</a></li>
|
||||
<li><a href="#org8a324bc">1. Data types</a>
|
||||
<li><a href="#org4e250cf">-</a></li>
|
||||
<li><a href="#org48f37c6">1. Data types</a>
|
||||
<ul>
|
||||
<li><a href="#org77a4170">1.1. Vector</a></li>
|
||||
<li><a href="#org010f4f9">1.2. Matrix</a></li>
|
||||
<li><a href="#org7ae20b6">1.3. Tensor</a></li>
|
||||
<li><a href="#orgfe10c98">1.4. Reshaping</a>
|
||||
<li><a href="#org4ebb0a7">1.1. Vector</a></li>
|
||||
<li><a href="#org7467132">1.2. Matrix</a></li>
|
||||
<li><a href="#org3a0893e">1.3. Tensor</a></li>
|
||||
<li><a href="#org70d7fa3">1.4. Reshaping</a>
|
||||
<ul>
|
||||
<li><a href="#orgae8370e">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#orga33811b">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#orgb15ebe2">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#org81c93aa">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#orga1f3c54">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#org694874b">1.4.6. Tensor -> Matrix</a></li>
|
||||
<li><a href="#org1376964">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#org2cf3d1c">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#org8f1cd56">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#org468908b">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#org5d47691">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#org7b9b815">1.4.6. Tensor -> Matrix</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7e6ae60">1.5. Access macros</a></li>
|
||||
<li><a href="#orgdf89198">1.6. Set all elements</a>
|
||||
<li><a href="#orgc34dabe">1.5. Access macros</a></li>
|
||||
<li><a href="#org28ed460">1.6. Set all elements</a>
|
||||
<ul>
|
||||
<li><a href="#orgda97c90">1.6.1. Vector</a></li>
|
||||
<li><a href="#orgeca0aa4">1.6.2. Matrix</a></li>
|
||||
<li><a href="#org621b795">1.6.3. Tensor</a></li>
|
||||
<li><a href="#org66a2fae">1.6.1. Vector</a></li>
|
||||
<li><a href="#orgeff362a">1.6.2. Matrix</a></li>
|
||||
<li><a href="#org79a69a1">1.6.3. Tensor</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org37ec5a4">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#org8e61457">1.8. Allocate and copy to <code>double*</code></a></li>
|
||||
<li><a href="#org9767861">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#orga350738">1.8. Allocate and copy to <code>double*</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org87be379">2. Matrix operations</a>
|
||||
<li><a href="#org2d68c6b">2. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#org9eea5cb">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org50316f1">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#org073a091">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org9b62111">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#org743a862">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<li><a href="#org08d4fa7">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org7587f8e">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#org6702d22">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org7a697da">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#org4bd483b">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgbdb8bba">2.5.1. C interface</a></li>
|
||||
<li><a href="#org9770b3f">2.5.1. C interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgec4271b">2.6. <code>qmckl_transpose</code></a></li>
|
||||
<li><a href="#orgc53e3c0">2.6. <code>qmckl_transpose</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc280d62">3. Utilities</a></li>
|
||||
<li><a href="#orgb78009c">3. Utilities</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org55c816e" class="outline-2">
|
||||
<h2 id="org55c816e">-</h2>
|
||||
<div class="outline-text-2" id="text-org55c816e">
|
||||
<div id="outline-container-org4e250cf" class="outline-2">
|
||||
<h2 id="org4e250cf">-</h2>
|
||||
<div class="outline-text-2" id="text-org4e250cf">
|
||||
<p>
|
||||
Basic linear algebra data types and operations are described in this file.
|
||||
The data types are private, so that HPC implementations can use
|
||||
@ -409,12 +409,12 @@ are not intended to be passed to external codes.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8a324bc" class="outline-2">
|
||||
<h2 id="org8a324bc"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div id="outline-container-org48f37c6" class="outline-2">
|
||||
<h2 id="org48f37c6"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org77a4170" class="outline-3">
|
||||
<h3 id="org77a4170"><span class="section-number-3">1.1</span> Vector</h3>
|
||||
<div id="outline-container-org4ebb0a7" class="outline-3">
|
||||
<h3 id="org4ebb0a7"><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">
|
||||
|
||||
@ -468,8 +468,8 @@ Allocates a new vector. If the allocation failed the size is zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org010f4f9" class="outline-3">
|
||||
<h3 id="org010f4f9"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||
<div id="outline-container-org7467132" class="outline-3">
|
||||
<h3 id="org7467132"><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">
|
||||
|
||||
@ -529,8 +529,8 @@ Allocates a new matrix. If the allocation failed the sizes are zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7ae20b6" class="outline-3">
|
||||
<h3 id="org7ae20b6"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||
<div id="outline-container-org3a0893e" class="outline-3">
|
||||
<h3 id="org3a0893e"><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">
|
||||
|
||||
@ -597,16 +597,16 @@ is zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfe10c98" class="outline-3">
|
||||
<h3 id="orgfe10c98"><span class="section-number-3">1.4</span> Reshaping</h3>
|
||||
<div id="outline-container-org70d7fa3" class="outline-3">
|
||||
<h3 id="org70d7fa3"><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-orgae8370e" class="outline-4">
|
||||
<h4 id="orgae8370e"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||
<div id="outline-container-org1376964" class="outline-4">
|
||||
<h4 id="org1376964"><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>
|
||||
@ -622,8 +622,8 @@ Reshapes a vector into a matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga33811b" class="outline-4">
|
||||
<h4 id="orga33811b"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||
<div id="outline-container-org2cf3d1c" class="outline-4">
|
||||
<h4 id="org2cf3d1c"><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>
|
||||
@ -639,8 +639,8 @@ Reshapes a vector into a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb15ebe2" class="outline-4">
|
||||
<h4 id="orgb15ebe2"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||
<div id="outline-container-org8f1cd56" class="outline-4">
|
||||
<h4 id="org8f1cd56"><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>
|
||||
@ -654,8 +654,8 @@ Reshapes a matrix into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org81c93aa" class="outline-4">
|
||||
<h4 id="org81c93aa"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||
<div id="outline-container-org468908b" class="outline-4">
|
||||
<h4 id="org468908b"><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>
|
||||
@ -671,8 +671,8 @@ Reshapes a matrix into a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga1f3c54" class="outline-4">
|
||||
<h4 id="orga1f3c54"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||
<div id="outline-container-org5d47691" class="outline-4">
|
||||
<h4 id="org5d47691"><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>
|
||||
@ -686,8 +686,8 @@ Reshapes a tensor into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org694874b" class="outline-4">
|
||||
<h4 id="org694874b"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||
<div id="outline-container-org7b9b815" class="outline-4">
|
||||
<h4 id="org7b9b815"><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>
|
||||
@ -704,8 +704,8 @@ Reshapes a tensor into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7e6ae60" class="outline-3">
|
||||
<h3 id="org7e6ae60"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||
<div id="outline-container-orgc34dabe" class="outline-3">
|
||||
<h3 id="orgc34dabe"><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
|
||||
@ -730,12 +730,12 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdf89198" class="outline-3">
|
||||
<h3 id="orgdf89198"><span class="section-number-3">1.6</span> Set all elements</h3>
|
||||
<div id="outline-container-org28ed460" class="outline-3">
|
||||
<h3 id="org28ed460"><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-orgda97c90" class="outline-4">
|
||||
<h4 id="orgda97c90"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||
<div id="outline-container-org66a2fae" class="outline-4">
|
||||
<h4 id="org66a2fae"><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>
|
||||
@ -745,8 +745,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeca0aa4" class="outline-4">
|
||||
<h4 id="orgeca0aa4"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||
<div id="outline-container-orgeff362a" class="outline-4">
|
||||
<h4 id="orgeff362a"><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>
|
||||
@ -756,8 +756,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org621b795" class="outline-4">
|
||||
<h4 id="org621b795"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||
<div id="outline-container-org79a69a1" class="outline-4">
|
||||
<h4 id="org79a69a1"><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>
|
||||
@ -768,8 +768,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org37ec5a4" class="outline-3">
|
||||
<h3 id="org37ec5a4"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||
<div id="outline-container-org9767861" class="outline-3">
|
||||
<h3 id="org9767861"><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>
|
||||
@ -851,8 +851,8 @@ Converts a <code>double*</code> to a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8e61457" class="outline-3">
|
||||
<h3 id="org8e61457"><span class="section-number-3">1.8</span> Allocate and copy to <code>double*</code></h3>
|
||||
<div id="outline-container-orga350738" class="outline-3">
|
||||
<h3 id="orga350738"><span class="section-number-3">1.8</span> Allocate and copy to <code>double*</code></h3>
|
||||
<div class="outline-text-3" id="text-1-8">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">double</span>* <span style="color: #0000ff;">qmckl_alloc_double_of_vector</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
@ -876,12 +876,12 @@ Converts a <code>double*</code> to a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org87be379" class="outline-2">
|
||||
<h2 id="org87be379"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div id="outline-container-org2d68c6b" class="outline-2">
|
||||
<h2 id="org2d68c6b"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org9eea5cb" class="outline-3">
|
||||
<h3 id="org9eea5cb"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div id="outline-container-org08d4fa7" class="outline-3">
|
||||
<h3 id="org08d4fa7"><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:
|
||||
@ -893,7 +893,7 @@ Matrix multiplication with a BLAS interface:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="orgcdb4b4c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9bf03fe" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1052,8 +1052,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org50316f1" class="outline-3">
|
||||
<h3 id="org50316f1"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
||||
<div id="outline-container-org7587f8e" class="outline-3">
|
||||
<h3 id="org7587f8e"><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>
|
||||
@ -1062,7 +1062,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="orgdc5dc5a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org66ce474" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1248,8 +1248,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org073a091" class="outline-3">
|
||||
<h3 id="org073a091"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
||||
<div id="outline-container-org6702d22" class="outline-3">
|
||||
<h3 id="org6702d22"><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:
|
||||
@ -1261,7 +1261,7 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="orgac20cb1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc48cebc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1355,8 +1355,8 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9b62111" class="outline-3">
|
||||
<h3 id="org9b62111"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
||||
<div id="outline-container-org7a697da" class="outline-3">
|
||||
<h3 id="org7a697da"><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
|
||||
@ -1374,7 +1374,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="org4b62515" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0a678b1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1570,8 +1570,8 @@ determinant with the inverse:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org743a862" class="outline-3">
|
||||
<h3 id="org743a862"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
||||
<div id="outline-container-org4bd483b" class="outline-3">
|
||||
<h3 id="org4bd483b"><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>
|
||||
@ -1581,7 +1581,7 @@ NumPy arrays implies that sizes of the input and output arrays are provided.
|
||||
</p>
|
||||
|
||||
|
||||
<table id="org10834e7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgceed1b7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1703,13 +1703,13 @@ LAPACK library.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbdb8bba" class="outline-4">
|
||||
<h4 id="orgbdb8bba"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
<div id="outline-container-org9770b3f" class="outline-4">
|
||||
<h4 id="org9770b3f"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgec4271b" class="outline-3">
|
||||
<h3 id="orgec4271b"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
||||
<div id="outline-container-orgc53e3c0" class="outline-3">
|
||||
<h3 id="orgc53e3c0"><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}\).
|
||||
@ -1770,8 +1770,8 @@ Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc280d62" class="outline-2">
|
||||
<h2 id="orgc280d62"><span class="section-number-2">3</span> Utilities</h2>
|
||||
<div id="outline-container-orgb78009c" class="outline-2">
|
||||
<h2 id="orgb78009c"><span class="section-number-2">3</span> Utilities</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
Trick to make MKL efficient on AMD
|
||||
@ -1789,7 +1789,7 @@ Trick to make MKL efficient on AMD
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:01</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:16</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>
|
||||
<!-- 2023-08-24 Thu 08:01 -->
|
||||
<!-- 2023-08-24 Thu 08:16 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Context</title>
|
||||
@ -324,21 +324,21 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org5945343">1. Context handling</a>
|
||||
<li><a href="#org84cb1b2">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#orgdb5f1f5">1.1. Data structure</a></li>
|
||||
<li><a href="#orgb920145">1.2. Creation</a></li>
|
||||
<li><a href="#org5e61d92">1.3. Locking</a></li>
|
||||
<li><a href="#org604204d">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org41cc73c">1.5. Destroy</a></li>
|
||||
<li><a href="#org87ece25">1.1. Data structure</a></li>
|
||||
<li><a href="#orge562cd6">1.2. Creation</a></li>
|
||||
<li><a href="#org0093e1a">1.3. Locking</a></li>
|
||||
<li><a href="#org2e751ba">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#orgc5f5314">1.5. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5945343" class="outline-2">
|
||||
<h2 id="org5945343"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-org84cb1b2" class="outline-2">
|
||||
<h2 id="org84cb1b2"><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,
|
||||
@ -351,7 +351,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="org71b036b"><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="org2ff1860"><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>
|
||||
@ -369,8 +369,8 @@ and <code>ctx</code> is a <code>qmckl_context_struct*</code> pointer.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdb5f1f5" class="outline-3">
|
||||
<h3 id="orgdb5f1f5"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org87ece25" class="outline-3">
|
||||
<h3 id="org87ece25"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
The qmckl<sub>extra</sub> pointer lets the other implementation of the library
|
||||
@ -406,7 +406,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="#orgb920145"><code>qmckl_context_create</code></a> <a href="#org41cc73c"><code>qmckl_context_destroy</code></a> and <a href="#org604204d"><code>qmckl_context_copy</code></a>
|
||||
<a href="#orge562cd6"><code>qmckl_context_create</code></a> <a href="#orgc5f5314"><code>qmckl_context_destroy</code></a> and <a href="#org2e751ba"><code>qmckl_context_copy</code></a>
|
||||
should be updated in order to make deep copies.
|
||||
</p>
|
||||
|
||||
@ -427,8 +427,8 @@ This has the effect to increment the date of the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb920145" class="outline-3">
|
||||
<h3 id="orgb920145"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-orge562cd6" class="outline-3">
|
||||
<h3 id="orge562cd6"><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.
|
||||
@ -445,8 +445,8 @@ To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org5e61d92" class="outline-3">
|
||||
<h3 id="org5e61d92"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-org0093e1a" class="outline-3">
|
||||
<h3 id="org0093e1a"><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
|
||||
@ -462,8 +462,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org604204d" class="outline-3">
|
||||
<h3 id="org604204d"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div id="outline-container-org2e751ba" class="outline-3">
|
||||
<h3 id="org2e751ba"><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
|
||||
@ -471,8 +471,8 @@ number of times the thread has locked it is saved in the
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org41cc73c" class="outline-3">
|
||||
<h3 id="org41cc73c"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-orgc5f5314" class="outline-3">
|
||||
<h3 id="orgc5f5314"><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.
|
||||
@ -490,7 +490,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: 2023-08-24 Thu 08:01</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:16</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>
|
||||
<!-- 2023-08-24 Thu 08:01 -->
|
||||
<!-- 2023-08-24 Thu 08:15 -->
|
||||
<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>
|
||||
@ -324,32 +324,32 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org1eae826">1. Context</a>
|
||||
<li><a href="#orgebf2f75">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org5575d3a">1.1. Data structure</a></li>
|
||||
<li><a href="#orgeed0c86">1.2. Access functions</a></li>
|
||||
<li><a href="#orgba61c4c">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgf03f110">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#orgc454df4">1.5. Test</a></li>
|
||||
<li><a href="#org02ab2c0">1.1. Data structure</a></li>
|
||||
<li><a href="#orgcf214a6">1.2. Access functions</a></li>
|
||||
<li><a href="#org370521f">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgb500bb9">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#org6c3eb5a">1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2ce190a">2. Computation</a>
|
||||
<li><a href="#org5da2588">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org3c851ac">2.1. Determinant matrix</a>
|
||||
<li><a href="#org78f01f6">2.1. Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#orgd58d354">2.1.1. Get</a></li>
|
||||
<li><a href="#org88e6a61">2.1.2. Provide</a></li>
|
||||
<li><a href="#org4a4afa5">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#org09dc2b0">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#org8279f33">2.1.5. Test</a></li>
|
||||
<li><a href="#org2f7fe2c">2.1.1. Get</a></li>
|
||||
<li><a href="#org6ba85ee">2.1.2. Provide</a></li>
|
||||
<li><a href="#org3c0caa6">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#org0c5bb8b">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#org056a324">2.1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org30982dd">2.2. Inverse of Determinant matrix</a>
|
||||
<li><a href="#org5209ed3">2.2. Inverse of Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org7e6d28b">2.2.1. Get</a></li>
|
||||
<li><a href="#orgd9bd2bf">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgc8e8de5">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#orgce2a47a">2.2.4. Compute beta</a></li>
|
||||
<li><a href="#orgbc6ed82">2.2.1. Get</a></li>
|
||||
<li><a href="#org496fd74">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgdf2feae">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#orgdccd03a">2.2.4. Compute beta</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -358,8 +358,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1eae826" class="outline-2">
|
||||
<h2 id="org1eae826"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgebf2f75" class="outline-2">
|
||||
<h2 id="orgebf2f75"><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:
|
||||
@ -535,8 +535,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5575d3a" class="outline-3">
|
||||
<h3 id="org5575d3a"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org02ab2c0" class="outline-3">
|
||||
<h3 id="org02ab2c0"><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> {
|
||||
@ -604,8 +604,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeed0c86" class="outline-3">
|
||||
<h3 id="orgeed0c86"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgcf214a6" class="outline-3">
|
||||
<h3 id="orgcf214a6"><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
|
||||
@ -619,8 +619,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgba61c4c" class="outline-3">
|
||||
<h3 id="orgba61c4c"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org370521f" class="outline-3">
|
||||
<h3 id="org370521f"><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
|
||||
@ -643,24 +643,24 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf03f110" class="outline-3">
|
||||
<h3 id="orgf03f110"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
<div id="outline-container-orgb500bb9" class="outline-3">
|
||||
<h3 id="orgb500bb9"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
</div>
|
||||
<div id="outline-container-orgc454df4" class="outline-3">
|
||||
<h3 id="orgc454df4"><span class="section-number-3">1.5</span> Test</h3>
|
||||
<div id="outline-container-org6c3eb5a" class="outline-3">
|
||||
<h3 id="org6c3eb5a"><span class="section-number-3">1.5</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org2ce190a" class="outline-2">
|
||||
<h2 id="org2ce190a"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org5da2588" class="outline-2">
|
||||
<h2 id="org5da2588"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org3c851ac" class="outline-3">
|
||||
<h3 id="org3c851ac"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
||||
<div id="outline-container-org78f01f6" class="outline-3">
|
||||
<h3 id="org78f01f6"><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-orgd58d354" class="outline-4">
|
||||
<h4 id="orgd58d354"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org2f7fe2c" class="outline-4">
|
||||
<h4 id="org2f7fe2c"><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>);
|
||||
@ -670,14 +670,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org88e6a61" class="outline-4">
|
||||
<h4 id="org88e6a61"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org6ba85ee" class="outline-4">
|
||||
<h4 id="org6ba85ee"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4a4afa5" class="outline-4">
|
||||
<h4 id="org4a4afa5"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org3c0caa6" class="outline-4">
|
||||
<h4 id="org3c0caa6"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="orgc1b3a4c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge81b7cd" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -851,10 +851,10 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org09dc2b0" class="outline-4">
|
||||
<h4 id="org09dc2b0"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org0c5bb8b" class="outline-4">
|
||||
<h4 id="org0c5bb8b"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<table id="org10651ca" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd91eb72" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1028,18 +1028,18 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8279f33" class="outline-4">
|
||||
<h4 id="org8279f33"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
<div id="outline-container-org056a324" class="outline-4">
|
||||
<h4 id="org056a324"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org30982dd" class="outline-3">
|
||||
<h3 id="org30982dd"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
||||
<div id="outline-container-org5209ed3" class="outline-3">
|
||||
<h3 id="org5209ed3"><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-org7e6d28b" class="outline-4">
|
||||
<h4 id="org7e6d28b"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgbc6ed82" class="outline-4">
|
||||
<h4 id="orgbc6ed82"><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>);
|
||||
@ -1053,14 +1053,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd9bd2bf" class="outline-4">
|
||||
<h4 id="orgd9bd2bf"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org496fd74" class="outline-4">
|
||||
<h4 id="org496fd74"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc8e8de5" class="outline-4">
|
||||
<h4 id="orgc8e8de5"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-orgdf2feae" class="outline-4">
|
||||
<h4 id="orgdf2feae"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="orge18f531" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5257626" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1222,10 +1222,10 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgce2a47a" class="outline-4">
|
||||
<h4 id="orgce2a47a"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div id="outline-container-orgdccd03a" class="outline-4">
|
||||
<h4 id="orgdccd03a"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<table id="orgcf824b8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge26c601" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1392,7 +1392,7 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:01</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:15</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>
|
||||
<!-- 2023-08-24 Thu 08:01 -->
|
||||
<!-- 2023-08-24 Thu 08:16 -->
|
||||
<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>
|
||||
@ -346,54 +346,54 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org14c94ed">1. Squared distance</a>
|
||||
<li><a href="#org9748666">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#org7033e16">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#org4fa1529">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#org04b6488">1.1.1. Performance</a></li>
|
||||
<li><a href="#org81a27a6">1.1.1. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4b8dea1">2. Distance</a>
|
||||
<li><a href="#org4265068">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org6941535">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#orgc947f4a">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#org15c684a">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orge0a8ca0">2.1.2. C header</a></li>
|
||||
<li><a href="#orga2b756d">2.1.3. Source</a></li>
|
||||
<li><a href="#org88cb226">2.1.4. Performance</a></li>
|
||||
<li><a href="#org51d9dda">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org61da9b2">2.1.2. C header</a></li>
|
||||
<li><a href="#orgb07c94c">2.1.3. Source</a></li>
|
||||
<li><a href="#org00ba037">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org038ffde">3. Rescaled Distance</a>
|
||||
<li><a href="#org5acefe3">3. Rescaled Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org9cd76cb">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<li><a href="#org8725efb">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgda69f7b">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orgd586be1">3.1.2. C header</a></li>
|
||||
<li><a href="#org369ea42">3.1.3. Source</a></li>
|
||||
<li><a href="#orga68d67c">3.1.4. Performance</a></li>
|
||||
<li><a href="#orgc2de388">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org1a471c9">3.1.2. C header</a></li>
|
||||
<li><a href="#org0beb2f9">3.1.3. Source</a></li>
|
||||
<li><a href="#orgad697be">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4969cd8">4. Rescaled Distance Derivatives</a>
|
||||
<li><a href="#org7f108a1">4. Rescaled Distance Derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#org3b823d4">4.1. <code>qmckl_distance_rescaled_gl</code></a></li>
|
||||
<li><a href="#org2c67d15">4.1. <code>qmckl_distance_rescaled_gl</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org14c94ed" class="outline-2">
|
||||
<h2 id="org14c94ed"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-org9748666" class="outline-2">
|
||||
<h2 id="org9748666"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org7033e16" class="outline-3">
|
||||
<h3 id="org7033e16"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-org4fa1529" class="outline-3">
|
||||
<h3 id="org4fa1529"><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
|
||||
@ -406,7 +406,7 @@ between all pairs of points in two sets, one point within each set:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="orga12d5f1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6779a94" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -672,8 +672,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org04b6488" class="outline-4">
|
||||
<h4 id="org04b6488"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div id="outline-container-org81a27a6" class="outline-4">
|
||||
<h4 id="org81a27a6"><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
|
||||
@ -683,12 +683,12 @@ transposed.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org4b8dea1" class="outline-2">
|
||||
<h2 id="org4b8dea1"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-org4265068" class="outline-2">
|
||||
<h2 id="org4265068"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org6941535" class="outline-3">
|
||||
<h3 id="org6941535"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div id="outline-container-orgc947f4a" class="outline-3">
|
||||
<h3 id="orgc947f4a"><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
|
||||
@ -706,7 +706,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="orgb37aca4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgdf299ff" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -807,8 +807,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org15c684a" class="outline-4">
|
||||
<h4 id="org15c684a"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org51d9dda" class="outline-4">
|
||||
<h4 id="org51d9dda"><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>
|
||||
@ -826,8 +826,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge0a8ca0" class="outline-4">
|
||||
<h4 id="orge0a8ca0"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-org61da9b2" class="outline-4">
|
||||
<h4 id="org61da9b2"><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> (
|
||||
@ -847,8 +847,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga2b756d" class="outline-4">
|
||||
<h4 id="orga2b756d"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgb07c94c" class="outline-4">
|
||||
<h4 id="orgb07c94c"><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>
|
||||
@ -995,8 +995,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org88cb226" class="outline-4">
|
||||
<h4 id="org88cb226"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org00ba037" class="outline-4">
|
||||
<h4 id="org00ba037"><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.
|
||||
@ -1006,12 +1006,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org038ffde" class="outline-2">
|
||||
<h2 id="org038ffde"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div id="outline-container-org5acefe3" class="outline-2">
|
||||
<h2 id="org5acefe3"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org9cd76cb" class="outline-3">
|
||||
<h3 id="org9cd76cb"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div id="outline-container-org8725efb" class="outline-3">
|
||||
<h3 id="org8725efb"><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
|
||||
@ -1029,7 +1029,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="orgf732faf" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge56c7fa" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1137,8 +1137,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgda69f7b" class="outline-4">
|
||||
<h4 id="orgda69f7b"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgc2de388" class="outline-4">
|
||||
<h4 id="orgc2de388"><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>
|
||||
@ -1156,8 +1156,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd586be1" class="outline-4">
|
||||
<h4 id="orgd586be1"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-org1a471c9" class="outline-4">
|
||||
<h4 id="org1a471c9"><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> (
|
||||
@ -1178,8 +1178,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org369ea42" class="outline-4">
|
||||
<h4 id="org369ea42"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-org0beb2f9" class="outline-4">
|
||||
<h4 id="org0beb2f9"><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>
|
||||
@ -1329,8 +1329,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga68d67c" class="outline-4">
|
||||
<h4 id="orga68d67c"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgad697be" class="outline-4">
|
||||
<h4 id="orgad697be"><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.
|
||||
@ -1339,12 +1339,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org4969cd8" class="outline-2">
|
||||
<h2 id="org4969cd8"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div id="outline-container-org7f108a1" class="outline-2">
|
||||
<h2 id="org7f108a1"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org3b823d4" class="outline-3">
|
||||
<h3 id="org3b823d4"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_gl</code></h3>
|
||||
<div id="outline-container-org2c67d15" class="outline-3">
|
||||
<h3 id="org2c67d15"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_gl</code></h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
<code>qmckl_distance_rescaled_gl</code> computes the matrix of the gradient and Laplacian of the
|
||||
@ -1399,7 +1399,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="org7325d3a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge6fa8bf" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1731,7 +1731,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: 2023-08-24 Thu 08:01</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:16</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>
|
||||
<!-- 2023-08-24 Thu 08:01 -->
|
||||
<!-- 2023-08-24 Thu 08:16 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Electrons</title>
|
||||
@ -346,59 +346,59 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgd7e53cf">1. Context</a>
|
||||
<li><a href="#org7f3a1e4">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgd6769f0">1.1. Data structure</a></li>
|
||||
<li><a href="#org9056d9a">1.2. Initialization functions</a></li>
|
||||
<li><a href="#orgd93147c">1.3. Access functions</a>
|
||||
<li><a href="#orgfaf3fd0">1.1. Data structure</a></li>
|
||||
<li><a href="#orge725674">1.2. Initialization functions</a></li>
|
||||
<li><a href="#orgb717d81">1.3. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org66077c0">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#org1e8d636">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#orgaa4200d">1.3.3. Electron coordinates</a></li>
|
||||
<li><a href="#orgf03c07e">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#orgc838e28">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#org0e83578">1.3.3. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org29b97ac">1.4. Test</a></li>
|
||||
<li><a href="#org5680247">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5b2457b">2. Computation</a>
|
||||
<li><a href="#org41affd5">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgc94af32">2.1. Electron-electron distances</a>
|
||||
<li><a href="#orgb658fcd">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgbbeec7b">2.1.1. Get</a></li>
|
||||
<li><a href="#orgfc237da">2.1.2. Compute</a></li>
|
||||
<li><a href="#org210342b">2.1.3. Test</a></li>
|
||||
<li><a href="#org01ccb33">2.1.1. Get</a></li>
|
||||
<li><a href="#org3904e80">2.1.2. Compute</a></li>
|
||||
<li><a href="#orga541886">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6e94e0b">2.2. Electron-electron potential</a>
|
||||
<li><a href="#org8934827">2.2. Electron-electron potential</a>
|
||||
<ul>
|
||||
<li><a href="#org9871e68">2.2.1. Get</a></li>
|
||||
<li><a href="#org2bbe0ee">2.2.2. Compute</a></li>
|
||||
<li><a href="#org4877968">2.2.3. Test</a></li>
|
||||
<li><a href="#org0782613">2.2.1. Get</a></li>
|
||||
<li><a href="#orga136512">2.2.2. Compute</a></li>
|
||||
<li><a href="#org61e1460">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7934d56">2.3. Electron-nucleus distances</a>
|
||||
<li><a href="#orga243c24">2.3. Electron-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org35c8e2d">2.3.1. Get</a></li>
|
||||
<li><a href="#org49b46bc">2.3.2. Compute</a></li>
|
||||
<li><a href="#org527c30c">2.3.3. Test</a></li>
|
||||
<li><a href="#orgf7db02b">2.3.1. Get</a></li>
|
||||
<li><a href="#orgfbb0bd2">2.3.2. Compute</a></li>
|
||||
<li><a href="#orgfe266e5">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd76c3c7">2.4. Electron-nucleus potential</a>
|
||||
<li><a href="#orge248b02">2.4. Electron-nucleus potential</a>
|
||||
<ul>
|
||||
<li><a href="#org8f7cc0b">2.4.1. Get</a></li>
|
||||
<li><a href="#org4274044">2.4.2. Compute</a></li>
|
||||
<li><a href="#org9f30f0a">2.4.3. Test</a></li>
|
||||
<li><a href="#orgb9bb2da">2.4.1. Get</a></li>
|
||||
<li><a href="#org7f1f3e6">2.4.2. Compute</a></li>
|
||||
<li><a href="#org5517e24">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org290eb4c">2.5. Generate initial coordinates</a></li>
|
||||
<li><a href="#org2b9ef57">2.5. Generate initial coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd7e53cf" class="outline-2">
|
||||
<h2 id="orgd7e53cf"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org7f3a1e4" class="outline-2">
|
||||
<h2 id="org7f3a1e4"><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:
|
||||
@ -539,8 +539,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd6769f0" class="outline-3">
|
||||
<h3 id="orgd6769f0"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgfaf3fd0" class="outline-3">
|
||||
<h3 id="orgfaf3fd0"><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">
|
||||
@ -609,8 +609,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9056d9a" class="outline-3">
|
||||
<h3 id="org9056d9a"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-orge725674" class="outline-3">
|
||||
<h3 id="orge725674"><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
|
||||
@ -683,8 +683,8 @@ in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd93147c" class="outline-3">
|
||||
<h3 id="orgd93147c"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div id="outline-container-orgb717d81" class="outline-3">
|
||||
<h3 id="orgb717d81"><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
|
||||
@ -696,12 +696,12 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org66077c0" class="outline-4">
|
||||
<h4 id="org66077c0"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
<div id="outline-container-orgf03c07e" class="outline-4">
|
||||
<h4 id="orgf03c07e"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1e8d636" class="outline-4">
|
||||
<h4 id="org1e8d636"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
||||
<div id="outline-container-orgc838e28" class="outline-4">
|
||||
<h4 id="orgc838e28"><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
|
||||
@ -710,8 +710,8 @@ the wave function. <code>walk_num</code> is the number of walkers.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaa4200d" class="outline-4">
|
||||
<h4 id="orgaa4200d"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
||||
<div id="outline-container-org0e83578" class="outline-4">
|
||||
<h4 id="org0e83578"><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
|
||||
@ -761,8 +761,8 @@ current points.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org29b97ac" class="outline-3">
|
||||
<h3 id="org29b97ac"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org5680247" class="outline-3">
|
||||
<h3 id="org5680247"><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> */
|
||||
@ -841,8 +841,8 @@ rc = qmckl_get_electron_coord (context, <span style="color: #8b2252;">'N'</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5b2457b" class="outline-2">
|
||||
<h2 id="org5b2457b"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org41affd5" class="outline-2">
|
||||
<h2 id="org41affd5"><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
|
||||
@ -855,12 +855,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc94af32" class="outline-3">
|
||||
<h3 id="orgc94af32"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-orgb658fcd" class="outline-3">
|
||||
<h3 id="orgb658fcd"><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-orgbbeec7b" class="outline-4">
|
||||
<h4 id="orgbbeec7b"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org01ccb33" class="outline-4">
|
||||
<h4 id="org01ccb33"><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>);
|
||||
@ -869,10 +869,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfc237da" class="outline-4">
|
||||
<h4 id="orgfc237da"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org3904e80" class="outline-4">
|
||||
<h4 id="org3904e80"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orgc3d0b98" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org118fb15" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -977,8 +977,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org210342b" class="outline-4">
|
||||
<h4 id="org210342b"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orga541886" class="outline-4">
|
||||
<h4 id="orga541886"><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>));
|
||||
@ -1012,8 +1012,8 @@ rc = qmckl_get_electron_ee_distance(context, ee_distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6e94e0b" class="outline-3">
|
||||
<h3 id="org6e94e0b"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
||||
<div id="outline-container-org8934827" class="outline-3">
|
||||
<h3 id="org8934827"><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
|
||||
@ -1031,8 +1031,8 @@ distance.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9871e68" class="outline-4">
|
||||
<h4 id="org9871e68"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org0782613" class="outline-4">
|
||||
<h4 id="org0782613"><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>);
|
||||
@ -1041,10 +1041,10 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2bbe0ee" class="outline-4">
|
||||
<h4 id="org2bbe0ee"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-orga136512" class="outline-4">
|
||||
<h4 id="orga136512"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orgf360f95" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd5bb587" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1160,8 +1160,8 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4877968" class="outline-4">
|
||||
<h4 id="org4877968"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org61e1460" class="outline-4">
|
||||
<h4 id="org61e1460"><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];
|
||||
@ -1173,12 +1173,12 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org7934d56" class="outline-3">
|
||||
<h3 id="org7934d56"><span class="section-number-3">2.3</span> Electron-nucleus distances</h3>
|
||||
<div id="outline-container-orga243c24" class="outline-3">
|
||||
<h3 id="orga243c24"><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-org35c8e2d" class="outline-4">
|
||||
<h4 id="org35c8e2d"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-orgf7db02b" class="outline-4">
|
||||
<h4 id="orgf7db02b"><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>);
|
||||
@ -1187,10 +1187,10 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org49b46bc" class="outline-4">
|
||||
<h4 id="org49b46bc"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-orgfbb0bd2" class="outline-4">
|
||||
<h4 id="orgfbb0bd2"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org67797d5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org47eeb21" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1297,8 +1297,8 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org527c30c" class="outline-4">
|
||||
<h4 id="org527c30c"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-orgfe266e5" class="outline-4">
|
||||
<h4 id="orgfe266e5"><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">
|
||||
@ -1346,8 +1346,8 @@ rc = qmckl_get_electron_en_distance(context, &(en_distance[0][0][0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd76c3c7" class="outline-3">
|
||||
<h3 id="orgd76c3c7"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
||||
<div id="outline-container-orge248b02" class="outline-3">
|
||||
<h3 id="orge248b02"><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
|
||||
@ -1365,8 +1365,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8f7cc0b" class="outline-4">
|
||||
<h4 id="org8f7cc0b"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-orgb9bb2da" class="outline-4">
|
||||
<h4 id="orgb9bb2da"><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>);
|
||||
@ -1375,10 +1375,10 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4274044" class="outline-4">
|
||||
<h4 id="org4274044"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-org7f1f3e6" class="outline-4">
|
||||
<h4 id="org7f1f3e6"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="org6edbd3f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org28e8ad7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1512,8 +1512,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9f30f0a" class="outline-4">
|
||||
<h4 id="org9f30f0a"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-org5517e24" class="outline-4">
|
||||
<h4 id="org5517e24"><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];
|
||||
@ -1526,14 +1526,14 @@ rc = qmckl_get_electron_en_potential(context, &(en_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org290eb4c" class="outline-3">
|
||||
<h3 id="org290eb4c"><span class="section-number-3">2.5</span> Generate initial coordinates</h3>
|
||||
<div id="outline-container-org2b9ef57" class="outline-3">
|
||||
<h3 id="org2b9ef57"><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: 2023-08-24 Thu 08:01</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:16</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>
|
||||
<!-- 2023-08-24 Thu 08:01 -->
|
||||
<!-- 2023-08-24 Thu 08:15 -->
|
||||
<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>
|
||||
@ -324,29 +324,29 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org8cad256">-</a></li>
|
||||
<li><a href="#orgafbe7ac">1. Decoding errors</a></li>
|
||||
<li><a href="#orgfacabf6">2. Data structure in context</a></li>
|
||||
<li><a href="#orgdc703dd">3. Updating errors in the context</a></li>
|
||||
<li><a href="#orgfb1f9d1">4. Get the error</a></li>
|
||||
<li><a href="#orgbf73002">5. Failing</a></li>
|
||||
<li><a href="#org4cc982d">6. Last error</a>
|
||||
<li><a href="#orge646af3">-</a></li>
|
||||
<li><a href="#org7bdd6d0">1. Decoding errors</a></li>
|
||||
<li><a href="#org6edf80e">2. Data structure in context</a></li>
|
||||
<li><a href="#org41c59dc">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org1286e20">4. Get the error</a></li>
|
||||
<li><a href="#orgc84877f">5. Failing</a></li>
|
||||
<li><a href="#org330482a">6. Last error</a>
|
||||
<ul>
|
||||
<li><a href="#org0f232a4">6.1. Fortran inteface</a></li>
|
||||
<li><a href="#org74b3696">6.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgcb78e52">7. Helper functions for debugging</a>
|
||||
<li><a href="#org8d05ffa">7. Helper functions for debugging</a>
|
||||
<ul>
|
||||
<li><a href="#orge47d507">7.1. Fortran inteface</a></li>
|
||||
<li><a href="#orgc75b8b5">7.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8cad256" class="outline-2">
|
||||
<h2 id="org8cad256">-</h2>
|
||||
<div class="outline-text-2" id="text-org8cad256">
|
||||
<div id="outline-container-orge646af3" class="outline-2">
|
||||
<h2 id="orge646af3">-</h2>
|
||||
<div class="outline-text-2" id="text-orge646af3">
|
||||
<p>
|
||||
The library should never make the calling programs abort, nor
|
||||
perform any input/output operations. This decision has to be taken
|
||||
@ -357,7 +357,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="org5c1622f"><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="orge83048d"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int32_t</span> <span style="color: #228b22;">qmckl_exit_code</span>;
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -374,7 +374,7 @@ error code is returned to the program.
|
||||
Here is the complete list of exit codes.
|
||||
</p>
|
||||
|
||||
<table id="orgd7ca6a8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd5c7d50" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -582,8 +582,8 @@ string is assumed to be large enough to contain the error message
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgafbe7ac" class="outline-2">
|
||||
<h2 id="orgafbe7ac"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-org7bdd6d0" class="outline-2">
|
||||
<h2 id="org7bdd6d0"><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
|
||||
@ -601,8 +601,8 @@ The text strings are extracted from the previous table.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgfacabf6" class="outline-2">
|
||||
<h2 id="orgfacabf6"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-org6edf80e" class="outline-2">
|
||||
<h2 id="org6edf80e"><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
|
||||
@ -625,8 +625,8 @@ dynamic memory allocation.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdc703dd" class="outline-2">
|
||||
<h2 id="orgdc703dd"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div id="outline-container-org41c59dc" class="outline-2">
|
||||
<h2 id="org41c59dc"><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>.
|
||||
@ -645,8 +645,8 @@ explaining the error. The exit code can't be <code>QMCKL_SUCCESS</code>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgfb1f9d1" class="outline-2">
|
||||
<h2 id="orgfb1f9d1"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div id="outline-container-org1286e20" class="outline-2">
|
||||
<h2 id="org1286e20"><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
|
||||
@ -665,8 +665,8 @@ function name and message is mandatory.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgbf73002" class="outline-2">
|
||||
<h2 id="orgbf73002"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div id="outline-container-orgc84877f" class="outline-2">
|
||||
<h2 id="orgc84877f"><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
|
||||
@ -703,8 +703,8 @@ For example, this function can be used as
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4cc982d" class="outline-2">
|
||||
<h2 id="org4cc982d"><span class="section-number-2">6</span> Last error</h2>
|
||||
<div id="outline-container-org330482a" class="outline-2">
|
||||
<h2 id="org330482a"><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>.
|
||||
@ -716,13 +716,13 @@ Returns a string describing the last error, using <code>qmckl_get_error</code>.
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org0f232a4" class="outline-3">
|
||||
<h3 id="org0f232a4"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-org74b3696" class="outline-3">
|
||||
<h3 id="org74b3696"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcb78e52" class="outline-2">
|
||||
<h2 id="orgcb78e52"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
||||
<div id="outline-container-org8d05ffa" class="outline-2">
|
||||
<h2 id="org8d05ffa"><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
|
||||
@ -748,14 +748,14 @@ It should be used as:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge47d507" class="outline-3">
|
||||
<h3 id="orge47d507"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-orgc75b8b5" class="outline-3">
|
||||
<h3 id="orgc75b8b5"><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: 2023-08-24 Thu 08:01</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:15</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>
|
||||
<!-- 2023-08-24 Thu 08:01 -->
|
||||
<!-- 2023-08-24 Thu 08:16 -->
|
||||
<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>
|
||||
@ -346,27 +346,27 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org174173e">1. Python</a>
|
||||
<li><a href="#org1b3f3e9">1. Python</a>
|
||||
<ul>
|
||||
<li><a href="#org08d5e24">1.1. Check numerically that MOs are orthonormal</a></li>
|
||||
<li><a href="#org75c14ce">1.1. Check numerically that MOs are orthonormal</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7f98da5">2. Fortran</a>
|
||||
<li><a href="#org3542edc">2. Fortran</a>
|
||||
<ul>
|
||||
<li><a href="#org27e2ce5">2.1. Checking errors</a></li>
|
||||
<li><a href="#org294b060">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
<li><a href="#org792538d">2.1. Checking errors</a></li>
|
||||
<li><a href="#orgc52598a">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org174173e" class="outline-2">
|
||||
<h2 id="org174173e"><span class="section-number-2">1</span> Python</h2>
|
||||
<div id="outline-container-org1b3f3e9" class="outline-2">
|
||||
<h2 id="org1b3f3e9"><span class="section-number-2">1</span> Python</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org08d5e24" class="outline-3">
|
||||
<h3 id="org08d5e24"><span class="section-number-3">1.1</span> Check numerically that MOs are orthonormal</h3>
|
||||
<div id="outline-container-org75c14ce" class="outline-3">
|
||||
<h3 id="org75c14ce"><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
|
||||
@ -542,12 +542,12 @@ and finally we compute the overlap between all the MOs as
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7f98da5" class="outline-2">
|
||||
<h2 id="org7f98da5"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div id="outline-container-org3542edc" class="outline-2">
|
||||
<h2 id="org3542edc"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org27e2ce5" class="outline-3">
|
||||
<h3 id="org27e2ce5"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div id="outline-container-org792538d" class="outline-3">
|
||||
<h3 id="org792538d"><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
|
||||
@ -556,7 +556,7 @@ error in text format and exits the program.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90" id="org44f30fb"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<pre class="src src-f90" id="org5849ae6"><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>
|
||||
@ -574,8 +574,8 @@ error in text format and exits the program.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org294b060" class="outline-3">
|
||||
<h3 id="org294b060"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div id="outline-container-orgc52598a" class="outline-3">
|
||||
<h3 id="orgc52598a"><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
|
||||
@ -794,7 +794,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: 2023-08-24 Thu 08:01</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:16</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
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>
|
||||
<!-- 2023-08-24 Thu 08:01 -->
|
||||
<!-- 2023-08-24 Thu 08:16 -->
|
||||
<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>
|
||||
@ -346,44 +346,44 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgc7bbe1d">1. Context</a>
|
||||
<li><a href="#orgdef09b1">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgace9997">1.1. Data structure</a></li>
|
||||
<li><a href="#org6f3363a">1.2. Access functions</a></li>
|
||||
<li><a href="#orgd765ec4">1.1. Data structure</a></li>
|
||||
<li><a href="#org5cd37c7">1.2. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org61bc61d">2. Computation</a>
|
||||
<li><a href="#orga26d8f6">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org7c64898">2.1. Kinetic energy</a>
|
||||
<li><a href="#org0fb3e83">2.1. Kinetic energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgb4ec106">2.1.1. Get</a></li>
|
||||
<li><a href="#org4b0f3dd">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgd11287e">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org5dbd498">2.1.4. Test</a></li>
|
||||
<li><a href="#org2e09bda">2.1.1. Get</a></li>
|
||||
<li><a href="#orgb5355a7">2.1.2. Provide</a></li>
|
||||
<li><a href="#org4f7dee9">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org92f2269">2.1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7ac2b48">2.2. Potential energy</a>
|
||||
<li><a href="#org5278bae">2.2. Potential energy</a>
|
||||
<ul>
|
||||
<li><a href="#orga6795bf">2.2.1. Get</a></li>
|
||||
<li><a href="#org135791e">2.2.2. Provide</a></li>
|
||||
<li><a href="#org73f44e8">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org128373a">2.2.4. Test</a></li>
|
||||
<li><a href="#org48f88f2">2.2.1. Get</a></li>
|
||||
<li><a href="#org602b030">2.2.2. Provide</a></li>
|
||||
<li><a href="#org35d4fa1">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#orgbcea969">2.2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf2cf4c3">2.3. Local energy</a>
|
||||
<li><a href="#orgbc21c83">2.3. Local energy</a>
|
||||
<ul>
|
||||
<li><a href="#org8e7a955">2.3.1. Get</a></li>
|
||||
<li><a href="#org81c73f9">2.3.2. Provide</a></li>
|
||||
<li><a href="#org7bce471">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#org469a41b">2.3.4. Test</a></li>
|
||||
<li><a href="#org21fd976">2.3.1. Get</a></li>
|
||||
<li><a href="#org7a360d4">2.3.2. Provide</a></li>
|
||||
<li><a href="#org8126944">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#orgb6ddf22">2.3.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org69142a3">2.4. Drift vector</a>
|
||||
<li><a href="#org8826b17">2.4. Drift vector</a>
|
||||
<ul>
|
||||
<li><a href="#org7d1b72c">2.4.1. Get</a></li>
|
||||
<li><a href="#orge31d02a">2.4.2. Provide</a></li>
|
||||
<li><a href="#orgc078c8e">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#orge64d4b2">2.4.4. Test</a></li>
|
||||
<li><a href="#org3cb3063">2.4.1. Get</a></li>
|
||||
<li><a href="#org26d3744">2.4.2. Provide</a></li>
|
||||
<li><a href="#orgd73c973">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org672511c">2.4.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -392,8 +392,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc7bbe1d" class="outline-2">
|
||||
<h2 id="orgc7bbe1d"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgdef09b1" class="outline-2">
|
||||
<h2 id="orgdef09b1"><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:
|
||||
@ -466,8 +466,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgace9997" class="outline-3">
|
||||
<h3 id="orgace9997"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgd765ec4" class="outline-3">
|
||||
<h3 id="orgd765ec4"><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> {
|
||||
@ -501,8 +501,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6f3363a" class="outline-3">
|
||||
<h3 id="org6f3363a"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org5cd37c7" class="outline-3">
|
||||
<h3 id="org5cd37c7"><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
|
||||
@ -517,12 +517,12 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org61bc61d" class="outline-2">
|
||||
<h2 id="org61bc61d"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orga26d8f6" class="outline-2">
|
||||
<h2 id="orga26d8f6"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org7c64898" class="outline-3">
|
||||
<h3 id="org7c64898"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div id="outline-container-org0fb3e83" class="outline-3">
|
||||
<h3 id="org0fb3e83"><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:
|
||||
@ -546,8 +546,8 @@ case is given as follows:
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb4ec106" class="outline-4">
|
||||
<h4 id="orgb4ec106"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org2e09bda" class="outline-4">
|
||||
<h4 id="org2e09bda"><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>);
|
||||
@ -556,14 +556,14 @@ case is given as follows:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4b0f3dd" class="outline-4">
|
||||
<h4 id="org4b0f3dd"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-orgb5355a7" class="outline-4">
|
||||
<h4 id="orgb5355a7"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd11287e" class="outline-4">
|
||||
<h4 id="orgd11287e"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
||||
<div id="outline-container-org4f7dee9" class="outline-4">
|
||||
<h4 id="org4f7dee9"><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="orgeab447e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org47129d6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -792,12 +792,12 @@ case is given as follows:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5dbd498" class="outline-4">
|
||||
<h4 id="org5dbd498"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
<div id="outline-container-org92f2269" class="outline-4">
|
||||
<h4 id="org92f2269"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org7ac2b48" class="outline-3">
|
||||
<h3 id="org7ac2b48"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div id="outline-container-org5278bae" class="outline-3">
|
||||
<h3 id="org5278bae"><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
|
||||
@ -833,8 +833,8 @@ contributions.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga6795bf" class="outline-4">
|
||||
<h4 id="orga6795bf"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org48f88f2" class="outline-4">
|
||||
<h4 id="org48f88f2"><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>);
|
||||
@ -843,14 +843,14 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org135791e" class="outline-4">
|
||||
<h4 id="org135791e"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org602b030" class="outline-4">
|
||||
<h4 id="org602b030"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org73f44e8" class="outline-4">
|
||||
<h4 id="org73f44e8"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
||||
<div id="outline-container-org35d4fa1" class="outline-4">
|
||||
<h4 id="org35d4fa1"><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="org3b0ea35" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org78c6379" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -977,12 +977,12 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org128373a" class="outline-4">
|
||||
<h4 id="org128373a"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
<div id="outline-container-orgbcea969" class="outline-4">
|
||||
<h4 id="orgbcea969"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgf2cf4c3" class="outline-3">
|
||||
<h3 id="orgf2cf4c3"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div id="outline-container-orgbc21c83" class="outline-3">
|
||||
<h3 id="orgbc21c83"><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.
|
||||
@ -996,8 +996,8 @@ E_L = KE + PE
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org8e7a955" class="outline-4">
|
||||
<h4 id="org8e7a955"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org21fd976" class="outline-4">
|
||||
<h4 id="org21fd976"><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>);
|
||||
@ -1006,14 +1006,14 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org81c73f9" class="outline-4">
|
||||
<h4 id="org81c73f9"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-org7a360d4" class="outline-4">
|
||||
<h4 id="org7a360d4"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7bce471" class="outline-4">
|
||||
<h4 id="org7bce471"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
||||
<div id="outline-container-org8126944" class="outline-4">
|
||||
<h4 id="org8126944"><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="org668f23d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7183a7d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1109,12 +1109,12 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org469a41b" class="outline-4">
|
||||
<h4 id="org469a41b"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
<div id="outline-container-orgb6ddf22" class="outline-4">
|
||||
<h4 id="orgb6ddf22"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org69142a3" class="outline-3">
|
||||
<h3 id="org69142a3"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div id="outline-container-org8826b17" class="outline-3">
|
||||
<h3 id="org8826b17"><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
|
||||
@ -1128,8 +1128,8 @@ with the determinant of the wavefunction.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7d1b72c" class="outline-4">
|
||||
<h4 id="org7d1b72c"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org3cb3063" class="outline-4">
|
||||
<h4 id="org3cb3063"><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>);
|
||||
@ -1138,14 +1138,14 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge31d02a" class="outline-4">
|
||||
<h4 id="orge31d02a"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
<div id="outline-container-org26d3744" class="outline-4">
|
||||
<h4 id="org26d3744"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc078c8e" class="outline-4">
|
||||
<h4 id="orgc078c8e"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
||||
<div id="outline-container-orgd73c973" class="outline-4">
|
||||
<h4 id="orgd73c973"><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="org67765fe" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga6a7931" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1366,15 +1366,15 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge64d4b2" class="outline-4">
|
||||
<h4 id="orge64d4b2"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
<div id="outline-container-org672511c" class="outline-4">
|
||||
<h4 id="org672511c"><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: 2023-08-24 Thu 08:01</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:16</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>
|
||||
<!-- 2023-08-24 Thu 08:01 -->
|
||||
<!-- 2023-08-24 Thu 08:15 -->
|
||||
<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>
|
||||
@ -324,16 +324,16 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgfb71109">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#orgf5c6d21">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#org5fc041a">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#org7dfdc17">4. Get the size of a memory block</a></li>
|
||||
<li><a href="#org9f3d160">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org039e886">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#org740ae5d">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#org864ad18">4. Get the size of a memory block</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfb71109" class="outline-2">
|
||||
<h2 id="orgfb71109"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div id="outline-container-org9f3d160" class="outline-2">
|
||||
<h2 id="org9f3d160"><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
|
||||
@ -375,8 +375,8 @@ array, and the number of allocated blocks.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf5c6d21" class="outline-2">
|
||||
<h2 id="orgf5c6d21"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div id="outline-container-org039e886" class="outline-2">
|
||||
<h2 id="org039e886"><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
|
||||
@ -385,8 +385,8 @@ passing an instance of a <code>qmckl_memory_info_struct</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5fc041a" class="outline-2">
|
||||
<h2 id="org5fc041a"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-org740ae5d" class="outline-2">
|
||||
<h2 id="org740ae5d"><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
|
||||
@ -646,8 +646,8 @@ successful deallocation of the memory block.</li>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org7dfdc17" class="outline-2">
|
||||
<h2 id="org7dfdc17"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
||||
<div id="outline-container-org864ad18" class="outline-2">
|
||||
<h2 id="org864ad18"><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
|
||||
@ -742,7 +742,7 @@ rc = qmckl_context_destroy(context);
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:01</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:15</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
186
qmckl_mo.html
186
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>
|
||||
<!-- 2023-08-24 Thu 08:01 -->
|
||||
<!-- 2023-08-24 Thu 08:16 -->
|
||||
<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>
|
||||
@ -346,68 +346,68 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgd8e4885">1. Context</a>
|
||||
<li><a href="#org03c7ffa">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orge1cf5c9">1.1. Data structure</a></li>
|
||||
<li><a href="#org80882a0">1.2. Initialization functions</a></li>
|
||||
<li><a href="#orgb0377a1">1.3. Cusp adjsutment functions</a></li>
|
||||
<li><a href="#orgf66b1e9">1.4. Access functions</a>
|
||||
<li><a href="#org947a638">1.1. Data structure</a></li>
|
||||
<li><a href="#orge4539d5">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org724bcaa">1.3. Cusp adjsutment functions</a></li>
|
||||
<li><a href="#org8dcca68">1.4. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org38b49d6">1.4.1. Fortran interfaces</a></li>
|
||||
<li><a href="#org1548db0">1.4.1. Fortran interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb1fbc9b">1.5. Update</a>
|
||||
<li><a href="#org2b25b11">1.5. Update</a>
|
||||
<ul>
|
||||
<li><a href="#org508333c">1.5.1. Fortran interface</a></li>
|
||||
<li><a href="#org56b376b">1.5.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgcad1a77">2. Computation</a>
|
||||
<li><a href="#orge6ad91e">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgc23e8f7">2.1. Parameters of the cusp-correction functions</a></li>
|
||||
<li><a href="#orgca7defe">2.2. Computation of MOs: values only</a>
|
||||
<li><a href="#orgaf3d5e1">2.1. Parameters of the cusp-correction functions</a></li>
|
||||
<li><a href="#orgcb07cbb">2.2. Computation of MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#org90b8e86">2.2.1. Get</a></li>
|
||||
<li><a href="#org16aeeef">2.2.2. Provide</a></li>
|
||||
<li><a href="#org1528a35">2.2.3. Compute</a></li>
|
||||
<li><a href="#orgbabbfd8">2.2.4. HPC version</a></li>
|
||||
<li><a href="#org75579b8">2.2.1. Get</a></li>
|
||||
<li><a href="#orga28b7d0">2.2.2. Provide</a></li>
|
||||
<li><a href="#org8681777">2.2.3. Compute</a></li>
|
||||
<li><a href="#org6ffe61e">2.2.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgfdd98c5">2.3. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<li><a href="#org00aeadf">2.3. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org9adbf0f">2.3.1. Get</a></li>
|
||||
<li><a href="#orgafa53ed">2.3.2. Provide</a></li>
|
||||
<li><a href="#orgd6b4577">2.3.3. Compute</a></li>
|
||||
<li><a href="#orgb35311a">2.3.4. HPC version</a></li>
|
||||
<li><a href="#orgbf930a3">2.3.1. Get</a></li>
|
||||
<li><a href="#org6103e17">2.3.2. Provide</a></li>
|
||||
<li><a href="#org14e0cc2">2.3.3. Compute</a></li>
|
||||
<li><a href="#org8c65590">2.3.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org88bebd1">2.4. Computation of cusp-corrected MOs: values only</a>
|
||||
<li><a href="#org1be6d8d">2.4. Computation of cusp-corrected MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#org9a1db63">2.4.1. Compute</a></li>
|
||||
<li><a href="#orgae20694">2.4.2. HPC version</a></li>
|
||||
<li><a href="#org0b85a03">2.4.1. Compute</a></li>
|
||||
<li><a href="#org65b1f35">2.4.2. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org30a7d37">2.5. Computation of cusp-corrected MOs: values, gradient, Laplacian</a>
|
||||
<li><a href="#orgc7749fb">2.5. Computation of cusp-corrected MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org4bdbb25">2.5.1. Compute</a></li>
|
||||
<li><a href="#orgabd1128">2.5.2. HPC version</a></li>
|
||||
<li><a href="#org7bc53d5">2.5.1. Compute</a></li>
|
||||
<li><a href="#orgf5b0c5f">2.5.2. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org04517f2">2.6. Rescaling of MO coefficients</a>
|
||||
<li><a href="#org1dc5546">2.6. Rescaling of MO coefficients</a>
|
||||
<ul>
|
||||
<li><a href="#orge9966c8">2.6.1. Fortran interface</a></li>
|
||||
<li><a href="#org696609d">2.6.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbd2c982">2.7. Test</a></li>
|
||||
<li><a href="#orgc5525cf">2.7. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd8e4885" class="outline-2">
|
||||
<h2 id="orgd8e4885"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org03c7ffa" class="outline-2">
|
||||
<h2 id="org03c7ffa"><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:
|
||||
@ -486,8 +486,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge1cf5c9" class="outline-3">
|
||||
<h3 id="orge1cf5c9"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org947a638" class="outline-3">
|
||||
<h3 id="org947a638"><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> {
|
||||
@ -544,8 +544,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org80882a0" class="outline-3">
|
||||
<h3 id="org80882a0"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-orge4539d5" class="outline-3">
|
||||
<h3 id="orge4539d5"><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
|
||||
@ -566,8 +566,8 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb0377a1" class="outline-3">
|
||||
<h3 id="orgb0377a1"><span class="section-number-3">1.3</span> Cusp adjsutment functions</h3>
|
||||
<div id="outline-container-org724bcaa" class="outline-3">
|
||||
<h3 id="org724bcaa"><span class="section-number-3">1.3</span> Cusp adjsutment functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To activate the cusp adjustment, the user must enter the radius of
|
||||
@ -582,8 +582,8 @@ of the non-\(s\) AOs at the center.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf66b1e9" class="outline-3">
|
||||
<h3 id="orgf66b1e9"><span class="section-number-3">1.4</span> Access functions</h3>
|
||||
<div id="outline-container-org8dcca68" class="outline-3">
|
||||
<h3 id="org8dcca68"><span class="section-number-3">1.4</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
When all the data for the AOs have been provided, the following
|
||||
@ -596,13 +596,13 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org38b49d6" class="outline-4">
|
||||
<h4 id="org38b49d6"><span class="section-number-4">1.4.1</span> Fortran interfaces</h4>
|
||||
<div id="outline-container-org1548db0" class="outline-4">
|
||||
<h4 id="org1548db0"><span class="section-number-4">1.4.1</span> Fortran interfaces</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb1fbc9b" class="outline-3">
|
||||
<h3 id="orgb1fbc9b"><span class="section-number-3">1.5</span> Update</h3>
|
||||
<div id="outline-container-org2b25b11" class="outline-3">
|
||||
<h3 id="org2b25b11"><span class="section-number-3">1.5</span> Update</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
It may be desirable to remove certain molecular orbitals (MOs) that
|
||||
@ -629,25 +629,25 @@ calculation. If the integer is non-zero, the MO will be kept.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org508333c" class="outline-4">
|
||||
<h4 id="org508333c"><span class="section-number-4">1.5.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-org56b376b" class="outline-4">
|
||||
<h4 id="org56b376b"><span class="section-number-4">1.5.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcad1a77" class="outline-2">
|
||||
<h2 id="orgcad1a77"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orge6ad91e" class="outline-2">
|
||||
<h2 id="orge6ad91e"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgc23e8f7" class="outline-3">
|
||||
<h3 id="orgc23e8f7"><span class="section-number-3">2.1</span> Parameters of the cusp-correction functions</h3>
|
||||
<div id="outline-container-orgaf3d5e1" class="outline-3">
|
||||
<h3 id="orgaf3d5e1"><span class="section-number-3">2.1</span> Parameters of the cusp-correction functions</h3>
|
||||
</div>
|
||||
<div id="outline-container-orgca7defe" class="outline-3">
|
||||
<h3 id="orgca7defe"><span class="section-number-3">2.2</span> Computation of MOs: values only</h3>
|
||||
<div id="outline-container-orgcb07cbb" class="outline-3">
|
||||
<h3 id="orgcb07cbb"><span class="section-number-3">2.2</span> Computation of MOs: values only</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
</div>
|
||||
<div id="outline-container-org90b8e86" class="outline-4">
|
||||
<h4 id="org90b8e86"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org75579b8" class="outline-4">
|
||||
<h4 id="org75579b8"><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>
|
||||
@ -671,8 +671,8 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org16aeeef" class="outline-4">
|
||||
<h4 id="org16aeeef"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-orga28b7d0" class="outline-4">
|
||||
<h4 id="orga28b7d0"><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_value</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>);
|
||||
@ -757,10 +757,10 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1528a35" class="outline-4">
|
||||
<h4 id="org1528a35"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div id="outline-container-org8681777" class="outline-4">
|
||||
<h4 id="org8681777"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org86a4bfd" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org85f4d11" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -915,8 +915,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbabbfd8" class="outline-4">
|
||||
<h4 id="orgbabbfd8"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
||||
<div id="outline-container-org6ffe61e" class="outline-4">
|
||||
<h4 id="org6ffe61e"><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
|
||||
@ -1009,12 +1009,12 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfdd98c5" class="outline-3">
|
||||
<h3 id="orgfdd98c5"><span class="section-number-3">2.3</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-org00aeadf" class="outline-3">
|
||||
<h3 id="org00aeadf"><span class="section-number-3">2.3</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
</div>
|
||||
<div id="outline-container-org9adbf0f" class="outline-4">
|
||||
<h4 id="org9adbf0f"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-orgbf930a3" class="outline-4">
|
||||
<h4 id="orgbf930a3"><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>
|
||||
@ -1038,8 +1038,8 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgafa53ed" class="outline-4">
|
||||
<h4 id="orgafa53ed"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-org6103e17" class="outline-4">
|
||||
<h4 id="org6103e17"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div class="outline-text-4" id="text-2-3-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>);
|
||||
@ -1123,10 +1123,10 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd6b4577" class="outline-4">
|
||||
<h4 id="orgd6b4577"><span class="section-number-4">2.3.3</span> Compute</h4>
|
||||
<div id="outline-container-org14e0cc2" class="outline-4">
|
||||
<h4 id="org14e0cc2"><span class="section-number-4">2.3.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-3">
|
||||
<table id="org7832693" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org79070b9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1299,8 +1299,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb35311a" class="outline-4">
|
||||
<h4 id="orgb35311a"><span class="section-number-4">2.3.4</span> HPC version</h4>
|
||||
<div id="outline-container-org8c65590" class="outline-4">
|
||||
<h4 id="org8c65590"><span class="section-number-4">2.3.4</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-2-3-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
@ -1446,14 +1446,14 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org88bebd1" class="outline-3">
|
||||
<h3 id="org88bebd1"><span class="section-number-3">2.4</span> Computation of cusp-corrected MOs: values only</h3>
|
||||
<div id="outline-container-org1be6d8d" class="outline-3">
|
||||
<h3 id="org1be6d8d"><span class="section-number-3">2.4</span> Computation of cusp-corrected MOs: values only</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
</div>
|
||||
<div id="outline-container-org9a1db63" class="outline-4">
|
||||
<h4 id="org9a1db63"><span class="section-number-4">2.4.1</span> Compute</h4>
|
||||
<div id="outline-container-org0b85a03" class="outline-4">
|
||||
<h4 id="org0b85a03"><span class="section-number-4">2.4.1</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<table id="org6a6234d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8d2cb3e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1692,8 +1692,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgae20694" class="outline-4">
|
||||
<h4 id="orgae20694"><span class="section-number-4">2.4.2</span> HPC version</h4>
|
||||
<div id="outline-container-org65b1f35" class="outline-4">
|
||||
<h4 id="org65b1f35"><span class="section-number-4">2.4.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
@ -1818,14 +1818,14 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org30a7d37" class="outline-3">
|
||||
<h3 id="org30a7d37"><span class="section-number-3">2.5</span> Computation of cusp-corrected MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-orgc7749fb" class="outline-3">
|
||||
<h3 id="orgc7749fb"><span class="section-number-3">2.5</span> Computation of cusp-corrected MOs: values, gradient, Laplacian</h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
</div>
|
||||
<div id="outline-container-org4bdbb25" class="outline-4">
|
||||
<h4 id="org4bdbb25"><span class="section-number-4">2.5.1</span> Compute</h4>
|
||||
<div id="outline-container-org7bc53d5" class="outline-4">
|
||||
<h4 id="org7bc53d5"><span class="section-number-4">2.5.1</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-5-1">
|
||||
<table id="orgaf6885c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org150e5be" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2121,8 +2121,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgabd1128" class="outline-4">
|
||||
<h4 id="orgabd1128"><span class="section-number-4">2.5.2</span> HPC version</h4>
|
||||
<div id="outline-container-orgf5b0c5f" class="outline-4">
|
||||
<h4 id="orgf5b0c5f"><span class="section-number-4">2.5.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-2-5-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
@ -2323,8 +2323,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org04517f2" class="outline-3">
|
||||
<h3 id="org04517f2"><span class="section-number-3">2.6</span> Rescaling of MO coefficients</h3>
|
||||
<div id="outline-container-org1dc5546" class="outline-3">
|
||||
<h3 id="org1dc5546"><span class="section-number-3">2.6</span> Rescaling of MO coefficients</h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
When evaluating Slater determinants, the value of the determinants
|
||||
@ -2341,19 +2341,19 @@ correct range.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge9966c8" class="outline-4">
|
||||
<h4 id="orge9966c8"><span class="section-number-4">2.6.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-org696609d" class="outline-4">
|
||||
<h4 id="org696609d"><span class="section-number-4">2.6.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbd2c982" class="outline-3">
|
||||
<h3 id="orgbd2c982"><span class="section-number-3">2.7</span> Test</h3>
|
||||
<div id="outline-container-orgc5525cf" class="outline-3">
|
||||
<h3 id="orgc5525cf"><span class="section-number-3">2.7</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:01</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:16</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>
|
||||
<!-- 2023-08-24 Thu 08:01 -->
|
||||
<!-- 2023-08-24 Thu 08:16 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Nucleus</title>
|
||||
@ -346,28 +346,28 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org94ca6f7">1. Context</a>
|
||||
<li><a href="#org7a23115">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orga8351bf">1.1. Data structure</a></li>
|
||||
<li><a href="#org06c7690">1.2. Access functions</a></li>
|
||||
<li><a href="#org3132498">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org8b862b8">1.4. Test</a></li>
|
||||
<li><a href="#org21ad0c3">1.1. Data structure</a></li>
|
||||
<li><a href="#org23607c3">1.2. Access functions</a></li>
|
||||
<li><a href="#org42f968a">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgc57ecdb">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org75ff4a2">2. Computation</a>
|
||||
<li><a href="#org800c8c3">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgf6f680e">2.1. Nucleus-nucleus distances</a>
|
||||
<li><a href="#orgf6c6f1b">2.1. Nucleus-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org3db8979">2.1.1. Get</a></li>
|
||||
<li><a href="#orgb5fe24f">2.1.2. Compute</a></li>
|
||||
<li><a href="#org4883389">2.1.3. Test</a></li>
|
||||
<li><a href="#org70ceb76">2.1.1. Get</a></li>
|
||||
<li><a href="#org6a28a9b">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgf055534">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc38262f">2.2. Nuclear repulsion energy</a>
|
||||
<li><a href="#org19c7603">2.2. Nuclear repulsion energy</a>
|
||||
<ul>
|
||||
<li><a href="#org3e7be68">2.2.1. Get</a></li>
|
||||
<li><a href="#org7508663">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgdd7c5f9">2.2.3. Test</a></li>
|
||||
<li><a href="#org564a99b">2.2.1. Get</a></li>
|
||||
<li><a href="#org0e2bd44">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgc2d5397">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -376,8 +376,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org94ca6f7" class="outline-2">
|
||||
<h2 id="org94ca6f7"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org7a23115" class="outline-2">
|
||||
<h2 id="org7a23115"><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:
|
||||
@ -474,8 +474,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga8351bf" class="outline-3">
|
||||
<h3 id="orga8351bf"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org21ad0c3" class="outline-3">
|
||||
<h3 id="org21ad0c3"><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> {
|
||||
@ -529,8 +529,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org06c7690" class="outline-3">
|
||||
<h3 id="org06c7690"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org23607c3" class="outline-3">
|
||||
<h3 id="org23607c3"><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
|
||||
@ -544,8 +544,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3132498" class="outline-3">
|
||||
<h3 id="org3132498"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org42f968a" class="outline-3">
|
||||
<h3 id="org42f968a"><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
|
||||
@ -591,8 +591,8 @@ are be given in atomic units.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8b862b8" class="outline-3">
|
||||
<h3 id="org8b862b8"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orgc57ecdb" class="outline-3">
|
||||
<h3 id="orgc57ecdb"><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;
|
||||
@ -661,8 +661,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2, chbrclf_nucl_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org75ff4a2" class="outline-2">
|
||||
<h2 id="org75ff4a2"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org800c8c3" class="outline-2">
|
||||
<h2 id="org800c8c3"><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
|
||||
@ -675,12 +675,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf6f680e" class="outline-3">
|
||||
<h3 id="orgf6f680e"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div id="outline-container-orgf6c6f1b" class="outline-3">
|
||||
<h3 id="orgf6c6f1b"><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-org3db8979" class="outline-4">
|
||||
<h4 id="org3db8979"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org70ceb76" class="outline-4">
|
||||
<h4 id="org70ceb76"><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>
|
||||
@ -692,10 +692,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb5fe24f" class="outline-4">
|
||||
<h4 id="orgb5fe24f"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org6a28a9b" class="outline-4">
|
||||
<h4 id="org6a28a9b"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org49c1b6a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org423f173" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -773,8 +773,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4883389" class="outline-4">
|
||||
<h4 id="org4883389"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orgf055534" class="outline-4">
|
||||
<h4 id="orgf055534"><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> */
|
||||
@ -793,8 +793,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc38262f" class="outline-3">
|
||||
<h3 id="orgc38262f"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
||||
<div id="outline-container-org19c7603" class="outline-3">
|
||||
<h3 id="org19c7603"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
\[
|
||||
@ -803,8 +803,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3e7be68" class="outline-4">
|
||||
<h4 id="org3e7be68"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org564a99b" class="outline-4">
|
||||
<h4 id="org564a99b"><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>);
|
||||
@ -813,10 +813,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7508663" class="outline-4">
|
||||
<h4 id="org7508663"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org0e2bd44" class="outline-4">
|
||||
<h4 id="org0e2bd44"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="org44f49a8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5238611" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -906,8 +906,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdd7c5f9" class="outline-4">
|
||||
<h4 id="orgdd7c5f9"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-orgc2d5397" class="outline-4">
|
||||
<h4 id="orgc2d5397"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data</span> */
|
||||
@ -927,7 +927,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: 2023-08-24 Thu 08:01</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:16</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>
|
||||
<!-- 2023-08-24 Thu 08:01 -->
|
||||
<!-- 2023-08-24 Thu 08:16 -->
|
||||
<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>
|
||||
@ -346,16 +346,16 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgef9c58d">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#orgdf8549f">2. Precision</a></li>
|
||||
<li><a href="#org5b054a7">3. Range</a></li>
|
||||
<li><a href="#orgaa262b1">4. Helper functions</a></li>
|
||||
<li><a href="#orgc2e62fc">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org2118ccd">2. Precision</a></li>
|
||||
<li><a href="#orgd9117cb">3. Range</a></li>
|
||||
<li><a href="#orgb163fd3">4. Helper functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgef9c58d" class="outline-2">
|
||||
<h2 id="orgef9c58d"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-orgc2e62fc" class="outline-2">
|
||||
<h2 id="orgc2e62fc"><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
|
||||
@ -366,7 +366,7 @@ Arithmetic (IEEE 754),
|
||||
refers to the number of exponent bits.
|
||||
</p>
|
||||
|
||||
<table id="org1a75a7a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org19de33e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -410,8 +410,8 @@ integer. The update functions return <code>QMCKL_SUCCESS</code> or
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdf8549f" class="outline-2">
|
||||
<h2 id="orgdf8549f"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-org2118ccd" class="outline-2">
|
||||
<h2 id="org2118ccd"><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
|
||||
@ -498,8 +498,8 @@ numerical precision in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5b054a7" class="outline-2">
|
||||
<h2 id="org5b054a7"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-orgd9117cb" class="outline-2">
|
||||
<h2 id="orgd9117cb"><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
|
||||
@ -574,8 +574,8 @@ range in a given context.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgaa262b1" class="outline-2">
|
||||
<h2 id="orgaa262b1"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-orgb163fd3" class="outline-2">
|
||||
<h2 id="orgb163fd3"><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.
|
||||
@ -594,7 +594,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: 2023-08-24 Thu 08:01</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:16</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>
|
||||
<!-- 2023-08-24 Thu 08:01 -->
|
||||
<!-- 2023-08-24 Thu 08:16 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Point</title>
|
||||
@ -346,25 +346,25 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org65f0c96">1. Context</a>
|
||||
<li><a href="#orgdedf020">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org5829476">1.1. Data structure</a></li>
|
||||
<li><a href="#org3935d34">1.2. Access functions</a>
|
||||
<li><a href="#orgd7bbe51">1.1. Data structure</a></li>
|
||||
<li><a href="#org5d185d3">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org9457b23">1.2.1. Number of points</a></li>
|
||||
<li><a href="#orgdde1742">1.2.2. Point coordinates</a></li>
|
||||
<li><a href="#org801b5e7">1.2.1. Number of points</a></li>
|
||||
<li><a href="#org907a33d">1.2.2. Point coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc81dd90">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org141e978">1.4. Test</a></li>
|
||||
<li><a href="#orgd41c524">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org21c07c2">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org65f0c96" class="outline-2">
|
||||
<h2 id="org65f0c96"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgdedf020" class="outline-2">
|
||||
<h2 id="orgdedf020"><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:
|
||||
@ -414,8 +414,8 @@ corresponds to the 3 × <code>num</code> matrix.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5829476" class="outline-3">
|
||||
<h3 id="org5829476"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgd7bbe51" class="outline-3">
|
||||
<h3 id="orgd7bbe51"><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> {
|
||||
@ -451,8 +451,8 @@ corresponds to the 3 × <code>num</code> matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3935d34" class="outline-3">
|
||||
<h3 id="org3935d34"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org5d185d3" class="outline-3">
|
||||
<h3 id="org5d185d3"><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
|
||||
@ -463,8 +463,8 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9457b23" class="outline-4">
|
||||
<h4 id="org9457b23"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div id="outline-container-org801b5e7" class="outline-4">
|
||||
<h4 id="org801b5e7"><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.
|
||||
@ -486,8 +486,8 @@ Returns the number of points stored in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdde1742" class="outline-4">
|
||||
<h4 id="orgdde1742"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div id="outline-container-org907a33d" class="outline-4">
|
||||
<h4 id="org907a33d"><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).
|
||||
@ -515,8 +515,8 @@ The pointer is assumed to point on a memory block of size
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgc81dd90" class="outline-3">
|
||||
<h3 id="orgc81dd90"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgd41c524" class="outline-3">
|
||||
<h3 id="orgd41c524"><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
|
||||
@ -655,8 +655,8 @@ Copy a sequence of <code>num</code> points \((x,y,z)\) into the context.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org141e978" class="outline-3">
|
||||
<h3 id="org141e978"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org21c07c2" class="outline-3">
|
||||
<h3 id="org21c07c2"><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> */
|
||||
@ -715,7 +715,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: 2023-08-24 Thu 08:01</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:16</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>
|
||||
<!-- 2023-08-24 Thu 08:01 -->
|
||||
<!-- 2023-08-24 Thu 08:16 -->
|
||||
<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>
|
||||
@ -346,118 +346,118 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org82695d6">1. Headers</a></li>
|
||||
<li><a href="#org932bf37">2. Naïve Sherman-Morrison</a>
|
||||
<li><a href="#org7626682">1. Headers</a></li>
|
||||
<li><a href="#org851fd37">2. Naïve Sherman-Morrison</a>
|
||||
<ul>
|
||||
<li><a href="#orgbee4479">2.1. <code>qmckl_sm_naive</code></a>
|
||||
<li><a href="#orgb07cffc">2.1. <code>qmckl_sm_naive</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgaac9150">2.1.1. Introduction</a></li>
|
||||
<li><a href="#org8dc5f6a">2.1.2. API</a></li>
|
||||
<li><a href="#org673b4d6">2.1.3. Requirements</a></li>
|
||||
<li><a href="#org2e8f3d0">2.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#orgc49d659">2.1.1. Introduction</a></li>
|
||||
<li><a href="#orge41072d">2.1.2. API</a></li>
|
||||
<li><a href="#org6258277">2.1.3. Requirements</a></li>
|
||||
<li><a href="#orgc6019b5">2.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#orgf8a7aa5">2.1.4.1. C interface (not directly exposed)</a></li>
|
||||
<li><a href="#orgb8e804e">2.1.4.1. C interface (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbe866a5">2.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org7b9e2dc">2.1.6. C sources</a></li>
|
||||
<li><a href="#org1f912ca">2.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org3108d40">2.1.8. Performance</a></li>
|
||||
<li><a href="#org82488ad">2.1.9. Tests</a></li>
|
||||
<li><a href="#orgf959ea6">2.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org7e81053">2.1.6. C sources</a></li>
|
||||
<li><a href="#orgdd53e2a">2.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgb89e2fa">2.1.8. Performance</a></li>
|
||||
<li><a href="#org43a9637">2.1.9. Tests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgaef8595">3. Sherman-Morrison with Slagel Splitting (core)</a>
|
||||
<li><a href="#org24780ea">3. Sherman-Morrison with Slagel Splitting (core)</a>
|
||||
<ul>
|
||||
<li><a href="#orgf01f5cd">3.1. <code>qmckl_sm_splitting_core</code></a>
|
||||
<li><a href="#orgbcebc2e">3.1. <code>qmckl_sm_splitting_core</code></a>
|
||||
<ul>
|
||||
<li><a href="#org02afba5">3.1.1. Introduction</a></li>
|
||||
<li><a href="#orgf61cbb2">3.1.2. API</a></li>
|
||||
<li><a href="#org4708e07">3.1.3. Requirements</a></li>
|
||||
<li><a href="#org03bbdeb">3.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org8ce811f">3.1.1. Introduction</a></li>
|
||||
<li><a href="#org49b1a70">3.1.2. API</a></li>
|
||||
<li><a href="#org755f59c">3.1.3. Requirements</a></li>
|
||||
<li><a href="#orgaf4c573">3.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#orgf1b9877">3.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
<li><a href="#org1683632">3.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgedf4c7d">3.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orga7b6863">3.1.6. C sources</a></li>
|
||||
<li><a href="#org11d2874">3.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org82c22a4">3.1.8. Performance</a></li>
|
||||
<li><a href="#org04d66d9">3.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orga3da54b">3.1.6. C sources</a></li>
|
||||
<li><a href="#org88f49ca">3.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org72cc098">3.1.8. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9ddb29f">4. Woodbury 2x2</a>
|
||||
<li><a href="#org2385f83">4. Woodbury 2x2</a>
|
||||
<ul>
|
||||
<li><a href="#orgfb5dd9a">4.1. <code>qmckl_woodbury_2x2</code></a>
|
||||
<li><a href="#org66a1846">4.1. <code>qmckl_woodbury_2x2</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgfc46aeb">4.1.1. Introduction</a></li>
|
||||
<li><a href="#org237c352">4.1.2. API</a></li>
|
||||
<li><a href="#org8aa432c">4.1.3. Requirements</a></li>
|
||||
<li><a href="#org73cb88f">4.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#orgbf7ba88">4.1.1. Introduction</a></li>
|
||||
<li><a href="#orgd9c8f76">4.1.2. API</a></li>
|
||||
<li><a href="#orgeb319ce">4.1.3. Requirements</a></li>
|
||||
<li><a href="#org2563a6e">4.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#org8059998">4.1.4.1. C interface (not directly exposed)</a></li>
|
||||
<li><a href="#orga56a64f">4.1.4.1. C interface (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0f51597">4.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org3e2eb0d">4.1.6. C sources</a></li>
|
||||
<li><a href="#orgdb6531d">4.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org69e2adc">4.1.8. Performance</a></li>
|
||||
<li><a href="#orgba16819">4.1.9. Tests</a></li>
|
||||
<li><a href="#org3722114">4.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orgaf6de32">4.1.6. C sources</a></li>
|
||||
<li><a href="#orge8b502a">4.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgd14d807">4.1.8. Performance</a></li>
|
||||
<li><a href="#org278f18d">4.1.9. Tests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5702d0f">5. Woodbury 3x3</a>
|
||||
<li><a href="#orgc099015">5. Woodbury 3x3</a>
|
||||
<ul>
|
||||
<li><a href="#org07fa8d0">5.1. <code>qmckl_woodbury_3x3</code></a>
|
||||
<li><a href="#org22ee9bb">5.1. <code>qmckl_woodbury_3x3</code></a>
|
||||
<ul>
|
||||
<li><a href="#org5ee5316">5.1.1. Introduction</a></li>
|
||||
<li><a href="#orgbcdb21a">5.1.2. API</a></li>
|
||||
<li><a href="#orgb00fb61">5.1.3. Requirements</a></li>
|
||||
<li><a href="#org22cd3e8">5.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org74f0a58">5.1.1. Introduction</a></li>
|
||||
<li><a href="#org3f96cc8">5.1.2. API</a></li>
|
||||
<li><a href="#orgdbc8bec">5.1.3. Requirements</a></li>
|
||||
<li><a href="#org76527b9">5.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#org6366acc">5.1.4.1. C interface (not directly exposed)</a></li>
|
||||
<li><a href="#orgcc12fb8">5.1.4.1. C interface (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2ce5547">5.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org3cebe8a">5.1.6. C sources</a></li>
|
||||
<li><a href="#org16af2ee">5.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgb11018e">5.1.8. Performance</a></li>
|
||||
<li><a href="#orga7b0d1e">5.1.9. Tests</a></li>
|
||||
<li><a href="#org1b2a1ff">5.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orge03b587">5.1.6. C sources</a></li>
|
||||
<li><a href="#org565e68d">5.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org26f3f3b">5.1.8. Performance</a></li>
|
||||
<li><a href="#orgd05f48b">5.1.9. Tests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf9e6aa0">6. Sherman-Morrison with Slagel Splitting</a>
|
||||
<li><a href="#org0070969">6. Sherman-Morrison with Slagel Splitting</a>
|
||||
<ul>
|
||||
<li><a href="#orgf2a51c0">6.1. <code>qmckl_sm_splitting</code></a>
|
||||
<li><a href="#orgbdb3e70">6.1. <code>qmckl_sm_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#org11af4c5">6.1.1. Introduction</a></li>
|
||||
<li><a href="#orgc4482b9">6.1.2. API</a></li>
|
||||
<li><a href="#orgd0aa480">6.1.3. Requirements</a></li>
|
||||
<li><a href="#org6f6a2eb">6.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#orged9540a">6.1.1. Introduction</a></li>
|
||||
<li><a href="#orga9edb2d">6.1.2. API</a></li>
|
||||
<li><a href="#orgbe77af6">6.1.3. Requirements</a></li>
|
||||
<li><a href="#orgf3926ab">6.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#org1580876">6.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
<li><a href="#org56308f4">6.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd605b62">6.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org3076760">6.1.6. C source</a></li>
|
||||
<li><a href="#orgae3cf16">6.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgd1ec32f">6.1.8. Performance…</a></li>
|
||||
<li><a href="#orgecdff3e">6.1.9. Test</a></li>
|
||||
<li><a href="#org5b97efc">6.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orge2f7a54">6.1.6. C source</a></li>
|
||||
<li><a href="#org804b5c3">6.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org8de950c">6.1.8. Performance…</a></li>
|
||||
<li><a href="#org18cc2f4">6.1.9. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbe8f75f">7. End of files</a></li>
|
||||
<li><a href="#org9ffce6c">7. End of files</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org82695d6" class="outline-2">
|
||||
<h2 id="org82695d6"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div id="outline-container-org7626682" class="outline-2">
|
||||
<h2 id="org7626682"><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>
|
||||
@ -479,17 +479,17 @@ This is the range that determines the how many high performance kernel instantce
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org932bf37" class="outline-2">
|
||||
<h2 id="org932bf37"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
||||
<div id="outline-container-org851fd37" class="outline-2">
|
||||
<h2 id="org851fd37"><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-orgbee4479" class="outline-3">
|
||||
<h3 id="orgbee4479"><span class="section-number-3">2.1</span> <code>qmckl_sm_naive</code></h3>
|
||||
<div id="outline-container-orgb07cffc" class="outline-3">
|
||||
<h3 id="orgb07cffc"><span class="section-number-3">2.1</span> <code>qmckl_sm_naive</code></h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaac9150" class="outline-4">
|
||||
<h4 id="orgaac9150"><span class="section-number-4">2.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-orgc49d659" class="outline-4">
|
||||
<h4 id="orgc49d659"><span class="section-number-4">2.1.1</span> Introduction</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<p>
|
||||
This is the simplest of the available Sherman-Morrison-Woodbury kernels. It applies rank-1 updates one by one in
|
||||
@ -539,10 +539,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8dc5f6a" class="outline-4">
|
||||
<h4 id="org8dc5f6a"><span class="section-number-4">2.1.2</span> API</h4>
|
||||
<div id="outline-container-orge41072d" class="outline-4">
|
||||
<h4 id="orge41072d"><span class="section-number-4">2.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org929cf39" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3391714" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -630,8 +630,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org673b4d6" class="outline-4">
|
||||
<h4 id="org673b4d6"><span class="section-number-4">2.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-org6258277" class="outline-4">
|
||||
<h4 id="org6258277"><span class="section-number-4">2.1.3</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -647,8 +647,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2e8f3d0" class="outline-4">
|
||||
<h4 id="org2e8f3d0"><span class="section-number-4">2.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-orgc6019b5" class="outline-4">
|
||||
<h4 id="orgc6019b5"><span class="section-number-4">2.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<p>
|
||||
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
||||
@ -742,8 +742,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf8a7aa5" class="outline-5">
|
||||
<h5 id="orgf8a7aa5"><span class="section-number-5">2.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div id="outline-container-orgb8e804e" class="outline-5">
|
||||
<h5 id="orgb8e804e"><span class="section-number-5">2.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div class="outline-text-5" id="text-2-1-4-1">
|
||||
<p>
|
||||
The following Fortran function <code>qmckl_sm_naive_doc</code> makes sure
|
||||
@ -755,8 +755,8 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbe866a5" class="outline-4">
|
||||
<h4 id="orgbe866a5"><span class="section-number-4">2.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-orgf959ea6" class="outline-4">
|
||||
<h4 id="orgf959ea6"><span class="section-number-4">2.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div class="outline-text-4" id="text-2-1-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_naive</span> (
|
||||
@ -802,8 +802,8 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7b9e2dc" class="outline-4">
|
||||
<h4 id="org7b9e2dc"><span class="section-number-4">2.1.6</span> C sources</h4>
|
||||
<div id="outline-container-org7e81053" class="outline-4">
|
||||
<h4 id="org7e81053"><span class="section-number-4">2.1.6</span> C sources</h4>
|
||||
<div class="outline-text-4" id="text-2-1-6">
|
||||
<p>
|
||||
Common includes and macros used by all the Sherman-Morrison-Woodbury kernels.
|
||||
@ -921,7 +921,7 @@ multiple of <code>SIMD_LENGTH</code>.
|
||||
<code>qmckl_exit_code qmckl_sm_naive_{Dim}</code> is a C function-template that is used to genereate instances of C fucntions based on the range given above. The advantage of this method is that for each of these instances all the dimensions and loop-bounds are known at compile time, allowing the compiler to optimize more aggressively.
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="orgd263733"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_sm_naive_</span>{Dim}(
|
||||
<pre class="src src-c" id="orgd49f09c"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_sm_naive_</span>{Dim}(
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span> <span style="color: #a0522d;">N_updates</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
||||
@ -997,7 +997,7 @@ multiple of <code>SIMD_LENGTH</code>.
|
||||
This is the kernel generator written in Python. It uses the kernel generator range and templates defined above to generate the C kernel instances.
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python" id="org660cbdd"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org74d731e"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<span style="color: #8b2252;">static inline qmckl_exit_code qmckl_sm_naive_{Dim}(</span>
|
||||
<span style="color: #8b2252;"> const qmckl_context context,</span>
|
||||
<span style="color: #8b2252;"> const uint64_t N_updates,</span>
|
||||
@ -1081,7 +1081,7 @@ This is the kernel generator written in Python. It uses the kernel generator ran
|
||||
Python script that generated C switch cases that call individual kernel instances.
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python" id="org5cbbd16"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="orga8a0b7b"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<span style="color: #8b2252;">case {Dim}: </span>
|
||||
<span style="color: #8b2252;"> return qmckl_sm_naive_{Dim}(context,</span>
|
||||
<span style="color: #8b2252;"> N_updates,</span>
|
||||
@ -2721,14 +2721,14 @@ Python script that generated C switch cases that call individual kernel instance
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1f912ca" class="outline-4">
|
||||
<h4 id="org1f912ca"><span class="section-number-4">2.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-orgdd53e2a" class="outline-4">
|
||||
<h4 id="orgdd53e2a"><span class="section-number-4">2.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div class="outline-text-4" id="text-2-1-7">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3108d40" class="outline-4">
|
||||
<h4 id="org3108d40"><span class="section-number-4">2.1.8</span> Performance</h4>
|
||||
<div id="outline-container-orgb89e2fa" class="outline-4">
|
||||
<h4 id="orgb89e2fa"><span class="section-number-4">2.1.8</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-2-1-8">
|
||||
<p>
|
||||
This function performs best when there is only 1 rank-1 update in the update cycle. It is
|
||||
@ -2737,8 +2737,8 @@ can never resolve a situation where applying the update causes singular behaviou
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org82488ad" class="outline-4">
|
||||
<h4 id="org82488ad"><span class="section-number-4">2.1.9</span> Tests</h4>
|
||||
<div id="outline-container-org43a9637" class="outline-4">
|
||||
<h4 id="org43a9637"><span class="section-number-4">2.1.9</span> Tests</h4>
|
||||
<div class="outline-text-4" id="text-2-1-9">
|
||||
<p>
|
||||
The tests for the kernels are executed on datasets that are extracted from a run of
|
||||
@ -2806,17 +2806,17 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgaef8595" class="outline-2">
|
||||
<h2 id="orgaef8595"><span class="section-number-2">3</span> Sherman-Morrison with Slagel Splitting (core)</h2>
|
||||
<div id="outline-container-org24780ea" class="outline-2">
|
||||
<h2 id="org24780ea"><span class="section-number-2">3</span> Sherman-Morrison with Slagel Splitting (core)</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orgf01f5cd" class="outline-3">
|
||||
<h3 id="orgf01f5cd"><span class="section-number-3">3.1</span> <code>qmckl_sm_splitting_core</code></h3>
|
||||
<div id="outline-container-orgbcebc2e" class="outline-3">
|
||||
<h3 id="orgbcebc2e"><span class="section-number-3">3.1</span> <code>qmckl_sm_splitting_core</code></h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org02afba5" class="outline-4">
|
||||
<h4 id="org02afba5"><span class="section-number-4">3.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org8ce811f" class="outline-4">
|
||||
<h4 id="org8ce811f"><span class="section-number-4">3.1.1</span> Introduction</h4>
|
||||
<div class="outline-text-4" id="text-3-1-1">
|
||||
<p>
|
||||
<code>qmckl_sm_splitting_core</code> is the inner core part of 'Sherman-Morrison with update splitting' in the next section.
|
||||
@ -2844,10 +2844,10 @@ If the determinant is passed it will only be partially updated if there were any
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf61cbb2" class="outline-4">
|
||||
<h4 id="orgf61cbb2"><span class="section-number-4">3.1.2</span> API</h4>
|
||||
<div id="outline-container-org49b1a70" class="outline-4">
|
||||
<h4 id="org49b1a70"><span class="section-number-4">3.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<table id="orgaa6781d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9c1889d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2956,8 +2956,8 @@ If the determinant is passed it will only be partially updated if there were any
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4708e07" class="outline-4">
|
||||
<h4 id="org4708e07"><span class="section-number-4">3.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-org755f59c" class="outline-4">
|
||||
<h4 id="org755f59c"><span class="section-number-4">3.1.3</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-3-1-3">
|
||||
<ul class="org-ul">
|
||||
<li><code>LDS >= 2</code></li>
|
||||
@ -2974,8 +2974,8 @@ If the determinant is passed it will only be partially updated if there were any
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org03bbdeb" class="outline-4">
|
||||
<h4 id="org03bbdeb"><span class="section-number-4">3.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-orgaf4c573" class="outline-4">
|
||||
<h4 id="orgaf4c573"><span class="section-number-4">3.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div class="outline-text-4" id="text-3-1-4">
|
||||
<p>
|
||||
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
||||
@ -3091,8 +3091,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf1b9877" class="outline-5">
|
||||
<h5 id="orgf1b9877"><span class="section-number-5">3.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div id="outline-container-org1683632" class="outline-5">
|
||||
<h5 id="org1683632"><span class="section-number-5">3.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div class="outline-text-5" id="text-3-1-4-1">
|
||||
<p>
|
||||
The function <code>qmckl_sm_splitting_core_doc</code> makes sure that
|
||||
@ -3105,8 +3105,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgedf4c7d" class="outline-4">
|
||||
<h4 id="orgedf4c7d"><span class="section-number-4">3.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org04d66d9" class="outline-4">
|
||||
<h4 id="org04d66d9"><span class="section-number-4">3.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div class="outline-text-4" id="text-3-1-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_splitting_core</span> (
|
||||
@ -3161,8 +3161,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga7b6863" class="outline-4">
|
||||
<h4 id="orga7b6863"><span class="section-number-4">3.1.6</span> C sources</h4>
|
||||
<div id="outline-container-orga3da54b" class="outline-4">
|
||||
<h4 id="orga3da54b"><span class="section-number-4">3.1.6</span> C sources</h4>
|
||||
<div class="outline-text-4" id="text-3-1-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_splitting_core_hpc</span>(
|
||||
@ -3251,7 +3251,7 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org17a2541"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_sm_splitting_core_</span>{Dim}(
|
||||
<pre class="src src-c" id="orga338c1d"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_sm_splitting_core_</span>{Dim}(
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #228b22;">uint64_t</span> <span style="color: #a0522d;">N_updates</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
||||
@ -3335,7 +3335,7 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python" id="org9e82e17"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org449864b"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<span style="color: #8b2252;">static inline qmckl_exit_code qmckl_sm_splitting_core_{Dim}(</span>
|
||||
<span style="color: #8b2252;"> const qmckl_context context,</span>
|
||||
<span style="color: #8b2252;"> uint64_t N_updates,</span>
|
||||
@ -3427,7 +3427,7 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python" id="org6eb12ef"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org6500ea9"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<span style="color: #8b2252;">case {Dim}: {</span>
|
||||
<span style="color: #8b2252;"> return qmckl_sm_splitting_core_{Dim}(</span>
|
||||
<span style="color: #8b2252;"> context,</span>
|
||||
@ -5416,14 +5416,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org11d2874" class="outline-4">
|
||||
<h4 id="org11d2874"><span class="section-number-4">3.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-org88f49ca" class="outline-4">
|
||||
<h4 id="org88f49ca"><span class="section-number-4">3.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div class="outline-text-4" id="text-3-1-7">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org82c22a4" class="outline-4">
|
||||
<h4 id="org82c22a4"><span class="section-number-4">3.1.8</span> Performance</h4>
|
||||
<div id="outline-container-org72cc098" class="outline-4">
|
||||
<h4 id="org72cc098"><span class="section-number-4">3.1.8</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-3-1-8">
|
||||
<p>
|
||||
This function cannot be used by itself and is used in Sherman-Morrison with update splitting and Woodbury 3x3 and 2x2
|
||||
@ -5435,17 +5435,17 @@ with Sherman-Morrison and update splitting. Please look at the performance recco
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org9ddb29f" class="outline-2">
|
||||
<h2 id="org9ddb29f"><span class="section-number-2">4</span> Woodbury 2x2</h2>
|
||||
<div id="outline-container-org2385f83" class="outline-2">
|
||||
<h2 id="org2385f83"><span class="section-number-2">4</span> Woodbury 2x2</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-orgfb5dd9a" class="outline-3">
|
||||
<h3 id="orgfb5dd9a"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_2x2</code></h3>
|
||||
<div id="outline-container-org66a1846" class="outline-3">
|
||||
<h3 id="org66a1846"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_2x2</code></h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfc46aeb" class="outline-4">
|
||||
<h4 id="orgfc46aeb"><span class="section-number-4">4.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-orgbf7ba88" class="outline-4">
|
||||
<h4 id="orgbf7ba88"><span class="section-number-4">4.1.1</span> Introduction</h4>
|
||||
<div class="outline-text-4" id="text-4-1-1">
|
||||
<p>
|
||||
The Woodbury 2x2 kernel. It is used to apply two rank-1 updates at once. The formula used in
|
||||
@ -5469,10 +5469,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org237c352" class="outline-4">
|
||||
<h4 id="org237c352"><span class="section-number-4">4.1.2</span> API</h4>
|
||||
<div id="outline-container-orgd9c8f76" class="outline-4">
|
||||
<h4 id="orgd9c8f76"><span class="section-number-4">4.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-4-1-2">
|
||||
<table id="orgdc467da" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8325ee7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -5553,8 +5553,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8aa432c" class="outline-4">
|
||||
<h4 id="org8aa432c"><span class="section-number-4">4.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-orgeb319ce" class="outline-4">
|
||||
<h4 id="orgeb319ce"><span class="section-number-4">4.1.3</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-4-1-3">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>qmckl_null_context</code></li>
|
||||
@ -5568,8 +5568,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org73cb88f" class="outline-4">
|
||||
<h4 id="org73cb88f"><span class="section-number-4">4.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-org2563a6e" class="outline-4">
|
||||
<h4 id="org2563a6e"><span class="section-number-4">4.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div class="outline-text-4" id="text-4-1-4">
|
||||
<p>
|
||||
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
||||
@ -5705,8 +5705,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8059998" class="outline-5">
|
||||
<h5 id="org8059998"><span class="section-number-5">4.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div id="outline-container-orga56a64f" class="outline-5">
|
||||
<h5 id="orga56a64f"><span class="section-number-5">4.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div class="outline-text-5" id="text-4-1-4-1">
|
||||
<p>
|
||||
The function <code>qmckl_sm_splitting_core_doc</code> makes sure that
|
||||
@ -5719,8 +5719,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0f51597" class="outline-4">
|
||||
<h4 id="org0f51597"><span class="section-number-4">4.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org3722114" class="outline-4">
|
||||
<h4 id="org3722114"><span class="section-number-4">4.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div class="outline-text-4" id="text-4-1-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_2x2</span> (
|
||||
@ -5763,8 +5763,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3e2eb0d" class="outline-4">
|
||||
<h4 id="org3e2eb0d"><span class="section-number-4">4.1.6</span> C sources</h4>
|
||||
<div id="outline-container-orgaf6de32" class="outline-4">
|
||||
<h4 id="orgaf6de32"><span class="section-number-4">4.1.6</span> C sources</h4>
|
||||
<div class="outline-text-4" id="text-4-1-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_2x2_hpc</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
@ -5854,7 +5854,7 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org557896b"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_woodbury_2x2_</span>{Dim}(
|
||||
<pre class="src src-c" id="org4dced63"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_woodbury_2x2_</span>{Dim}(
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span>* <span style="color: #a0522d;">__restrict</span> Updates_index,
|
||||
@ -7804,14 +7804,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdb6531d" class="outline-4">
|
||||
<h4 id="orgdb6531d"><span class="section-number-4">4.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-orge8b502a" class="outline-4">
|
||||
<h4 id="orge8b502a"><span class="section-number-4">4.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div class="outline-text-4" id="text-4-1-7">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org69e2adc" class="outline-4">
|
||||
<h4 id="org69e2adc"><span class="section-number-4">4.1.8</span> Performance</h4>
|
||||
<div id="outline-container-orgd14d807" class="outline-4">
|
||||
<h4 id="orgd14d807"><span class="section-number-4">4.1.8</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-4-1-8">
|
||||
<p>
|
||||
This function is most efficient when used in cases where there are only 2 rank-1 updates and
|
||||
@ -7820,8 +7820,8 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgba16819" class="outline-4">
|
||||
<h4 id="orgba16819"><span class="section-number-4">4.1.9</span> Tests</h4>
|
||||
<div id="outline-container-org278f18d" class="outline-4">
|
||||
<h4 id="org278f18d"><span class="section-number-4">4.1.9</span> Tests</h4>
|
||||
<div class="outline-text-4" id="text-4-1-9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(Updates2 != <span style="color: #008b8b;">NULL</span>);
|
||||
@ -7858,17 +7858,17 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org5702d0f" class="outline-2">
|
||||
<h2 id="org5702d0f"><span class="section-number-2">5</span> Woodbury 3x3</h2>
|
||||
<div id="outline-container-orgc099015" class="outline-2">
|
||||
<h2 id="orgc099015"><span class="section-number-2">5</span> Woodbury 3x3</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
</div>
|
||||
<div id="outline-container-org07fa8d0" class="outline-3">
|
||||
<h3 id="org07fa8d0"><span class="section-number-3">5.1</span> <code>qmckl_woodbury_3x3</code></h3>
|
||||
<div id="outline-container-org22ee9bb" class="outline-3">
|
||||
<h3 id="org22ee9bb"><span class="section-number-3">5.1</span> <code>qmckl_woodbury_3x3</code></h3>
|
||||
<div class="outline-text-3" id="text-5-1">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5ee5316" class="outline-4">
|
||||
<h4 id="org5ee5316"><span class="section-number-4">5.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org74f0a58" class="outline-4">
|
||||
<h4 id="org74f0a58"><span class="section-number-4">5.1.1</span> Introduction</h4>
|
||||
<div class="outline-text-4" id="text-5-1-1">
|
||||
<p>
|
||||
The Woodbury 3x3 kernel. It is used to apply two rank-1 updates at once. The formula used in
|
||||
@ -7892,10 +7892,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbcdb21a" class="outline-4">
|
||||
<h4 id="orgbcdb21a"><span class="section-number-4">5.1.2</span> API</h4>
|
||||
<div id="outline-container-org3f96cc8" class="outline-4">
|
||||
<h4 id="org3f96cc8"><span class="section-number-4">5.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-5-1-2">
|
||||
<table id="orgd8f6ece" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1644cad" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -7976,8 +7976,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb00fb61" class="outline-4">
|
||||
<h4 id="orgb00fb61"><span class="section-number-4">5.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-orgdbc8bec" class="outline-4">
|
||||
<h4 id="orgdbc8bec"><span class="section-number-4">5.1.3</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-5-1-3">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>qmckl_null_context</code></li>
|
||||
@ -7991,8 +7991,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org22cd3e8" class="outline-4">
|
||||
<h4 id="org22cd3e8"><span class="section-number-4">5.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-org76527b9" class="outline-4">
|
||||
<h4 id="org76527b9"><span class="section-number-4">5.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div class="outline-text-4" id="text-5-1-4">
|
||||
<p>
|
||||
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
||||
@ -8137,8 +8137,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6366acc" class="outline-5">
|
||||
<h5 id="org6366acc"><span class="section-number-5">5.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div id="outline-container-orgcc12fb8" class="outline-5">
|
||||
<h5 id="orgcc12fb8"><span class="section-number-5">5.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div class="outline-text-5" id="text-5-1-4-1">
|
||||
<p>
|
||||
The function <code>qmckl_sm_splitting_core_doc</code> makes sure that
|
||||
@ -8151,8 +8151,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2ce5547" class="outline-4">
|
||||
<h4 id="org2ce5547"><span class="section-number-4">5.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org1b2a1ff" class="outline-4">
|
||||
<h4 id="org1b2a1ff"><span class="section-number-4">5.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div class="outline-text-4" id="text-5-1-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_3x3</span> (
|
||||
@ -8195,8 +8195,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3cebe8a" class="outline-4">
|
||||
<h4 id="org3cebe8a"><span class="section-number-4">5.1.6</span> C sources</h4>
|
||||
<div id="outline-container-orge03b587" class="outline-4">
|
||||
<h4 id="orge03b587"><span class="section-number-4">5.1.6</span> C sources</h4>
|
||||
<div class="outline-text-4" id="text-5-1-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_3x3_hpc</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
@ -8306,7 +8306,7 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="orgbd6f74f"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_woodbury_3x3_</span>{Dim}(
|
||||
<pre class="src src-c" id="orga9a322c"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_woodbury_3x3_</span>{Dim}(
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span>* <span style="color: #a0522d;">__restrict</span> Updates_index,
|
||||
@ -10676,14 +10676,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org16af2ee" class="outline-4">
|
||||
<h4 id="org16af2ee"><span class="section-number-4">5.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-org565e68d" class="outline-4">
|
||||
<h4 id="org565e68d"><span class="section-number-4">5.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div class="outline-text-4" id="text-5-1-7">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb11018e" class="outline-4">
|
||||
<h4 id="orgb11018e"><span class="section-number-4">5.1.8</span> Performance</h4>
|
||||
<div id="outline-container-org26f3f3b" class="outline-4">
|
||||
<h4 id="org26f3f3b"><span class="section-number-4">5.1.8</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-5-1-8">
|
||||
<p>
|
||||
This function is most efficient when used in cases where there are only 3 rank-1 updates and
|
||||
@ -10692,8 +10692,8 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga7b0d1e" class="outline-4">
|
||||
<h4 id="orga7b0d1e"><span class="section-number-4">5.1.9</span> Tests</h4>
|
||||
<div id="outline-container-orgd05f48b" class="outline-4">
|
||||
<h4 id="orgd05f48b"><span class="section-number-4">5.1.9</span> Tests</h4>
|
||||
<div class="outline-text-4" id="text-5-1-9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(Updates3 != <span style="color: #008b8b;">NULL</span>);
|
||||
@ -10730,17 +10730,17 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgf9e6aa0" class="outline-2">
|
||||
<h2 id="orgf9e6aa0"><span class="section-number-2">6</span> Sherman-Morrison with Slagel Splitting</h2>
|
||||
<div id="outline-container-org0070969" class="outline-2">
|
||||
<h2 id="org0070969"><span class="section-number-2">6</span> Sherman-Morrison with Slagel Splitting</h2>
|
||||
<div class="outline-text-2" id="text-6">
|
||||
</div>
|
||||
<div id="outline-container-orgf2a51c0" class="outline-3">
|
||||
<h3 id="orgf2a51c0"><span class="section-number-3">6.1</span> <code>qmckl_sm_splitting</code></h3>
|
||||
<div id="outline-container-orgbdb3e70" class="outline-3">
|
||||
<h3 id="orgbdb3e70"><span class="section-number-3">6.1</span> <code>qmckl_sm_splitting</code></h3>
|
||||
<div class="outline-text-3" id="text-6-1">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org11af4c5" class="outline-4">
|
||||
<h4 id="org11af4c5"><span class="section-number-4">6.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-orged9540a" class="outline-4">
|
||||
<h4 id="orged9540a"><span class="section-number-4">6.1.1</span> Introduction</h4>
|
||||
<div class="outline-text-4" id="text-6-1-1">
|
||||
<p>
|
||||
This is a variation on the 'Naive' Sherman-Morrison kernel. Whenever the denominator \(1+v_j^T S^{-1} u_j\) in
|
||||
@ -10764,10 +10764,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc4482b9" class="outline-4">
|
||||
<h4 id="orgc4482b9"><span class="section-number-4">6.1.2</span> API</h4>
|
||||
<div id="outline-container-orga9edb2d" class="outline-4">
|
||||
<h4 id="orga9edb2d"><span class="section-number-4">6.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-6-1-2">
|
||||
<table id="org4b264b3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org60bfc18" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -10855,8 +10855,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd0aa480" class="outline-4">
|
||||
<h4 id="orgd0aa480"><span class="section-number-4">6.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-orgbe77af6" class="outline-4">
|
||||
<h4 id="orgbe77af6"><span class="section-number-4">6.1.3</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-6-1-3">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -10871,8 +10871,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6f6a2eb" class="outline-4">
|
||||
<h4 id="org6f6a2eb"><span class="section-number-4">6.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-orgf3926ab" class="outline-4">
|
||||
<h4 id="orgf3926ab"><span class="section-number-4">6.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div class="outline-text-4" id="text-6-1-4">
|
||||
<p>
|
||||
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
||||
@ -10951,8 +10951,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1580876" class="outline-5">
|
||||
<h5 id="org1580876"><span class="section-number-5">6.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div id="outline-container-org56308f4" class="outline-5">
|
||||
<h5 id="org56308f4"><span class="section-number-5">6.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div class="outline-text-5" id="text-6-1-4-1">
|
||||
<p>
|
||||
The following Fortran function <code>qmckl_sm_splitting_core_doc</code> makes sure
|
||||
@ -10965,8 +10965,8 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd605b62" class="outline-4">
|
||||
<h4 id="orgd605b62"><span class="section-number-4">6.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org5b97efc" class="outline-4">
|
||||
<h4 id="org5b97efc"><span class="section-number-4">6.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div class="outline-text-4" id="text-6-1-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_splitting</span> (
|
||||
@ -11012,11 +11012,11 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3076760" class="outline-4">
|
||||
<h4 id="org3076760"><span class="section-number-4">6.1.6</span> C source</h4>
|
||||
<div id="outline-container-orge2f7a54" class="outline-4">
|
||||
<h4 id="orge2f7a54"><span class="section-number-4">6.1.6</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-6-1-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python" id="orgf5a747a"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org137fce8"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<span style="color: #8b2252;">case {Dim}: {</span>
|
||||
<span style="color: #8b2252;"> rc = qmckl_sm_splitting_core_{Dim}(</span>
|
||||
<span style="color: #8b2252;"> context,</span>
|
||||
@ -11420,14 +11420,14 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgae3cf16" class="outline-4">
|
||||
<h4 id="orgae3cf16"><span class="section-number-4">6.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-org804b5c3" class="outline-4">
|
||||
<h4 id="org804b5c3"><span class="section-number-4">6.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div class="outline-text-4" id="text-6-1-7">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd1ec32f" class="outline-4">
|
||||
<h4 id="orgd1ec32f"><span class="section-number-4">6.1.8</span> Performance…</h4>
|
||||
<div id="outline-container-org8de950c" class="outline-4">
|
||||
<h4 id="org8de950c"><span class="section-number-4">6.1.8</span> Performance…</h4>
|
||||
<div class="outline-text-4" id="text-6-1-8">
|
||||
<p>
|
||||
This kernel performs best when there are 2 or more rank-1 update cycles and fail-rate is high.
|
||||
@ -11435,8 +11435,8 @@ This kernel performs best when there are 2 or more rank-1 update cycles and fail
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgecdff3e" class="outline-4">
|
||||
<h4 id="orgecdff3e"><span class="section-number-4">6.1.9</span> Test</h4>
|
||||
<div id="outline-container-org18cc2f4" class="outline-4">
|
||||
<h4 id="org18cc2f4"><span class="section-number-4">6.1.9</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-6-1-9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(Updates3 != <span style="color: #008b8b;">NULL</span>);
|
||||
@ -11474,8 +11474,8 @@ rc = QMCKL_SUCCESS;
|
||||
|
||||
|
||||
|
||||
<div id="outline-container-orgbe8f75f" class="outline-2">
|
||||
<h2 id="orgbe8f75f"><span class="section-number-2">7</span> End of files</h2>
|
||||
<div id="outline-container-org9ffce6c" class="outline-2">
|
||||
<h2 id="org9ffce6c"><span class="section-number-2">7</span> End of files</h2>
|
||||
<div class="outline-text-2" id="text-7">
|
||||
<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);
|
||||
@ -11489,7 +11489,7 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:01</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:16</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>
|
||||
<!-- 2023-08-24 Thu 08:01 -->
|
||||
<!-- 2023-08-24 Thu 08:16 -->
|
||||
<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>
|
||||
@ -246,27 +246,27 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org2abca8a">1. CHBrClF</a>
|
||||
<li><a href="#org83e689a">1. CHBrClF</a>
|
||||
<ul>
|
||||
<li><a href="#org0f9d668">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orga505cd2">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#orgc0fad1c">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org4f3e2e6">1.4. Electron coordinates</a></li>
|
||||
<li><a href="#org98581a4">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org7a82e57">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#orgdc7dfa5">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org14c2689">1.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5c71b99">2. N2</a>
|
||||
<li><a href="#orgb18149b">2. N2</a>
|
||||
<ul>
|
||||
<li><a href="#orgefc9ac9">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org750c9a3">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#orgaaf9545">2.3. Jastrow related data</a></li>
|
||||
<li><a href="#org4788686">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org26ac831">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org3d7dd80">2.3. Jastrow related data</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2abca8a" class="outline-2">
|
||||
<h2 id="org2abca8a"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div id="outline-container-org83e689a" class="outline-2">
|
||||
<h2 id="org83e689a"><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,
|
||||
@ -350,8 +350,8 @@ and with a high maximum angular momentum.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org0f9d668" class="outline-3">
|
||||
<h3 id="org0f9d668"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org98581a4" class="outline-3">
|
||||
<h3 id="org98581a4"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<pre class="example">
|
||||
5
|
||||
@ -381,8 +381,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga505cd2" class="outline-3">
|
||||
<h3 id="orga505cd2"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div id="outline-container-org7a82e57" class="outline-3">
|
||||
<h3 id="org7a82e57"><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
|
||||
@ -1301,8 +1301,8 @@ F 1
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc0fad1c" class="outline-3">
|
||||
<h3 id="orgc0fad1c"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-orgdc7dfa5" class="outline-3">
|
||||
<h3 id="orgdc7dfa5"><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)
|
||||
@ -60226,8 +60226,8 @@ F 1
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4f3e2e6" class="outline-3">
|
||||
<h3 id="org4f3e2e6"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org14c2689" class="outline-3">
|
||||
<h3 id="org14c2689"><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.
|
||||
@ -60386,8 +60386,8 @@ Electron coordinates are stored in atomic units in normal format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5c71b99" class="outline-2">
|
||||
<h2 id="org5c71b99"><span class="section-number-2">2</span> N2</h2>
|
||||
<div id="outline-container-orgb18149b" class="outline-2">
|
||||
<h2 id="orgb18149b"><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
|
||||
@ -60428,8 +60428,8 @@ treated by pseudopotentials thus excluded from the actual calculation.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgefc9ac9" class="outline-3">
|
||||
<h3 id="orgefc9ac9"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org4788686" class="outline-3">
|
||||
<h3 id="org4788686"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<pre class="example">
|
||||
2
|
||||
@ -60456,8 +60456,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org750c9a3" class="outline-3">
|
||||
<h3 id="org750c9a3"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org26ac831" class="outline-3">
|
||||
<h3 id="org26ac831"><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.
|
||||
@ -60486,8 +60486,8 @@ Electron coordinates are stored in atomic units in normal format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaaf9545" class="outline-3">
|
||||
<h3 id="orgaaf9545"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div id="outline-container-org3d7dd80" class="outline-3">
|
||||
<h3 id="org3d7dd80"><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
|
||||
@ -60586,7 +60586,7 @@ Ramon Panades Baruetta.
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="date">Created: 2023-08-24 Thu 08:01</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:16</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>
|
||||
<!-- 2023-08-24 Thu 08:01 -->
|
||||
<!-- 2023-08-24 Thu 08:16 -->
|
||||
<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>
|
||||
@ -324,53 +324,53 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org055b40e">1. Local functions</a>
|
||||
<li><a href="#org7d0feab">1. Local functions</a>
|
||||
<ul>
|
||||
<li><a href="#org5ab2113">1.1. Open file</a></li>
|
||||
<li><a href="#org3e6ce82">1.2. Electron</a></li>
|
||||
<li><a href="#orga2ba4fe">1.3. Nucleus</a>
|
||||
<li><a href="#orgc848b19">1.1. Open file</a></li>
|
||||
<li><a href="#org4caea59">1.2. Electron</a></li>
|
||||
<li><a href="#org60133d6">1.3. Nucleus</a>
|
||||
<ul>
|
||||
<li><a href="#orge1b7a72">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#org838e210">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#orgcaf3a65">1.3.3. Nuclear coordinates</a></li>
|
||||
<li><a href="#org0b00529">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#org228ff2d">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#orgf96e597">1.3.3. Nuclear coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org844782d">1.4. Basis set and AOs</a>
|
||||
<li><a href="#orga1cfe49">1.4. Basis set and AOs</a>
|
||||
<ul>
|
||||
<li><a href="#org6e22228">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#org42ee2ae">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org82fe950">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#orgf19ecb8">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#orgbd3c0a8">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org1b1e0b3">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#org9ccdad4">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org591564b">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#org485cd5a">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#orgd434d1c">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org219eda2">1.4.11. Exponents</a></li>
|
||||
<li><a href="#orge5b3b62">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#org390573f">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org2f8545b">1.4.14. AO Normalization</a></li>
|
||||
<li><a href="#orgdd4abea">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#orga6d2850">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org7594cd3">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#org4c842c6">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org7db734e">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org99499b8">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#orgd615e2e">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org8576ed5">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#orga811fbf">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#org05b9cb9">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#orgb4037e4">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org5e296d5">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#org982c52b">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org9be5d58">1.4.14. AO Normalization</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge3db15d">1.5. Molecular orbitals</a>
|
||||
<li><a href="#org8cc40b5">1.5. Molecular orbitals</a>
|
||||
<ul>
|
||||
<li><a href="#org0af207b">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#orge254030">1.5.2. MO coefficients</a></li>
|
||||
<li><a href="#orgf89abc8">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#org878a941">1.5.2. MO coefficients</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge0e219b">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
<li><a href="#org19b9165">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5ebe04d">2. Read everything</a></li>
|
||||
<li><a href="#orgeb696bb">3. Test</a>
|
||||
<li><a href="#org351b559">2. Read everything</a></li>
|
||||
<li><a href="#org7cb7fbb">3. Test</a>
|
||||
<ul>
|
||||
<li>
|
||||
<ul>
|
||||
<li><a href="#orgdf5c29c">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org2164058">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#orgb1feaae">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#orgd2f97af">3.0.4. MO Basis</a></li>
|
||||
<li><a href="#org728c29a">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org1ff4be1">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#org9ad7dd5">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org224efeb">3.0.4. MO Basis</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -379,8 +379,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org055b40e" class="outline-2">
|
||||
<h2 id="org055b40e"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div id="outline-container-org7d0feab" class="outline-2">
|
||||
<h2 id="org7d0feab"><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
|
||||
@ -403,8 +403,8 @@ In the functions defined in this section, we use as local variables
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5ab2113" class="outline-3">
|
||||
<h3 id="org5ab2113"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div id="outline-container-orgc848b19" class="outline-3">
|
||||
<h3 id="orgc848b19"><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
|
||||
@ -442,8 +442,8 @@ groups of data by passing the <code>trexio_t</code> handle.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3e6ce82" class="outline-3">
|
||||
<h3 id="org3e6ce82"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div id="outline-container-org4caea59" class="outline-3">
|
||||
<h3 id="org4caea59"><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.
|
||||
@ -494,8 +494,8 @@ We read the number of up-spin and down-spin electrons.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga2ba4fe" class="outline-3">
|
||||
<h3 id="orga2ba4fe"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div id="outline-container-org60133d6" class="outline-3">
|
||||
<h3 id="org60133d6"><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.
|
||||
@ -515,8 +515,8 @@ In this section we read the number of nuclei, the molecular geometry and nuclear
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge1b7a72" class="outline-4">
|
||||
<h4 id="orge1b7a72"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div id="outline-container-org0b00529" class="outline-4">
|
||||
<h4 id="org0b00529"><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;
|
||||
@ -539,8 +539,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org838e210" class="outline-4">
|
||||
<h4 id="org838e210"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div id="outline-container-org228ff2d" class="outline-4">
|
||||
<h4 id="org228ff2d"><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">{
|
||||
@ -580,8 +580,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcaf3a65" class="outline-4">
|
||||
<h4 id="orgcaf3a65"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div id="outline-container-orgf96e597" class="outline-4">
|
||||
<h4 id="orgf96e597"><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
|
||||
@ -636,8 +636,8 @@ in the TREXIO file (<code>'N'</code>), so it will be automatically transposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org844782d" class="outline-3">
|
||||
<h3 id="org844782d"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div id="outline-container-orga1cfe49" class="outline-3">
|
||||
<h3 id="orga1cfe49"><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.
|
||||
@ -663,8 +663,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6e22228" class="outline-4">
|
||||
<h4 id="org6e22228"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div id="outline-container-orgdd4abea" class="outline-4">
|
||||
<h4 id="orgdd4abea"><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
|
||||
@ -695,8 +695,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org42ee2ae" class="outline-4">
|
||||
<h4 id="org42ee2ae"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div id="outline-container-orga6d2850" class="outline-4">
|
||||
<h4 id="orga6d2850"><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;
|
||||
@ -720,8 +720,8 @@ rc = qmckl_set_ao_basis_shell_num(context, shell_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org82fe950" class="outline-4">
|
||||
<h4 id="org82fe950"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div id="outline-container-org7594cd3" class="outline-4">
|
||||
<h4 id="org7594cd3"><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;
|
||||
@ -745,8 +745,8 @@ rc = qmckl_set_ao_basis_prim_num(context, prim_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf19ecb8" class="outline-4">
|
||||
<h4 id="orgf19ecb8"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div id="outline-container-org4c842c6" class="outline-4">
|
||||
<h4 id="org4c842c6"><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;
|
||||
@ -770,8 +770,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbd3c0a8" class="outline-4">
|
||||
<h4 id="orgbd3c0a8"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div id="outline-container-org7db734e" class="outline-4">
|
||||
<h4 id="org7db734e"><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">{
|
||||
@ -851,8 +851,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1b1e0b3" class="outline-4">
|
||||
<h4 id="org1b1e0b3"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div id="outline-container-org99499b8" class="outline-4">
|
||||
<h4 id="org99499b8"><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">{
|
||||
@ -937,8 +937,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9ccdad4" class="outline-4">
|
||||
<h4 id="org9ccdad4"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div id="outline-container-orgd615e2e" class="outline-4">
|
||||
<h4 id="orgd615e2e"><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">{
|
||||
@ -983,8 +983,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org591564b" class="outline-4">
|
||||
<h4 id="org591564b"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
||||
<div id="outline-container-org8576ed5" class="outline-4">
|
||||
<h4 id="org8576ed5"><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">{
|
||||
@ -1068,8 +1068,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org485cd5a" class="outline-4">
|
||||
<h4 id="org485cd5a"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
||||
<div id="outline-container-orga811fbf" class="outline-4">
|
||||
<h4 id="orga811fbf"><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">{
|
||||
@ -1149,8 +1149,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd434d1c" class="outline-4">
|
||||
<h4 id="orgd434d1c"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
||||
<div id="outline-container-org05b9cb9" class="outline-4">
|
||||
<h4 id="org05b9cb9"><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">{
|
||||
@ -1195,8 +1195,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org219eda2" class="outline-4">
|
||||
<h4 id="org219eda2"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||
<div id="outline-container-orgb4037e4" class="outline-4">
|
||||
<h4 id="orgb4037e4"><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">{
|
||||
@ -1241,8 +1241,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge5b3b62" class="outline-4">
|
||||
<h4 id="orge5b3b62"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||
<div id="outline-container-org5e296d5" class="outline-4">
|
||||
<h4 id="org5e296d5"><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">{
|
||||
@ -1287,8 +1287,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org390573f" class="outline-4">
|
||||
<h4 id="org390573f"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
||||
<div id="outline-container-org982c52b" class="outline-4">
|
||||
<h4 id="org982c52b"><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">{
|
||||
@ -1333,8 +1333,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2f8545b" class="outline-4">
|
||||
<h4 id="org2f8545b"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||
<div id="outline-container-org9be5d58" class="outline-4">
|
||||
<h4 id="org9be5d58"><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">{
|
||||
@ -1389,8 +1389,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orge3db15d" class="outline-3">
|
||||
<h3 id="orge3db15d"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org8cc40b5" class="outline-3">
|
||||
<h3 id="org8cc40b5"><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.
|
||||
@ -1416,8 +1416,8 @@ In this section we read the MO coefficients.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0af207b" class="outline-4">
|
||||
<h4 id="org0af207b"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
||||
<div id="outline-container-orgf89abc8" class="outline-4">
|
||||
<h4 id="orgf89abc8"><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;
|
||||
@ -1440,8 +1440,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge254030" class="outline-4">
|
||||
<h4 id="orge254030"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||
<div id="outline-container-org878a941" class="outline-4">
|
||||
<h4 id="org878a941"><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">{
|
||||
@ -1490,12 +1490,12 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge0e219b" class="outline-3">
|
||||
<h3 id="orge0e219b"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
<div id="outline-container-org19b9165" class="outline-3">
|
||||
<h3 id="org19b9165"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org5ebe04d" class="outline-2">
|
||||
<h2 id="org5ebe04d"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div id="outline-container-org351b559" class="outline-2">
|
||||
<h2 id="org351b559"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1570,8 +1570,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeb696bb" class="outline-2">
|
||||
<h2 id="orgeb696bb"><span class="section-number-2">3</span> Test</h2>
|
||||
<div id="outline-container-org7cb7fbb" class="outline-2">
|
||||
<h2 id="org7cb7fbb"><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
|
||||
@ -1595,8 +1595,8 @@ rc = qmckl_trexio_read(context, filename, 255);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdf5c29c" class="outline-4">
|
||||
<h4 id="orgdf5c29c"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||
<div id="outline-container-org728c29a" class="outline-4">
|
||||
<h4 id="org728c29a"><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>);
|
||||
@ -1614,8 +1614,8 @@ rc = qmckl_get_electron_down_num(context, &dn_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2164058" class="outline-4">
|
||||
<h4 id="org2164058"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||
<div id="outline-container-org1ff4be1" class="outline-4">
|
||||
<h4 id="org1ff4be1"><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>);
|
||||
@ -1655,8 +1655,8 @@ coord = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb1feaae" class="outline-4">
|
||||
<h4 id="orgb1feaae"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||
<div id="outline-container-org9ad7dd5" class="outline-4">
|
||||
<h4 id="org9ad7dd5"><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>);
|
||||
@ -1764,8 +1764,8 @@ prim_factor = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd2f97af" class="outline-4">
|
||||
<h4 id="orgd2f97af"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div id="outline-container-org224efeb" class="outline-4">
|
||||
<h4 id="org224efeb"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div class="outline-text-4" id="text-3-0-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">printf(<span style="color: #8b2252;">"MOs\n"</span>);
|
||||
@ -1796,7 +1796,7 @@ charge = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:01</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:16</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>
|
||||
<!-- 2023-08-24 Thu 08:01 -->
|
||||
<!-- 2023-08-24 Thu 08:16 -->
|
||||
<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>
|
||||
@ -324,22 +324,22 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org45ea665">1. Verificarlo probes</a>
|
||||
<li><a href="#org35c5748">1. Verificarlo probes</a>
|
||||
<ul>
|
||||
<li><a href="#org3ade4f1">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org12ea054">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org0b14980">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#org56569ec">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org638a1b1">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#orgf1f934b">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#orgc0189e4">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#orgff4a8ee">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#orgb069cfb">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org8dd9a5e">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="#org35e2473">2. Fortran wrappers</a></li>
|
||||
<li><a href="#orgdf9a912">2. Fortran wrappers</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org45ea665" class="outline-2">
|
||||
<h2 id="org45ea665"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div id="outline-container-org35c5748" class="outline-2">
|
||||
<h2 id="org35c5748"><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
|
||||
@ -390,8 +390,8 @@ To learn more about Verificarlo CI :
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org3ade4f1" class="outline-3">
|
||||
<h3 id="org3ade4f1"><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-orgf1f934b" class="outline-3">
|
||||
<h3 id="orgf1f934b"><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>();
|
||||
@ -409,8 +409,8 @@ To learn more about Verificarlo CI :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org12ea054" class="outline-3">
|
||||
<h3 id="org12ea054"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div id="outline-container-orgc0189e4" class="outline-3">
|
||||
<h3 id="orgc0189e4"><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>
|
||||
@ -445,8 +445,8 @@ if <code>VFC_CI</code> is undefined, return <code>false</code> (no error)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0b14980" class="outline-3">
|
||||
<h3 id="org0b14980"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div id="outline-container-orgff4a8ee" class="outline-3">
|
||||
<h3 id="orgff4a8ee"><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>
|
||||
@ -486,8 +486,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org56569ec" class="outline-3">
|
||||
<h3 id="org56569ec"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div id="outline-container-orgb069cfb" class="outline-3">
|
||||
<h3 id="orgb069cfb"><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>
|
||||
@ -527,8 +527,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org638a1b1" class="outline-3">
|
||||
<h3 id="org638a1b1"><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-org8dd9a5e" class="outline-3">
|
||||
<h3 id="org8dd9a5e"><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>();
|
||||
@ -547,8 +547,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org35e2473" class="outline-2">
|
||||
<h2 id="org35e2473"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||
<div id="outline-container-orgdf9a912" class="outline-2">
|
||||
<h2 id="orgdf9a912"><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>(
|
||||
@ -672,7 +672,7 @@ and accuracy
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:01</p>
|
||||
<p class="date">Created: 2023-08-24 Thu 08:16</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