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@c6d193887a 🚀
This commit is contained in:
parent
beaaf16eb0
commit
7a472180c3
@ -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-11-28 Tue 16:09 -->
|
||||
<!-- 2023-11-29 Wed 00:20 -->
|
||||
<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-11-28 Tue 16:09</p>
|
||||
<p class="date">Created: 2023-11-29 Wed 00:20</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-11-28 Tue 16:09 -->
|
||||
<!-- 2023-11-29 Wed 00:20 -->
|
||||
<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="#org8b710d4">1. Installing QMCkl</a>
|
||||
<li><a href="#org8625c4c">1. Installing QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#orgace49dd">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org67f9400">1.2. Installing from the source repository (for developers)</a></li>
|
||||
<li><a href="#orgb94fbb1">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org3d07e23">1.2. Installing from the source repository (for developers)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc39ea54">2. Using QMCkl</a></li>
|
||||
<li><a href="#orgc5a39b7">3. Developing in QMCkl</a>
|
||||
<li><a href="#org69bb472">2. Using QMCkl</a></li>
|
||||
<li><a href="#org9240ce3">3. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#org5cf75cf">3.1. Literate programming</a></li>
|
||||
<li><a href="#org5d61e70">3.2. Source code editing</a></li>
|
||||
<li><a href="#orgaac754d">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org2d33139">3.4. Coding rules</a></li>
|
||||
<li><a href="#org30d655c">3.5. Design of the library</a></li>
|
||||
<li><a href="#org415ae52">3.6. Naming conventions</a></li>
|
||||
<li><a href="#orgfd5ff3a">3.7. Application programming interface</a></li>
|
||||
<li><a href="#orgca4fbd8">3.8. Global state</a></li>
|
||||
<li><a href="#org8506b31">3.9. Headers</a></li>
|
||||
<li><a href="#org7f6a9b2">3.10. Low-level functions</a></li>
|
||||
<li><a href="#orgd7e0b67">3.11. High-level functions</a></li>
|
||||
<li><a href="#orgb67fd6c">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org2b63361">3.13. Algorithms</a></li>
|
||||
<li><a href="#org9677f5a">3.1. Literate programming</a></li>
|
||||
<li><a href="#orgf89d3c9">3.2. Source code editing</a></li>
|
||||
<li><a href="#org9c07f77">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org4209e67">3.4. Coding rules</a></li>
|
||||
<li><a href="#orgd23296b">3.5. Design of the library</a></li>
|
||||
<li><a href="#org20a2784">3.6. Naming conventions</a></li>
|
||||
<li><a href="#orgf12c312">3.7. Application programming interface</a></li>
|
||||
<li><a href="#orga8fca91">3.8. Global state</a></li>
|
||||
<li><a href="#orgefc8dda">3.9. Headers</a></li>
|
||||
<li><a href="#org20aa5ff">3.10. Low-level functions</a></li>
|
||||
<li><a href="#orga45f799">3.11. High-level functions</a></li>
|
||||
<li><a href="#org784e3ef">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org12ad8c9">3.13. Algorithms</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8b710d4" class="outline-2">
|
||||
<h2 id="org8b710d4"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div id="outline-container-org8625c4c" class="outline-2">
|
||||
<h2 id="org8625c4c"><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-orgace49dd" class="outline-3">
|
||||
<h3 id="orgace49dd"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div id="outline-container-orgb94fbb1" class="outline-3">
|
||||
<h3 id="orgb94fbb1"><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-org67f9400" class="outline-3">
|
||||
<h3 id="org67f9400"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div id="outline-container-org3d07e23" class="outline-3">
|
||||
<h3 id="org3d07e23"><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-orgc39ea54" class="outline-2">
|
||||
<h2 id="orgc39ea54"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div id="outline-container-org69bb472" class="outline-2">
|
||||
<h2 id="org69bb472"><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-orgc5a39b7" class="outline-2">
|
||||
<h2 id="orgc5a39b7"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-org9240ce3" class="outline-2">
|
||||
<h2 id="org9240ce3"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org5cf75cf" class="outline-3">
|
||||
<h3 id="org5cf75cf"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div id="outline-container-org9677f5a" class="outline-3">
|
||||
<h3 id="org9677f5a"><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-org5d61e70" class="outline-3">
|
||||
<h3 id="org5d61e70"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div id="outline-container-orgf89d3c9" class="outline-3">
|
||||
<h3 id="orgf89d3c9"><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-orgaac754d" class="outline-3">
|
||||
<h3 id="orgaac754d"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-org9c07f77" class="outline-3">
|
||||
<h3 id="org9c07f77"><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-org2d33139" class="outline-3">
|
||||
<h3 id="org2d33139"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div id="outline-container-org4209e67" class="outline-3">
|
||||
<h3 id="org4209e67"><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-org30d655c" class="outline-3">
|
||||
<h3 id="org30d655c"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div id="outline-container-orgd23296b" class="outline-3">
|
||||
<h3 id="orgd23296b"><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-org415ae52" class="outline-3">
|
||||
<h3 id="org415ae52"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-org20a2784" class="outline-3">
|
||||
<h3 id="org20a2784"><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-orgfd5ff3a" class="outline-3">
|
||||
<h3 id="orgfd5ff3a"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-orgf12c312" class="outline-3">
|
||||
<h3 id="orgf12c312"><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-orgca4fbd8" class="outline-3">
|
||||
<h3 id="orgca4fbd8"><span class="section-number-3">3.8</span> Global state</h3>
|
||||
<div id="outline-container-orga8fca91" class="outline-3">
|
||||
<h3 id="orga8fca91"><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="org30b08c6">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="org86693c4">=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-org8506b31" class="outline-3">
|
||||
<h3 id="org8506b31"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div id="outline-container-orgefc8dda" class="outline-3">
|
||||
<h3 id="orgefc8dda"><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-org7f6a9b2" class="outline-3">
|
||||
<h3 id="org7f6a9b2"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-org20aa5ff" class="outline-3">
|
||||
<h3 id="org20aa5ff"><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="#org30b08c6"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#org86693c4"><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-orgd7e0b67" class="outline-3">
|
||||
<h3 id="orgd7e0b67"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div id="outline-container-orga45f799" class="outline-3">
|
||||
<h3 id="orga45f799"><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-orgb67fd6c" class="outline-3">
|
||||
<h3 id="orgb67fd6c"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-org784e3ef" class="outline-3">
|
||||
<h3 id="org784e3ef"><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="#org30b08c6"><code>context</code></a> variable.
|
||||
specified in the <a href="#org86693c4"><code>context</code></a> variable.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -909,8 +909,8 @@ following points :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2b63361" class="outline-3">
|
||||
<h3 id="org2b63361"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div id="outline-container-org12ad8c9" class="outline-3">
|
||||
<h3 id="org12ad8c9"><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-11-28 Tue 16:09</p>
|
||||
<p class="date">Created: 2023-11-29 Wed 00:20</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
212
qmckl_ao.html
212
qmckl_ao.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-11-28 Tue 16:09 -->
|
||||
<!-- 2023-11-29 Wed 00:20 -->
|
||||
<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="#org35b7929">1. Introduction</a></li>
|
||||
<li><a href="#org78e36a7">2. Context</a>
|
||||
<li><a href="#org70126c2">1. Introduction</a></li>
|
||||
<li><a href="#org764915b">2. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orge9a663a">2.1. Constant data</a>
|
||||
<li><a href="#orgad0274b">2.1. Constant data</a>
|
||||
<ul>
|
||||
<li><a href="#org0f7e678">2.1.1. Initialization functions</a>
|
||||
<li><a href="#org57a9161">2.1.1. Initialization functions</a>
|
||||
<ul>
|
||||
<li><a href="#org1026aec">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org46e8885">2.1.1.2. Fortran interface</a></li>
|
||||
<li><a href="#org60b1868">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#orgf29caec">2.1.1.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgffc2358">2.1.2. Access functions</a>
|
||||
<li><a href="#org6a24894">2.1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org16d9ec5">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#orgbaeb603">2.1.2.2. Fortran interface</a></li>
|
||||
<li><a href="#org5b01166">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#orgdb5c1ae">2.1.2.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge16eed1">2.2. Computed data</a>
|
||||
<li><a href="#org1f1f7e1">2.2. Computed data</a>
|
||||
<ul>
|
||||
<li><a href="#org12cac7a">2.2.1. After initialization</a></li>
|
||||
<li><a href="#orgdf5c220">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#org68f9b70">2.2.3. Access functions</a></li>
|
||||
<li><a href="#org2f64e5a">2.2.1. After initialization</a></li>
|
||||
<li><a href="#org673ee06">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#org4ea9ebc">2.2.3. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga94561b">3. Radial part</a>
|
||||
<li><a href="#org9814cd9">3. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#org360e65c">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org7fb3e48">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org3d90060">3.3. Computation of shells</a></li>
|
||||
<li><a href="#org68441cf">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org1f7be61">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org15c3414">3.3. Computation of shells</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6a13a09">4. Polynomial part</a>
|
||||
<li><a href="#orgbbf8a02">4. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#org025fb59">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org8dc4d3c">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
<li><a href="#orge0daa14">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org88f12dc">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org95c6927">5. Combining radial and polynomial parts</a>
|
||||
<li><a href="#orga0fed02">5. Combining radial and polynomial parts</a>
|
||||
<ul>
|
||||
<li><a href="#orga5ef75d">5.1. Values only</a>
|
||||
<li><a href="#orgf6d18a8">5.1. Values only</a>
|
||||
<ul>
|
||||
<li><a href="#org588a03b">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#org06c4974">5.1.2. HPC version</a></li>
|
||||
<li><a href="#orgf728fe9">5.1.3. Interfaces</a></li>
|
||||
<li><a href="#org62c3c92">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#org22c8d1d">5.1.2. HPC version</a></li>
|
||||
<li><a href="#org8a4d210">5.1.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org010c092">5.2. Value, gradients, Laplacian</a>
|
||||
<li><a href="#orga3ffbe3">5.2. Value, gradients, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org37806ee">5.2.1. Reference version</a></li>
|
||||
<li><a href="#orgcfac02e">5.2.2. HPC version</a></li>
|
||||
<li><a href="#org8f87713">5.2.3. Interfaces</a></li>
|
||||
<li><a href="#org3f62d9f">5.2.1. Reference version</a></li>
|
||||
<li><a href="#orgc8310aa">5.2.2. HPC version</a></li>
|
||||
<li><a href="#org2d8ce39">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-org35b7929" class="outline-2">
|
||||
<h2 id="org35b7929"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div id="outline-container-org70126c2" class="outline-2">
|
||||
<h2 id="org70126c2"><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-org78e36a7" class="outline-2">
|
||||
<h2 id="org78e36a7"><span class="section-number-2">2</span> Context</h2>
|
||||
<div id="outline-container-org764915b" class="outline-2">
|
||||
<h2 id="org764915b"><span class="section-number-2">2</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orge9a663a" class="outline-3">
|
||||
<h3 id="orge9a663a"><span class="section-number-3">2.1</span> Constant data</h3>
|
||||
<div id="outline-container-orgad0274b" class="outline-3">
|
||||
<h3 id="orgad0274b"><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="orgdbd25e2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgcd8777b" 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="org67078b3"><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="org244db72"><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="org44050cf"><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="orgc27bee5"><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-org0f7e678" class="outline-4">
|
||||
<h4 id="org0f7e678"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
||||
<div id="outline-container-org57a9161" class="outline-4">
|
||||
<h4 id="org57a9161"><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="#org78e36a7">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org764915b">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1026aec" class="outline-5">
|
||||
<h5 id="org1026aec"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div id="outline-container-org60b1868" class="outline-5">
|
||||
<h5 id="org60b1868"><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-org46e8885" class="outline-5">
|
||||
<h5 id="org46e8885"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-orgf29caec" class="outline-5">
|
||||
<h5 id="orgf29caec"><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-orgffc2358" class="outline-4">
|
||||
<h4 id="orgffc2358"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
||||
<div id="outline-container-org6a24894" class="outline-4">
|
||||
<h4 id="org6a24894"><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="#org78e36a7">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org764915b">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org16d9ec5" class="outline-5">
|
||||
<h5 id="org16d9ec5"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div id="outline-container-org5b01166" class="outline-5">
|
||||
<h5 id="org5b01166"><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-orgbaeb603" class="outline-5">
|
||||
<h5 id="orgbaeb603"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-orgdb5c1ae" class="outline-5">
|
||||
<h5 id="orgdb5c1ae"><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-orge16eed1" class="outline-3">
|
||||
<h3 id="orge16eed1"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div id="outline-container-org1f1f7e1" class="outline-3">
|
||||
<h3 id="org1f1f7e1"><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-org12cac7a" class="outline-4">
|
||||
<h4 id="org12cac7a"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div id="outline-container-org2f64e5a" class="outline-4">
|
||||
<h4 id="org2f64e5a"><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-orgdf5c220" class="outline-4">
|
||||
<h4 id="orgdf5c220"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
||||
<div id="outline-container-org673ee06" class="outline-4">
|
||||
<h4 id="org673ee06"><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-org68f9b70" class="outline-4">
|
||||
<h4 id="org68f9b70"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||
<div id="outline-container-org4ea9ebc" class="outline-4">
|
||||
<h4 id="org4ea9ebc"><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="#org7fb3e48">3.2</a>.
|
||||
See section <a href="#org1f7be61">3.2</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1568,7 +1568,7 @@ See section <a href="#org7fb3e48">3.2</a>.
|
||||
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of contracted shells
|
||||
evaluated at the current coordinates. See section <a href="#org3d90060">3.3</a>.
|
||||
evaluated at the current coordinates. See section <a href="#org15c3414">3.3</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1582,7 +1582,7 @@ evaluated at the current coordinates. See section <a href="#org3d90060">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="#org95c6927">5</a>.
|
||||
See section <a href="#orga0fed02">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="#org95c6927">5</a>.
|
||||
the current coordinates. See section <a href="#orga0fed02">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1626,12 +1626,12 @@ Uses the given array to compute the value.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga94561b" class="outline-2">
|
||||
<h2 id="orga94561b"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div id="outline-container-org9814cd9" class="outline-2">
|
||||
<h2 id="org9814cd9"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org360e65c" class="outline-3">
|
||||
<h3 id="org360e65c"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div id="outline-container-org68441cf" class="outline-3">
|
||||
<h3 id="org68441cf"><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
|
||||
@ -1805,10 +1805,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7fb3e48" class="outline-3">
|
||||
<h3 id="org7fb3e48"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div id="outline-container-org1f7be61" class="outline-3">
|
||||
<h3 id="org1f7be61"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<table id="org5148552" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9729dcc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1968,10 +1968,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3d90060" class="outline-3">
|
||||
<h3 id="org3d90060"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div id="outline-container-org15c3414" class="outline-3">
|
||||
<h3 id="org15c3414"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<table id="org43b9afa" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org22d94c3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2227,8 +2227,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6a13a09" class="outline-2">
|
||||
<h2 id="org6a13a09"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div id="outline-container-orgbbf8a02" class="outline-2">
|
||||
<h2 id="orgbbf8a02"><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
|
||||
@ -2248,8 +2248,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-org025fb59" class="outline-3">
|
||||
<h3 id="org025fb59"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-orge0daa14" class="outline-3">
|
||||
<h3 id="orge0daa14"><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>
|
||||
@ -2261,7 +2261,7 @@ the \(n\) points:
|
||||
\[ P_{ik} = X_i^k \]
|
||||
</p>
|
||||
|
||||
<table id="org1af2344" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf6e5cf0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2404,8 +2404,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8dc4d3c" class="outline-3">
|
||||
<h3 id="org8dc4d3c"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-org88f12dc" class="outline-3">
|
||||
<h3 id="org88f12dc"><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\)
|
||||
@ -2450,7 +2450,7 @@ Laplacians at a given point in space, of all polynomials with an
|
||||
angular momentum up to <code>lmax</code>.
|
||||
</p>
|
||||
|
||||
<table id="org4543cc2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga064ba5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3245,18 +3245,18 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org95c6927" class="outline-2">
|
||||
<h2 id="org95c6927"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div id="outline-container-orga0fed02" class="outline-2">
|
||||
<h2 id="orga0fed02"><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-orga5ef75d" class="outline-3">
|
||||
<h3 id="orga5ef75d"><span class="section-number-3">5.1</span> Values only</h3>
|
||||
<div id="outline-container-orgf6d18a8" class="outline-3">
|
||||
<h3 id="orgf6d18a8"><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-org588a03b" class="outline-4">
|
||||
<h4 id="org588a03b"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-org62c3c92" class="outline-4">
|
||||
<h4 id="org62c3c92"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-1">
|
||||
<table id="orga2dac6d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgcdcea84" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3496,10 +3496,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org06c4974" class="outline-4">
|
||||
<h4 id="org06c4974"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div id="outline-container-org22c8d1d" class="outline-4">
|
||||
<h4 id="org22c8d1d"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-2">
|
||||
<table id="orgef56b8a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8991c86" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3657,8 +3657,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf728fe9" class="outline-4">
|
||||
<h4 id="orgf728fe9"><span class="section-number-4">5.1.3</span> Interfaces</h4>
|
||||
<div id="outline-container-org8a4d210" class="outline-4">
|
||||
<h4 id="org8a4d210"><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> (
|
||||
@ -3707,14 +3707,14 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org010c092" class="outline-3">
|
||||
<h3 id="org010c092"><span class="section-number-3">5.2</span> Value, gradients, Laplacian</h3>
|
||||
<div id="outline-container-orga3ffbe3" class="outline-3">
|
||||
<h3 id="orga3ffbe3"><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-org37806ee" class="outline-4">
|
||||
<h4 id="org37806ee"><span class="section-number-4">5.2.1</span> Reference version</h4>
|
||||
<div id="outline-container-org3f62d9f" class="outline-4">
|
||||
<h4 id="org3f62d9f"><span class="section-number-4">5.2.1</span> Reference version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-1">
|
||||
<table id="org7635250" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3c813e9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3982,10 +3982,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcfac02e" class="outline-4">
|
||||
<h4 id="orgcfac02e"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div id="outline-container-orgc8310aa" class="outline-4">
|
||||
<h4 id="orgc8310aa"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-2">
|
||||
<table id="org48f72c0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1e79034" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4144,8 +4144,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org8f87713" class="outline-4">
|
||||
<h4 id="org8f87713"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||
<div id="outline-container-org2d8ce39" class="outline-4">
|
||||
<h4 id="org2d8ce39"><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> (
|
||||
@ -4197,7 +4197,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-11-28 Tue 16:09</p>
|
||||
<p class="date">Created: 2023-11-29 Wed 00:20</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-11-28 Tue 16:09 -->
|
||||
<!-- 2023-11-29 Wed 00:20 -->
|
||||
<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="#orgdc67ee9">-</a></li>
|
||||
<li><a href="#org9fbbd68">1. Data types</a>
|
||||
<li><a href="#orgfa3d17b">-</a></li>
|
||||
<li><a href="#org16c0ef6">1. Data types</a>
|
||||
<ul>
|
||||
<li><a href="#org4f8c8df">1.1. Vector</a></li>
|
||||
<li><a href="#orga3e4859">1.2. Matrix</a></li>
|
||||
<li><a href="#org741d307">1.3. Tensor</a></li>
|
||||
<li><a href="#org2cb8ed8">1.4. Reshaping</a>
|
||||
<li><a href="#org13bfb50">1.1. Vector</a></li>
|
||||
<li><a href="#orge64809e">1.2. Matrix</a></li>
|
||||
<li><a href="#org0055d58">1.3. Tensor</a></li>
|
||||
<li><a href="#org1b3724e">1.4. Reshaping</a>
|
||||
<ul>
|
||||
<li><a href="#orgd610eb6">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#org5b79b86">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#orgd4d7459">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#orged616d8">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#orga90a0ad">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#orgec71852">1.4.6. Tensor -> Matrix</a></li>
|
||||
<li><a href="#org5dc9a3b">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#orgf607d8c">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#org680ddec">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#org062e033">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#org1d7fced">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#org5277fc5">1.4.6. Tensor -> Matrix</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4dac1c9">1.5. Access macros</a></li>
|
||||
<li><a href="#org57e415c">1.6. Set all elements</a>
|
||||
<li><a href="#orgaf5d269">1.5. Access macros</a></li>
|
||||
<li><a href="#orgc213387">1.6. Set all elements</a>
|
||||
<ul>
|
||||
<li><a href="#org19b5de8">1.6.1. Vector</a></li>
|
||||
<li><a href="#org3c7cfc2">1.6.2. Matrix</a></li>
|
||||
<li><a href="#org008272d">1.6.3. Tensor</a></li>
|
||||
<li><a href="#org2f2db41">1.6.1. Vector</a></li>
|
||||
<li><a href="#org9b289f0">1.6.2. Matrix</a></li>
|
||||
<li><a href="#org6defe8f">1.6.3. Tensor</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org02a6e6d">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#org2570ed0">1.8. Allocate and copy to <code>double*</code></a></li>
|
||||
<li><a href="#orgc272717">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#org8758c6e">1.8. Allocate and copy to <code>double*</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0c63a89">2. Matrix operations</a>
|
||||
<li><a href="#org88675e6">2. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#org68529d2">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org3486418">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#org8ff5267">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org8bb00a3">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#org0f6eb5d">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<li><a href="#org6940938">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#orgad434c2">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#orgeaa9eea">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org3d95410">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#org60e04dc">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<ul>
|
||||
<li><a href="#org61cb29b">2.5.1. C interface</a></li>
|
||||
<li><a href="#org95b9f49">2.5.1. C interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org717b5be">2.6. <code>qmckl_transpose</code></a></li>
|
||||
<li><a href="#org2e8a7d0">2.6. <code>qmckl_transpose</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgcf8e40a">3. Utilities</a></li>
|
||||
<li><a href="#org290d89e">3. Utilities</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdc67ee9" class="outline-2">
|
||||
<h2 id="orgdc67ee9">-</h2>
|
||||
<div class="outline-text-2" id="text-orgdc67ee9">
|
||||
<div id="outline-container-orgfa3d17b" class="outline-2">
|
||||
<h2 id="orgfa3d17b">-</h2>
|
||||
<div class="outline-text-2" id="text-orgfa3d17b">
|
||||
<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-org9fbbd68" class="outline-2">
|
||||
<h2 id="org9fbbd68"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div id="outline-container-org16c0ef6" class="outline-2">
|
||||
<h2 id="org16c0ef6"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org4f8c8df" class="outline-3">
|
||||
<h3 id="org4f8c8df"><span class="section-number-3">1.1</span> Vector</h3>
|
||||
<div id="outline-container-org13bfb50" class="outline-3">
|
||||
<h3 id="org13bfb50"><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-orga3e4859" class="outline-3">
|
||||
<h3 id="orga3e4859"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||
<div id="outline-container-orge64809e" class="outline-3">
|
||||
<h3 id="orge64809e"><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-org741d307" class="outline-3">
|
||||
<h3 id="org741d307"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||
<div id="outline-container-org0055d58" class="outline-3">
|
||||
<h3 id="org0055d58"><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-org2cb8ed8" class="outline-3">
|
||||
<h3 id="org2cb8ed8"><span class="section-number-3">1.4</span> Reshaping</h3>
|
||||
<div id="outline-container-org1b3724e" class="outline-3">
|
||||
<h3 id="org1b3724e"><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-orgd610eb6" class="outline-4">
|
||||
<h4 id="orgd610eb6"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||
<div id="outline-container-org5dc9a3b" class="outline-4">
|
||||
<h4 id="org5dc9a3b"><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-org5b79b86" class="outline-4">
|
||||
<h4 id="org5b79b86"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||
<div id="outline-container-orgf607d8c" class="outline-4">
|
||||
<h4 id="orgf607d8c"><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-orgd4d7459" class="outline-4">
|
||||
<h4 id="orgd4d7459"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||
<div id="outline-container-org680ddec" class="outline-4">
|
||||
<h4 id="org680ddec"><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-orged616d8" class="outline-4">
|
||||
<h4 id="orged616d8"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||
<div id="outline-container-org062e033" class="outline-4">
|
||||
<h4 id="org062e033"><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-orga90a0ad" class="outline-4">
|
||||
<h4 id="orga90a0ad"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||
<div id="outline-container-org1d7fced" class="outline-4">
|
||||
<h4 id="org1d7fced"><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-orgec71852" class="outline-4">
|
||||
<h4 id="orgec71852"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||
<div id="outline-container-org5277fc5" class="outline-4">
|
||||
<h4 id="org5277fc5"><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-org4dac1c9" class="outline-3">
|
||||
<h3 id="org4dac1c9"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||
<div id="outline-container-orgaf5d269" class="outline-3">
|
||||
<h3 id="orgaf5d269"><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-org57e415c" class="outline-3">
|
||||
<h3 id="org57e415c"><span class="section-number-3">1.6</span> Set all elements</h3>
|
||||
<div id="outline-container-orgc213387" class="outline-3">
|
||||
<h3 id="orgc213387"><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-org19b5de8" class="outline-4">
|
||||
<h4 id="org19b5de8"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||
<div id="outline-container-org2f2db41" class="outline-4">
|
||||
<h4 id="org2f2db41"><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-org3c7cfc2" class="outline-4">
|
||||
<h4 id="org3c7cfc2"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||
<div id="outline-container-org9b289f0" class="outline-4">
|
||||
<h4 id="org9b289f0"><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-org008272d" class="outline-4">
|
||||
<h4 id="org008272d"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||
<div id="outline-container-org6defe8f" class="outline-4">
|
||||
<h4 id="org6defe8f"><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-org02a6e6d" class="outline-3">
|
||||
<h3 id="org02a6e6d"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||
<div id="outline-container-orgc272717" class="outline-3">
|
||||
<h3 id="orgc272717"><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-org2570ed0" class="outline-3">
|
||||
<h3 id="org2570ed0"><span class="section-number-3">1.8</span> Allocate and copy to <code>double*</code></h3>
|
||||
<div id="outline-container-org8758c6e" class="outline-3">
|
||||
<h3 id="org8758c6e"><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-org0c63a89" class="outline-2">
|
||||
<h2 id="org0c63a89"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div id="outline-container-org88675e6" class="outline-2">
|
||||
<h2 id="org88675e6"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org68529d2" class="outline-3">
|
||||
<h3 id="org68529d2"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div id="outline-container-org6940938" class="outline-3">
|
||||
<h3 id="org6940938"><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="orgb983403" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0053724" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1052,8 +1052,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3486418" class="outline-3">
|
||||
<h3 id="org3486418"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
||||
<div id="outline-container-orgad434c2" class="outline-3">
|
||||
<h3 id="orgad434c2"><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="org8a1ad42" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org75aeab2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1248,8 +1248,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8ff5267" class="outline-3">
|
||||
<h3 id="org8ff5267"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
||||
<div id="outline-container-orgeaa9eea" class="outline-3">
|
||||
<h3 id="orgeaa9eea"><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="org20ef6e2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org631c3ee" 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-org8bb00a3" class="outline-3">
|
||||
<h3 id="org8bb00a3"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
||||
<div id="outline-container-org3d95410" class="outline-3">
|
||||
<h3 id="org3d95410"><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="org95f0d8b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgeb39eb9" 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-org0f6eb5d" class="outline-3">
|
||||
<h3 id="org0f6eb5d"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
||||
<div id="outline-container-org60e04dc" class="outline-3">
|
||||
<h3 id="org60e04dc"><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="org756afa3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org03de877" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1703,13 +1703,13 @@ LAPACK library.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org61cb29b" class="outline-4">
|
||||
<h4 id="org61cb29b"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
<div id="outline-container-org95b9f49" class="outline-4">
|
||||
<h4 id="org95b9f49"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org717b5be" class="outline-3">
|
||||
<h3 id="org717b5be"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
||||
<div id="outline-container-org2e8a7d0" class="outline-3">
|
||||
<h3 id="org2e8a7d0"><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-orgcf8e40a" class="outline-2">
|
||||
<h2 id="orgcf8e40a"><span class="section-number-2">3</span> Utilities</h2>
|
||||
<div id="outline-container-org290d89e" class="outline-2">
|
||||
<h2 id="org290d89e"><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-11-28 Tue 16:09</p>
|
||||
<p class="date">Created: 2023-11-29 Wed 00:20</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-11-28 Tue 16:09 -->
|
||||
<!-- 2023-11-29 Wed 00:20 -->
|
||||
<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="#org6c74b62">1. Context handling</a>
|
||||
<li><a href="#orgdbaa20d">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#org8568e05">1.1. Data structure</a></li>
|
||||
<li><a href="#org2bb40c7">1.2. Creation</a></li>
|
||||
<li><a href="#org8361ce5">1.3. Locking</a></li>
|
||||
<li><a href="#org5616e24">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#orgcbd8479">1.5. Destroy</a></li>
|
||||
<li><a href="#org9867dd6">1.1. Data structure</a></li>
|
||||
<li><a href="#orgf49ab5e">1.2. Creation</a></li>
|
||||
<li><a href="#org1b3dcfd">1.3. Locking</a></li>
|
||||
<li><a href="#orgdc8791f">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org5e05461">1.5. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6c74b62" class="outline-2">
|
||||
<h2 id="org6c74b62"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-orgdbaa20d" class="outline-2">
|
||||
<h2 id="orgdbaa20d"><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="org1ce0b77"><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="org6e32008"><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-org8568e05" class="outline-3">
|
||||
<h3 id="org8568e05"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org9867dd6" class="outline-3">
|
||||
<h3 id="org9867dd6"><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="#org2bb40c7"><code>qmckl_context_create</code></a> <a href="#orgcbd8479"><code>qmckl_context_destroy</code></a> and <a href="#org5616e24"><code>qmckl_context_copy</code></a>
|
||||
<a href="#orgf49ab5e"><code>qmckl_context_create</code></a> <a href="#org5e05461"><code>qmckl_context_destroy</code></a> and <a href="#orgdc8791f"><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-org2bb40c7" class="outline-3">
|
||||
<h3 id="org2bb40c7"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-orgf49ab5e" class="outline-3">
|
||||
<h3 id="orgf49ab5e"><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-org8361ce5" class="outline-3">
|
||||
<h3 id="org8361ce5"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-org1b3dcfd" class="outline-3">
|
||||
<h3 id="org1b3dcfd"><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-org5616e24" class="outline-3">
|
||||
<h3 id="org5616e24"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div id="outline-container-orgdc8791f" class="outline-3">
|
||||
<h3 id="orgdc8791f"><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-orgcbd8479" class="outline-3">
|
||||
<h3 id="orgcbd8479"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-org5e05461" class="outline-3">
|
||||
<h3 id="org5e05461"><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-11-28 Tue 16:09</p>
|
||||
<p class="date">Created: 2023-11-29 Wed 00:20</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-11-28 Tue 16:09 -->
|
||||
<!-- 2023-11-29 Wed 00:20 -->
|
||||
<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="#orgcc131c7">1. Context</a>
|
||||
<li><a href="#orga5b34d5">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org7988e64">1.1. Data structure</a></li>
|
||||
<li><a href="#orga408502">1.2. Access functions</a></li>
|
||||
<li><a href="#orgdd1ca21">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgb3c5a37">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#orgbed070a">1.5. Test</a></li>
|
||||
<li><a href="#orgce83ea0">1.1. Data structure</a></li>
|
||||
<li><a href="#org3d55aa5">1.2. Access functions</a></li>
|
||||
<li><a href="#org1852129">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgdde5023">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#org48d1b4f">1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb98952e">2. Computation</a>
|
||||
<li><a href="#org15a324b">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgd5b1615">2.1. Determinant matrix</a>
|
||||
<li><a href="#org11ab601">2.1. Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org89ad0cc">2.1.1. Get</a></li>
|
||||
<li><a href="#org8639100">2.1.2. Provide</a></li>
|
||||
<li><a href="#org49f9393">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#orgaaf009b">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#org1701ea7">2.1.5. Test</a></li>
|
||||
<li><a href="#org18d9834">2.1.1. Get</a></li>
|
||||
<li><a href="#org13e6d85">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgdba72f6">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#org4bbcb6b">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#orgb61dab9">2.1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5242fd0">2.2. Inverse of Determinant matrix</a>
|
||||
<li><a href="#org2898ed6">2.2. Inverse of Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org39b6bc1">2.2.1. Get</a></li>
|
||||
<li><a href="#org18f20a8">2.2.2. Provide</a></li>
|
||||
<li><a href="#org6c0b687">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#orgdf9a36f">2.2.4. Compute beta</a></li>
|
||||
<li><a href="#org3437322">2.2.1. Get</a></li>
|
||||
<li><a href="#org1fc3fd3">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgda0b843">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#orgab8e45c">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-orgcc131c7" class="outline-2">
|
||||
<h2 id="orgcc131c7"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orga5b34d5" class="outline-2">
|
||||
<h2 id="orga5b34d5"><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-org7988e64" class="outline-3">
|
||||
<h3 id="org7988e64"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgce83ea0" class="outline-3">
|
||||
<h3 id="orgce83ea0"><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-orga408502" class="outline-3">
|
||||
<h3 id="orga408502"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org3d55aa5" class="outline-3">
|
||||
<h3 id="org3d55aa5"><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-orgdd1ca21" class="outline-3">
|
||||
<h3 id="orgdd1ca21"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org1852129" class="outline-3">
|
||||
<h3 id="org1852129"><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-orgb3c5a37" class="outline-3">
|
||||
<h3 id="orgb3c5a37"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
<div id="outline-container-orgdde5023" class="outline-3">
|
||||
<h3 id="orgdde5023"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
</div>
|
||||
<div id="outline-container-orgbed070a" class="outline-3">
|
||||
<h3 id="orgbed070a"><span class="section-number-3">1.5</span> Test</h3>
|
||||
<div id="outline-container-org48d1b4f" class="outline-3">
|
||||
<h3 id="org48d1b4f"><span class="section-number-3">1.5</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgb98952e" class="outline-2">
|
||||
<h2 id="orgb98952e"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org15a324b" class="outline-2">
|
||||
<h2 id="org15a324b"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgd5b1615" class="outline-3">
|
||||
<h3 id="orgd5b1615"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
||||
<div id="outline-container-org11ab601" class="outline-3">
|
||||
<h3 id="org11ab601"><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-org89ad0cc" class="outline-4">
|
||||
<h4 id="org89ad0cc"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org18d9834" class="outline-4">
|
||||
<h4 id="org18d9834"><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-org8639100" class="outline-4">
|
||||
<h4 id="org8639100"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org13e6d85" class="outline-4">
|
||||
<h4 id="org13e6d85"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org49f9393" class="outline-4">
|
||||
<h4 id="org49f9393"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-orgdba72f6" class="outline-4">
|
||||
<h4 id="orgdba72f6"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="orgcd88632" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org41d007d" 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-orgaaf009b" class="outline-4">
|
||||
<h4 id="orgaaf009b"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org4bbcb6b" class="outline-4">
|
||||
<h4 id="org4bbcb6b"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<table id="orgd4ce17c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org46cfd6d" 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-org1701ea7" class="outline-4">
|
||||
<h4 id="org1701ea7"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
<div id="outline-container-orgb61dab9" class="outline-4">
|
||||
<h4 id="orgb61dab9"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5242fd0" class="outline-3">
|
||||
<h3 id="org5242fd0"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
||||
<div id="outline-container-org2898ed6" class="outline-3">
|
||||
<h3 id="org2898ed6"><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-org39b6bc1" class="outline-4">
|
||||
<h4 id="org39b6bc1"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org3437322" class="outline-4">
|
||||
<h4 id="org3437322"><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-org18f20a8" class="outline-4">
|
||||
<h4 id="org18f20a8"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org1fc3fd3" class="outline-4">
|
||||
<h4 id="org1fc3fd3"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6c0b687" class="outline-4">
|
||||
<h4 id="org6c0b687"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-orgda0b843" class="outline-4">
|
||||
<h4 id="orgda0b843"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="orgbcc952d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8845951" 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-orgdf9a36f" class="outline-4">
|
||||
<h4 id="orgdf9a36f"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div id="outline-container-orgab8e45c" class="outline-4">
|
||||
<h4 id="orgab8e45c"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<table id="org1a606e7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1eddac1" 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-11-28 Tue 16:09</p>
|
||||
<p class="date">Created: 2023-11-29 Wed 00:20</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-11-28 Tue 16:09 -->
|
||||
<!-- 2023-11-29 Wed 00:20 -->
|
||||
<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="#org773c9a6">1. Squared distance</a>
|
||||
<li><a href="#org6816053">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#org937e4ca">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#orgb97f9f2">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#org36713c6">1.1.1. Performance</a></li>
|
||||
<li><a href="#orgf445185">1.1.1. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org631b24a">2. Distance</a>
|
||||
<li><a href="#org185e7ce">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#orgbd5d24f">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#org722ae7b">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#org9227126">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org2b7859f">2.1.2. C header</a></li>
|
||||
<li><a href="#orgd2c1614">2.1.3. Source</a></li>
|
||||
<li><a href="#orgb24a627">2.1.4. Performance</a></li>
|
||||
<li><a href="#org4297a23">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org95231c6">2.1.2. C header</a></li>
|
||||
<li><a href="#orgfc69ec4">2.1.3. Source</a></li>
|
||||
<li><a href="#org82b1a5d">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgab8f153">3. Rescaled Distance</a>
|
||||
<li><a href="#org47a1030">3. Rescaled Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org0b57af7">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<li><a href="#org7a5ed40">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<ul>
|
||||
<li><a href="#org94fe0f9">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org47bf41b">3.1.2. C header</a></li>
|
||||
<li><a href="#orge4eff5e">3.1.3. Source</a></li>
|
||||
<li><a href="#org6462aa9">3.1.4. Performance</a></li>
|
||||
<li><a href="#orga197ff9">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orgcf8fdba">3.1.2. C header</a></li>
|
||||
<li><a href="#org59eb83b">3.1.3. Source</a></li>
|
||||
<li><a href="#org444b9a7">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org365b108">4. Rescaled Distance Derivatives</a>
|
||||
<li><a href="#orgb07dbe9">4. Rescaled Distance Derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#org24861ab">4.1. <code>qmckl_distance_rescaled_gl</code></a></li>
|
||||
<li><a href="#orgb874f6b">4.1. <code>qmckl_distance_rescaled_gl</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org773c9a6" class="outline-2">
|
||||
<h2 id="org773c9a6"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-org6816053" class="outline-2">
|
||||
<h2 id="org6816053"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org937e4ca" class="outline-3">
|
||||
<h3 id="org937e4ca"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-orgb97f9f2" class="outline-3">
|
||||
<h3 id="orgb97f9f2"><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="org5d9ad7a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgfac24c2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -679,8 +679,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org36713c6" class="outline-4">
|
||||
<h4 id="org36713c6"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div id="outline-container-orgf445185" class="outline-4">
|
||||
<h4 id="orgf445185"><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
|
||||
@ -690,12 +690,12 @@ transposed.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org631b24a" class="outline-2">
|
||||
<h2 id="org631b24a"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-org185e7ce" class="outline-2">
|
||||
<h2 id="org185e7ce"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgbd5d24f" class="outline-3">
|
||||
<h3 id="orgbd5d24f"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div id="outline-container-org722ae7b" class="outline-3">
|
||||
<h3 id="org722ae7b"><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
|
||||
@ -713,7 +713,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="org842a0e1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3e411d8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -814,8 +814,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9227126" class="outline-4">
|
||||
<h4 id="org9227126"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org4297a23" class="outline-4">
|
||||
<h4 id="org4297a23"><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>
|
||||
@ -833,8 +833,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2b7859f" class="outline-4">
|
||||
<h4 id="org2b7859f"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-org95231c6" class="outline-4">
|
||||
<h4 id="org95231c6"><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> (
|
||||
@ -854,8 +854,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd2c1614" class="outline-4">
|
||||
<h4 id="orgd2c1614"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgfc69ec4" class="outline-4">
|
||||
<h4 id="orgfc69ec4"><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: #a020f0;">function</span> <span style="color: #0000ff;">qmckl_distance</span>(context, transa, transb, m, n, <span style="color: #a020f0;">&</span>
|
||||
@ -1006,8 +1006,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb24a627" class="outline-4">
|
||||
<h4 id="orgb24a627"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org82b1a5d" class="outline-4">
|
||||
<h4 id="org82b1a5d"><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.
|
||||
@ -1017,12 +1017,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgab8f153" class="outline-2">
|
||||
<h2 id="orgab8f153"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div id="outline-container-org47a1030" class="outline-2">
|
||||
<h2 id="org47a1030"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org0b57af7" class="outline-3">
|
||||
<h3 id="org0b57af7"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div id="outline-container-org7a5ed40" class="outline-3">
|
||||
<h3 id="org7a5ed40"><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
|
||||
@ -1040,7 +1040,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="org08d12e2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2041214" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1148,8 +1148,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org94fe0f9" class="outline-4">
|
||||
<h4 id="org94fe0f9"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orga197ff9" class="outline-4">
|
||||
<h4 id="orga197ff9"><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>
|
||||
@ -1167,8 +1167,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org47bf41b" class="outline-4">
|
||||
<h4 id="org47bf41b"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgcf8fdba" class="outline-4">
|
||||
<h4 id="orgcf8fdba"><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> (
|
||||
@ -1189,8 +1189,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge4eff5e" class="outline-4">
|
||||
<h4 id="orge4eff5e"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-org59eb83b" class="outline-4">
|
||||
<h4 id="org59eb83b"><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: #a020f0;">function</span> <span style="color: #0000ff;">qmckl_distance_rescaled</span>(context, transa, transb, m, n, <span style="color: #a020f0;">&</span>
|
||||
@ -1344,8 +1344,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6462aa9" class="outline-4">
|
||||
<h4 id="org6462aa9"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org444b9a7" class="outline-4">
|
||||
<h4 id="org444b9a7"><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.
|
||||
@ -1354,12 +1354,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org365b108" class="outline-2">
|
||||
<h2 id="org365b108"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div id="outline-container-orgb07dbe9" class="outline-2">
|
||||
<h2 id="orgb07dbe9"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org24861ab" class="outline-3">
|
||||
<h3 id="org24861ab"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_gl</code></h3>
|
||||
<div id="outline-container-orgb874f6b" class="outline-3">
|
||||
<h3 id="orgb874f6b"><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
|
||||
@ -1414,7 +1414,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="org416ade0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2fddec3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1735,7 +1735,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-11-28 Tue 16:09</p>
|
||||
<p class="date">Created: 2023-11-29 Wed 00:20</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-11-28 Tue 16:09 -->
|
||||
<!-- 2023-11-29 Wed 00:20 -->
|
||||
<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="#orge5e3aaa">1. Context</a>
|
||||
<li><a href="#org0c33b70">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org9a53b41">1.1. Data structure</a></li>
|
||||
<li><a href="#org8668641">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org3617ec1">1.3. Access functions</a>
|
||||
<li><a href="#org02740c7">1.1. Data structure</a></li>
|
||||
<li><a href="#org109b7db">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org9dbdd90">1.3. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orge75a274">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#org5478ecc">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#org02b7e22">1.3.3. Electron coordinates</a></li>
|
||||
<li><a href="#orga42876a">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#orgb91cc21">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#org12571d7">1.3.3. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8e31a27">1.4. Test</a></li>
|
||||
<li><a href="#org1a3f9bd">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4d1d147">2. Computation</a>
|
||||
<li><a href="#org9464bb2">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org7c0e058">2.1. Electron-electron distances</a>
|
||||
<li><a href="#org971192f">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#orge1d4a95">2.1.1. Get</a></li>
|
||||
<li><a href="#org4162ed0">2.1.2. Compute</a></li>
|
||||
<li><a href="#org76f9a51">2.1.3. Test</a></li>
|
||||
<li><a href="#org104cf40">2.1.1. Get</a></li>
|
||||
<li><a href="#org15925ac">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgaaf6e91">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5b4d95a">2.2. Electron-electron potential</a>
|
||||
<li><a href="#org06c6f0f">2.2. Electron-electron potential</a>
|
||||
<ul>
|
||||
<li><a href="#org360a771">2.2.1. Get</a></li>
|
||||
<li><a href="#org0664d79">2.2.2. Compute</a></li>
|
||||
<li><a href="#org544543f">2.2.3. Test</a></li>
|
||||
<li><a href="#org9acb769">2.2.1. Get</a></li>
|
||||
<li><a href="#orge6189dc">2.2.2. Compute</a></li>
|
||||
<li><a href="#org69800c9">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgedd8d12">2.3. Electron-nucleus distances</a>
|
||||
<li><a href="#org2abeffc">2.3. Electron-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org6aa88bb">2.3.1. Get</a></li>
|
||||
<li><a href="#orgae163b8">2.3.2. Compute</a></li>
|
||||
<li><a href="#orgc243f55">2.3.3. Test</a></li>
|
||||
<li><a href="#org54e1e56">2.3.1. Get</a></li>
|
||||
<li><a href="#orga358fc4">2.3.2. Compute</a></li>
|
||||
<li><a href="#orgb5d1bc8">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0b41d6c">2.4. Electron-nucleus potential</a>
|
||||
<li><a href="#org9661696">2.4. Electron-nucleus potential</a>
|
||||
<ul>
|
||||
<li><a href="#orgdadc3ca">2.4.1. Get</a></li>
|
||||
<li><a href="#org7e76571">2.4.2. Compute</a></li>
|
||||
<li><a href="#org836acf0">2.4.3. Test</a></li>
|
||||
<li><a href="#org31192fe">2.4.1. Get</a></li>
|
||||
<li><a href="#org01e990c">2.4.2. Compute</a></li>
|
||||
<li><a href="#org47b9a95">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga70b7f7">2.5. Generate initial coordinates</a></li>
|
||||
<li><a href="#org4629271">2.5. Generate initial coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge5e3aaa" class="outline-2">
|
||||
<h2 id="orge5e3aaa"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org0c33b70" class="outline-2">
|
||||
<h2 id="org0c33b70"><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-org9a53b41" class="outline-3">
|
||||
<h3 id="org9a53b41"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org02740c7" class="outline-3">
|
||||
<h3 id="org02740c7"><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-org8668641" class="outline-3">
|
||||
<h3 id="org8668641"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-org109b7db" class="outline-3">
|
||||
<h3 id="org109b7db"><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-org3617ec1" class="outline-3">
|
||||
<h3 id="org3617ec1"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div id="outline-container-org9dbdd90" class="outline-3">
|
||||
<h3 id="org9dbdd90"><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-orge75a274" class="outline-4">
|
||||
<h4 id="orge75a274"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
<div id="outline-container-orga42876a" class="outline-4">
|
||||
<h4 id="orga42876a"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5478ecc" class="outline-4">
|
||||
<h4 id="org5478ecc"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
||||
<div id="outline-container-orgb91cc21" class="outline-4">
|
||||
<h4 id="orgb91cc21"><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-org02b7e22" class="outline-4">
|
||||
<h4 id="org02b7e22"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
||||
<div id="outline-container-org12571d7" class="outline-4">
|
||||
<h4 id="org12571d7"><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
|
||||
@ -776,8 +776,8 @@ current points.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org8e31a27" class="outline-3">
|
||||
<h3 id="org8e31a27"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org1a3f9bd" class="outline-3">
|
||||
<h3 id="org1a3f9bd"><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> */
|
||||
@ -856,8 +856,8 @@ rc = qmckl_get_electron_coord (context, <span style="color: #8b2252;">'N'</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4d1d147" class="outline-2">
|
||||
<h2 id="org4d1d147"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org9464bb2" class="outline-2">
|
||||
<h2 id="org9464bb2"><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
|
||||
@ -870,12 +870,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7c0e058" class="outline-3">
|
||||
<h3 id="org7c0e058"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-org971192f" class="outline-3">
|
||||
<h3 id="org971192f"><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-orge1d4a95" class="outline-4">
|
||||
<h4 id="orge1d4a95"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org104cf40" class="outline-4">
|
||||
<h4 id="org104cf40"><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>);
|
||||
@ -884,10 +884,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4162ed0" class="outline-4">
|
||||
<h4 id="org4162ed0"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org15925ac" class="outline-4">
|
||||
<h4 id="org15925ac"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orgd6214f9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8930772" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -992,8 +992,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org76f9a51" class="outline-4">
|
||||
<h4 id="org76f9a51"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orgaaf6e91" class="outline-4">
|
||||
<h4 id="orgaaf6e91"><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>));
|
||||
@ -1027,8 +1027,8 @@ rc = qmckl_get_electron_ee_distance(context, ee_distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5b4d95a" class="outline-3">
|
||||
<h3 id="org5b4d95a"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
||||
<div id="outline-container-org06c6f0f" class="outline-3">
|
||||
<h3 id="org06c6f0f"><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
|
||||
@ -1046,8 +1046,8 @@ distance.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org360a771" class="outline-4">
|
||||
<h4 id="org360a771"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org9acb769" class="outline-4">
|
||||
<h4 id="org9acb769"><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>);
|
||||
@ -1056,10 +1056,10 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0664d79" class="outline-4">
|
||||
<h4 id="org0664d79"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-orge6189dc" class="outline-4">
|
||||
<h4 id="orge6189dc"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="org00c6911" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgdda0bfb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1175,8 +1175,8 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org544543f" class="outline-4">
|
||||
<h4 id="org544543f"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org69800c9" class="outline-4">
|
||||
<h4 id="org69800c9"><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];
|
||||
@ -1188,12 +1188,12 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgedd8d12" class="outline-3">
|
||||
<h3 id="orgedd8d12"><span class="section-number-3">2.3</span> Electron-nucleus distances</h3>
|
||||
<div id="outline-container-org2abeffc" class="outline-3">
|
||||
<h3 id="org2abeffc"><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-org6aa88bb" class="outline-4">
|
||||
<h4 id="org6aa88bb"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org54e1e56" class="outline-4">
|
||||
<h4 id="org54e1e56"><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>);
|
||||
@ -1202,10 +1202,10 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgae163b8" class="outline-4">
|
||||
<h4 id="orgae163b8"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-orga358fc4" class="outline-4">
|
||||
<h4 id="orga358fc4"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org40abe2a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd80b99e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1312,8 +1312,8 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc243f55" class="outline-4">
|
||||
<h4 id="orgc243f55"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-orgb5d1bc8" class="outline-4">
|
||||
<h4 id="orgb5d1bc8"><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">
|
||||
@ -1361,8 +1361,8 @@ rc = qmckl_get_electron_en_distance(context, &(en_distance[0][0][0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0b41d6c" class="outline-3">
|
||||
<h3 id="org0b41d6c"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
||||
<div id="outline-container-org9661696" class="outline-3">
|
||||
<h3 id="org9661696"><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
|
||||
@ -1380,8 +1380,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdadc3ca" class="outline-4">
|
||||
<h4 id="orgdadc3ca"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org31192fe" class="outline-4">
|
||||
<h4 id="org31192fe"><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>);
|
||||
@ -1390,10 +1390,10 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7e76571" class="outline-4">
|
||||
<h4 id="org7e76571"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-org01e990c" class="outline-4">
|
||||
<h4 id="org01e990c"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="org86d6c67" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga5ff02d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1527,8 +1527,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org836acf0" class="outline-4">
|
||||
<h4 id="org836acf0"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-org47b9a95" class="outline-4">
|
||||
<h4 id="org47b9a95"><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];
|
||||
@ -1541,14 +1541,14 @@ rc = qmckl_get_electron_en_potential(context, &(en_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga70b7f7" class="outline-3">
|
||||
<h3 id="orga70b7f7"><span class="section-number-3">2.5</span> Generate initial coordinates</h3>
|
||||
<div id="outline-container-org4629271" class="outline-3">
|
||||
<h3 id="org4629271"><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-11-28 Tue 16:09</p>
|
||||
<p class="date">Created: 2023-11-29 Wed 00:20</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-11-28 Tue 16:09 -->
|
||||
<!-- 2023-11-29 Wed 00:20 -->
|
||||
<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="#org7cd18a9">-</a></li>
|
||||
<li><a href="#org2cdc85d">1. Decoding errors</a></li>
|
||||
<li><a href="#orgb6079ad">2. Data structure in context</a></li>
|
||||
<li><a href="#org2d5f5de">3. Updating errors in the context</a></li>
|
||||
<li><a href="#orgfb809f3">4. Get the error</a></li>
|
||||
<li><a href="#org7f45995">5. Failing</a></li>
|
||||
<li><a href="#org48547dd">6. Last error</a>
|
||||
<li><a href="#orgcd0158c">-</a></li>
|
||||
<li><a href="#org82eb158">1. Decoding errors</a></li>
|
||||
<li><a href="#org987ea2c">2. Data structure in context</a></li>
|
||||
<li><a href="#orgd0d5b76">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org0bbbd6e">4. Get the error</a></li>
|
||||
<li><a href="#org829eab0">5. Failing</a></li>
|
||||
<li><a href="#orgb24dcc7">6. Last error</a>
|
||||
<ul>
|
||||
<li><a href="#org9c5de3e">6.1. Fortran inteface</a></li>
|
||||
<li><a href="#org1942477">6.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org213effa">7. Helper functions for debugging</a>
|
||||
<li><a href="#orgf33fced">7. Helper functions for debugging</a>
|
||||
<ul>
|
||||
<li><a href="#org034e558">7.1. Fortran inteface</a></li>
|
||||
<li><a href="#orgd3aeb08">7.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7cd18a9" class="outline-2">
|
||||
<h2 id="org7cd18a9">-</h2>
|
||||
<div class="outline-text-2" id="text-org7cd18a9">
|
||||
<div id="outline-container-orgcd0158c" class="outline-2">
|
||||
<h2 id="orgcd0158c">-</h2>
|
||||
<div class="outline-text-2" id="text-orgcd0158c">
|
||||
<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="orge88f005"><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="org92fe9b8"><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="orgd6d6190" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgab4b1a9" 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-org2cdc85d" class="outline-2">
|
||||
<h2 id="org2cdc85d"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-org82eb158" class="outline-2">
|
||||
<h2 id="org82eb158"><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-orgb6079ad" class="outline-2">
|
||||
<h2 id="orgb6079ad"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-org987ea2c" class="outline-2">
|
||||
<h2 id="org987ea2c"><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-org2d5f5de" class="outline-2">
|
||||
<h2 id="org2d5f5de"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div id="outline-container-orgd0d5b76" class="outline-2">
|
||||
<h2 id="orgd0d5b76"><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-orgfb809f3" class="outline-2">
|
||||
<h2 id="orgfb809f3"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div id="outline-container-org0bbbd6e" class="outline-2">
|
||||
<h2 id="org0bbbd6e"><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-org7f45995" class="outline-2">
|
||||
<h2 id="org7f45995"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div id="outline-container-org829eab0" class="outline-2">
|
||||
<h2 id="org829eab0"><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-org48547dd" class="outline-2">
|
||||
<h2 id="org48547dd"><span class="section-number-2">6</span> Last error</h2>
|
||||
<div id="outline-container-orgb24dcc7" class="outline-2">
|
||||
<h2 id="orgb24dcc7"><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-org9c5de3e" class="outline-3">
|
||||
<h3 id="org9c5de3e"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-org1942477" class="outline-3">
|
||||
<h3 id="org1942477"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org213effa" class="outline-2">
|
||||
<h2 id="org213effa"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
||||
<div id="outline-container-orgf33fced" class="outline-2">
|
||||
<h2 id="orgf33fced"><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-org034e558" class="outline-3">
|
||||
<h3 id="org034e558"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-orgd3aeb08" class="outline-3">
|
||||
<h3 id="orgd3aeb08"><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-11-28 Tue 16:09</p>
|
||||
<p class="date">Created: 2023-11-29 Wed 00:20</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-11-28 Tue 16:09 -->
|
||||
<!-- 2023-11-29 Wed 00:20 -->
|
||||
<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,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="#org6d64e8a">1. Overlap matrix in the MO basis</a>
|
||||
<li><a href="#orgf632ea4">1. Overlap matrix in the MO basis</a>
|
||||
<ul>
|
||||
<li><a href="#orga73ddd8">1.1. Python</a></li>
|
||||
<li><a href="#org9e87a19">1.2. C</a></li>
|
||||
<li><a href="#org5bc3249">1.3. Fortran</a></li>
|
||||
<li><a href="#org58aee5b">1.1. Python</a></li>
|
||||
<li><a href="#org1490705">1.2. C</a></li>
|
||||
<li><a href="#org85cd6f1">1.3. Fortran</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org51172c8">2. Fortran</a>
|
||||
<li><a href="#org341a8a6">2. Fortran</a>
|
||||
<ul>
|
||||
<li><a href="#org1bbceea">2.1. Checking errors</a></li>
|
||||
<li><a href="#org041e703">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
<li><a href="#orgad19652">2.1. Checking errors</a></li>
|
||||
<li><a href="#orgf0b6796">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6d64e8a" class="outline-2">
|
||||
<h2 id="org6d64e8a"><span class="section-number-2">1</span> Overlap matrix in the MO basis</h2>
|
||||
<div id="outline-container-orgf632ea4" class="outline-2">
|
||||
<h2 id="orgf632ea4"><span class="section-number-2">1</span> Overlap matrix in the MO basis</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The focal point of this example is the numerical evaluation of the overlap
|
||||
@ -417,8 +417,8 @@ code.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga73ddd8" class="outline-3">
|
||||
<h3 id="orga73ddd8"><span class="section-number-3">1.1</span> Python</h3>
|
||||
<div id="outline-container-org58aee5b" class="outline-3">
|
||||
<h3 id="org58aee5b"><span class="section-number-3">1.1</span> Python</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
In this example, we will compute numerically the overlap
|
||||
@ -593,8 +593,8 @@ and finally we compute the overlap between all the MOs as
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9e87a19" class="outline-3">
|
||||
<h3 id="org9e87a19"><span class="section-number-3">1.2</span> C</h3>
|
||||
<div id="outline-container-org1490705" class="outline-3">
|
||||
<h3 id="org1490705"><span class="section-number-3">1.2</span> C</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
In this example, electron-nucleus cusp fitting is added.
|
||||
@ -922,8 +922,8 @@ and finally we compute the overlap between all the MOs as
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org5bc3249" class="outline-3">
|
||||
<h3 id="org5bc3249"><span class="section-number-3">1.3</span> Fortran</h3>
|
||||
<div id="outline-container-org85cd6f1" class="outline-3">
|
||||
<h3 id="org85cd6f1"><span class="section-number-3">1.3</span> Fortran</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
Here is the same piece of code translated in Fortran
|
||||
@ -1099,12 +1099,12 @@ Here is the same piece of code translated in Fortran
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org51172c8" class="outline-2">
|
||||
<h2 id="org51172c8"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div id="outline-container-org341a8a6" class="outline-2">
|
||||
<h2 id="org341a8a6"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org1bbceea" class="outline-3">
|
||||
<h3 id="org1bbceea"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div id="outline-container-orgad19652" class="outline-3">
|
||||
<h3 id="orgad19652"><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
|
||||
@ -1113,7 +1113,7 @@ error in text format and exits the program.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90" id="org6883ad0"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<pre class="src src-f90" id="orgd99ab54"><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>
|
||||
@ -1131,8 +1131,8 @@ error in text format and exits the program.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org041e703" class="outline-3">
|
||||
<h3 id="org041e703"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div id="outline-container-orgf0b6796" class="outline-3">
|
||||
<h3 id="orgf0b6796"><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
|
||||
@ -1351,7 +1351,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-11-28 Tue 16:09</p>
|
||||
<p class="date">Created: 2023-11-29 Wed 00:20</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-11-28 Tue 16:09 -->
|
||||
<!-- 2023-11-29 Wed 00:20 -->
|
||||
<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="#org6196e27">1. Context</a>
|
||||
<li><a href="#orgb42b651">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgb264acb">1.1. Data structure</a></li>
|
||||
<li><a href="#org4e2ea70">1.2. Access functions</a></li>
|
||||
<li><a href="#orgd939d67">1.1. Data structure</a></li>
|
||||
<li><a href="#org6d69916">1.2. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org85aae23">2. Computation</a>
|
||||
<li><a href="#org5fae2d0">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org983144d">2.1. Kinetic energy</a>
|
||||
<li><a href="#orgaf7b1ec">2.1. Kinetic energy</a>
|
||||
<ul>
|
||||
<li><a href="#orga3293c2">2.1.1. Get</a></li>
|
||||
<li><a href="#orgc93ae30">2.1.2. Provide</a></li>
|
||||
<li><a href="#org9bd9146">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org350de73">2.1.4. Test</a></li>
|
||||
<li><a href="#org5e468a3">2.1.1. Get</a></li>
|
||||
<li><a href="#org176819b">2.1.2. Provide</a></li>
|
||||
<li><a href="#org0c6ee5b">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org7c09add">2.1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5ff2869">2.2. Potential energy</a>
|
||||
<li><a href="#orge952047">2.2. Potential energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgbd92645">2.2.1. Get</a></li>
|
||||
<li><a href="#orgc98fbd3">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgc4b95c6">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org7ab9564">2.2.4. Test</a></li>
|
||||
<li><a href="#orged080ab">2.2.1. Get</a></li>
|
||||
<li><a href="#org0f9920e">2.2.2. Provide</a></li>
|
||||
<li><a href="#org02001b5">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org7cb9b7b">2.2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2620104">2.3. Local energy</a>
|
||||
<li><a href="#orged46d70">2.3. Local energy</a>
|
||||
<ul>
|
||||
<li><a href="#org0f4893b">2.3.1. Get</a></li>
|
||||
<li><a href="#org1ceaafe">2.3.2. Provide</a></li>
|
||||
<li><a href="#orgbed06e8">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#orga22d654">2.3.4. Test</a></li>
|
||||
<li><a href="#org0b626fc">2.3.1. Get</a></li>
|
||||
<li><a href="#org747aeae">2.3.2. Provide</a></li>
|
||||
<li><a href="#org73b15f0">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#orge4c5329">2.3.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgaaff8ff">2.4. Drift vector</a>
|
||||
<li><a href="#org8277ff5">2.4. Drift vector</a>
|
||||
<ul>
|
||||
<li><a href="#org2acc4c3">2.4.1. Get</a></li>
|
||||
<li><a href="#org707e039">2.4.2. Provide</a></li>
|
||||
<li><a href="#org51bfdb7">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org69efc4b">2.4.4. Test</a></li>
|
||||
<li><a href="#orgc79848d">2.4.1. Get</a></li>
|
||||
<li><a href="#org8ff41fe">2.4.2. Provide</a></li>
|
||||
<li><a href="#org7fa95f1">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org9bd8e57">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-org6196e27" class="outline-2">
|
||||
<h2 id="org6196e27"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgb42b651" class="outline-2">
|
||||
<h2 id="orgb42b651"><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-orgb264acb" class="outline-3">
|
||||
<h3 id="orgb264acb"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgd939d67" class="outline-3">
|
||||
<h3 id="orgd939d67"><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-org4e2ea70" class="outline-3">
|
||||
<h3 id="org4e2ea70"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org6d69916" class="outline-3">
|
||||
<h3 id="org6d69916"><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-org85aae23" class="outline-2">
|
||||
<h2 id="org85aae23"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org5fae2d0" class="outline-2">
|
||||
<h2 id="org5fae2d0"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org983144d" class="outline-3">
|
||||
<h3 id="org983144d"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div id="outline-container-orgaf7b1ec" class="outline-3">
|
||||
<h3 id="orgaf7b1ec"><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-orga3293c2" class="outline-4">
|
||||
<h4 id="orga3293c2"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org5e468a3" class="outline-4">
|
||||
<h4 id="org5e468a3"><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-orgc93ae30" class="outline-4">
|
||||
<h4 id="orgc93ae30"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org176819b" class="outline-4">
|
||||
<h4 id="org176819b"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9bd9146" class="outline-4">
|
||||
<h4 id="org9bd9146"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
||||
<div id="outline-container-org0c6ee5b" class="outline-4">
|
||||
<h4 id="org0c6ee5b"><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="org79fdba0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org00c5d2b" 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-org350de73" class="outline-4">
|
||||
<h4 id="org350de73"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
<div id="outline-container-org7c09add" class="outline-4">
|
||||
<h4 id="org7c09add"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org5ff2869" class="outline-3">
|
||||
<h3 id="org5ff2869"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div id="outline-container-orge952047" class="outline-3">
|
||||
<h3 id="orge952047"><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-orgbd92645" class="outline-4">
|
||||
<h4 id="orgbd92645"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orged080ab" class="outline-4">
|
||||
<h4 id="orged080ab"><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-orgc98fbd3" class="outline-4">
|
||||
<h4 id="orgc98fbd3"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org0f9920e" class="outline-4">
|
||||
<h4 id="org0f9920e"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc4b95c6" class="outline-4">
|
||||
<h4 id="orgc4b95c6"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
||||
<div id="outline-container-org02001b5" class="outline-4">
|
||||
<h4 id="org02001b5"><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="org2515215" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org968ae50" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -977,12 +977,12 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7ab9564" class="outline-4">
|
||||
<h4 id="org7ab9564"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
<div id="outline-container-org7cb9b7b" class="outline-4">
|
||||
<h4 id="org7cb9b7b"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org2620104" class="outline-3">
|
||||
<h3 id="org2620104"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div id="outline-container-orged46d70" class="outline-3">
|
||||
<h3 id="orged46d70"><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-org0f4893b" class="outline-4">
|
||||
<h4 id="org0f4893b"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org0b626fc" class="outline-4">
|
||||
<h4 id="org0b626fc"><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-org1ceaafe" class="outline-4">
|
||||
<h4 id="org1ceaafe"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-org747aeae" class="outline-4">
|
||||
<h4 id="org747aeae"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbed06e8" class="outline-4">
|
||||
<h4 id="orgbed06e8"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
||||
<div id="outline-container-org73b15f0" class="outline-4">
|
||||
<h4 id="org73b15f0"><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="org0d11507" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7a91278" 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-orga22d654" class="outline-4">
|
||||
<h4 id="orga22d654"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
<div id="outline-container-orge4c5329" class="outline-4">
|
||||
<h4 id="orge4c5329"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgaaff8ff" class="outline-3">
|
||||
<h3 id="orgaaff8ff"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div id="outline-container-org8277ff5" class="outline-3">
|
||||
<h3 id="org8277ff5"><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-org2acc4c3" class="outline-4">
|
||||
<h4 id="org2acc4c3"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-orgc79848d" class="outline-4">
|
||||
<h4 id="orgc79848d"><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-org707e039" class="outline-4">
|
||||
<h4 id="org707e039"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
<div id="outline-container-org8ff41fe" class="outline-4">
|
||||
<h4 id="org8ff41fe"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org51bfdb7" class="outline-4">
|
||||
<h4 id="org51bfdb7"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
||||
<div id="outline-container-org7fa95f1" class="outline-4">
|
||||
<h4 id="org7fa95f1"><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="org337e127" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgda79cd4" 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-org69efc4b" class="outline-4">
|
||||
<h4 id="org69efc4b"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
<div id="outline-container-org9bd8e57" class="outline-4">
|
||||
<h4 id="org9bd8e57"><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-11-28 Tue 16:09</p>
|
||||
<p class="date">Created: 2023-11-29 Wed 00:20</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-11-28 Tue 16:09 -->
|
||||
<!-- 2023-11-29 Wed 00:20 -->
|
||||
<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="#orga5d2e16">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org8f64a0a">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#org3d18bb5">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#org2c0ce9c">4. Get the size of a memory block</a></li>
|
||||
<li><a href="#orgfe55f55">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#orge60083b">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#org7b215d3">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#org20fd510">4. Get the size of a memory block</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga5d2e16" class="outline-2">
|
||||
<h2 id="orga5d2e16"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div id="outline-container-orgfe55f55" class="outline-2">
|
||||
<h2 id="orgfe55f55"><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-org8f64a0a" class="outline-2">
|
||||
<h2 id="org8f64a0a"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div id="outline-container-orge60083b" class="outline-2">
|
||||
<h2 id="orge60083b"><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-org3d18bb5" class="outline-2">
|
||||
<h2 id="org3d18bb5"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-org7b215d3" class="outline-2">
|
||||
<h2 id="org7b215d3"><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
|
||||
@ -645,8 +645,8 @@ successful deallocation of the memory block.</li>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org2c0ce9c" class="outline-2">
|
||||
<h2 id="org2c0ce9c"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
||||
<div id="outline-container-org20fd510" class="outline-2">
|
||||
<h2 id="org20fd510"><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
|
||||
@ -741,7 +741,7 @@ rc = qmckl_context_destroy(context);
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-11-28 Tue 16:09</p>
|
||||
<p class="date">Created: 2023-11-29 Wed 00:20</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
576
qmckl_mo.html
576
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-11-28 Tue 16:09 -->
|
||||
<!-- 2023-11-29 Wed 00:20 -->
|
||||
<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,72 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org252dc03">1. Context</a>
|
||||
<li><a href="#org6e52ba4">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org73197fd">1.1. Data structure</a></li>
|
||||
<li><a href="#orgd71e8a4">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org9329731">1.3. Cusp adjsutment functions</a></li>
|
||||
<li><a href="#org2bdd3d9">1.4. Access functions</a>
|
||||
<li><a href="#org91b67d6">1.1. Data structure</a></li>
|
||||
<li><a href="#org3cb06c5">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org53271db">1.3. Cusp adjsutment functions</a></li>
|
||||
<li><a href="#org8248628">1.4. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgebff7b6">1.4.1. Fortran interfaces</a></li>
|
||||
<li><a href="#orgeed8d4d">1.4.1. Fortran interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org30b945c">1.5. Update</a>
|
||||
<li><a href="#orgea9b442">1.5. Update</a>
|
||||
<ul>
|
||||
<li><a href="#orgefb7af7">1.5.1. Fortran interface</a></li>
|
||||
<li><a href="#org264c018">1.5.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6b93fca">2. Computation</a>
|
||||
<li><a href="#org3f34dc1">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgef8e03d">2.1. Parameters of the cusp-correction functions</a></li>
|
||||
<li><a href="#orge158ca0">2.2. Computation of MOs: values only</a>
|
||||
<li><a href="#orgbf9c2b9">2.1. Parameters of the cusp-correction functions</a></li>
|
||||
<li><a href="#org96cba3e">2.2. Computation of MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#org9e1e7c4">2.2.1. Get</a></li>
|
||||
<li><a href="#org0dd33bb">2.2.2. Provide</a></li>
|
||||
<li><a href="#org87b97f5">2.2.3. Compute</a></li>
|
||||
<li><a href="#org2aff831">2.2.4. HPC version</a></li>
|
||||
<li><a href="#org36593bf">2.2.1. Get</a></li>
|
||||
<li><a href="#org133a05f">2.2.2. Provide</a></li>
|
||||
<li><a href="#org9d1603a">2.2.3. Compute</a></li>
|
||||
<li><a href="#orgb985e30">2.2.4. HPC version</a>
|
||||
<ul>
|
||||
<li><a href="#orgd5b68db">2.2.4.1. Single-precision</a></li>
|
||||
<li><a href="#orge97f13a">2.2.4.2. Double-precision</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org668b025">2.3. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org0c28bfa">2.3.1. Get</a></li>
|
||||
<li><a href="#org2554555">2.3.2. Provide</a></li>
|
||||
<li><a href="#org09d19c2">2.3.3. Compute</a></li>
|
||||
<li><a href="#org656c0c3">2.3.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org44e3226">2.4. Computation of cusp-corrected MOs: values only</a>
|
||||
<li><a href="#org8d645e0">2.3. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org15cc452">2.4.1. Compute</a></li>
|
||||
<li><a href="#orgdc05dc8">2.4.2. HPC version</a></li>
|
||||
<li><a href="#org3e6d71c">2.3.1. Get</a></li>
|
||||
<li><a href="#orgd9a408a">2.3.2. Provide</a></li>
|
||||
<li><a href="#orgd18994a">2.3.3. Compute</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8d650e0">2.5. Computation of cusp-corrected MOs: values, gradient, Laplacian</a>
|
||||
<li><a href="#org0534a8b">2.4. Computation of cusp-corrected MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#orgb9463ac">2.5.1. Compute</a></li>
|
||||
<li><a href="#org6252cbf">2.5.2. HPC version</a></li>
|
||||
<li><a href="#orgafc5be5">2.4.1. Compute</a></li>
|
||||
<li><a href="#org6f2944e">2.4.2. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb279365">2.6. Rescaling of MO coefficients</a>
|
||||
<li><a href="#orge47a107">2.5. Computation of cusp-corrected MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#orgdcebe3a">2.6.1. Fortran interface</a></li>
|
||||
<li><a href="#org264b83d">2.5.1. Compute</a></li>
|
||||
<li><a href="#orgc17c5b8">2.5.2. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0b9645b">2.7. Test</a></li>
|
||||
<li><a href="#org8735dda">2.6. Rescaling of MO coefficients</a>
|
||||
<ul>
|
||||
<li><a href="#org2185665">2.6.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org67b3ba2">2.7. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org252dc03" class="outline-2">
|
||||
<h2 id="org252dc03"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org6e52ba4" class="outline-2">
|
||||
<h2 id="org6e52ba4"><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 +490,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org73197fd" class="outline-3">
|
||||
<h3 id="org73197fd"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org91b67d6" class="outline-3">
|
||||
<h3 id="org91b67d6"><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 +548,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd71e8a4" class="outline-3">
|
||||
<h3 id="orgd71e8a4"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-org3cb06c5" class="outline-3">
|
||||
<h3 id="org3cb06c5"><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 +570,8 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9329731" class="outline-3">
|
||||
<h3 id="org9329731"><span class="section-number-3">1.3</span> Cusp adjsutment functions</h3>
|
||||
<div id="outline-container-org53271db" class="outline-3">
|
||||
<h3 id="org53271db"><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 +586,8 @@ of the non-\(s\) AOs at the center.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2bdd3d9" class="outline-3">
|
||||
<h3 id="org2bdd3d9"><span class="section-number-3">1.4</span> Access functions</h3>
|
||||
<div id="outline-container-org8248628" class="outline-3">
|
||||
<h3 id="org8248628"><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 +600,13 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgebff7b6" class="outline-4">
|
||||
<h4 id="orgebff7b6"><span class="section-number-4">1.4.1</span> Fortran interfaces</h4>
|
||||
<div id="outline-container-orgeed8d4d" class="outline-4">
|
||||
<h4 id="orgeed8d4d"><span class="section-number-4">1.4.1</span> Fortran interfaces</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org30b945c" class="outline-3">
|
||||
<h3 id="org30b945c"><span class="section-number-3">1.5</span> Update</h3>
|
||||
<div id="outline-container-orgea9b442" class="outline-3">
|
||||
<h3 id="orgea9b442"><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 +633,25 @@ calculation. If the integer is non-zero, the MO will be kept.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgefb7af7" class="outline-4">
|
||||
<h4 id="orgefb7af7"><span class="section-number-4">1.5.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-org264c018" class="outline-4">
|
||||
<h4 id="org264c018"><span class="section-number-4">1.5.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6b93fca" class="outline-2">
|
||||
<h2 id="org6b93fca"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org3f34dc1" class="outline-2">
|
||||
<h2 id="org3f34dc1"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgef8e03d" class="outline-3">
|
||||
<h3 id="orgef8e03d"><span class="section-number-3">2.1</span> Parameters of the cusp-correction functions</h3>
|
||||
<div id="outline-container-orgbf9c2b9" class="outline-3">
|
||||
<h3 id="orgbf9c2b9"><span class="section-number-3">2.1</span> Parameters of the cusp-correction functions</h3>
|
||||
</div>
|
||||
<div id="outline-container-orge158ca0" class="outline-3">
|
||||
<h3 id="orge158ca0"><span class="section-number-3">2.2</span> Computation of MOs: values only</h3>
|
||||
<div id="outline-container-org96cba3e" class="outline-3">
|
||||
<h3 id="org96cba3e"><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-org9e1e7c4" class="outline-4">
|
||||
<h4 id="org9e1e7c4"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org36593bf" class="outline-4">
|
||||
<h4 id="org36593bf"><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 +675,8 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0dd33bb" class="outline-4">
|
||||
<h4 id="org0dd33bb"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org133a05f" class="outline-4">
|
||||
<h4 id="org133a05f"><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 +761,10 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org87b97f5" class="outline-4">
|
||||
<h4 id="org87b97f5"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div id="outline-container-org9d1603a" class="outline-4">
|
||||
<h4 id="org9d1603a"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="orgcfcd9c4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd6b645d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -915,8 +919,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2aff831" class="outline-4">
|
||||
<h4 id="org2aff831"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
||||
<div id="outline-container-orgb985e30" class="outline-4">
|
||||
<h4 id="orgb985e30"><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
|
||||
@ -928,10 +932,135 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">coefficient_t</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">ao_value</span>,
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">mo_value</span> );
|
||||
|
||||
<span style="color: #228b22;">qmckl_exit_code</span>
|
||||
<span style="color: #0000ff;">qmckl_compute_mo_basis_mo_value_hpc_sp</span> (<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">ao_num</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">mo_num</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">point_num</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">coefficient_t</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">ao_value</span>,
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">mo_value</span> );
|
||||
<span style="color: #483d8b;">#endif</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgd5b68db" class="outline-5">
|
||||
<h5 id="orgd5b68db"><span class="section-number-5">2.2.4.1</span> Single-precision</h5>
|
||||
<div class="outline-text-5" id="text-2-2-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
<span style="color: #228b22;">qmckl_exit_code</span>
|
||||
<span style="color: #0000ff;">qmckl_compute_mo_basis_mo_value_hpc_sp</span> (<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">ao_num</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">mo_num</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">point_num</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">coefficient_t</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ao_value</span>,
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">mo_value</span> )
|
||||
{
|
||||
assert (context != QMCKL_NULL_CONTEXT);
|
||||
|
||||
<span style="color: #228b22;">float</span>* <span style="color: #a020f0;">__attribute__</span>((aligned(64))) <span style="color: #a0522d;">coefficient_t_sp</span> = calloc(ao_num*mo_num, <span style="color: #a020f0;">sizeof</span>(<span style="color: #228b22;">float</span>));
|
||||
<span style="color: #a020f0;">if</span> (coefficient_t_sp == <span style="color: #008b8b;">NULL</span>) {
|
||||
<span style="color: #a020f0;">return</span> qmckl_failwith( context,
|
||||
QMCKL_ALLOCATION_FAILED,
|
||||
<span style="color: #8b2252;">"qmckl_compute_mo_basis_mo_value_hpc_sp"</span>,
|
||||
<span style="color: #8b2252;">"coefficient_t_sp"</span>);
|
||||
};
|
||||
|
||||
IVDEP
|
||||
<span style="color: #483d8b;">#ifdef</span> HAVE_OPENMP
|
||||
<span style="color: #483d8b;">#pragma</span> omp simd
|
||||
<span style="color: #483d8b;">#endif</span>
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">i</span>=0 ; i<mo_num*ao_num ; ++i) {
|
||||
coefficient_t_sp[i] = (<span style="color: #228b22;">float</span>) <span style="color: #228b22;">coefficient_t</span>[i];
|
||||
}
|
||||
|
||||
<span style="color: #483d8b;">#ifdef</span> HAVE_OPENMP
|
||||
<span style="color: #483d8b;">#pragma</span> omp parallel <span style="color: #a020f0;">for</span>
|
||||
<span style="color: #483d8b;">#endif</span>
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">ipoint</span>=0 ; ipoint < point_num ; ++ipoint) {
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">vgl1</span> = &(mo_value[ipoint*mo_num]);
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">avgl1</span> = &(ao_value[ipoint*ao_num]);
|
||||
|
||||
// <span style="color: #b22222;">memset(vgl_sp, 0, mo_num*sizeof(float));</span>
|
||||
<span style="color: #228b22;">int64_t</span>* <span style="color: #a020f0;">__attribute__</span>((aligned(64))) <span style="color: #a0522d;">idx</span> = calloc((<span style="color: #228b22;">size_t</span>) ao_num, <span style="color: #a020f0;">sizeof</span>(int64_t));
|
||||
<span style="color: #228b22;">float</span>* <span style="color: #a020f0;">__attribute__</span>((aligned(64))) <span style="color: #a0522d;">av1</span> = calloc((<span style="color: #228b22;">size_t</span>) ao_num, <span style="color: #a020f0;">sizeof</span>(<span style="color: #228b22;">float</span>));
|
||||
<span style="color: #228b22;">float</span>* <span style="color: #a020f0;">__attribute__</span>((aligned(64))) <span style="color: #a0522d;">vgl_sp</span> = calloc((<span style="color: #228b22;">size_t</span>) mo_num, <span style="color: #a020f0;">sizeof</span>(<span style="color: #228b22;">float</span>));
|
||||
assert (idx != <span style="color: #008b8b;">NULL</span>);
|
||||
assert (av1 != <span style="color: #008b8b;">NULL</span>);
|
||||
assert (vgl_sp != <span style="color: #008b8b;">NULL</span>);
|
||||
|
||||
<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">nidx</span>=0;
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">k</span>=0 ; k<ao_num ; ++k) {
|
||||
<span style="color: #a020f0;">if</span> (avgl1[k] != 0.) {
|
||||
idx[nidx] = k;
|
||||
av1[nidx] = (<span style="color: #228b22;">float</span>) avgl1[k];
|
||||
++nidx;
|
||||
}
|
||||
}
|
||||
|
||||
<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">n</span>=0;
|
||||
|
||||
<span style="color: #a020f0;">for</span> (n=0 ; n < nidx-4 ; n+=4) {
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">float</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ck1</span> = coefficient_t_sp + idx[n ]*mo_num;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">float</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ck2</span> = coefficient_t_sp + idx[n+1]*mo_num;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">float</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ck3</span> = coefficient_t_sp + idx[n+2]*mo_num;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">float</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ck4</span> = coefficient_t_sp + idx[n+3]*mo_num;
|
||||
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">float</span> <span style="color: #a0522d;">a11</span> = av1[n ];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">float</span> <span style="color: #a0522d;">a21</span> = av1[n+1];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">float</span> <span style="color: #a0522d;">a31</span> = av1[n+2];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">float</span> <span style="color: #a0522d;">a41</span> = av1[n+3];
|
||||
|
||||
IVDEP
|
||||
<span style="color: #483d8b;">#ifdef</span> HAVE_OPENMP
|
||||
<span style="color: #483d8b;">#pragma</span> omp simd
|
||||
<span style="color: #483d8b;">#endif</span>
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">i</span>=0 ; i<mo_num ; ++i) {
|
||||
vgl_sp[i] += ck1[i] * a11 + ck2[i] * a21 + ck3[i] * a31 + ck4[i] * a41;
|
||||
}
|
||||
}
|
||||
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">m</span>=n ; m < nidx ; m+=1) {
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">float</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ck</span> = coefficient_t_sp + idx[m]*mo_num;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">float</span> <span style="color: #a0522d;">a1</span> = av1[m];
|
||||
|
||||
IVDEP
|
||||
<span style="color: #483d8b;">#ifdef</span> HAVE_OPENMP
|
||||
<span style="color: #483d8b;">#pragma</span> omp simd
|
||||
<span style="color: #483d8b;">#endif</span>
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">i</span>=0 ; i<mo_num ; ++i) {
|
||||
vgl_sp[i] += ck[i] * a1;
|
||||
}
|
||||
}
|
||||
|
||||
IVDEP
|
||||
<span style="color: #483d8b;">#ifdef</span> HAVE_OPENMP
|
||||
<span style="color: #483d8b;">#pragma</span> omp simd
|
||||
<span style="color: #483d8b;">#endif</span>
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">i</span>=0 ; i<mo_num ; ++i) {
|
||||
vgl1[i] = (<span style="color: #228b22;">double</span>) vgl_sp[i];
|
||||
}
|
||||
free(av1);
|
||||
free(idx);
|
||||
free(vgl_sp);
|
||||
}
|
||||
free(coefficient_t_sp);
|
||||
<span style="color: #a020f0;">return</span> QMCKL_SUCCESS;
|
||||
}
|
||||
<span style="color: #483d8b;">#endif</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge97f13a" class="outline-5">
|
||||
<h5 id="orge97f13a"><span class="section-number-5">2.2.4.2</span> Double-precision</h5>
|
||||
<div class="outline-text-5" id="text-2-2-4-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
<span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -944,61 +1073,89 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">mo_value</span> )
|
||||
{
|
||||
assert (context != QMCKL_NULL_CONTEXT);
|
||||
<span style="color: #228b22;">qmckl_context_struct</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">ctx</span> = (<span style="color: #228b22;">qmckl_context_struct</span>*) context;
|
||||
assert (ctx != <span style="color: #008b8b;">NULL</span>);
|
||||
|
||||
/* <span style="color: #b22222;">Don't compute polynomials when the radial part is zero.</span> */
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int</span> <span style="color: #a0522d;">precision</span> = ctx->numprec.precision;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">bool</span> <span style="color: #a0522d;">single_precision</span> = precision <= 23;
|
||||
|
||||
<span style="color: #a020f0;">if</span> (single_precision) {
|
||||
<span style="color: #a020f0;">return</span> qmckl_compute_mo_basis_mo_value_hpc_sp (context,
|
||||
ao_num,
|
||||
mo_num,
|
||||
point_num,
|
||||
coefficient_t,
|
||||
ao_value,
|
||||
mo_value );
|
||||
}
|
||||
|
||||
<span style="color: #483d8b;">#ifdef</span> HAVE_OPENMP
|
||||
<span style="color: #483d8b;"> #pragma</span> omp parallel <span style="color: #a020f0;">for</span>
|
||||
<span style="color: #483d8b;">#pragma</span> omp parallel
|
||||
<span style="color: #483d8b;">#endif</span>
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">ipoint</span>=0 ; ipoint < point_num ; ++ipoint) {
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">vgl1</span> = &(mo_value[ipoint*mo_num]);
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">avgl1</span> = &(ao_value[ipoint*ao_num]);
|
||||
{
|
||||
<span style="color: #228b22;">int64_t</span>* <span style="color: #a020f0;">__attribute__</span>((aligned(64))) <span style="color: #a0522d;">idx</span> = calloc(ao_num, <span style="color: #a020f0;">sizeof</span>(int64_t));
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a020f0;">__attribute__</span>((aligned(64))) <span style="color: #a0522d;">av1</span> = calloc(ao_num, <span style="color: #a020f0;">sizeof</span>(<span style="color: #228b22;">double</span>));
|
||||
assert (idx != <span style="color: #008b8b;">NULL</span>);
|
||||
assert (av1 != <span style="color: #008b8b;">NULL</span>);
|
||||
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">i</span>=0 ; i<mo_num ; ++i) {
|
||||
vgl1[i] = 0.;
|
||||
}
|
||||
<span style="color: #483d8b;">#ifdef</span> HAVE_OPENMP
|
||||
<span style="color: #483d8b;">#pragma</span> omp <span style="color: #a020f0;">for</span>
|
||||
<span style="color: #483d8b;">#endif</span>
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">ipoint</span>=0 ; ipoint < point_num ; ++ipoint) {
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">vgl1</span> = &(mo_value[ipoint*mo_num]);
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">avgl1</span> = &(ao_value[ipoint*ao_num]);
|
||||
|
||||
<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">nidx</span>=0;
|
||||
<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">idx</span>[ao_num];
|
||||
<span style="color: #228b22;">double</span> <span style="color: #a0522d;">av1</span>[ao_num];
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">k</span>=0 ; k<ao_num ; ++k) {
|
||||
<span style="color: #a020f0;">if</span> (avgl1[k] != 0.) {
|
||||
idx[nidx] = k;
|
||||
av1[nidx] = avgl1[k];
|
||||
++nidx;
|
||||
memset(vgl1, 0, mo_num*<span style="color: #a020f0;">sizeof</span>(<span style="color: #228b22;">double</span>));
|
||||
|
||||
<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">nidx</span>=0;
|
||||
<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">idx</span>[ao_num];
|
||||
<span style="color: #228b22;">double</span> <span style="color: #a0522d;">av1</span>[ao_num];
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">k</span>=0 ; k<ao_num ; ++k) {
|
||||
<span style="color: #a020f0;">if</span> (avgl1[k] != 0.) {
|
||||
idx[nidx] = k;
|
||||
av1[nidx] = avgl1[k];
|
||||
++nidx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">n</span>=0;
|
||||
<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">n</span>=0;
|
||||
|
||||
<span style="color: #a020f0;">for</span> (n=0 ; n < nidx-4 ; n+=4) {
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ck1</span> = coefficient_t + idx[n ]*mo_num;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ck2</span> = coefficient_t + idx[n+1]*mo_num;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ck3</span> = coefficient_t + idx[n+2]*mo_num;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ck4</span> = coefficient_t + idx[n+3]*mo_num;
|
||||
<span style="color: #a020f0;">for</span> (n=0 ; n < nidx-4 ; n+=4) {
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ck1</span> = coefficient_t + idx[n ]*mo_num;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ck2</span> = coefficient_t + idx[n+1]*mo_num;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ck3</span> = coefficient_t + idx[n+2]*mo_num;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ck4</span> = coefficient_t + idx[n+3]*mo_num;
|
||||
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a11</span> = av1[n ];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a21</span> = av1[n+1];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a31</span> = av1[n+2];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a41</span> = av1[n+3];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a11</span> = av1[n ];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a21</span> = av1[n+1];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a31</span> = av1[n+2];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a41</span> = av1[n+3];
|
||||
|
||||
IVDEP
|
||||
<span style="color: #483d8b;">#ifdef</span> HAVE_OPENMP
|
||||
<span style="color: #483d8b;">#pragma</span> omp simd
|
||||
<span style="color: #483d8b;">#endif</span>
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">i</span>=0 ; i<mo_num ; ++i) {
|
||||
vgl1[i] = vgl1[i] + ck1[i] * a11 + ck2[i] * a21 + ck3[i] * a31 + ck4[i] * a41;
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">i</span>=0 ; i<mo_num ; ++i) {
|
||||
vgl1[i] += ck1[i] * a11 + ck2[i] * a21 + ck3[i] * a31 + ck4[i] * a41;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">m</span>=n ; m < nidx ; m+=1) {
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ck</span> = coefficient_t + idx[m]*mo_num;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a1</span> = av1[m];
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">m</span>=n ; m < nidx ; m+=1) {
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ck</span> = coefficient_t + idx[m]*mo_num;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a1</span> = av1[m];
|
||||
|
||||
IVDEP
|
||||
<span style="color: #483d8b;">#ifdef</span> HAVE_OPENMP
|
||||
<span style="color: #483d8b;"> #pragma</span> omp simd
|
||||
<span style="color: #483d8b;">#pragma</span> omp simd
|
||||
<span style="color: #483d8b;">#endif</span>
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">i</span>=0 ; i<mo_num ; ++i) {
|
||||
vgl1[i] += ck[i] * a1;
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">i</span>=0 ; i<mo_num ; ++i) {
|
||||
vgl1[i] += ck[i] * a1;
|
||||
}
|
||||
}
|
||||
}
|
||||
free(av1);
|
||||
free(idx);
|
||||
}
|
||||
<span style="color: #a020f0;">return</span> QMCKL_SUCCESS;
|
||||
}
|
||||
@ -1008,13 +1165,14 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org668b025" class="outline-3">
|
||||
<h3 id="org668b025"><span class="section-number-3">2.3</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-org8d645e0" class="outline-3">
|
||||
<h3 id="org8d645e0"><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-org0c28bfa" class="outline-4">
|
||||
<h4 id="org0c28bfa"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org3e6d71c" class="outline-4">
|
||||
<h4 id="org3e6d71c"><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 +1196,8 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2554555" class="outline-4">
|
||||
<h4 id="org2554555"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-orgd9a408a" class="outline-4">
|
||||
<h4 id="orgd9a408a"><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 +1281,10 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org09d19c2" class="outline-4">
|
||||
<h4 id="org09d19c2"><span class="section-number-4">2.3.3</span> Compute</h4>
|
||||
<div id="outline-container-orgd18994a" class="outline-4">
|
||||
<h4 id="orgd18994a"><span class="section-number-4">2.3.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-3">
|
||||
<table id="org9bf45ab" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org61b2455" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1298,165 +1456,16 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org656c0c3" class="outline-4">
|
||||
<h4 id="org656c0c3"><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
|
||||
<span style="color: #228b22;">qmckl_exit_code</span>
|
||||
<span style="color: #0000ff;">qmckl_compute_mo_basis_mo_vgl_hpc</span> (<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">ao_num</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">mo_num</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">point_num</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">coefficient_t</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">ao_vgl</span>,
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">mo_vgl</span> );
|
||||
<span style="color: #483d8b;">#endif</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
<span style="color: #228b22;">qmckl_exit_code</span>
|
||||
<span style="color: #0000ff;">qmckl_compute_mo_basis_mo_vgl_hpc</span> (<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">ao_num</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">mo_num</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">point_num</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">coefficient_t</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ao_vgl</span>,
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">mo_vgl</span> )
|
||||
{
|
||||
assert (context != QMCKL_NULL_CONTEXT);
|
||||
|
||||
<span style="color: #483d8b;">#ifdef</span> HAVE_OPENMP
|
||||
<span style="color: #483d8b;"> #pragma</span> omp parallel <span style="color: #a020f0;">for</span>
|
||||
<span style="color: #483d8b;">#endif</span>
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">ipoint</span>=0 ; ipoint < point_num ; ++ipoint) {
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">vgl1</span> = &(mo_vgl[ipoint*5*mo_num]);
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">vgl2</span> = vgl1 + mo_num;
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">vgl3</span> = vgl1 + (mo_num << 1);
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">vgl4</span> = vgl1 + (mo_num << 1) + mo_num;
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">vgl5</span> = vgl1 + (mo_num << 2);
|
||||
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">avgl1</span> = &(ao_vgl[ipoint*5*ao_num]);
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">avgl2</span> = avgl1 + ao_num;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">avgl3</span> = avgl1 + (ao_num << 1);
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">avgl4</span> = avgl1 + (ao_num << 1) + ao_num;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">avgl5</span> = avgl1 + (ao_num << 2);
|
||||
|
||||
IVDEP
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">i</span>=0 ; i<mo_num ; ++i) {
|
||||
vgl1[i] = 0.;
|
||||
vgl2[i] = 0.;
|
||||
vgl3[i] = 0.;
|
||||
vgl4[i] = 0.;
|
||||
vgl5[i] = 0.;
|
||||
}
|
||||
|
||||
<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">nidx</span>=0;
|
||||
<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">idx</span>[ao_num];
|
||||
<span style="color: #228b22;">double</span> <span style="color: #a0522d;">av1</span>[ao_num];
|
||||
<span style="color: #228b22;">double</span> <span style="color: #a0522d;">av2</span>[ao_num];
|
||||
<span style="color: #228b22;">double</span> <span style="color: #a0522d;">av3</span>[ao_num];
|
||||
<span style="color: #228b22;">double</span> <span style="color: #a0522d;">av4</span>[ao_num];
|
||||
<span style="color: #228b22;">double</span> <span style="color: #a0522d;">av5</span>[ao_num];
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">k</span>=0 ; k<ao_num ; ++k) {
|
||||
<span style="color: #a020f0;">if</span> (avgl1[k] != 0.) {
|
||||
idx[nidx] = k;
|
||||
av1[nidx] = avgl1[k];
|
||||
av2[nidx] = avgl2[k];
|
||||
av3[nidx] = avgl3[k];
|
||||
av4[nidx] = avgl4[k];
|
||||
av5[nidx] = avgl5[k];
|
||||
++nidx;
|
||||
}
|
||||
}
|
||||
|
||||
<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">n</span>=0;
|
||||
|
||||
<span style="color: #a020f0;">for</span> (n=0 ; n < nidx-4 ; n+=4) {
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ck1</span> = coefficient_t + idx[n ]*mo_num;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ck2</span> = coefficient_t + idx[n+1]*mo_num;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ck3</span> = coefficient_t + idx[n+2]*mo_num;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ck4</span> = coefficient_t + idx[n+3]*mo_num;
|
||||
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a11</span> = av1[n ];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a21</span> = av1[n+1];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a31</span> = av1[n+2];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a41</span> = av1[n+3];
|
||||
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a12</span> = av2[n ];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a22</span> = av2[n+1];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a32</span> = av2[n+2];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a42</span> = av2[n+3];
|
||||
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a13</span> = av3[n ];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a23</span> = av3[n+1];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a33</span> = av3[n+2];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a43</span> = av3[n+3];
|
||||
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a14</span> = av4[n ];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a24</span> = av4[n+1];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a34</span> = av4[n+2];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a44</span> = av4[n+3];
|
||||
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a15</span> = av5[n ];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a25</span> = av5[n+1];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a35</span> = av5[n+2];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a45</span> = av5[n+3];
|
||||
|
||||
IVDEP
|
||||
<span style="color: #483d8b;">#ifdef</span> HAVE_OPENMP
|
||||
<span style="color: #483d8b;">#pragma</span> omp simd
|
||||
<span style="color: #483d8b;">#endif</span>
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">i</span>=0 ; i<mo_num ; ++i) {
|
||||
vgl1[i] += ck1[i] * a11 + ck2[i] * a21 + ck3[i] * a31 + ck4[i] * a41;
|
||||
vgl2[i] += ck1[i] * a12 + ck2[i] * a22 + ck3[i] * a32 + ck4[i] * a42;
|
||||
vgl3[i] += ck1[i] * a13 + ck2[i] * a23 + ck3[i] * a33 + ck4[i] * a43;
|
||||
vgl4[i] += ck1[i] * a14 + ck2[i] * a24 + ck3[i] * a34 + ck4[i] * a44;
|
||||
vgl5[i] += ck1[i] * a15 + ck2[i] * a25 + ck3[i] * a35 + ck4[i] * a45;
|
||||
}
|
||||
}
|
||||
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">m</span>=n ; m < nidx ; m+=1) {
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">ck</span> = coefficient_t + idx[m]*mo_num;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a1</span> = av1[m];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a2</span> = av2[m];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a3</span> = av3[m];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a4</span> = av4[m];
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">a5</span> = av5[m];
|
||||
|
||||
IVDEP
|
||||
<span style="color: #483d8b;">#ifdef</span> HAVE_OPENMP
|
||||
<span style="color: #483d8b;"> #pragma</span> omp simd
|
||||
<span style="color: #483d8b;">#endif</span>
|
||||
<span style="color: #a020f0;">for</span> (<span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">i</span>=0 ; i<mo_num ; ++i) {
|
||||
vgl1[i] += ck[i] * a1;
|
||||
vgl2[i] += ck[i] * a2;
|
||||
vgl3[i] += ck[i] * a3;
|
||||
vgl4[i] += ck[i] * a4;
|
||||
vgl5[i] += ck[i] * a5;
|
||||
}
|
||||
}
|
||||
}
|
||||
<span style="color: #a020f0;">return</span> QMCKL_SUCCESS;
|
||||
}
|
||||
<span style="color: #483d8b;">#endif</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org44e3226" class="outline-3">
|
||||
<h3 id="org44e3226"><span class="section-number-3">2.4</span> Computation of cusp-corrected MOs: values only</h3>
|
||||
<div id="outline-container-org0534a8b" class="outline-3">
|
||||
<h3 id="org0534a8b"><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-org15cc452" class="outline-4">
|
||||
<h4 id="org15cc452"><span class="section-number-4">2.4.1</span> Compute</h4>
|
||||
<div id="outline-container-orgafc5be5" class="outline-4">
|
||||
<h4 id="orgafc5be5"><span class="section-number-4">2.4.1</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<table id="org3384af8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org75c8194" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1695,8 +1704,8 @@ IVDEP
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdc05dc8" class="outline-4">
|
||||
<h4 id="orgdc05dc8"><span class="section-number-4">2.4.2</span> HPC version</h4>
|
||||
<div id="outline-container-org6f2944e" class="outline-4">
|
||||
<h4 id="org6f2944e"><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
|
||||
@ -1714,6 +1723,21 @@ IVDEP
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">coefficient_t</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">ao_value</span>,
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">mo_value</span> );
|
||||
|
||||
<span style="color: #228b22;">qmckl_exit_code</span>
|
||||
<span style="color: #0000ff;">qmckl_compute_mo_basis_mo_value_cusp_hpc_sp</span> (<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">nucl_num</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">ao_num</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">mo_num</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">point_num</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span>* <span style="color: #a0522d;">ao_nucl</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int32_t</span>* <span style="color: #a0522d;">ao_ang_mom</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">en_distance</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">r_cusp</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_tensor</span> <span style="color: #a0522d;">cusp_param</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">coefficient_t</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">ao_value</span>,
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">mo_value</span> );
|
||||
<span style="color: #483d8b;">#endif</span>
|
||||
</pre>
|
||||
</div>
|
||||
@ -1821,14 +1845,14 @@ IVDEP
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8d650e0" class="outline-3">
|
||||
<h3 id="org8d650e0"><span class="section-number-3">2.5</span> Computation of cusp-corrected MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-orge47a107" class="outline-3">
|
||||
<h3 id="orge47a107"><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-orgb9463ac" class="outline-4">
|
||||
<h4 id="orgb9463ac"><span class="section-number-4">2.5.1</span> Compute</h4>
|
||||
<div id="outline-container-org264b83d" class="outline-4">
|
||||
<h4 id="org264b83d"><span class="section-number-4">2.5.1</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-5-1">
|
||||
<table id="org8d7d059" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd9f4922" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2124,8 +2148,8 @@ IVDEP
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6252cbf" class="outline-4">
|
||||
<h4 id="org6252cbf"><span class="section-number-4">2.5.2</span> HPC version</h4>
|
||||
<div id="outline-container-orgc17c5b8" class="outline-4">
|
||||
<h4 id="orgc17c5b8"><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
|
||||
@ -2326,8 +2350,8 @@ IVDEP
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb279365" class="outline-3">
|
||||
<h3 id="orgb279365"><span class="section-number-3">2.6</span> Rescaling of MO coefficients</h3>
|
||||
<div id="outline-container-org8735dda" class="outline-3">
|
||||
<h3 id="org8735dda"><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
|
||||
@ -2344,19 +2368,19 @@ correct range.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdcebe3a" class="outline-4">
|
||||
<h4 id="orgdcebe3a"><span class="section-number-4">2.6.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-org2185665" class="outline-4">
|
||||
<h4 id="org2185665"><span class="section-number-4">2.6.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0b9645b" class="outline-3">
|
||||
<h3 id="org0b9645b"><span class="section-number-3">2.7</span> Test</h3>
|
||||
<div id="outline-container-org67b3ba2" class="outline-3">
|
||||
<h3 id="org67b3ba2"><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-11-28 Tue 16:09</p>
|
||||
<p class="date">Created: 2023-11-29 Wed 00:20</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-11-28 Tue 16:09 -->
|
||||
<!-- 2023-11-29 Wed 00:20 -->
|
||||
<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="#org0f91cdc">1. Context</a>
|
||||
<li><a href="#orga6981c6">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgedb339f">1.1. Data structure</a></li>
|
||||
<li><a href="#org750df04">1.2. Access functions</a></li>
|
||||
<li><a href="#org4bd8505">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org21da5b4">1.4. Test</a></li>
|
||||
<li><a href="#org3b435ca">1.1. Data structure</a></li>
|
||||
<li><a href="#org863dcbd">1.2. Access functions</a></li>
|
||||
<li><a href="#org20c2280">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orge13e1fa">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb6b2b3d">2. Computation</a>
|
||||
<li><a href="#org8eeb607">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgb861a2a">2.1. Nucleus-nucleus distances</a>
|
||||
<li><a href="#orgffe34ad">2.1. Nucleus-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org2aeeda3">2.1.1. Get</a></li>
|
||||
<li><a href="#org965bebf">2.1.2. Compute</a></li>
|
||||
<li><a href="#org521c96a">2.1.3. Test</a></li>
|
||||
<li><a href="#orgc3d2c67">2.1.1. Get</a></li>
|
||||
<li><a href="#orgbd38645">2.1.2. Compute</a></li>
|
||||
<li><a href="#org6abe27c">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org32c8927">2.2. Nuclear repulsion energy</a>
|
||||
<li><a href="#orgdad95ca">2.2. Nuclear repulsion energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgceab0c1">2.2.1. Get</a></li>
|
||||
<li><a href="#org147139a">2.2.2. Compute</a></li>
|
||||
<li><a href="#org1533172">2.2.3. Test</a></li>
|
||||
<li><a href="#orgf9cc043">2.2.1. Get</a></li>
|
||||
<li><a href="#orga7301a4">2.2.2. Compute</a></li>
|
||||
<li><a href="#org4f237bb">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-org0f91cdc" class="outline-2">
|
||||
<h2 id="org0f91cdc"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orga6981c6" class="outline-2">
|
||||
<h2 id="orga6981c6"><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-orgedb339f" class="outline-3">
|
||||
<h3 id="orgedb339f"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org3b435ca" class="outline-3">
|
||||
<h3 id="org3b435ca"><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-org750df04" class="outline-3">
|
||||
<h3 id="org750df04"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org863dcbd" class="outline-3">
|
||||
<h3 id="org863dcbd"><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-org4bd8505" class="outline-3">
|
||||
<h3 id="org4bd8505"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org20c2280" class="outline-3">
|
||||
<h3 id="org20c2280"><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-org21da5b4" class="outline-3">
|
||||
<h3 id="org21da5b4"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orge13e1fa" class="outline-3">
|
||||
<h3 id="orge13e1fa"><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-orgb6b2b3d" class="outline-2">
|
||||
<h2 id="orgb6b2b3d"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org8eeb607" class="outline-2">
|
||||
<h2 id="org8eeb607"><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-orgb861a2a" class="outline-3">
|
||||
<h3 id="orgb861a2a"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div id="outline-container-orgffe34ad" class="outline-3">
|
||||
<h3 id="orgffe34ad"><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-org2aeeda3" class="outline-4">
|
||||
<h4 id="org2aeeda3"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orgc3d2c67" class="outline-4">
|
||||
<h4 id="orgc3d2c67"><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-org965bebf" class="outline-4">
|
||||
<h4 id="org965bebf"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-orgbd38645" class="outline-4">
|
||||
<h4 id="orgbd38645"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org4d6f5de" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgedfd1f7" 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-org521c96a" class="outline-4">
|
||||
<h4 id="org521c96a"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org6abe27c" class="outline-4">
|
||||
<h4 id="org6abe27c"><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-org32c8927" class="outline-3">
|
||||
<h3 id="org32c8927"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
||||
<div id="outline-container-orgdad95ca" class="outline-3">
|
||||
<h3 id="orgdad95ca"><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-orgceab0c1" class="outline-4">
|
||||
<h4 id="orgceab0c1"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgf9cc043" class="outline-4">
|
||||
<h4 id="orgf9cc043"><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-org147139a" class="outline-4">
|
||||
<h4 id="org147139a"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-orga7301a4" class="outline-4">
|
||||
<h4 id="orga7301a4"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orgfbdc1c8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8891bef" 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-org1533172" class="outline-4">
|
||||
<h4 id="org1533172"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org4f237bb" class="outline-4">
|
||||
<h4 id="org4f237bb"><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-11-28 Tue 16:09</p>
|
||||
<p class="date">Created: 2023-11-29 Wed 00:20</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-11-28 Tue 16:09 -->
|
||||
<!-- 2023-11-29 Wed 00:20 -->
|
||||
<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,21 +346,21 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgfe1709a">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org22fa48b">2. Precision</a></li>
|
||||
<li><a href="#org5860ef0">3. Range</a></li>
|
||||
<li><a href="#orga318521">4. Helper functions</a></li>
|
||||
<li><a href="#org2723bf9">5. Approximate functions</a>
|
||||
<li><a href="#org3ac9e18">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org7e26d26">2. Precision</a></li>
|
||||
<li><a href="#orgfc5204d">3. Range</a></li>
|
||||
<li><a href="#orgd1df2fd">4. Helper functions</a></li>
|
||||
<li><a href="#org75dc535">5. Approximate functions</a>
|
||||
<ul>
|
||||
<li><a href="#org596169e">5.1. Exponential</a></li>
|
||||
<li><a href="#orgd3e7113">5.1. Exponential</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfe1709a" class="outline-2">
|
||||
<h2 id="orgfe1709a"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-org3ac9e18" class="outline-2">
|
||||
<h2 id="org3ac9e18"><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
|
||||
@ -371,7 +371,7 @@ Arithmetic (IEEE 754),
|
||||
sign bit) and <i>range</i> refers to the number of exponent bits.
|
||||
</p>
|
||||
|
||||
<table id="orgf1f3126" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgdf7b82c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -415,8 +415,8 @@ integer. The update functions return <code>QMCKL_SUCCESS</code> or
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org22fa48b" class="outline-2">
|
||||
<h2 id="org22fa48b"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-org7e26d26" class="outline-2">
|
||||
<h2 id="org7e26d26"><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
|
||||
@ -503,8 +503,8 @@ numerical precision in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5860ef0" class="outline-2">
|
||||
<h2 id="org5860ef0"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-orgfc5204d" class="outline-2">
|
||||
<h2 id="orgfc5204d"><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
|
||||
@ -579,8 +579,8 @@ range in a given context.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orga318521" class="outline-2">
|
||||
<h2 id="orga318521"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-orgd1df2fd" class="outline-2">
|
||||
<h2 id="orgd1df2fd"><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.
|
||||
@ -596,12 +596,12 @@ We need to remove the sign bit from the precision.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org2723bf9" class="outline-2">
|
||||
<h2 id="org2723bf9"><span class="section-number-2">5</span> Approximate functions</h2>
|
||||
<div id="outline-container-org75dc535" class="outline-2">
|
||||
<h2 id="org75dc535"><span class="section-number-2">5</span> Approximate functions</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
</div>
|
||||
<div id="outline-container-org596169e" class="outline-3">
|
||||
<h3 id="org596169e"><span class="section-number-3">5.1</span> Exponential</h3>
|
||||
<div id="outline-container-orgd3e7113" class="outline-3">
|
||||
<h3 id="orgd3e7113"><span class="section-number-3">5.1</span> Exponential</h3>
|
||||
<div class="outline-text-3" id="text-5-1">
|
||||
<p>
|
||||
Fast exponential function, adapted from Johan Rade's implementation
|
||||
@ -656,7 +656,7 @@ N. Schraudolph, "A Fast, Compact Approximation of the Exponential Function",
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-11-28 Tue 16:09</p>
|
||||
<p class="date">Created: 2023-11-29 Wed 00:20</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-11-28 Tue 16:09 -->
|
||||
<!-- 2023-11-29 Wed 00:20 -->
|
||||
<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="#org6bac2d9">1. Context</a>
|
||||
<li><a href="#org666f8c5">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org096b6d0">1.1. Data structure</a></li>
|
||||
<li><a href="#orgd14ff51">1.2. Access functions</a>
|
||||
<li><a href="#orgd1fcc36">1.1. Data structure</a></li>
|
||||
<li><a href="#org362edf5">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org32bb4db">1.2.1. Number of points</a></li>
|
||||
<li><a href="#orgee6fb1a">1.2.2. Point coordinates</a></li>
|
||||
<li><a href="#orgb2cce8c">1.2.1. Number of points</a></li>
|
||||
<li><a href="#orgf2328d8">1.2.2. Point coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgab0704f">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org7c2cdb9">1.4. Test</a></li>
|
||||
<li><a href="#orge07ba24">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org6e6878b">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6bac2d9" class="outline-2">
|
||||
<h2 id="org6bac2d9"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org666f8c5" class="outline-2">
|
||||
<h2 id="org666f8c5"><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-org096b6d0" class="outline-3">
|
||||
<h3 id="org096b6d0"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgd1fcc36" class="outline-3">
|
||||
<h3 id="orgd1fcc36"><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-orgd14ff51" class="outline-3">
|
||||
<h3 id="orgd14ff51"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org362edf5" class="outline-3">
|
||||
<h3 id="org362edf5"><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-org32bb4db" class="outline-4">
|
||||
<h4 id="org32bb4db"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div id="outline-container-orgb2cce8c" class="outline-4">
|
||||
<h4 id="orgb2cce8c"><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-orgee6fb1a" class="outline-4">
|
||||
<h4 id="orgee6fb1a"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div id="outline-container-orgf2328d8" class="outline-4">
|
||||
<h4 id="orgf2328d8"><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-orgab0704f" class="outline-3">
|
||||
<h3 id="orgab0704f"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orge07ba24" class="outline-3">
|
||||
<h3 id="orge07ba24"><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-org7c2cdb9" class="outline-3">
|
||||
<h3 id="org7c2cdb9"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org6e6878b" class="outline-3">
|
||||
<h3 id="org6e6878b"><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-11-28 Tue 16:09</p>
|
||||
<p class="date">Created: 2023-11-29 Wed 00:20</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-11-28 Tue 16:09 -->
|
||||
<!-- 2023-11-29 Wed 00:20 -->
|
||||
<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="#org2c689fc">1. Headers</a></li>
|
||||
<li><a href="#org1620e6b">2. Naïve Sherman-Morrison</a>
|
||||
<li><a href="#org01f1d99">1. Headers</a></li>
|
||||
<li><a href="#org5a425f5">2. Naïve Sherman-Morrison</a>
|
||||
<ul>
|
||||
<li><a href="#orga10a1d5">2.1. <code>qmckl_sm_naive</code></a>
|
||||
<li><a href="#orge942593">2.1. <code>qmckl_sm_naive</code></a>
|
||||
<ul>
|
||||
<li><a href="#org9aa72a7">2.1.1. Introduction</a></li>
|
||||
<li><a href="#org6ee0e46">2.1.2. API</a></li>
|
||||
<li><a href="#org8ef9ce4">2.1.3. Requirements</a></li>
|
||||
<li><a href="#org2d438e7">2.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#orgd24b006">2.1.1. Introduction</a></li>
|
||||
<li><a href="#org9db5a36">2.1.2. API</a></li>
|
||||
<li><a href="#org0f1bfd3">2.1.3. Requirements</a></li>
|
||||
<li><a href="#org3e18019">2.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#orge184871">2.1.4.1. C interface (not directly exposed)</a></li>
|
||||
<li><a href="#org64c1f2b">2.1.4.1. C interface (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6484da5">2.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orge2cc754">2.1.6. C sources</a></li>
|
||||
<li><a href="#org66b9c53">2.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orge813387">2.1.8. Performance</a></li>
|
||||
<li><a href="#orge5c7ada">2.1.9. Tests</a></li>
|
||||
<li><a href="#org600b438">2.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org13e5107">2.1.6. C sources</a></li>
|
||||
<li><a href="#org18e91d0">2.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org490e87f">2.1.8. Performance</a></li>
|
||||
<li><a href="#orgdeddf5b">2.1.9. Tests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgde0f7a6">3. Sherman-Morrison with Slagel Splitting (core)</a>
|
||||
<li><a href="#org629e503">3. Sherman-Morrison with Slagel Splitting (core)</a>
|
||||
<ul>
|
||||
<li><a href="#orgade47cb">3.1. <code>qmckl_sm_splitting_core</code></a>
|
||||
<li><a href="#org212c9ea">3.1. <code>qmckl_sm_splitting_core</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgc4011d1">3.1.1. Introduction</a></li>
|
||||
<li><a href="#orgafe824c">3.1.2. API</a></li>
|
||||
<li><a href="#org478ba7c">3.1.3. Requirements</a></li>
|
||||
<li><a href="#org2e09f6b">3.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org4f6eeaf">3.1.1. Introduction</a></li>
|
||||
<li><a href="#orgde3a74a">3.1.2. API</a></li>
|
||||
<li><a href="#orgea729a5">3.1.3. Requirements</a></li>
|
||||
<li><a href="#orgd549252">3.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#orge497d03">3.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
<li><a href="#orgd439a45">3.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd2ba917">3.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orgd763f59">3.1.6. C sources</a></li>
|
||||
<li><a href="#orgb3d5ff1">3.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org840ffdd">3.1.8. Performance</a></li>
|
||||
<li><a href="#org5c09476">3.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orgdeedc6a">3.1.6. C sources</a></li>
|
||||
<li><a href="#orgf6ad96b">3.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org3c73d36">3.1.8. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7a5b774">4. Woodbury 2x2</a>
|
||||
<li><a href="#org1e6b48a">4. Woodbury 2x2</a>
|
||||
<ul>
|
||||
<li><a href="#orgbd42404">4.1. <code>qmckl_woodbury_2x2</code></a>
|
||||
<li><a href="#orgd83f99a">4.1. <code>qmckl_woodbury_2x2</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgd1f26df">4.1.1. Introduction</a></li>
|
||||
<li><a href="#org1fb7dc2">4.1.2. API</a></li>
|
||||
<li><a href="#org2b0771b">4.1.3. Requirements</a></li>
|
||||
<li><a href="#org736a1dc">4.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#orgac79074">4.1.1. Introduction</a></li>
|
||||
<li><a href="#orgcc4be3b">4.1.2. API</a></li>
|
||||
<li><a href="#org0acb3b5">4.1.3. Requirements</a></li>
|
||||
<li><a href="#orgf9e210e">4.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#org6eec2b0">4.1.4.1. C interface (not directly exposed)</a></li>
|
||||
<li><a href="#orge6f0766">4.1.4.1. C interface (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org43a9abc">4.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org1f3752e">4.1.6. C sources</a></li>
|
||||
<li><a href="#orge097e2f">4.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgf637254">4.1.8. Performance</a></li>
|
||||
<li><a href="#org5d3b252">4.1.9. Tests</a></li>
|
||||
<li><a href="#orgc7b3637">4.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org7ef7ea8">4.1.6. C sources</a></li>
|
||||
<li><a href="#org15b4931">4.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org890d036">4.1.8. Performance</a></li>
|
||||
<li><a href="#org582e65a">4.1.9. Tests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc0bf025">5. Woodbury 3x3</a>
|
||||
<li><a href="#org3e8853a">5. Woodbury 3x3</a>
|
||||
<ul>
|
||||
<li><a href="#orgd6bb10b">5.1. <code>qmckl_woodbury_3x3</code></a>
|
||||
<li><a href="#orgbbfa8ae">5.1. <code>qmckl_woodbury_3x3</code></a>
|
||||
<ul>
|
||||
<li><a href="#org24169ad">5.1.1. Introduction</a></li>
|
||||
<li><a href="#org8fce9a1">5.1.2. API</a></li>
|
||||
<li><a href="#org5a7edab">5.1.3. Requirements</a></li>
|
||||
<li><a href="#org972ab40">5.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#orgf94d362">5.1.1. Introduction</a></li>
|
||||
<li><a href="#org81ddd6d">5.1.2. API</a></li>
|
||||
<li><a href="#org5920da1">5.1.3. Requirements</a></li>
|
||||
<li><a href="#org532cf39">5.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#org91f1e74">5.1.4.1. C interface (not directly exposed)</a></li>
|
||||
<li><a href="#org6e53d0e">5.1.4.1. C interface (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgcc87e90">5.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orge94c117">5.1.6. C sources</a></li>
|
||||
<li><a href="#orge854ca2">5.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgdd856ed">5.1.8. Performance</a></li>
|
||||
<li><a href="#orgf8dec92">5.1.9. Tests</a></li>
|
||||
<li><a href="#org9285bcd">5.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org4938b1b">5.1.6. C sources</a></li>
|
||||
<li><a href="#orged88656">5.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org5508647">5.1.8. Performance</a></li>
|
||||
<li><a href="#org823b69f">5.1.9. Tests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc345166">6. Sherman-Morrison with Slagel Splitting</a>
|
||||
<li><a href="#org43d114a">6. Sherman-Morrison with Slagel Splitting</a>
|
||||
<ul>
|
||||
<li><a href="#org8c1c882">6.1. <code>qmckl_sm_splitting</code></a>
|
||||
<li><a href="#org7f87597">6.1. <code>qmckl_sm_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgb7e87fe">6.1.1. Introduction</a></li>
|
||||
<li><a href="#org41f0625">6.1.2. API</a></li>
|
||||
<li><a href="#org6f3d472">6.1.3. Requirements</a></li>
|
||||
<li><a href="#org78705e0">6.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org3eb264a">6.1.1. Introduction</a></li>
|
||||
<li><a href="#org706b37a">6.1.2. API</a></li>
|
||||
<li><a href="#org8983965">6.1.3. Requirements</a></li>
|
||||
<li><a href="#orgedcbf98">6.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#org2e3117a">6.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
<li><a href="#org8e918e3">6.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org28b4df6">6.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org8f65a95">6.1.6. C source</a></li>
|
||||
<li><a href="#org6fc995a">6.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgf4e6bf7">6.1.8. Performance…</a></li>
|
||||
<li><a href="#org6d306f7">6.1.9. Test</a></li>
|
||||
<li><a href="#org13876c9">6.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org9bc1831">6.1.6. C source</a></li>
|
||||
<li><a href="#orgf704961">6.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org30af76a">6.1.8. Performance…</a></li>
|
||||
<li><a href="#org6643832">6.1.9. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org914a1dc">7. End of files</a></li>
|
||||
<li><a href="#orgc375901">7. End of files</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2c689fc" class="outline-2">
|
||||
<h2 id="org2c689fc"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div id="outline-container-org01f1d99" class="outline-2">
|
||||
<h2 id="org01f1d99"><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-org1620e6b" class="outline-2">
|
||||
<h2 id="org1620e6b"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
||||
<div id="outline-container-org5a425f5" class="outline-2">
|
||||
<h2 id="org5a425f5"><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-orga10a1d5" class="outline-3">
|
||||
<h3 id="orga10a1d5"><span class="section-number-3">2.1</span> <code>qmckl_sm_naive</code></h3>
|
||||
<div id="outline-container-orge942593" class="outline-3">
|
||||
<h3 id="orge942593"><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-org9aa72a7" class="outline-4">
|
||||
<h4 id="org9aa72a7"><span class="section-number-4">2.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-orgd24b006" class="outline-4">
|
||||
<h4 id="orgd24b006"><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-org6ee0e46" class="outline-4">
|
||||
<h4 id="org6ee0e46"><span class="section-number-4">2.1.2</span> API</h4>
|
||||
<div id="outline-container-org9db5a36" class="outline-4">
|
||||
<h4 id="org9db5a36"><span class="section-number-4">2.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org448395b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2aded16" 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-org8ef9ce4" class="outline-4">
|
||||
<h4 id="org8ef9ce4"><span class="section-number-4">2.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-org0f1bfd3" class="outline-4">
|
||||
<h4 id="org0f1bfd3"><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-org2d438e7" class="outline-4">
|
||||
<h4 id="org2d438e7"><span class="section-number-4">2.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-org3e18019" class="outline-4">
|
||||
<h4 id="org3e18019"><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-orge184871" class="outline-5">
|
||||
<h5 id="orge184871"><span class="section-number-5">2.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div id="outline-container-org64c1f2b" class="outline-5">
|
||||
<h5 id="org64c1f2b"><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-org6484da5" class="outline-4">
|
||||
<h4 id="org6484da5"><span class="section-number-4">2.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org600b438" class="outline-4">
|
||||
<h4 id="org600b438"><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-orge2cc754" class="outline-4">
|
||||
<h4 id="orge2cc754"><span class="section-number-4">2.1.6</span> C sources</h4>
|
||||
<div id="outline-container-org13e5107" class="outline-4">
|
||||
<h4 id="org13e5107"><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.
|
||||
@ -905,7 +905,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="orgcd58a2d"><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="org0e078bd"><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,
|
||||
@ -981,7 +981,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="orgd5ac2df"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="orgbb7dc01"><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>
|
||||
@ -1065,7 +1065,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="orgd15ed6e"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org050cbf4"><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>
|
||||
@ -2705,14 +2705,14 @@ Python script that generated C switch cases that call individual kernel instance
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org66b9c53" class="outline-4">
|
||||
<h4 id="org66b9c53"><span class="section-number-4">2.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-org18e91d0" class="outline-4">
|
||||
<h4 id="org18e91d0"><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-orge813387" class="outline-4">
|
||||
<h4 id="orge813387"><span class="section-number-4">2.1.8</span> Performance</h4>
|
||||
<div id="outline-container-org490e87f" class="outline-4">
|
||||
<h4 id="org490e87f"><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
|
||||
@ -2721,8 +2721,8 @@ can never resolve a situation where applying the update causes singular behaviou
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orge5c7ada" class="outline-4">
|
||||
<h4 id="orge5c7ada"><span class="section-number-4">2.1.9</span> Tests</h4>
|
||||
<div id="outline-container-orgdeddf5b" class="outline-4">
|
||||
<h4 id="orgdeddf5b"><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
|
||||
@ -2790,17 +2790,17 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgde0f7a6" class="outline-2">
|
||||
<h2 id="orgde0f7a6"><span class="section-number-2">3</span> Sherman-Morrison with Slagel Splitting (core)</h2>
|
||||
<div id="outline-container-org629e503" class="outline-2">
|
||||
<h2 id="org629e503"><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-orgade47cb" class="outline-3">
|
||||
<h3 id="orgade47cb"><span class="section-number-3">3.1</span> <code>qmckl_sm_splitting_core</code></h3>
|
||||
<div id="outline-container-org212c9ea" class="outline-3">
|
||||
<h3 id="org212c9ea"><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-orgc4011d1" class="outline-4">
|
||||
<h4 id="orgc4011d1"><span class="section-number-4">3.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org4f6eeaf" class="outline-4">
|
||||
<h4 id="org4f6eeaf"><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.
|
||||
@ -2828,10 +2828,10 @@ If the determinant is passed it will only be partially updated if there were any
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgafe824c" class="outline-4">
|
||||
<h4 id="orgafe824c"><span class="section-number-4">3.1.2</span> API</h4>
|
||||
<div id="outline-container-orgde3a74a" class="outline-4">
|
||||
<h4 id="orgde3a74a"><span class="section-number-4">3.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<table id="orgb900960" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf8c92ed" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2940,8 +2940,8 @@ If the determinant is passed it will only be partially updated if there were any
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org478ba7c" class="outline-4">
|
||||
<h4 id="org478ba7c"><span class="section-number-4">3.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-orgea729a5" class="outline-4">
|
||||
<h4 id="orgea729a5"><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>
|
||||
@ -2958,8 +2958,8 @@ If the determinant is passed it will only be partially updated if there were any
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2e09f6b" class="outline-4">
|
||||
<h4 id="org2e09f6b"><span class="section-number-4">3.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-orgd549252" class="outline-4">
|
||||
<h4 id="orgd549252"><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
|
||||
@ -3075,8 +3075,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge497d03" class="outline-5">
|
||||
<h5 id="orge497d03"><span class="section-number-5">3.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div id="outline-container-orgd439a45" class="outline-5">
|
||||
<h5 id="orgd439a45"><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
|
||||
@ -3089,8 +3089,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd2ba917" class="outline-4">
|
||||
<h4 id="orgd2ba917"><span class="section-number-4">3.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org5c09476" class="outline-4">
|
||||
<h4 id="org5c09476"><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> (
|
||||
@ -3145,8 +3145,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd763f59" class="outline-4">
|
||||
<h4 id="orgd763f59"><span class="section-number-4">3.1.6</span> C sources</h4>
|
||||
<div id="outline-container-orgdeedc6a" class="outline-4">
|
||||
<h4 id="orgdeedc6a"><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>(
|
||||
@ -3235,7 +3235,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="orgafbbc3e"><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="org7c1f044"><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,
|
||||
@ -3319,7 +3319,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="org1158c10"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="orgb910b60"><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>
|
||||
@ -3411,7 +3411,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="org52e0997"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org1eec6eb"><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>
|
||||
@ -5379,14 +5379,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb3d5ff1" class="outline-4">
|
||||
<h4 id="orgb3d5ff1"><span class="section-number-4">3.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-orgf6ad96b" class="outline-4">
|
||||
<h4 id="orgf6ad96b"><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-org840ffdd" class="outline-4">
|
||||
<h4 id="org840ffdd"><span class="section-number-4">3.1.8</span> Performance</h4>
|
||||
<div id="outline-container-org3c73d36" class="outline-4">
|
||||
<h4 id="org3c73d36"><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
|
||||
@ -5398,17 +5398,17 @@ with Sherman-Morrison and update splitting. Please look at the performance recco
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org7a5b774" class="outline-2">
|
||||
<h2 id="org7a5b774"><span class="section-number-2">4</span> Woodbury 2x2</h2>
|
||||
<div id="outline-container-org1e6b48a" class="outline-2">
|
||||
<h2 id="org1e6b48a"><span class="section-number-2">4</span> Woodbury 2x2</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-orgbd42404" class="outline-3">
|
||||
<h3 id="orgbd42404"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_2x2</code></h3>
|
||||
<div id="outline-container-orgd83f99a" class="outline-3">
|
||||
<h3 id="orgd83f99a"><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-orgd1f26df" class="outline-4">
|
||||
<h4 id="orgd1f26df"><span class="section-number-4">4.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-orgac79074" class="outline-4">
|
||||
<h4 id="orgac79074"><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
|
||||
@ -5432,10 +5432,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1fb7dc2" class="outline-4">
|
||||
<h4 id="org1fb7dc2"><span class="section-number-4">4.1.2</span> API</h4>
|
||||
<div id="outline-container-orgcc4be3b" class="outline-4">
|
||||
<h4 id="orgcc4be3b"><span class="section-number-4">4.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-4-1-2">
|
||||
<table id="orgc4b9a3e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5226742" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -5516,8 +5516,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2b0771b" class="outline-4">
|
||||
<h4 id="org2b0771b"><span class="section-number-4">4.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-org0acb3b5" class="outline-4">
|
||||
<h4 id="org0acb3b5"><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>
|
||||
@ -5531,8 +5531,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org736a1dc" class="outline-4">
|
||||
<h4 id="org736a1dc"><span class="section-number-4">4.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-orgf9e210e" class="outline-4">
|
||||
<h4 id="orgf9e210e"><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
|
||||
@ -5668,8 +5668,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6eec2b0" class="outline-5">
|
||||
<h5 id="org6eec2b0"><span class="section-number-5">4.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div id="outline-container-orge6f0766" class="outline-5">
|
||||
<h5 id="orge6f0766"><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
|
||||
@ -5682,8 +5682,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org43a9abc" class="outline-4">
|
||||
<h4 id="org43a9abc"><span class="section-number-4">4.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-orgc7b3637" class="outline-4">
|
||||
<h4 id="orgc7b3637"><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> (
|
||||
@ -5726,8 +5726,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1f3752e" class="outline-4">
|
||||
<h4 id="org1f3752e"><span class="section-number-4">4.1.6</span> C sources</h4>
|
||||
<div id="outline-container-org7ef7ea8" class="outline-4">
|
||||
<h4 id="org7ef7ea8"><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>,
|
||||
@ -5817,7 +5817,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="org574f967"><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="org9a0b353"><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,
|
||||
@ -7767,14 +7767,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge097e2f" class="outline-4">
|
||||
<h4 id="orge097e2f"><span class="section-number-4">4.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-org15b4931" class="outline-4">
|
||||
<h4 id="org15b4931"><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-orgf637254" class="outline-4">
|
||||
<h4 id="orgf637254"><span class="section-number-4">4.1.8</span> Performance</h4>
|
||||
<div id="outline-container-org890d036" class="outline-4">
|
||||
<h4 id="org890d036"><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
|
||||
@ -7783,8 +7783,8 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5d3b252" class="outline-4">
|
||||
<h4 id="org5d3b252"><span class="section-number-4">4.1.9</span> Tests</h4>
|
||||
<div id="outline-container-org582e65a" class="outline-4">
|
||||
<h4 id="org582e65a"><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>);
|
||||
@ -7821,17 +7821,17 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgc0bf025" class="outline-2">
|
||||
<h2 id="orgc0bf025"><span class="section-number-2">5</span> Woodbury 3x3</h2>
|
||||
<div id="outline-container-org3e8853a" class="outline-2">
|
||||
<h2 id="org3e8853a"><span class="section-number-2">5</span> Woodbury 3x3</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
</div>
|
||||
<div id="outline-container-orgd6bb10b" class="outline-3">
|
||||
<h3 id="orgd6bb10b"><span class="section-number-3">5.1</span> <code>qmckl_woodbury_3x3</code></h3>
|
||||
<div id="outline-container-orgbbfa8ae" class="outline-3">
|
||||
<h3 id="orgbbfa8ae"><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-org24169ad" class="outline-4">
|
||||
<h4 id="org24169ad"><span class="section-number-4">5.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-orgf94d362" class="outline-4">
|
||||
<h4 id="orgf94d362"><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
|
||||
@ -7855,10 +7855,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8fce9a1" class="outline-4">
|
||||
<h4 id="org8fce9a1"><span class="section-number-4">5.1.2</span> API</h4>
|
||||
<div id="outline-container-org81ddd6d" class="outline-4">
|
||||
<h4 id="org81ddd6d"><span class="section-number-4">5.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-5-1-2">
|
||||
<table id="org879bc7d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb5f23db" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -7939,8 +7939,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5a7edab" class="outline-4">
|
||||
<h4 id="org5a7edab"><span class="section-number-4">5.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-org5920da1" class="outline-4">
|
||||
<h4 id="org5920da1"><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>
|
||||
@ -7954,8 +7954,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org972ab40" class="outline-4">
|
||||
<h4 id="org972ab40"><span class="section-number-4">5.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-org532cf39" class="outline-4">
|
||||
<h4 id="org532cf39"><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
|
||||
@ -8100,8 +8100,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org91f1e74" class="outline-5">
|
||||
<h5 id="org91f1e74"><span class="section-number-5">5.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div id="outline-container-org6e53d0e" class="outline-5">
|
||||
<h5 id="org6e53d0e"><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
|
||||
@ -8114,8 +8114,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcc87e90" class="outline-4">
|
||||
<h4 id="orgcc87e90"><span class="section-number-4">5.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org9285bcd" class="outline-4">
|
||||
<h4 id="org9285bcd"><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> (
|
||||
@ -8158,8 +8158,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge94c117" class="outline-4">
|
||||
<h4 id="orge94c117"><span class="section-number-4">5.1.6</span> C sources</h4>
|
||||
<div id="outline-container-org4938b1b" class="outline-4">
|
||||
<h4 id="org4938b1b"><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>,
|
||||
@ -8269,7 +8269,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="org65c646b"><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="orge80f100"><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,
|
||||
@ -10639,14 +10639,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge854ca2" class="outline-4">
|
||||
<h4 id="orge854ca2"><span class="section-number-4">5.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-orged88656" class="outline-4">
|
||||
<h4 id="orged88656"><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-orgdd856ed" class="outline-4">
|
||||
<h4 id="orgdd856ed"><span class="section-number-4">5.1.8</span> Performance</h4>
|
||||
<div id="outline-container-org5508647" class="outline-4">
|
||||
<h4 id="org5508647"><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
|
||||
@ -10655,8 +10655,8 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf8dec92" class="outline-4">
|
||||
<h4 id="orgf8dec92"><span class="section-number-4">5.1.9</span> Tests</h4>
|
||||
<div id="outline-container-org823b69f" class="outline-4">
|
||||
<h4 id="org823b69f"><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>);
|
||||
@ -10693,17 +10693,17 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgc345166" class="outline-2">
|
||||
<h2 id="orgc345166"><span class="section-number-2">6</span> Sherman-Morrison with Slagel Splitting</h2>
|
||||
<div id="outline-container-org43d114a" class="outline-2">
|
||||
<h2 id="org43d114a"><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-org8c1c882" class="outline-3">
|
||||
<h3 id="org8c1c882"><span class="section-number-3">6.1</span> <code>qmckl_sm_splitting</code></h3>
|
||||
<div id="outline-container-org7f87597" class="outline-3">
|
||||
<h3 id="org7f87597"><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-orgb7e87fe" class="outline-4">
|
||||
<h4 id="orgb7e87fe"><span class="section-number-4">6.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org3eb264a" class="outline-4">
|
||||
<h4 id="org3eb264a"><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
|
||||
@ -10727,10 +10727,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org41f0625" class="outline-4">
|
||||
<h4 id="org41f0625"><span class="section-number-4">6.1.2</span> API</h4>
|
||||
<div id="outline-container-org706b37a" class="outline-4">
|
||||
<h4 id="org706b37a"><span class="section-number-4">6.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-6-1-2">
|
||||
<table id="orga5bfe35" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3855590" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -10818,8 +10818,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6f3d472" class="outline-4">
|
||||
<h4 id="org6f3d472"><span class="section-number-4">6.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-org8983965" class="outline-4">
|
||||
<h4 id="org8983965"><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>
|
||||
@ -10834,8 +10834,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org78705e0" class="outline-4">
|
||||
<h4 id="org78705e0"><span class="section-number-4">6.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-orgedcbf98" class="outline-4">
|
||||
<h4 id="orgedcbf98"><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
|
||||
@ -10914,8 +10914,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2e3117a" class="outline-5">
|
||||
<h5 id="org2e3117a"><span class="section-number-5">6.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div id="outline-container-org8e918e3" class="outline-5">
|
||||
<h5 id="org8e918e3"><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
|
||||
@ -10928,8 +10928,8 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org28b4df6" class="outline-4">
|
||||
<h4 id="org28b4df6"><span class="section-number-4">6.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org13876c9" class="outline-4">
|
||||
<h4 id="org13876c9"><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> (
|
||||
@ -10975,11 +10975,11 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8f65a95" class="outline-4">
|
||||
<h4 id="org8f65a95"><span class="section-number-4">6.1.6</span> C source</h4>
|
||||
<div id="outline-container-org9bc1831" class="outline-4">
|
||||
<h4 id="org9bc1831"><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="org8d26941"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org1a8586e"><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>
|
||||
@ -11382,14 +11382,14 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6fc995a" class="outline-4">
|
||||
<h4 id="org6fc995a"><span class="section-number-4">6.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-orgf704961" class="outline-4">
|
||||
<h4 id="orgf704961"><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-orgf4e6bf7" class="outline-4">
|
||||
<h4 id="orgf4e6bf7"><span class="section-number-4">6.1.8</span> Performance…</h4>
|
||||
<div id="outline-container-org30af76a" class="outline-4">
|
||||
<h4 id="org30af76a"><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.
|
||||
@ -11397,8 +11397,8 @@ This kernel performs best when there are 2 or more rank-1 update cycles and fail
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6d306f7" class="outline-4">
|
||||
<h4 id="org6d306f7"><span class="section-number-4">6.1.9</span> Test</h4>
|
||||
<div id="outline-container-org6643832" class="outline-4">
|
||||
<h4 id="org6643832"><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>);
|
||||
@ -11436,8 +11436,8 @@ rc = QMCKL_SUCCESS;
|
||||
|
||||
|
||||
|
||||
<div id="outline-container-org914a1dc" class="outline-2">
|
||||
<h2 id="org914a1dc"><span class="section-number-2">7</span> End of files</h2>
|
||||
<div id="outline-container-orgc375901" class="outline-2">
|
||||
<h2 id="orgc375901"><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);
|
||||
@ -11451,7 +11451,7 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-11-28 Tue 16:09</p>
|
||||
<p class="date">Created: 2023-11-29 Wed 00:20</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-11-28 Tue 16:09 -->
|
||||
<!-- 2023-11-29 Wed 00:20 -->
|
||||
<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="#orge56c646">1. CHBrClF</a>
|
||||
<li><a href="#org6849a7f">1. CHBrClF</a>
|
||||
<ul>
|
||||
<li><a href="#org6656fd4">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orgf4a8c93">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org1e40fcd">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org9f97193">1.4. Electron coordinates</a></li>
|
||||
<li><a href="#orgb2819a6">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org1060c92">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#orgaf377c4">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#orgced837d">1.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2d1a68d">2. N2</a>
|
||||
<li><a href="#org506327a">2. N2</a>
|
||||
<ul>
|
||||
<li><a href="#orgb2da276">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org6cabfde">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org92e01aa">2.3. Jastrow related data</a></li>
|
||||
<li><a href="#org72289d9">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org9115b47">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org22720eb">2.3. Jastrow related data</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge56c646" class="outline-2">
|
||||
<h2 id="orge56c646"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div id="outline-container-org6849a7f" class="outline-2">
|
||||
<h2 id="org6849a7f"><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-org6656fd4" class="outline-3">
|
||||
<h3 id="org6656fd4"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-orgb2819a6" class="outline-3">
|
||||
<h3 id="orgb2819a6"><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-orgf4a8c93" class="outline-3">
|
||||
<h3 id="orgf4a8c93"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div id="outline-container-org1060c92" class="outline-3">
|
||||
<h3 id="org1060c92"><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-org1e40fcd" class="outline-3">
|
||||
<h3 id="org1e40fcd"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-orgaf377c4" class="outline-3">
|
||||
<h3 id="orgaf377c4"><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-org9f97193" class="outline-3">
|
||||
<h3 id="org9f97193"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div id="outline-container-orgced837d" class="outline-3">
|
||||
<h3 id="orgced837d"><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-org2d1a68d" class="outline-2">
|
||||
<h2 id="org2d1a68d"><span class="section-number-2">2</span> N2</h2>
|
||||
<div id="outline-container-org506327a" class="outline-2">
|
||||
<h2 id="org506327a"><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-orgb2da276" class="outline-3">
|
||||
<h3 id="orgb2da276"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org72289d9" class="outline-3">
|
||||
<h3 id="org72289d9"><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-org6cabfde" class="outline-3">
|
||||
<h3 id="org6cabfde"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org9115b47" class="outline-3">
|
||||
<h3 id="org9115b47"><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-org92e01aa" class="outline-3">
|
||||
<h3 id="org92e01aa"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div id="outline-container-org22720eb" class="outline-3">
|
||||
<h3 id="org22720eb"><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-11-28 Tue 16:09</p>
|
||||
<p class="date">Created: 2023-11-29 Wed 00:20</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-11-28 Tue 16:09 -->
|
||||
<!-- 2023-11-29 Wed 00:20 -->
|
||||
<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="#org2a01c75">1. Local functions</a>
|
||||
<li><a href="#org017a845">1. Local functions</a>
|
||||
<ul>
|
||||
<li><a href="#org40002df">1.1. Open file</a></li>
|
||||
<li><a href="#org9e86cab">1.2. Electron</a></li>
|
||||
<li><a href="#orge449c5f">1.3. Nucleus</a>
|
||||
<li><a href="#org0ed7393">1.1. Open file</a></li>
|
||||
<li><a href="#org5f57e5b">1.2. Electron</a></li>
|
||||
<li><a href="#org44e5725">1.3. Nucleus</a>
|
||||
<ul>
|
||||
<li><a href="#orgb8f1648">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#org986429e">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#orgae9e229">1.3.3. Nuclear coordinates</a></li>
|
||||
<li><a href="#org7344bc3">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#orgf96379b">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#orgc0656e5">1.3.3. Nuclear coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3c0878a">1.4. Basis set and AOs</a>
|
||||
<li><a href="#org04d1b85">1.4. Basis set and AOs</a>
|
||||
<ul>
|
||||
<li><a href="#orgb9597ff">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#orgb6780df">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org4e52f9d">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#org72d84c0">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org149993c">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org3f5b2b0">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#org70f6d53">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org5bbede8">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#org4c94ee3">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#org0ce32fb">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#orgde29775">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org89ab909">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#org5a797fa">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org049b27c">1.4.14. AO Normalization</a></li>
|
||||
<li><a href="#org0fb0ded">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#orgfa98826">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org8d635a1">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#org33d0bb3">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#orge92de7e">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#orgceade71">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#org1250878">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org45251df">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#org0f1a3d5">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#orga17f2e1">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org65df19f">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org7bf7d81">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#org0fe09f6">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org83a4f5d">1.4.14. AO Normalization</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge421125">1.5. Molecular orbitals</a>
|
||||
<li><a href="#org46ad96e">1.5. Molecular orbitals</a>
|
||||
<ul>
|
||||
<li><a href="#org2cc7dff">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#org4e51e03">1.5.2. MO coefficients</a></li>
|
||||
<li><a href="#org2015254">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#orgde1ae52">1.5.2. MO coefficients</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga3b2bb4">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
<li><a href="#org1a3c184">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org04cd359">2. Read everything</a></li>
|
||||
<li><a href="#orgd35a9f5">3. Test</a>
|
||||
<li><a href="#org0a38e5b">2. Read everything</a></li>
|
||||
<li><a href="#orga5a07ce">3. Test</a>
|
||||
<ul>
|
||||
<li>
|
||||
<ul>
|
||||
<li><a href="#orgb1ae4ba">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org06436f2">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#orga741954">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org6a25ad7">3.0.4. MO Basis</a></li>
|
||||
<li><a href="#orgc79a6b5">3.0.1. Electrons</a></li>
|
||||
<li><a href="#orgb6873bc">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#org7137894">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org60d2080">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-org2a01c75" class="outline-2">
|
||||
<h2 id="org2a01c75"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div id="outline-container-org017a845" class="outline-2">
|
||||
<h2 id="org017a845"><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-org40002df" class="outline-3">
|
||||
<h3 id="org40002df"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div id="outline-container-org0ed7393" class="outline-3">
|
||||
<h3 id="org0ed7393"><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-org9e86cab" class="outline-3">
|
||||
<h3 id="org9e86cab"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div id="outline-container-org5f57e5b" class="outline-3">
|
||||
<h3 id="org5f57e5b"><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-orge449c5f" class="outline-3">
|
||||
<h3 id="orge449c5f"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div id="outline-container-org44e5725" class="outline-3">
|
||||
<h3 id="org44e5725"><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-orgb8f1648" class="outline-4">
|
||||
<h4 id="orgb8f1648"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div id="outline-container-org7344bc3" class="outline-4">
|
||||
<h4 id="org7344bc3"><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-org986429e" class="outline-4">
|
||||
<h4 id="org986429e"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div id="outline-container-orgf96379b" class="outline-4">
|
||||
<h4 id="orgf96379b"><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-orgae9e229" class="outline-4">
|
||||
<h4 id="orgae9e229"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div id="outline-container-orgc0656e5" class="outline-4">
|
||||
<h4 id="orgc0656e5"><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-org3c0878a" class="outline-3">
|
||||
<h3 id="org3c0878a"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div id="outline-container-org04d1b85" class="outline-3">
|
||||
<h3 id="org04d1b85"><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-orgb9597ff" class="outline-4">
|
||||
<h4 id="orgb9597ff"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div id="outline-container-org0fb0ded" class="outline-4">
|
||||
<h4 id="org0fb0ded"><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-orgb6780df" class="outline-4">
|
||||
<h4 id="orgb6780df"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div id="outline-container-orgfa98826" class="outline-4">
|
||||
<h4 id="orgfa98826"><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-org4e52f9d" class="outline-4">
|
||||
<h4 id="org4e52f9d"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div id="outline-container-org8d635a1" class="outline-4">
|
||||
<h4 id="org8d635a1"><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-org72d84c0" class="outline-4">
|
||||
<h4 id="org72d84c0"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div id="outline-container-org33d0bb3" class="outline-4">
|
||||
<h4 id="org33d0bb3"><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-org149993c" class="outline-4">
|
||||
<h4 id="org149993c"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div id="outline-container-orge92de7e" class="outline-4">
|
||||
<h4 id="orge92de7e"><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-org3f5b2b0" class="outline-4">
|
||||
<h4 id="org3f5b2b0"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div id="outline-container-orgceade71" class="outline-4">
|
||||
<h4 id="orgceade71"><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-org70f6d53" class="outline-4">
|
||||
<h4 id="org70f6d53"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div id="outline-container-org1250878" class="outline-4">
|
||||
<h4 id="org1250878"><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-org5bbede8" class="outline-4">
|
||||
<h4 id="org5bbede8"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
||||
<div id="outline-container-org45251df" class="outline-4">
|
||||
<h4 id="org45251df"><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">{
|
||||
@ -1070,8 +1070,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4c94ee3" class="outline-4">
|
||||
<h4 id="org4c94ee3"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
||||
<div id="outline-container-org0f1a3d5" class="outline-4">
|
||||
<h4 id="org0f1a3d5"><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">{
|
||||
@ -1151,8 +1151,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0ce32fb" class="outline-4">
|
||||
<h4 id="org0ce32fb"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
||||
<div id="outline-container-orga17f2e1" class="outline-4">
|
||||
<h4 id="orga17f2e1"><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">{
|
||||
@ -1197,8 +1197,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgde29775" class="outline-4">
|
||||
<h4 id="orgde29775"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||
<div id="outline-container-org65df19f" class="outline-4">
|
||||
<h4 id="org65df19f"><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">{
|
||||
@ -1243,8 +1243,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org89ab909" class="outline-4">
|
||||
<h4 id="org89ab909"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||
<div id="outline-container-org7bf7d81" class="outline-4">
|
||||
<h4 id="org7bf7d81"><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">{
|
||||
@ -1289,8 +1289,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5a797fa" class="outline-4">
|
||||
<h4 id="org5a797fa"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
||||
<div id="outline-container-org0fe09f6" class="outline-4">
|
||||
<h4 id="org0fe09f6"><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">{
|
||||
@ -1335,8 +1335,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org049b27c" class="outline-4">
|
||||
<h4 id="org049b27c"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||
<div id="outline-container-org83a4f5d" class="outline-4">
|
||||
<h4 id="org83a4f5d"><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">{
|
||||
@ -1391,8 +1391,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orge421125" class="outline-3">
|
||||
<h3 id="orge421125"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org46ad96e" class="outline-3">
|
||||
<h3 id="org46ad96e"><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.
|
||||
@ -1418,8 +1418,8 @@ In this section we read the MO coefficients.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2cc7dff" class="outline-4">
|
||||
<h4 id="org2cc7dff"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
||||
<div id="outline-container-org2015254" class="outline-4">
|
||||
<h4 id="org2015254"><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;
|
||||
@ -1442,8 +1442,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4e51e03" class="outline-4">
|
||||
<h4 id="org4e51e03"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||
<div id="outline-container-orgde1ae52" class="outline-4">
|
||||
<h4 id="orgde1ae52"><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">{
|
||||
@ -1492,12 +1492,12 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga3b2bb4" class="outline-3">
|
||||
<h3 id="orga3b2bb4"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
<div id="outline-container-org1a3c184" class="outline-3">
|
||||
<h3 id="org1a3c184"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org04cd359" class="outline-2">
|
||||
<h2 id="org04cd359"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div id="outline-container-org0a38e5b" class="outline-2">
|
||||
<h2 id="org0a38e5b"><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>
|
||||
@ -1572,8 +1572,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd35a9f5" class="outline-2">
|
||||
<h2 id="orgd35a9f5"><span class="section-number-2">3</span> Test</h2>
|
||||
<div id="outline-container-orga5a07ce" class="outline-2">
|
||||
<h2 id="orga5a07ce"><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
|
||||
@ -1597,8 +1597,8 @@ rc = qmckl_trexio_read(context, filename, 255);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb1ae4ba" class="outline-4">
|
||||
<h4 id="orgb1ae4ba"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||
<div id="outline-container-orgc79a6b5" class="outline-4">
|
||||
<h4 id="orgc79a6b5"><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>);
|
||||
@ -1616,8 +1616,8 @@ rc = qmckl_get_electron_down_num(context, &dn_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org06436f2" class="outline-4">
|
||||
<h4 id="org06436f2"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||
<div id="outline-container-orgb6873bc" class="outline-4">
|
||||
<h4 id="orgb6873bc"><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>);
|
||||
@ -1657,8 +1657,8 @@ coord = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga741954" class="outline-4">
|
||||
<h4 id="orga741954"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||
<div id="outline-container-org7137894" class="outline-4">
|
||||
<h4 id="org7137894"><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>);
|
||||
@ -1766,8 +1766,8 @@ prim_factor = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6a25ad7" class="outline-4">
|
||||
<h4 id="org6a25ad7"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div id="outline-container-org60d2080" class="outline-4">
|
||||
<h4 id="org60d2080"><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>);
|
||||
@ -1798,7 +1798,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-11-28 Tue 16:09</p>
|
||||
<p class="date">Created: 2023-11-29 Wed 00:20</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-11-28 Tue 16:09 -->
|
||||
<!-- 2023-11-29 Wed 00:20 -->
|
||||
<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="#org5d6e9b1">1. Verificarlo probes</a>
|
||||
<li><a href="#orge8e86e9">1. Verificarlo probes</a>
|
||||
<ul>
|
||||
<li><a href="#org2930163">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#orga580f4c">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org03c6037">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#org232f98c">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#orge5ddd86">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#orgde19f7d">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org339007f">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#orgede478d">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#org46c6903">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org9862918">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="#org252701c">2. Fortran wrappers</a></li>
|
||||
<li><a href="#orgbc0d47d">2. Fortran wrappers</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5d6e9b1" class="outline-2">
|
||||
<h2 id="org5d6e9b1"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div id="outline-container-orge8e86e9" class="outline-2">
|
||||
<h2 id="orge8e86e9"><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-org2930163" class="outline-3">
|
||||
<h3 id="org2930163"><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-orgde19f7d" class="outline-3">
|
||||
<h3 id="orgde19f7d"><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-orga580f4c" class="outline-3">
|
||||
<h3 id="orga580f4c"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div id="outline-container-org339007f" class="outline-3">
|
||||
<h3 id="org339007f"><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-org03c6037" class="outline-3">
|
||||
<h3 id="org03c6037"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div id="outline-container-orgede478d" class="outline-3">
|
||||
<h3 id="orgede478d"><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-org232f98c" class="outline-3">
|
||||
<h3 id="org232f98c"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div id="outline-container-org46c6903" class="outline-3">
|
||||
<h3 id="org46c6903"><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-orge5ddd86" class="outline-3">
|
||||
<h3 id="orge5ddd86"><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-org9862918" class="outline-3">
|
||||
<h3 id="org9862918"><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-org252701c" class="outline-2">
|
||||
<h2 id="org252701c"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||
<div id="outline-container-orgbc0d47d" class="outline-2">
|
||||
<h2 id="orgbc0d47d"><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-11-28 Tue 16:09</p>
|
||||
<p class="date">Created: 2023-11-29 Wed 00:20</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