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@5040ce1087 🚀
This commit is contained in:
parent
1f70293a85
commit
b6a45d2f96
@ -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>
|
||||
<!-- 2024-02-23 Fri 23:19 -->
|
||||
<!-- 2024-02-26 Mon 08:24 -->
|
||||
<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: 2024-02-23 Fri 23:19</p>
|
||||
<p class="date">Created: 2024-02-26 Mon 08:24</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>
|
||||
<!-- 2024-02-23 Fri 23:19 -->
|
||||
<!-- 2024-02-26 Mon 08:24 -->
|
||||
<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="#orgd9c7cf6">1. Installing QMCkl</a>
|
||||
<li><a href="#org7ddf2ec">1. Installing QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#orged463b1">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org184c827">1.2. Installing from the source repository (for developers)</a></li>
|
||||
<li><a href="#org7d1a89b">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org48dd651">1.2. Installing from the source repository (for developers)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6ed3601">2. Using QMCkl</a></li>
|
||||
<li><a href="#orgc13467c">3. Developing in QMCkl</a>
|
||||
<li><a href="#org4bd960b">2. Using QMCkl</a></li>
|
||||
<li><a href="#org1ab00b0">3. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#orgd434336">3.1. Literate programming</a></li>
|
||||
<li><a href="#org770803d">3.2. Source code editing</a></li>
|
||||
<li><a href="#orgcc16b4b">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#orgb6bf9e3">3.4. Coding rules</a></li>
|
||||
<li><a href="#orge2c055f">3.5. Design of the library</a></li>
|
||||
<li><a href="#org18a3b2b">3.6. Naming conventions</a></li>
|
||||
<li><a href="#orgf519e97">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org3120715">3.8. Global state</a></li>
|
||||
<li><a href="#orgda2dc15">3.9. Headers</a></li>
|
||||
<li><a href="#org982b13f">3.10. Low-level functions</a></li>
|
||||
<li><a href="#org9fa316e">3.11. High-level functions</a></li>
|
||||
<li><a href="#orgd3aa566">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org4e4cd35">3.13. Algorithms</a></li>
|
||||
<li><a href="#org34c31ce">3.1. Literate programming</a></li>
|
||||
<li><a href="#org5a30ac7">3.2. Source code editing</a></li>
|
||||
<li><a href="#org50eb4c1">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org41dbf53">3.4. Coding rules</a></li>
|
||||
<li><a href="#org72dc552">3.5. Design of the library</a></li>
|
||||
<li><a href="#orga574bf4">3.6. Naming conventions</a></li>
|
||||
<li><a href="#org331a190">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org32aff2b">3.8. Global state</a></li>
|
||||
<li><a href="#org33970d0">3.9. Headers</a></li>
|
||||
<li><a href="#org723d1cb">3.10. Low-level functions</a></li>
|
||||
<li><a href="#org09b7405">3.11. High-level functions</a></li>
|
||||
<li><a href="#org79affa8">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org2993168">3.13. Algorithms</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd9c7cf6" class="outline-2">
|
||||
<h2 id="orgd9c7cf6"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div id="outline-container-org7ddf2ec" class="outline-2">
|
||||
<h2 id="org7ddf2ec"><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-orged463b1" class="outline-3">
|
||||
<h3 id="orged463b1"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div id="outline-container-org7d1a89b" class="outline-3">
|
||||
<h3 id="org7d1a89b"><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-org184c827" class="outline-3">
|
||||
<h3 id="org184c827"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div id="outline-container-org48dd651" class="outline-3">
|
||||
<h3 id="org48dd651"><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-org6ed3601" class="outline-2">
|
||||
<h2 id="org6ed3601"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div id="outline-container-org4bd960b" class="outline-2">
|
||||
<h2 id="org4bd960b"><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-orgc13467c" class="outline-2">
|
||||
<h2 id="orgc13467c"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-org1ab00b0" class="outline-2">
|
||||
<h2 id="org1ab00b0"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orgd434336" class="outline-3">
|
||||
<h3 id="orgd434336"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div id="outline-container-org34c31ce" class="outline-3">
|
||||
<h3 id="org34c31ce"><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-org770803d" class="outline-3">
|
||||
<h3 id="org770803d"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div id="outline-container-org5a30ac7" class="outline-3">
|
||||
<h3 id="org5a30ac7"><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-orgcc16b4b" class="outline-3">
|
||||
<h3 id="orgcc16b4b"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-org50eb4c1" class="outline-3">
|
||||
<h3 id="org50eb4c1"><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-orgb6bf9e3" class="outline-3">
|
||||
<h3 id="orgb6bf9e3"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div id="outline-container-org41dbf53" class="outline-3">
|
||||
<h3 id="org41dbf53"><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-orge2c055f" class="outline-3">
|
||||
<h3 id="orge2c055f"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div id="outline-container-org72dc552" class="outline-3">
|
||||
<h3 id="org72dc552"><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-org18a3b2b" class="outline-3">
|
||||
<h3 id="org18a3b2b"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-orga574bf4" class="outline-3">
|
||||
<h3 id="orga574bf4"><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-orgf519e97" class="outline-3">
|
||||
<h3 id="orgf519e97"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-org331a190" class="outline-3">
|
||||
<h3 id="org331a190"><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-org3120715" class="outline-3">
|
||||
<h3 id="org3120715"><span class="section-number-3">3.8</span> Global state</h3>
|
||||
<div id="outline-container-org32aff2b" class="outline-3">
|
||||
<h3 id="org32aff2b"><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="org2231ca4">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="orgdc093b1">=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-orgda2dc15" class="outline-3">
|
||||
<h3 id="orgda2dc15"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div id="outline-container-org33970d0" class="outline-3">
|
||||
<h3 id="org33970d0"><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-org982b13f" class="outline-3">
|
||||
<h3 id="org982b13f"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-org723d1cb" class="outline-3">
|
||||
<h3 id="org723d1cb"><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="#org2231ca4"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#orgdc093b1"><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-org9fa316e" class="outline-3">
|
||||
<h3 id="org9fa316e"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div id="outline-container-org09b7405" class="outline-3">
|
||||
<h3 id="org09b7405"><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-orgd3aa566" class="outline-3">
|
||||
<h3 id="orgd3aa566"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-org79affa8" class="outline-3">
|
||||
<h3 id="org79affa8"><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="#org2231ca4"><code>context</code></a> variable.
|
||||
specified in the <a href="#orgdc093b1"><code>context</code></a> variable.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -909,8 +909,8 @@ following points :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4e4cd35" class="outline-3">
|
||||
<h3 id="org4e4cd35"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div id="outline-container-org2993168" class="outline-3">
|
||||
<h3 id="org2993168"><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: 2024-02-23 Fri 23:19</p>
|
||||
<p class="date">Created: 2024-02-26 Mon 08:24</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
218
qmckl_ao.html
218
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>
|
||||
<!-- 2024-02-23 Fri 23:19 -->
|
||||
<!-- 2024-02-26 Mon 08:24 -->
|
||||
<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,62 +346,62 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org52c109f">1. Introduction</a></li>
|
||||
<li><a href="#orgb732351">2. Context</a>
|
||||
<li><a href="#org0297b98">1. Introduction</a></li>
|
||||
<li><a href="#orga2cc32e">2. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org15d8ce0">2.1. Constant data</a>
|
||||
<li><a href="#orgab3a13a">2.1. Constant data</a>
|
||||
<ul>
|
||||
<li><a href="#org2096201">2.1.1. Initialization functions</a>
|
||||
<li><a href="#orgfb5b38b">2.1.1. Initialization functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgd5c3104">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org48764eb">2.1.1.2. Fortran interface</a></li>
|
||||
<li><a href="#org2a37721">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#orgd85783e">2.1.1.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4a776eb">2.1.2. Access functions</a>
|
||||
<li><a href="#org8ceda76">2.1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgf0d5fa0">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org784c1d2">2.1.2.2. Fortran interface</a></li>
|
||||
<li><a href="#org5f7bfef">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#orgba7f052">2.1.2.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org32dfe9e">2.2. Computed data</a>
|
||||
<li><a href="#orgc95b0e7">2.2. Computed data</a>
|
||||
<ul>
|
||||
<li><a href="#orgce513b6">2.2.1. After initialization</a></li>
|
||||
<li><a href="#org48e989a">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#orgeafe9a9">2.2.3. Access functions</a></li>
|
||||
<li><a href="#org9f77383">2.2.1. After initialization</a></li>
|
||||
<li><a href="#orga714161">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#org551c738">2.2.3. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9bfdc7f">3. Radial part</a>
|
||||
<li><a href="#orgc6fed42">3. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#orgbdea7d2">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org90dbed5">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#orgd521b2b">3.3. Computation of shells</a></li>
|
||||
<li><a href="#orgee77f20">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org46fa972">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org84cf46e">3.3. Computation of shells</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org89cac1b">4. Polynomial part</a>
|
||||
<li><a href="#org71bd98e">4. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#org9f41541">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org8fdd4c6">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
<li><a href="#orgef9cd61">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org536e694">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5493a8d">5. Combining radial and polynomial parts</a>
|
||||
<li><a href="#orgfe82482">5. Combining radial and polynomial parts</a>
|
||||
<ul>
|
||||
<li><a href="#org80265b1">5.1. Determination of nucleus ranges</a></li>
|
||||
<li><a href="#org03746db">5.2. Values only</a>
|
||||
<li><a href="#orgca36bce">5.1. Determination of nucleus ranges</a></li>
|
||||
<li><a href="#org7253466">5.2. Values only</a>
|
||||
<ul>
|
||||
<li><a href="#orgdb95f59">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#orgdca2cab">5.2.2. HPC version</a></li>
|
||||
<li><a href="#orgf5edae7">5.2.3. Interfaces</a></li>
|
||||
<li><a href="#org1e26118">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#orge05d13d">5.2.2. HPC version</a></li>
|
||||
<li><a href="#org9b3a77c">5.2.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga0bef5e">5.3. Value, gradients, Laplacian</a>
|
||||
<li><a href="#orgebd7dcb">5.3. Value, gradients, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#orgafaf107">5.3.1. Reference version</a></li>
|
||||
<li><a href="#orgb8a2dc6">5.3.2. HPC version</a></li>
|
||||
<li><a href="#org76814f2">5.3.3. Interfaces</a></li>
|
||||
<li><a href="#org05ede4b">5.3.1. Reference version</a></li>
|
||||
<li><a href="#org330dc18">5.3.2. HPC version</a></li>
|
||||
<li><a href="#org6763377">5.3.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -410,8 +410,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org52c109f" class="outline-2">
|
||||
<h2 id="org52c109f"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div id="outline-container-org0297b98" class="outline-2">
|
||||
<h2 id="org0297b98"><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
|
||||
@ -464,19 +464,19 @@ gradients and Laplacian of the atomic basis functions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb732351" class="outline-2">
|
||||
<h2 id="orgb732351"><span class="section-number-2">2</span> Context</h2>
|
||||
<div id="outline-container-orga2cc32e" class="outline-2">
|
||||
<h2 id="orga2cc32e"><span class="section-number-2">2</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org15d8ce0" class="outline-3">
|
||||
<h3 id="org15d8ce0"><span class="section-number-3">2.1</span> Constant data</h3>
|
||||
<div id="outline-container-orgab3a13a" class="outline-3">
|
||||
<h3 id="orgab3a13a"><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="orgf87cf4d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd2446c3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -710,7 +710,7 @@ calling the functions:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="org7c3af8d"><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="orgbe70102"><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>,
|
||||
@ -747,7 +747,7 @@ For array variables, use the rule:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="orgd86fc65"><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="org600bea8"><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>);
|
||||
|
||||
@ -785,17 +785,17 @@ For array variables, use the rule:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2096201" class="outline-4">
|
||||
<h4 id="org2096201"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
||||
<div id="outline-container-orgfb5b38b" class="outline-4">
|
||||
<h4 id="orgfb5b38b"><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="#orgb732351">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#orga2cc32e">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd5c3104" class="outline-5">
|
||||
<h5 id="orgd5c3104"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div id="outline-container-org2a37721" class="outline-5">
|
||||
<h5 id="org2a37721"><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
|
||||
@ -919,8 +919,8 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org48764eb" class="outline-5">
|
||||
<h5 id="org48764eb"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-orgd85783e" class="outline-5">
|
||||
<h5 id="orgd85783e"><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>
|
||||
@ -1103,17 +1103,17 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4a776eb" class="outline-4">
|
||||
<h4 id="org4a776eb"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
||||
<div id="outline-container-org8ceda76" class="outline-4">
|
||||
<h4 id="org8ceda76"><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="#orgb732351">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#orga2cc32e">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf0d5fa0" class="outline-5">
|
||||
<h5 id="orgf0d5fa0"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div id="outline-container-org5f7bfef" class="outline-5">
|
||||
<h5 id="org5f7bfef"><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>
|
||||
@ -1235,8 +1235,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org784c1d2" class="outline-5">
|
||||
<h5 id="org784c1d2"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-orgba7f052" class="outline-5">
|
||||
<h5 id="orgba7f052"><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>
|
||||
@ -1420,8 +1420,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org32dfe9e" class="outline-3">
|
||||
<h3 id="org32dfe9e"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div id="outline-container-orgc95b0e7" class="outline-3">
|
||||
<h3 id="orgc95b0e7"><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:
|
||||
@ -1496,8 +1496,8 @@ The following data is computed as described in the next sections:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgce513b6" class="outline-4">
|
||||
<h4 id="orgce513b6"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div id="outline-container-org9f77383" class="outline-4">
|
||||
<h4 id="org9f77383"><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
|
||||
@ -1511,8 +1511,8 @@ the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org48e989a" class="outline-4">
|
||||
<h4 id="org48e989a"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
||||
<div id="outline-container-orga714161" class="outline-4">
|
||||
<h4 id="orga714161"><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:
|
||||
@ -1542,8 +1542,8 @@ which is a matrix-vector product.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeafe9a9" class="outline-4">
|
||||
<h4 id="orgeafe9a9"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||
<div id="outline-container-org551c738" class="outline-4">
|
||||
<h4 id="org551c738"><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>
|
||||
@ -1556,7 +1556,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="#org90dbed5">3.2</a>.
|
||||
See section <a href="#org46fa972">3.2</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1569,7 +1569,7 @@ See section <a href="#org90dbed5">3.2</a>.
|
||||
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of contracted shells
|
||||
evaluated at the current coordinates. See section <a href="#orgd521b2b">3.3</a>.
|
||||
evaluated at the current coordinates. See section <a href="#org84cf46e">3.3</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1583,7 +1583,7 @@ evaluated at the current coordinates. See section <a href="#orgd521b2b">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="#org5493a8d">5</a>.
|
||||
See section <a href="#orgfe82482">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1608,7 +1608,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="#org5493a8d">5</a>.
|
||||
the current coordinates. See section <a href="#orgfe82482">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1627,12 +1627,12 @@ Uses the given array to compute the value.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9bfdc7f" class="outline-2">
|
||||
<h2 id="org9bfdc7f"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div id="outline-container-orgc6fed42" class="outline-2">
|
||||
<h2 id="orgc6fed42"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orgbdea7d2" class="outline-3">
|
||||
<h3 id="orgbdea7d2"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div id="outline-container-orgee77f20" class="outline-3">
|
||||
<h3 id="orgee77f20"><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-org90dbed5" class="outline-3">
|
||||
<h3 id="org90dbed5"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div id="outline-container-org46fa972" class="outline-3">
|
||||
<h3 id="org46fa972"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<table id="org461451e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgdf6af81" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1969,10 +1969,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd521b2b" class="outline-3">
|
||||
<h3 id="orgd521b2b"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div id="outline-container-org84cf46e" class="outline-3">
|
||||
<h3 id="org84cf46e"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<table id="orgede375c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org94e03e6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2228,8 +2228,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org89cac1b" class="outline-2">
|
||||
<h2 id="org89cac1b"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div id="outline-container-org71bd98e" class="outline-2">
|
||||
<h2 id="org71bd98e"><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
|
||||
@ -2249,8 +2249,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-org9f41541" class="outline-3">
|
||||
<h3 id="org9f41541"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-orgef9cd61" class="outline-3">
|
||||
<h3 id="orgef9cd61"><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>
|
||||
@ -2262,7 +2262,7 @@ the \(n\) points:
|
||||
\[ P_{ik} = X_i^k \]
|
||||
</p>
|
||||
|
||||
<table id="orgc5d43af" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge96ac9d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2403,8 +2403,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8fdd4c6" class="outline-3">
|
||||
<h3 id="org8fdd4c6"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-org536e694" class="outline-3">
|
||||
<h3 id="org536e694"><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\)
|
||||
@ -2449,7 +2449,7 @@ Laplacians at a given point in space, of all polynomials with an
|
||||
angular momentum up to <code>lmax</code>.
|
||||
</p>
|
||||
|
||||
<table id="org2ade11e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org455ecf7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3242,12 +3242,12 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5493a8d" class="outline-2">
|
||||
<h2 id="org5493a8d"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div id="outline-container-orgfe82482" class="outline-2">
|
||||
<h2 id="orgfe82482"><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-org80265b1" class="outline-3">
|
||||
<h3 id="org80265b1"><span class="section-number-3">5.1</span> Determination of nucleus ranges</h3>
|
||||
<div id="outline-container-orgca36bce" class="outline-3">
|
||||
<h3 id="orgca36bce"><span class="section-number-3">5.1</span> Determination of nucleus ranges</h3>
|
||||
<div class="outline-text-3" id="text-5-1">
|
||||
<p>
|
||||
The range of a nucleus is defined as the distance beyond which all
|
||||
@ -3413,14 +3413,14 @@ of bits of precision (1-53), a range is given.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org03746db" class="outline-3">
|
||||
<h3 id="org03746db"><span class="section-number-3">5.2</span> Values only</h3>
|
||||
<div id="outline-container-org7253466" class="outline-3">
|
||||
<h3 id="org7253466"><span class="section-number-3">5.2</span> Values only</h3>
|
||||
<div class="outline-text-3" id="text-5-2">
|
||||
</div>
|
||||
<div id="outline-container-orgdb95f59" class="outline-4">
|
||||
<h4 id="orgdb95f59"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-org1e26118" class="outline-4">
|
||||
<h4 id="org1e26118"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-1">
|
||||
<table id="org6b901a9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6ba4b36" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3660,10 +3660,10 @@ of bits of precision (1-53), a range is given.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdca2cab" class="outline-4">
|
||||
<h4 id="orgdca2cab"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div id="outline-container-orge05d13d" class="outline-4">
|
||||
<h4 id="orge05d13d"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-2">
|
||||
<table id="org9ff63bc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd4124b3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3821,8 +3821,8 @@ of bits of precision (1-53), a range is given.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf5edae7" class="outline-4">
|
||||
<h4 id="orgf5edae7"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||
<div id="outline-container-org9b3a77c" class="outline-4">
|
||||
<h4 id="org9b3a77c"><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_value_doc</span> (
|
||||
@ -3871,14 +3871,14 @@ of bits of precision (1-53), a range is given.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga0bef5e" class="outline-3">
|
||||
<h3 id="orga0bef5e"><span class="section-number-3">5.3</span> Value, gradients, Laplacian</h3>
|
||||
<div id="outline-container-orgebd7dcb" class="outline-3">
|
||||
<h3 id="orgebd7dcb"><span class="section-number-3">5.3</span> Value, gradients, Laplacian</h3>
|
||||
<div class="outline-text-3" id="text-5-3">
|
||||
</div>
|
||||
<div id="outline-container-orgafaf107" class="outline-4">
|
||||
<h4 id="orgafaf107"><span class="section-number-4">5.3.1</span> Reference version</h4>
|
||||
<div id="outline-container-org05ede4b" class="outline-4">
|
||||
<h4 id="org05ede4b"><span class="section-number-4">5.3.1</span> Reference version</h4>
|
||||
<div class="outline-text-4" id="text-5-3-1">
|
||||
<table id="orgc1bf835" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9071ffe" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4146,10 +4146,10 @@ of bits of precision (1-53), a range is given.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb8a2dc6" class="outline-4">
|
||||
<h4 id="orgb8a2dc6"><span class="section-number-4">5.3.2</span> HPC version</h4>
|
||||
<div id="outline-container-org330dc18" class="outline-4">
|
||||
<h4 id="org330dc18"><span class="section-number-4">5.3.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-3-2">
|
||||
<table id="org45c61cd" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga02f385" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4308,8 +4308,8 @@ of bits of precision (1-53), a range is given.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org76814f2" class="outline-4">
|
||||
<h4 id="org76814f2"><span class="section-number-4">5.3.3</span> Interfaces</h4>
|
||||
<div id="outline-container-org6763377" class="outline-4">
|
||||
<h4 id="org6763377"><span class="section-number-4">5.3.3</span> Interfaces</h4>
|
||||
<div class="outline-text-4" id="text-5-3-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> (
|
||||
@ -4361,7 +4361,7 @@ of bits of precision (1-53), a range is given.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2024-02-23 Fri 23:19</p>
|
||||
<p class="date">Created: 2024-02-26 Mon 08:24</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>
|
||||
<!-- 2024-02-23 Fri 23:19 -->
|
||||
<!-- 2024-02-26 Mon 08:24 -->
|
||||
<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="#org1756e2b">-</a></li>
|
||||
<li><a href="#org170c3bc">1. Data types</a>
|
||||
<li><a href="#orgc11de6e">-</a></li>
|
||||
<li><a href="#org1d1ba10">1. Data types</a>
|
||||
<ul>
|
||||
<li><a href="#org6c058a3">1.1. Vector</a></li>
|
||||
<li><a href="#orgd12c768">1.2. Matrix</a></li>
|
||||
<li><a href="#orga6563b1">1.3. Tensor</a></li>
|
||||
<li><a href="#orgec69cb1">1.4. Reshaping</a>
|
||||
<li><a href="#orgcf43291">1.1. Vector</a></li>
|
||||
<li><a href="#orged66bb8">1.2. Matrix</a></li>
|
||||
<li><a href="#org5348fe5">1.3. Tensor</a></li>
|
||||
<li><a href="#org68bad87">1.4. Reshaping</a>
|
||||
<ul>
|
||||
<li><a href="#org1cab9db">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#orgcecef54">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#org63a4c0d">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#orga0dee5f">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#orge3d3edd">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#orgbb76240">1.4.6. Tensor -> Matrix</a></li>
|
||||
<li><a href="#org48c5ce5">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#org8a76c89">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#org136c64f">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#org88be701">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#org12c1be3">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#org1ee0b39">1.4.6. Tensor -> Matrix</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge99e032">1.5. Access macros</a></li>
|
||||
<li><a href="#org81471bd">1.6. Set all elements</a>
|
||||
<li><a href="#orgbac6a09">1.5. Access macros</a></li>
|
||||
<li><a href="#orgb92d574">1.6. Set all elements</a>
|
||||
<ul>
|
||||
<li><a href="#orgb0884a9">1.6.1. Vector</a></li>
|
||||
<li><a href="#orgad32215">1.6.2. Matrix</a></li>
|
||||
<li><a href="#org4e53c05">1.6.3. Tensor</a></li>
|
||||
<li><a href="#orgefa16f8">1.6.1. Vector</a></li>
|
||||
<li><a href="#org7565e62">1.6.2. Matrix</a></li>
|
||||
<li><a href="#org4a8e3ed">1.6.3. Tensor</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2da4652">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#org8add18e">1.8. Allocate and copy to <code>double*</code></a></li>
|
||||
<li><a href="#org3ab382a">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#orgae17f42">1.8. Allocate and copy to <code>double*</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6fc8e32">2. Matrix operations</a>
|
||||
<li><a href="#org94740b4">2. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#org1c813c3">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#orgcf2576c">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#org95c403f">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org4c143c2">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#org6e01ad3">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<li><a href="#org6bbac90">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org60b852f">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#org131f907">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org3c542c4">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#org766b7f5">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<ul>
|
||||
<li><a href="#org9039813">2.5.1. C interface</a></li>
|
||||
<li><a href="#org6a07474">2.5.1. C interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc7fb4f3">2.6. <code>qmckl_transpose</code></a></li>
|
||||
<li><a href="#org703be19">2.6. <code>qmckl_transpose</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org999f0e4">3. Utilities</a></li>
|
||||
<li><a href="#orgfd3ea33">3. Utilities</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1756e2b" class="outline-2">
|
||||
<h2 id="org1756e2b">-</h2>
|
||||
<div class="outline-text-2" id="text-org1756e2b">
|
||||
<div id="outline-container-orgc11de6e" class="outline-2">
|
||||
<h2 id="orgc11de6e">-</h2>
|
||||
<div class="outline-text-2" id="text-orgc11de6e">
|
||||
<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-org170c3bc" class="outline-2">
|
||||
<h2 id="org170c3bc"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div id="outline-container-org1d1ba10" class="outline-2">
|
||||
<h2 id="org1d1ba10"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org6c058a3" class="outline-3">
|
||||
<h3 id="org6c058a3"><span class="section-number-3">1.1</span> Vector</h3>
|
||||
<div id="outline-container-orgcf43291" class="outline-3">
|
||||
<h3 id="orgcf43291"><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-orgd12c768" class="outline-3">
|
||||
<h3 id="orgd12c768"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||
<div id="outline-container-orged66bb8" class="outline-3">
|
||||
<h3 id="orged66bb8"><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-orga6563b1" class="outline-3">
|
||||
<h3 id="orga6563b1"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||
<div id="outline-container-org5348fe5" class="outline-3">
|
||||
<h3 id="org5348fe5"><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-orgec69cb1" class="outline-3">
|
||||
<h3 id="orgec69cb1"><span class="section-number-3">1.4</span> Reshaping</h3>
|
||||
<div id="outline-container-org68bad87" class="outline-3">
|
||||
<h3 id="org68bad87"><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-org1cab9db" class="outline-4">
|
||||
<h4 id="org1cab9db"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||
<div id="outline-container-org48c5ce5" class="outline-4">
|
||||
<h4 id="org48c5ce5"><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-orgcecef54" class="outline-4">
|
||||
<h4 id="orgcecef54"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||
<div id="outline-container-org8a76c89" class="outline-4">
|
||||
<h4 id="org8a76c89"><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-org63a4c0d" class="outline-4">
|
||||
<h4 id="org63a4c0d"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||
<div id="outline-container-org136c64f" class="outline-4">
|
||||
<h4 id="org136c64f"><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-orga0dee5f" class="outline-4">
|
||||
<h4 id="orga0dee5f"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||
<div id="outline-container-org88be701" class="outline-4">
|
||||
<h4 id="org88be701"><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-orge3d3edd" class="outline-4">
|
||||
<h4 id="orge3d3edd"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||
<div id="outline-container-org12c1be3" class="outline-4">
|
||||
<h4 id="org12c1be3"><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-orgbb76240" class="outline-4">
|
||||
<h4 id="orgbb76240"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||
<div id="outline-container-org1ee0b39" class="outline-4">
|
||||
<h4 id="org1ee0b39"><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-orge99e032" class="outline-3">
|
||||
<h3 id="orge99e032"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||
<div id="outline-container-orgbac6a09" class="outline-3">
|
||||
<h3 id="orgbac6a09"><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-org81471bd" class="outline-3">
|
||||
<h3 id="org81471bd"><span class="section-number-3">1.6</span> Set all elements</h3>
|
||||
<div id="outline-container-orgb92d574" class="outline-3">
|
||||
<h3 id="orgb92d574"><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-orgb0884a9" class="outline-4">
|
||||
<h4 id="orgb0884a9"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||
<div id="outline-container-orgefa16f8" class="outline-4">
|
||||
<h4 id="orgefa16f8"><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-orgad32215" class="outline-4">
|
||||
<h4 id="orgad32215"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||
<div id="outline-container-org7565e62" class="outline-4">
|
||||
<h4 id="org7565e62"><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-org4e53c05" class="outline-4">
|
||||
<h4 id="org4e53c05"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||
<div id="outline-container-org4a8e3ed" class="outline-4">
|
||||
<h4 id="org4a8e3ed"><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-org2da4652" class="outline-3">
|
||||
<h3 id="org2da4652"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||
<div id="outline-container-org3ab382a" class="outline-3">
|
||||
<h3 id="org3ab382a"><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-org8add18e" class="outline-3">
|
||||
<h3 id="org8add18e"><span class="section-number-3">1.8</span> Allocate and copy to <code>double*</code></h3>
|
||||
<div id="outline-container-orgae17f42" class="outline-3">
|
||||
<h3 id="orgae17f42"><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-org6fc8e32" class="outline-2">
|
||||
<h2 id="org6fc8e32"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div id="outline-container-org94740b4" class="outline-2">
|
||||
<h2 id="org94740b4"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org1c813c3" class="outline-3">
|
||||
<h3 id="org1c813c3"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div id="outline-container-org6bbac90" class="outline-3">
|
||||
<h3 id="org6bbac90"><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="orgbef5384" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9b41683" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1052,8 +1052,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcf2576c" class="outline-3">
|
||||
<h3 id="orgcf2576c"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
||||
<div id="outline-container-org60b852f" class="outline-3">
|
||||
<h3 id="org60b852f"><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="orgbb28216" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3013cba" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1248,8 +1248,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org95c403f" class="outline-3">
|
||||
<h3 id="org95c403f"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
||||
<div id="outline-container-org131f907" class="outline-3">
|
||||
<h3 id="org131f907"><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="orgf3a0592" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9a69764" 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-org4c143c2" class="outline-3">
|
||||
<h3 id="org4c143c2"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
||||
<div id="outline-container-org3c542c4" class="outline-3">
|
||||
<h3 id="org3c542c4"><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="org78c8e67" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9912311" 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-org6e01ad3" class="outline-3">
|
||||
<h3 id="org6e01ad3"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
||||
<div id="outline-container-org766b7f5" class="outline-3">
|
||||
<h3 id="org766b7f5"><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="orgc72f01a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgaf7655b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1703,13 +1703,13 @@ LAPACK library.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9039813" class="outline-4">
|
||||
<h4 id="org9039813"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
<div id="outline-container-org6a07474" class="outline-4">
|
||||
<h4 id="org6a07474"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc7fb4f3" class="outline-3">
|
||||
<h3 id="orgc7fb4f3"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
||||
<div id="outline-container-org703be19" class="outline-3">
|
||||
<h3 id="org703be19"><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-org999f0e4" class="outline-2">
|
||||
<h2 id="org999f0e4"><span class="section-number-2">3</span> Utilities</h2>
|
||||
<div id="outline-container-orgfd3ea33" class="outline-2">
|
||||
<h2 id="orgfd3ea33"><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: 2024-02-23 Fri 23:19</p>
|
||||
<p class="date">Created: 2024-02-26 Mon 08:24</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>
|
||||
<!-- 2024-02-23 Fri 23:19 -->
|
||||
<!-- 2024-02-26 Mon 08:24 -->
|
||||
<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="#orgbc95d5b">1. Context handling</a>
|
||||
<li><a href="#orgb26f764">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#orge367dda">1.1. Data structure</a></li>
|
||||
<li><a href="#org2ee2b34">1.2. Creation</a></li>
|
||||
<li><a href="#orga8272eb">1.3. Locking</a></li>
|
||||
<li><a href="#org3fd7f69">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org0fce01b">1.5. Destroy</a></li>
|
||||
<li><a href="#org7697c88">1.1. Data structure</a></li>
|
||||
<li><a href="#org7d84af8">1.2. Creation</a></li>
|
||||
<li><a href="#org3d4c2ff">1.3. Locking</a></li>
|
||||
<li><a href="#orgeeabfca">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#orga6a8537">1.5. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbc95d5b" class="outline-2">
|
||||
<h2 id="orgbc95d5b"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-orgb26f764" class="outline-2">
|
||||
<h2 id="orgb26f764"><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="org874e32a"><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="org6a92b1e"><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-orge367dda" class="outline-3">
|
||||
<h3 id="orge367dda"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org7697c88" class="outline-3">
|
||||
<h3 id="org7697c88"><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="#org2ee2b34"><code>qmckl_context_create</code></a> <a href="#org0fce01b"><code>qmckl_context_destroy</code></a> and <a href="#org3fd7f69"><code>qmckl_context_copy</code></a>
|
||||
<a href="#org7d84af8"><code>qmckl_context_create</code></a> <a href="#orga6a8537"><code>qmckl_context_destroy</code></a> and <a href="#orgeeabfca"><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-org2ee2b34" class="outline-3">
|
||||
<h3 id="org2ee2b34"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-org7d84af8" class="outline-3">
|
||||
<h3 id="org7d84af8"><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-orga8272eb" class="outline-3">
|
||||
<h3 id="orga8272eb"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-org3d4c2ff" class="outline-3">
|
||||
<h3 id="org3d4c2ff"><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-org3fd7f69" class="outline-3">
|
||||
<h3 id="org3fd7f69"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div id="outline-container-orgeeabfca" class="outline-3">
|
||||
<h3 id="orgeeabfca"><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-org0fce01b" class="outline-3">
|
||||
<h3 id="org0fce01b"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-orga6a8537" class="outline-3">
|
||||
<h3 id="orga6a8537"><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: 2024-02-23 Fri 23:19</p>
|
||||
<p class="date">Created: 2024-02-26 Mon 08:24</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>
|
||||
<!-- 2024-02-23 Fri 23:19 -->
|
||||
<!-- 2024-02-26 Mon 08:24 -->
|
||||
<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="#orgf401ad5">1. Context</a>
|
||||
<li><a href="#orgaca4b20">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgf2fa9e4">1.1. Data structure</a></li>
|
||||
<li><a href="#org8357d8f">1.2. Access functions</a></li>
|
||||
<li><a href="#orgc85ac21">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org09f5be1">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#orgfdd1f34">1.5. Test</a></li>
|
||||
<li><a href="#org41ce088">1.1. Data structure</a></li>
|
||||
<li><a href="#orgdda53d6">1.2. Access functions</a></li>
|
||||
<li><a href="#org7324c6c">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org3b9f61a">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#orgf200bc2">1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2d2bb13">2. Computation</a>
|
||||
<li><a href="#org82e3def">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgcc847ba">2.1. Determinant matrix</a>
|
||||
<li><a href="#orgf8f2c5b">2.1. Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org835a906">2.1.1. Get</a></li>
|
||||
<li><a href="#org7649620">2.1.2. Provide</a></li>
|
||||
<li><a href="#org3af0d97">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#orga18f208">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#org2bad9c6">2.1.5. Test</a></li>
|
||||
<li><a href="#orga4e85bb">2.1.1. Get</a></li>
|
||||
<li><a href="#orgc22587d">2.1.2. Provide</a></li>
|
||||
<li><a href="#org9fa0ca2">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#org93aeecd">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#orgf9f7fdd">2.1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org82d2674">2.2. Inverse of Determinant matrix</a>
|
||||
<li><a href="#org20d23e6">2.2. Inverse of Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org24233ca">2.2.1. Get</a></li>
|
||||
<li><a href="#org65d5271">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgc5618c4">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#org157230f">2.2.4. Compute beta</a></li>
|
||||
<li><a href="#orgb0cbe06">2.2.1. Get</a></li>
|
||||
<li><a href="#org446b8fd">2.2.2. Provide</a></li>
|
||||
<li><a href="#org9484251">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#orgdf65511">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-orgf401ad5" class="outline-2">
|
||||
<h2 id="orgf401ad5"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgaca4b20" class="outline-2">
|
||||
<h2 id="orgaca4b20"><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-orgf2fa9e4" class="outline-3">
|
||||
<h3 id="orgf2fa9e4"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org41ce088" class="outline-3">
|
||||
<h3 id="org41ce088"><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-org8357d8f" class="outline-3">
|
||||
<h3 id="org8357d8f"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgdda53d6" class="outline-3">
|
||||
<h3 id="orgdda53d6"><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-orgc85ac21" class="outline-3">
|
||||
<h3 id="orgc85ac21"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org7324c6c" class="outline-3">
|
||||
<h3 id="org7324c6c"><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-org09f5be1" class="outline-3">
|
||||
<h3 id="org09f5be1"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
<div id="outline-container-org3b9f61a" class="outline-3">
|
||||
<h3 id="org3b9f61a"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
</div>
|
||||
<div id="outline-container-orgfdd1f34" class="outline-3">
|
||||
<h3 id="orgfdd1f34"><span class="section-number-3">1.5</span> Test</h3>
|
||||
<div id="outline-container-orgf200bc2" class="outline-3">
|
||||
<h3 id="orgf200bc2"><span class="section-number-3">1.5</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org2d2bb13" class="outline-2">
|
||||
<h2 id="org2d2bb13"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org82e3def" class="outline-2">
|
||||
<h2 id="org82e3def"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgcc847ba" class="outline-3">
|
||||
<h3 id="orgcc847ba"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
||||
<div id="outline-container-orgf8f2c5b" class="outline-3">
|
||||
<h3 id="orgf8f2c5b"><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-org835a906" class="outline-4">
|
||||
<h4 id="org835a906"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orga4e85bb" class="outline-4">
|
||||
<h4 id="orga4e85bb"><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-org7649620" class="outline-4">
|
||||
<h4 id="org7649620"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-orgc22587d" class="outline-4">
|
||||
<h4 id="orgc22587d"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3af0d97" class="outline-4">
|
||||
<h4 id="org3af0d97"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org9fa0ca2" class="outline-4">
|
||||
<h4 id="org9fa0ca2"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="org242d9f7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org16f0083" 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-orga18f208" class="outline-4">
|
||||
<h4 id="orga18f208"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org93aeecd" class="outline-4">
|
||||
<h4 id="org93aeecd"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<table id="org70a9a0b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0366b68" 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-org2bad9c6" class="outline-4">
|
||||
<h4 id="org2bad9c6"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
<div id="outline-container-orgf9f7fdd" class="outline-4">
|
||||
<h4 id="orgf9f7fdd"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org82d2674" class="outline-3">
|
||||
<h3 id="org82d2674"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
||||
<div id="outline-container-org20d23e6" class="outline-3">
|
||||
<h3 id="org20d23e6"><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-org24233ca" class="outline-4">
|
||||
<h4 id="org24233ca"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgb0cbe06" class="outline-4">
|
||||
<h4 id="orgb0cbe06"><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-org65d5271" class="outline-4">
|
||||
<h4 id="org65d5271"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org446b8fd" class="outline-4">
|
||||
<h4 id="org446b8fd"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc5618c4" class="outline-4">
|
||||
<h4 id="orgc5618c4"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org9484251" class="outline-4">
|
||||
<h4 id="org9484251"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org3059e0a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2e452e2" 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-org157230f" class="outline-4">
|
||||
<h4 id="org157230f"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div id="outline-container-orgdf65511" class="outline-4">
|
||||
<h4 id="orgdf65511"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<table id="org0554e49" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4f75bc9" 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: 2024-02-23 Fri 23:19</p>
|
||||
<p class="date">Created: 2024-02-26 Mon 08:24</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>
|
||||
<!-- 2024-02-23 Fri 23:19 -->
|
||||
<!-- 2024-02-26 Mon 08:24 -->
|
||||
<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="#orgf24c27b">1. Squared distance</a>
|
||||
<li><a href="#orgd4bae3f">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#org461e1e0">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#org8499cbc">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgedc24a4">1.1.1. Performance</a></li>
|
||||
<li><a href="#org7f9aad5">1.1.1. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc681e01">2. Distance</a>
|
||||
<li><a href="#org6aa6157">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org085deae">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#org0da6bda">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#org3b8e990">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orgaf8bb31">2.1.2. C header</a></li>
|
||||
<li><a href="#org07619a8">2.1.3. Source</a></li>
|
||||
<li><a href="#org5c5d94c">2.1.4. Performance</a></li>
|
||||
<li><a href="#orgbf247dc">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org3d83e01">2.1.2. C header</a></li>
|
||||
<li><a href="#orgd851531">2.1.3. Source</a></li>
|
||||
<li><a href="#orgc031fea">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga17f9cf">3. Rescaled Distance</a>
|
||||
<li><a href="#org38a766e">3. Rescaled Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org535ebf2">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<li><a href="#org7de38ea">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<ul>
|
||||
<li><a href="#org33b32bd">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orge0285fb">3.1.2. C header</a></li>
|
||||
<li><a href="#org61f6138">3.1.3. Source</a></li>
|
||||
<li><a href="#org9ad623d">3.1.4. Performance</a></li>
|
||||
<li><a href="#org2e6b41a">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orgf356ac4">3.1.2. C header</a></li>
|
||||
<li><a href="#org2165b2d">3.1.3. Source</a></li>
|
||||
<li><a href="#org718ad6e">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org672c272">4. Rescaled Distance Derivatives</a>
|
||||
<li><a href="#org7cf6148">4. Rescaled Distance Derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#orgfecb018">4.1. <code>qmckl_distance_rescaled_gl</code></a></li>
|
||||
<li><a href="#orgce04c57">4.1. <code>qmckl_distance_rescaled_gl</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf24c27b" class="outline-2">
|
||||
<h2 id="orgf24c27b"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-orgd4bae3f" class="outline-2">
|
||||
<h2 id="orgd4bae3f"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org461e1e0" class="outline-3">
|
||||
<h3 id="org461e1e0"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-org8499cbc" class="outline-3">
|
||||
<h3 id="org8499cbc"><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="org0c45d6c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org54f0a0b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -678,8 +678,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgedc24a4" class="outline-4">
|
||||
<h4 id="orgedc24a4"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div id="outline-container-org7f9aad5" class="outline-4">
|
||||
<h4 id="org7f9aad5"><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
|
||||
@ -689,12 +689,12 @@ transposed.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgc681e01" class="outline-2">
|
||||
<h2 id="orgc681e01"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-org6aa6157" class="outline-2">
|
||||
<h2 id="org6aa6157"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org085deae" class="outline-3">
|
||||
<h3 id="org085deae"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div id="outline-container-org0da6bda" class="outline-3">
|
||||
<h3 id="org0da6bda"><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
|
||||
@ -712,7 +712,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="org6dbdfc4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgafcc67a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -813,8 +813,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3b8e990" class="outline-4">
|
||||
<h4 id="org3b8e990"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgbf247dc" class="outline-4">
|
||||
<h4 id="orgbf247dc"><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>
|
||||
@ -832,8 +832,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaf8bb31" class="outline-4">
|
||||
<h4 id="orgaf8bb31"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-org3d83e01" class="outline-4">
|
||||
<h4 id="org3d83e01"><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> (
|
||||
@ -853,8 +853,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org07619a8" class="outline-4">
|
||||
<h4 id="org07619a8"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgd851531" class="outline-4">
|
||||
<h4 id="orgd851531"><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>
|
||||
@ -1004,8 +1004,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5c5d94c" class="outline-4">
|
||||
<h4 id="org5c5d94c"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgc031fea" class="outline-4">
|
||||
<h4 id="orgc031fea"><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.
|
||||
@ -1015,12 +1015,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga17f9cf" class="outline-2">
|
||||
<h2 id="orga17f9cf"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div id="outline-container-org38a766e" class="outline-2">
|
||||
<h2 id="org38a766e"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org535ebf2" class="outline-3">
|
||||
<h3 id="org535ebf2"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div id="outline-container-org7de38ea" class="outline-3">
|
||||
<h3 id="org7de38ea"><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
|
||||
@ -1038,7 +1038,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="org1061984" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org63f3148" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1146,8 +1146,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org33b32bd" class="outline-4">
|
||||
<h4 id="org33b32bd"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org2e6b41a" class="outline-4">
|
||||
<h4 id="org2e6b41a"><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>
|
||||
@ -1165,8 +1165,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge0285fb" class="outline-4">
|
||||
<h4 id="orge0285fb"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgf356ac4" class="outline-4">
|
||||
<h4 id="orgf356ac4"><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> (
|
||||
@ -1187,8 +1187,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org61f6138" class="outline-4">
|
||||
<h4 id="org61f6138"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-org2165b2d" class="outline-4">
|
||||
<h4 id="org2165b2d"><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>
|
||||
@ -1341,8 +1341,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9ad623d" class="outline-4">
|
||||
<h4 id="org9ad623d"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org718ad6e" class="outline-4">
|
||||
<h4 id="org718ad6e"><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.
|
||||
@ -1351,12 +1351,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org672c272" class="outline-2">
|
||||
<h2 id="org672c272"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div id="outline-container-org7cf6148" class="outline-2">
|
||||
<h2 id="org7cf6148"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-orgfecb018" class="outline-3">
|
||||
<h3 id="orgfecb018"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_gl</code></h3>
|
||||
<div id="outline-container-orgce04c57" class="outline-3">
|
||||
<h3 id="orgce04c57"><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
|
||||
@ -1411,7 +1411,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="orgab8ff46" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5c96459" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1731,7 +1731,7 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2024-02-23 Fri 23:19</p>
|
||||
<p class="date">Created: 2024-02-26 Mon 08:24</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>
|
||||
<!-- 2024-02-23 Fri 23:19 -->
|
||||
<!-- 2024-02-26 Mon 08:24 -->
|
||||
<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="#orge2cc58d">1. Context</a>
|
||||
<li><a href="#org7010f96">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org41709ca">1.1. Data structure</a></li>
|
||||
<li><a href="#org0d3e06c">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org9bd2a30">1.3. Access functions</a>
|
||||
<li><a href="#org212cb64">1.1. Data structure</a></li>
|
||||
<li><a href="#org91a6baa">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org66527ad">1.3. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org4db136b">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#org3657663">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#org5c633e9">1.3.3. Electron coordinates</a></li>
|
||||
<li><a href="#orgb0848f4">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#orga5a17fb">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#org16d115e">1.3.3. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0b3e5ee">1.4. Test</a></li>
|
||||
<li><a href="#orgf5afb65">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org00c83ec">2. Computation</a>
|
||||
<li><a href="#org07d19e4">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org363902d">2.1. Electron-electron distances</a>
|
||||
<li><a href="#orgc478629">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgefe07c6">2.1.1. Get</a></li>
|
||||
<li><a href="#org5ec7b18">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgdd11e7f">2.1.3. Test</a></li>
|
||||
<li><a href="#orgcd21980">2.1.1. Get</a></li>
|
||||
<li><a href="#org2489026">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgbe37215">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd9195f7">2.2. Electron-electron potential</a>
|
||||
<li><a href="#org917a94d">2.2. Electron-electron potential</a>
|
||||
<ul>
|
||||
<li><a href="#org06ce891">2.2.1. Get</a></li>
|
||||
<li><a href="#orgc657039">2.2.2. Compute</a></li>
|
||||
<li><a href="#org735acdd">2.2.3. Test</a></li>
|
||||
<li><a href="#org40150fc">2.2.1. Get</a></li>
|
||||
<li><a href="#org9ebdee0">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgf4604c1">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org387c0d0">2.3. Electron-nucleus distances</a>
|
||||
<li><a href="#orgc1f372c">2.3. Electron-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org0370976">2.3.1. Get</a></li>
|
||||
<li><a href="#orge821fc5">2.3.2. Compute</a></li>
|
||||
<li><a href="#orgdf56b12">2.3.3. Test</a></li>
|
||||
<li><a href="#org4367135">2.3.1. Get</a></li>
|
||||
<li><a href="#org354a42b">2.3.2. Compute</a></li>
|
||||
<li><a href="#orgbab3fd7">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8e911e7">2.4. Electron-nucleus potential</a>
|
||||
<li><a href="#orge11eaec">2.4. Electron-nucleus potential</a>
|
||||
<ul>
|
||||
<li><a href="#org7108667">2.4.1. Get</a></li>
|
||||
<li><a href="#org326007f">2.4.2. Compute</a></li>
|
||||
<li><a href="#orgcd57a8c">2.4.3. Test</a></li>
|
||||
<li><a href="#org0d77252">2.4.1. Get</a></li>
|
||||
<li><a href="#orgfb08479">2.4.2. Compute</a></li>
|
||||
<li><a href="#org2812ec4">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgdd6a0f6">2.5. Generate initial coordinates</a></li>
|
||||
<li><a href="#org05eb7d7">2.5. Generate initial coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge2cc58d" class="outline-2">
|
||||
<h2 id="orge2cc58d"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org7010f96" class="outline-2">
|
||||
<h2 id="org7010f96"><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-org41709ca" class="outline-3">
|
||||
<h3 id="org41709ca"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org212cb64" class="outline-3">
|
||||
<h3 id="org212cb64"><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-org0d3e06c" class="outline-3">
|
||||
<h3 id="org0d3e06c"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-org91a6baa" class="outline-3">
|
||||
<h3 id="org91a6baa"><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-org9bd2a30" class="outline-3">
|
||||
<h3 id="org9bd2a30"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div id="outline-container-org66527ad" class="outline-3">
|
||||
<h3 id="org66527ad"><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-org4db136b" class="outline-4">
|
||||
<h4 id="org4db136b"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
<div id="outline-container-orgb0848f4" class="outline-4">
|
||||
<h4 id="orgb0848f4"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3657663" class="outline-4">
|
||||
<h4 id="org3657663"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
||||
<div id="outline-container-orga5a17fb" class="outline-4">
|
||||
<h4 id="orga5a17fb"><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-org5c633e9" class="outline-4">
|
||||
<h4 id="org5c633e9"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
||||
<div id="outline-container-org16d115e" class="outline-4">
|
||||
<h4 id="org16d115e"><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-org0b3e5ee" class="outline-3">
|
||||
<h3 id="org0b3e5ee"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orgf5afb65" class="outline-3">
|
||||
<h3 id="orgf5afb65"><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-org00c83ec" class="outline-2">
|
||||
<h2 id="org00c83ec"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org07d19e4" class="outline-2">
|
||||
<h2 id="org07d19e4"><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-org363902d" class="outline-3">
|
||||
<h3 id="org363902d"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-orgc478629" class="outline-3">
|
||||
<h3 id="orgc478629"><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-orgefe07c6" class="outline-4">
|
||||
<h4 id="orgefe07c6"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orgcd21980" class="outline-4">
|
||||
<h4 id="orgcd21980"><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-org5ec7b18" class="outline-4">
|
||||
<h4 id="org5ec7b18"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org2489026" class="outline-4">
|
||||
<h4 id="org2489026"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org6b81cf1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org934e761" 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-orgdd11e7f" class="outline-4">
|
||||
<h4 id="orgdd11e7f"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orgbe37215" class="outline-4">
|
||||
<h4 id="orgbe37215"><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-orgd9195f7" class="outline-3">
|
||||
<h3 id="orgd9195f7"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
||||
<div id="outline-container-org917a94d" class="outline-3">
|
||||
<h3 id="org917a94d"><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-org06ce891" class="outline-4">
|
||||
<h4 id="org06ce891"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org40150fc" class="outline-4">
|
||||
<h4 id="org40150fc"><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-orgc657039" class="outline-4">
|
||||
<h4 id="orgc657039"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org9ebdee0" class="outline-4">
|
||||
<h4 id="org9ebdee0"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orgc8262a1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgdd7aeff" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1175,8 +1175,8 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org735acdd" class="outline-4">
|
||||
<h4 id="org735acdd"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-orgf4604c1" class="outline-4">
|
||||
<h4 id="orgf4604c1"><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-org387c0d0" class="outline-3">
|
||||
<h3 id="org387c0d0"><span class="section-number-3">2.3</span> Electron-nucleus distances</h3>
|
||||
<div id="outline-container-orgc1f372c" class="outline-3">
|
||||
<h3 id="orgc1f372c"><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-org0370976" class="outline-4">
|
||||
<h4 id="org0370976"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org4367135" class="outline-4">
|
||||
<h4 id="org4367135"><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-orge821fc5" class="outline-4">
|
||||
<h4 id="orge821fc5"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-org354a42b" class="outline-4">
|
||||
<h4 id="org354a42b"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="orgcbf26a1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb2bfd1a" 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-orgdf56b12" class="outline-4">
|
||||
<h4 id="orgdf56b12"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-orgbab3fd7" class="outline-4">
|
||||
<h4 id="orgbab3fd7"><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-org8e911e7" class="outline-3">
|
||||
<h3 id="org8e911e7"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
||||
<div id="outline-container-orge11eaec" class="outline-3">
|
||||
<h3 id="orge11eaec"><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-org7108667" class="outline-4">
|
||||
<h4 id="org7108667"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org0d77252" class="outline-4">
|
||||
<h4 id="org0d77252"><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-org326007f" class="outline-4">
|
||||
<h4 id="org326007f"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-orgfb08479" class="outline-4">
|
||||
<h4 id="orgfb08479"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="org6630ddc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge4ead82" 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-orgcd57a8c" class="outline-4">
|
||||
<h4 id="orgcd57a8c"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-org2812ec4" class="outline-4">
|
||||
<h4 id="org2812ec4"><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-orgdd6a0f6" class="outline-3">
|
||||
<h3 id="orgdd6a0f6"><span class="section-number-3">2.5</span> Generate initial coordinates</h3>
|
||||
<div id="outline-container-org05eb7d7" class="outline-3">
|
||||
<h3 id="org05eb7d7"><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: 2024-02-23 Fri 23:19</p>
|
||||
<p class="date">Created: 2024-02-26 Mon 08:24</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>
|
||||
<!-- 2024-02-23 Fri 23:19 -->
|
||||
<!-- 2024-02-26 Mon 08:24 -->
|
||||
<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="#org45ef013">-</a></li>
|
||||
<li><a href="#org0dcaf45">1. Decoding errors</a></li>
|
||||
<li><a href="#orgd25875b">2. Data structure in context</a></li>
|
||||
<li><a href="#org346e7bc">3. Updating errors in the context</a></li>
|
||||
<li><a href="#orgdeb468f">4. Get the error</a></li>
|
||||
<li><a href="#org21a52c8">5. Failing</a></li>
|
||||
<li><a href="#orgb6d8813">6. Last error</a>
|
||||
<li><a href="#org039b16c">-</a></li>
|
||||
<li><a href="#org2a4fce1">1. Decoding errors</a></li>
|
||||
<li><a href="#org08709b1">2. Data structure in context</a></li>
|
||||
<li><a href="#org7e33578">3. Updating errors in the context</a></li>
|
||||
<li><a href="#orge8ebef3">4. Get the error</a></li>
|
||||
<li><a href="#org0ab6e03">5. Failing</a></li>
|
||||
<li><a href="#org0bab464">6. Last error</a>
|
||||
<ul>
|
||||
<li><a href="#orgf5c1819">6.1. Fortran inteface</a></li>
|
||||
<li><a href="#org3d99be4">6.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd2c4f4c">7. Helper functions for debugging</a>
|
||||
<li><a href="#orgbc91654">7. Helper functions for debugging</a>
|
||||
<ul>
|
||||
<li><a href="#org8d59c49">7.1. Fortran inteface</a></li>
|
||||
<li><a href="#orgca775fe">7.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org45ef013" class="outline-2">
|
||||
<h2 id="org45ef013">-</h2>
|
||||
<div class="outline-text-2" id="text-org45ef013">
|
||||
<div id="outline-container-org039b16c" class="outline-2">
|
||||
<h2 id="org039b16c">-</h2>
|
||||
<div class="outline-text-2" id="text-org039b16c">
|
||||
<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="orge8621f5"><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="org7eed99e"><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="org50376d7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc459e10" 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-org0dcaf45" class="outline-2">
|
||||
<h2 id="org0dcaf45"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-org2a4fce1" class="outline-2">
|
||||
<h2 id="org2a4fce1"><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-orgd25875b" class="outline-2">
|
||||
<h2 id="orgd25875b"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-org08709b1" class="outline-2">
|
||||
<h2 id="org08709b1"><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-org346e7bc" class="outline-2">
|
||||
<h2 id="org346e7bc"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div id="outline-container-org7e33578" class="outline-2">
|
||||
<h2 id="org7e33578"><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-orgdeb468f" class="outline-2">
|
||||
<h2 id="orgdeb468f"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div id="outline-container-orge8ebef3" class="outline-2">
|
||||
<h2 id="orge8ebef3"><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-org21a52c8" class="outline-2">
|
||||
<h2 id="org21a52c8"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div id="outline-container-org0ab6e03" class="outline-2">
|
||||
<h2 id="org0ab6e03"><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-orgb6d8813" class="outline-2">
|
||||
<h2 id="orgb6d8813"><span class="section-number-2">6</span> Last error</h2>
|
||||
<div id="outline-container-org0bab464" class="outline-2">
|
||||
<h2 id="org0bab464"><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-orgf5c1819" class="outline-3">
|
||||
<h3 id="orgf5c1819"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-org3d99be4" class="outline-3">
|
||||
<h3 id="org3d99be4"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd2c4f4c" class="outline-2">
|
||||
<h2 id="orgd2c4f4c"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
||||
<div id="outline-container-orgbc91654" class="outline-2">
|
||||
<h2 id="orgbc91654"><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-org8d59c49" class="outline-3">
|
||||
<h3 id="org8d59c49"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-orgca775fe" class="outline-3">
|
||||
<h3 id="orgca775fe"><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: 2024-02-23 Fri 23:19</p>
|
||||
<p class="date">Created: 2024-02-26 Mon 08:24</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>
|
||||
<!-- 2024-02-23 Fri 23:19 -->
|
||||
<!-- 2024-02-26 Mon 08:24 -->
|
||||
<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="#org1513ec0">1. Overlap matrix in the MO basis</a>
|
||||
<li><a href="#orgac014fe">1. Overlap matrix in the MO basis</a>
|
||||
<ul>
|
||||
<li><a href="#org2369222">1.1. Python</a></li>
|
||||
<li><a href="#orgad5fde0">1.2. C</a></li>
|
||||
<li><a href="#orgf102953">1.3. Fortran</a></li>
|
||||
<li><a href="#org6a9fe84">1.1. Python</a></li>
|
||||
<li><a href="#org5874187">1.2. C</a></li>
|
||||
<li><a href="#org95d497b">1.3. Fortran</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org78be77a">2. Fortran</a>
|
||||
<li><a href="#orgfab8044">2. Fortran</a>
|
||||
<ul>
|
||||
<li><a href="#org3542229">2.1. Checking errors</a></li>
|
||||
<li><a href="#org015e096">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
<li><a href="#org4a8436e">2.1. Checking errors</a></li>
|
||||
<li><a href="#org6e86986">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1513ec0" class="outline-2">
|
||||
<h2 id="org1513ec0"><span class="section-number-2">1</span> Overlap matrix in the MO basis</h2>
|
||||
<div id="outline-container-orgac014fe" class="outline-2">
|
||||
<h2 id="orgac014fe"><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-org2369222" class="outline-3">
|
||||
<h3 id="org2369222"><span class="section-number-3">1.1</span> Python</h3>
|
||||
<div id="outline-container-org6a9fe84" class="outline-3">
|
||||
<h3 id="org6a9fe84"><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-orgad5fde0" class="outline-3">
|
||||
<h3 id="orgad5fde0"><span class="section-number-3">1.2</span> C</h3>
|
||||
<div id="outline-container-org5874187" class="outline-3">
|
||||
<h3 id="org5874187"><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-orgf102953" class="outline-3">
|
||||
<h3 id="orgf102953"><span class="section-number-3">1.3</span> Fortran</h3>
|
||||
<div id="outline-container-org95d497b" class="outline-3">
|
||||
<h3 id="org95d497b"><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-org78be77a" class="outline-2">
|
||||
<h2 id="org78be77a"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div id="outline-container-orgfab8044" class="outline-2">
|
||||
<h2 id="orgfab8044"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org3542229" class="outline-3">
|
||||
<h3 id="org3542229"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div id="outline-container-org4a8436e" class="outline-3">
|
||||
<h3 id="org4a8436e"><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="org0570565"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<pre class="src src-f90" id="orgc3bcf40"><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-org015e096" class="outline-3">
|
||||
<h3 id="org015e096"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div id="outline-container-org6e86986" class="outline-3">
|
||||
<h3 id="org6e86986"><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: 2024-02-23 Fri 23:19</p>
|
||||
<p class="date">Created: 2024-02-26 Mon 08:24</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>
|
||||
<!-- 2024-02-23 Fri 23:19 -->
|
||||
<!-- 2024-02-26 Mon 08:24 -->
|
||||
<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="#org68b42d6">1. Context</a>
|
||||
<li><a href="#org2708db6">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org69d2d69">1.1. Data structure</a></li>
|
||||
<li><a href="#org4f3eda7">1.2. Access functions</a></li>
|
||||
<li><a href="#org32627ca">1.1. Data structure</a></li>
|
||||
<li><a href="#org6a464c9">1.2. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5b166be">2. Computation</a>
|
||||
<li><a href="#orgc86a680">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org98c37c4">2.1. Kinetic energy</a>
|
||||
<li><a href="#orgf61ab8d">2.1. Kinetic energy</a>
|
||||
<ul>
|
||||
<li><a href="#org2568c5c">2.1.1. Get</a></li>
|
||||
<li><a href="#org941b9de">2.1.2. Provide</a></li>
|
||||
<li><a href="#org1dc95e6">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org2c6a5b3">2.1.4. Test</a></li>
|
||||
<li><a href="#org95ca274">2.1.1. Get</a></li>
|
||||
<li><a href="#orgf55c46f">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgebf8142">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#orgda78f85">2.1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf33d946">2.2. Potential energy</a>
|
||||
<li><a href="#org70ea357">2.2. Potential energy</a>
|
||||
<ul>
|
||||
<li><a href="#org5b8237a">2.2.1. Get</a></li>
|
||||
<li><a href="#org0086789">2.2.2. Provide</a></li>
|
||||
<li><a href="#org6035496">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#orgc894561">2.2.4. Test</a></li>
|
||||
<li><a href="#orgc1b08b5">2.2.1. Get</a></li>
|
||||
<li><a href="#orga00793f">2.2.2. Provide</a></li>
|
||||
<li><a href="#org6e8351c">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org35dba30">2.2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org564476c">2.3. Local energy</a>
|
||||
<li><a href="#org0526c2a">2.3. Local energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgaaf9442">2.3.1. Get</a></li>
|
||||
<li><a href="#orgd3d8425">2.3.2. Provide</a></li>
|
||||
<li><a href="#org281b1f1">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#orgbde1377">2.3.4. Test</a></li>
|
||||
<li><a href="#orga4feaac">2.3.1. Get</a></li>
|
||||
<li><a href="#org90f1f0c">2.3.2. Provide</a></li>
|
||||
<li><a href="#org5d2bf2f">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#org1471637">2.3.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7a1b1c2">2.4. Drift vector</a>
|
||||
<li><a href="#org3623566">2.4. Drift vector</a>
|
||||
<ul>
|
||||
<li><a href="#org8e49022">2.4.1. Get</a></li>
|
||||
<li><a href="#orgb442ecf">2.4.2. Provide</a></li>
|
||||
<li><a href="#org0e8fff0">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#orgdb8782b">2.4.4. Test</a></li>
|
||||
<li><a href="#org73ad4db">2.4.1. Get</a></li>
|
||||
<li><a href="#orgb082e90">2.4.2. Provide</a></li>
|
||||
<li><a href="#org4d73f17">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org02d2afc">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-org68b42d6" class="outline-2">
|
||||
<h2 id="org68b42d6"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org2708db6" class="outline-2">
|
||||
<h2 id="org2708db6"><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-org69d2d69" class="outline-3">
|
||||
<h3 id="org69d2d69"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org32627ca" class="outline-3">
|
||||
<h3 id="org32627ca"><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-org4f3eda7" class="outline-3">
|
||||
<h3 id="org4f3eda7"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org6a464c9" class="outline-3">
|
||||
<h3 id="org6a464c9"><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-org5b166be" class="outline-2">
|
||||
<h2 id="org5b166be"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orgc86a680" class="outline-2">
|
||||
<h2 id="orgc86a680"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org98c37c4" class="outline-3">
|
||||
<h3 id="org98c37c4"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div id="outline-container-orgf61ab8d" class="outline-3">
|
||||
<h3 id="orgf61ab8d"><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-org2568c5c" class="outline-4">
|
||||
<h4 id="org2568c5c"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org95ca274" class="outline-4">
|
||||
<h4 id="org95ca274"><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-org941b9de" class="outline-4">
|
||||
<h4 id="org941b9de"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-orgf55c46f" class="outline-4">
|
||||
<h4 id="orgf55c46f"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1dc95e6" class="outline-4">
|
||||
<h4 id="org1dc95e6"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
||||
<div id="outline-container-orgebf8142" class="outline-4">
|
||||
<h4 id="orgebf8142"><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="org4daffd1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9cdbafc" 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-org2c6a5b3" class="outline-4">
|
||||
<h4 id="org2c6a5b3"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
<div id="outline-container-orgda78f85" class="outline-4">
|
||||
<h4 id="orgda78f85"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgf33d946" class="outline-3">
|
||||
<h3 id="orgf33d946"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div id="outline-container-org70ea357" class="outline-3">
|
||||
<h3 id="org70ea357"><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-org5b8237a" class="outline-4">
|
||||
<h4 id="org5b8237a"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgc1b08b5" class="outline-4">
|
||||
<h4 id="orgc1b08b5"><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-org0086789" class="outline-4">
|
||||
<h4 id="org0086789"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-orga00793f" class="outline-4">
|
||||
<h4 id="orga00793f"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6035496" class="outline-4">
|
||||
<h4 id="org6035496"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
||||
<div id="outline-container-org6e8351c" class="outline-4">
|
||||
<h4 id="org6e8351c"><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="org243dea8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb34414a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -977,12 +977,12 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc894561" class="outline-4">
|
||||
<h4 id="orgc894561"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
<div id="outline-container-org35dba30" class="outline-4">
|
||||
<h4 id="org35dba30"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org564476c" class="outline-3">
|
||||
<h3 id="org564476c"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div id="outline-container-org0526c2a" class="outline-3">
|
||||
<h3 id="org0526c2a"><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-orgaaf9442" class="outline-4">
|
||||
<h4 id="orgaaf9442"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-orga4feaac" class="outline-4">
|
||||
<h4 id="orga4feaac"><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-orgd3d8425" class="outline-4">
|
||||
<h4 id="orgd3d8425"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-org90f1f0c" class="outline-4">
|
||||
<h4 id="org90f1f0c"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org281b1f1" class="outline-4">
|
||||
<h4 id="org281b1f1"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
||||
<div id="outline-container-org5d2bf2f" class="outline-4">
|
||||
<h4 id="org5d2bf2f"><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="org7e47037" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3cd9ac0" 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-orgbde1377" class="outline-4">
|
||||
<h4 id="orgbde1377"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
<div id="outline-container-org1471637" class="outline-4">
|
||||
<h4 id="org1471637"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org7a1b1c2" class="outline-3">
|
||||
<h3 id="org7a1b1c2"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div id="outline-container-org3623566" class="outline-3">
|
||||
<h3 id="org3623566"><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-org8e49022" class="outline-4">
|
||||
<h4 id="org8e49022"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org73ad4db" class="outline-4">
|
||||
<h4 id="org73ad4db"><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-orgb442ecf" class="outline-4">
|
||||
<h4 id="orgb442ecf"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
<div id="outline-container-orgb082e90" class="outline-4">
|
||||
<h4 id="orgb082e90"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0e8fff0" class="outline-4">
|
||||
<h4 id="org0e8fff0"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
||||
<div id="outline-container-org4d73f17" class="outline-4">
|
||||
<h4 id="org4d73f17"><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="org684f36c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgbad5cd5" 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-orgdb8782b" class="outline-4">
|
||||
<h4 id="orgdb8782b"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
<div id="outline-container-org02d2afc" class="outline-4">
|
||||
<h4 id="org02d2afc"><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: 2024-02-23 Fri 23:19</p>
|
||||
<p class="date">Created: 2024-02-26 Mon 08:24</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>
|
||||
<!-- 2024-02-23 Fri 23:19 -->
|
||||
<!-- 2024-02-26 Mon 08:24 -->
|
||||
<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="#org4cfb5cb">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org17a378a">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orgb4d5ea6">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#orgb615fcc">4. Get the size of a memory block</a></li>
|
||||
<li><a href="#org7e832f0">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#orgdf74a4f">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#org4cb5d11">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#orgda3c136">4. Get the size of a memory block</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4cfb5cb" class="outline-2">
|
||||
<h2 id="org4cfb5cb"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div id="outline-container-org7e832f0" class="outline-2">
|
||||
<h2 id="org7e832f0"><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-org17a378a" class="outline-2">
|
||||
<h2 id="org17a378a"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div id="outline-container-orgdf74a4f" class="outline-2">
|
||||
<h2 id="orgdf74a4f"><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-orgb4d5ea6" class="outline-2">
|
||||
<h2 id="orgb4d5ea6"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-org4cb5d11" class="outline-2">
|
||||
<h2 id="org4cb5d11"><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-orgb615fcc" class="outline-2">
|
||||
<h2 id="orgb615fcc"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
||||
<div id="outline-container-orgda3c136" class="outline-2">
|
||||
<h2 id="orgda3c136"><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: 2024-02-23 Fri 23:19</p>
|
||||
<p class="date">Created: 2024-02-26 Mon 08:24</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
192
qmckl_mo.html
192
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>
|
||||
<!-- 2024-02-23 Fri 23:19 -->
|
||||
<!-- 2024-02-26 Mon 08:24 -->
|
||||
<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,72 +346,72 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgf93e2e7">1. Context</a>
|
||||
<li><a href="#org3e0c7a6">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org28c30ae">1.1. Data structure</a></li>
|
||||
<li><a href="#orgc26e416">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org0528859">1.3. Cusp adjsutment functions</a></li>
|
||||
<li><a href="#org391fcd3">1.4. Access functions</a>
|
||||
<li><a href="#orgac1cd0c">1.1. Data structure</a></li>
|
||||
<li><a href="#orgea6fd14">1.2. Initialization functions</a></li>
|
||||
<li><a href="#orgc4d0340">1.3. Cusp adjsutment functions</a></li>
|
||||
<li><a href="#orgd4fc9ad">1.4. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org035f017">1.4.1. Fortran interfaces</a></li>
|
||||
<li><a href="#orge0176f0">1.4.1. Fortran interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org37fbd21">1.5. Update</a>
|
||||
<li><a href="#orga4c0731">1.5. Update</a>
|
||||
<ul>
|
||||
<li><a href="#orgc62f82c">1.5.1. Fortran interface</a></li>
|
||||
<li><a href="#org8aa1021">1.5.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd93b5a8">2. Computation</a>
|
||||
<li><a href="#org8ac351b">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgbb14cc6">2.1. Parameters of the cusp-correction functions</a></li>
|
||||
<li><a href="#orgbc3b5ac">2.2. Computation of MOs: values only</a>
|
||||
<li><a href="#org2ef37bb">2.1. Parameters of the cusp-correction functions</a></li>
|
||||
<li><a href="#org2202147">2.2. Computation of MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#orgd52369b">2.2.1. Get</a></li>
|
||||
<li><a href="#org2df5c23">2.2.2. Provide</a></li>
|
||||
<li><a href="#org5018d09">2.2.3. Compute</a></li>
|
||||
<li><a href="#org35b028b">2.2.4. HPC version</a>
|
||||
<li><a href="#orgce0433c">2.2.1. Get</a></li>
|
||||
<li><a href="#org545e357">2.2.2. Provide</a></li>
|
||||
<li><a href="#org53624eb">2.2.3. Compute</a></li>
|
||||
<li><a href="#orgabfa1cf">2.2.4. HPC version</a>
|
||||
<ul>
|
||||
<li><a href="#org4c4ef02">2.2.4.1. Single-precision</a></li>
|
||||
<li><a href="#org6feb925">2.2.4.2. Double-precision</a></li>
|
||||
<li><a href="#orgec524ec">2.2.4.1. Single-precision</a></li>
|
||||
<li><a href="#org2399b96">2.2.4.2. Double-precision</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge1681d0">2.3. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<li><a href="#orgc4cfe72">2.3. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#orge34ee76">2.3.1. Get</a></li>
|
||||
<li><a href="#org70851b9">2.3.2. Provide</a></li>
|
||||
<li><a href="#orgab4f0c3">2.3.3. Compute</a></li>
|
||||
<li><a href="#org8a42e2a">2.3.1. Get</a></li>
|
||||
<li><a href="#org4ee0335">2.3.2. Provide</a></li>
|
||||
<li><a href="#org9d6444c">2.3.3. Compute</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga082f44">2.4. Computation of cusp-corrected MOs: values only</a>
|
||||
<li><a href="#orgb1c524a">2.4. Computation of cusp-corrected MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#org4bf698a">2.4.1. Compute</a></li>
|
||||
<li><a href="#orgea8ef9a">2.4.2. HPC version</a></li>
|
||||
<li><a href="#orgc0bb798">2.4.1. Compute</a></li>
|
||||
<li><a href="#org455412b">2.4.2. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf24c937">2.5. Computation of cusp-corrected MOs: values, gradient, Laplacian</a>
|
||||
<li><a href="#org3efea1e">2.5. Computation of cusp-corrected MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#orga7f260f">2.5.1. Compute</a></li>
|
||||
<li><a href="#org4b75b2d">2.5.2. HPC version</a></li>
|
||||
<li><a href="#org85f4de1">2.5.1. Compute</a></li>
|
||||
<li><a href="#org04a4e52">2.5.2. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org78c3eb9">2.6. Rescaling of MO coefficients</a>
|
||||
<li><a href="#orgd324ae6">2.6. Rescaling of MO coefficients</a>
|
||||
<ul>
|
||||
<li><a href="#orgbf9c0a9">2.6.1. Fortran interface</a></li>
|
||||
<li><a href="#org87918d8">2.6.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9bbe8f7">2.7. Test</a></li>
|
||||
<li><a href="#org8e78095">2.7. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf93e2e7" class="outline-2">
|
||||
<h2 id="orgf93e2e7"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org3e0c7a6" class="outline-2">
|
||||
<h2 id="org3e0c7a6"><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:
|
||||
@ -490,8 +490,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org28c30ae" class="outline-3">
|
||||
<h3 id="org28c30ae"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgac1cd0c" class="outline-3">
|
||||
<h3 id="orgac1cd0c"><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> {
|
||||
@ -548,8 +548,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc26e416" class="outline-3">
|
||||
<h3 id="orgc26e416"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgea6fd14" class="outline-3">
|
||||
<h3 id="orgea6fd14"><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
|
||||
@ -570,8 +570,8 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0528859" class="outline-3">
|
||||
<h3 id="org0528859"><span class="section-number-3">1.3</span> Cusp adjsutment functions</h3>
|
||||
<div id="outline-container-orgc4d0340" class="outline-3">
|
||||
<h3 id="orgc4d0340"><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
|
||||
@ -586,8 +586,8 @@ of the non-\(s\) AOs at the center.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org391fcd3" class="outline-3">
|
||||
<h3 id="org391fcd3"><span class="section-number-3">1.4</span> Access functions</h3>
|
||||
<div id="outline-container-orgd4fc9ad" class="outline-3">
|
||||
<h3 id="orgd4fc9ad"><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
|
||||
@ -600,13 +600,13 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org035f017" class="outline-4">
|
||||
<h4 id="org035f017"><span class="section-number-4">1.4.1</span> Fortran interfaces</h4>
|
||||
<div id="outline-container-orge0176f0" class="outline-4">
|
||||
<h4 id="orge0176f0"><span class="section-number-4">1.4.1</span> Fortran interfaces</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org37fbd21" class="outline-3">
|
||||
<h3 id="org37fbd21"><span class="section-number-3">1.5</span> Update</h3>
|
||||
<div id="outline-container-orga4c0731" class="outline-3">
|
||||
<h3 id="orga4c0731"><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
|
||||
@ -633,25 +633,25 @@ calculation. If the integer is non-zero, the MO will be kept.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc62f82c" class="outline-4">
|
||||
<h4 id="orgc62f82c"><span class="section-number-4">1.5.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-org8aa1021" class="outline-4">
|
||||
<h4 id="org8aa1021"><span class="section-number-4">1.5.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd93b5a8" class="outline-2">
|
||||
<h2 id="orgd93b5a8"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org8ac351b" class="outline-2">
|
||||
<h2 id="org8ac351b"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgbb14cc6" class="outline-3">
|
||||
<h3 id="orgbb14cc6"><span class="section-number-3">2.1</span> Parameters of the cusp-correction functions</h3>
|
||||
<div id="outline-container-org2ef37bb" class="outline-3">
|
||||
<h3 id="org2ef37bb"><span class="section-number-3">2.1</span> Parameters of the cusp-correction functions</h3>
|
||||
</div>
|
||||
<div id="outline-container-orgbc3b5ac" class="outline-3">
|
||||
<h3 id="orgbc3b5ac"><span class="section-number-3">2.2</span> Computation of MOs: values only</h3>
|
||||
<div id="outline-container-org2202147" class="outline-3">
|
||||
<h3 id="org2202147"><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-orgd52369b" class="outline-4">
|
||||
<h4 id="orgd52369b"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgce0433c" class="outline-4">
|
||||
<h4 id="orgce0433c"><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>
|
||||
@ -675,8 +675,8 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2df5c23" class="outline-4">
|
||||
<h4 id="org2df5c23"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org545e357" class="outline-4">
|
||||
<h4 id="org545e357"><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>);
|
||||
@ -761,10 +761,10 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5018d09" class="outline-4">
|
||||
<h4 id="org5018d09"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div id="outline-container-org53624eb" class="outline-4">
|
||||
<h4 id="org53624eb"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org937185a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0e5cd48" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -919,8 +919,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org35b028b" class="outline-4">
|
||||
<h4 id="org35b028b"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
||||
<div id="outline-container-orgabfa1cf" class="outline-4">
|
||||
<h4 id="orgabfa1cf"><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
|
||||
@ -947,8 +947,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org4c4ef02" class="outline-5">
|
||||
<h5 id="org4c4ef02"><span class="section-number-5">2.2.4.1</span> Single-precision</h5>
|
||||
<div id="outline-container-orgec524ec" class="outline-5">
|
||||
<h5 id="orgec524ec"><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
|
||||
@ -1069,8 +1069,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6feb925" class="outline-5">
|
||||
<h5 id="org6feb925"><span class="section-number-5">2.2.4.2</span> Double-precision</h5>
|
||||
<div id="outline-container-org2399b96" class="outline-5">
|
||||
<h5 id="org2399b96"><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
|
||||
@ -1187,12 +1187,12 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge1681d0" class="outline-3">
|
||||
<h3 id="orge1681d0"><span class="section-number-3">2.3</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-orgc4cfe72" class="outline-3">
|
||||
<h3 id="orgc4cfe72"><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-orge34ee76" class="outline-4">
|
||||
<h4 id="orge34ee76"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org8a42e2a" class="outline-4">
|
||||
<h4 id="org8a42e2a"><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>
|
||||
@ -1216,8 +1216,8 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org70851b9" class="outline-4">
|
||||
<h4 id="org70851b9"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-org4ee0335" class="outline-4">
|
||||
<h4 id="org4ee0335"><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>);
|
||||
@ -1301,10 +1301,10 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgab4f0c3" class="outline-4">
|
||||
<h4 id="orgab4f0c3"><span class="section-number-4">2.3.3</span> Compute</h4>
|
||||
<div id="outline-container-org9d6444c" class="outline-4">
|
||||
<h4 id="org9d6444c"><span class="section-number-4">2.3.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-3">
|
||||
<table id="org6941806" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge55eb7a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1478,14 +1478,14 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga082f44" class="outline-3">
|
||||
<h3 id="orga082f44"><span class="section-number-3">2.4</span> Computation of cusp-corrected MOs: values only</h3>
|
||||
<div id="outline-container-orgb1c524a" class="outline-3">
|
||||
<h3 id="orgb1c524a"><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-org4bf698a" class="outline-4">
|
||||
<h4 id="org4bf698a"><span class="section-number-4">2.4.1</span> Compute</h4>
|
||||
<div id="outline-container-orgc0bb798" class="outline-4">
|
||||
<h4 id="orgc0bb798"><span class="section-number-4">2.4.1</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<table id="org3b85cbb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgfe8b951" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1724,8 +1724,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgea8ef9a" class="outline-4">
|
||||
<h4 id="orgea8ef9a"><span class="section-number-4">2.4.2</span> HPC version</h4>
|
||||
<div id="outline-container-org455412b" class="outline-4">
|
||||
<h4 id="org455412b"><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
|
||||
@ -1863,14 +1863,14 @@ IVDEP
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf24c937" class="outline-3">
|
||||
<h3 id="orgf24c937"><span class="section-number-3">2.5</span> Computation of cusp-corrected MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-org3efea1e" class="outline-3">
|
||||
<h3 id="org3efea1e"><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-orga7f260f" class="outline-4">
|
||||
<h4 id="orga7f260f"><span class="section-number-4">2.5.1</span> Compute</h4>
|
||||
<div id="outline-container-org85f4de1" class="outline-4">
|
||||
<h4 id="org85f4de1"><span class="section-number-4">2.5.1</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-5-1">
|
||||
<table id="orge1a64b8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9b6b768" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2166,8 +2166,8 @@ IVDEP
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4b75b2d" class="outline-4">
|
||||
<h4 id="org4b75b2d"><span class="section-number-4">2.5.2</span> HPC version</h4>
|
||||
<div id="outline-container-org04a4e52" class="outline-4">
|
||||
<h4 id="org04a4e52"><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
|
||||
@ -2366,8 +2366,8 @@ IVDEP
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org78c3eb9" class="outline-3">
|
||||
<h3 id="org78c3eb9"><span class="section-number-3">2.6</span> Rescaling of MO coefficients</h3>
|
||||
<div id="outline-container-orgd324ae6" class="outline-3">
|
||||
<h3 id="orgd324ae6"><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
|
||||
@ -2384,19 +2384,19 @@ correct range.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbf9c0a9" class="outline-4">
|
||||
<h4 id="orgbf9c0a9"><span class="section-number-4">2.6.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-org87918d8" class="outline-4">
|
||||
<h4 id="org87918d8"><span class="section-number-4">2.6.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9bbe8f7" class="outline-3">
|
||||
<h3 id="org9bbe8f7"><span class="section-number-3">2.7</span> Test</h3>
|
||||
<div id="outline-container-org8e78095" class="outline-3">
|
||||
<h3 id="org8e78095"><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: 2024-02-23 Fri 23:19</p>
|
||||
<p class="date">Created: 2024-02-26 Mon 08:24</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>
|
||||
<!-- 2024-02-23 Fri 23:19 -->
|
||||
<!-- 2024-02-26 Mon 08:24 -->
|
||||
<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="#org61341fc">1. Context</a>
|
||||
<li><a href="#org2b83784">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org855f691">1.1. Data structure</a></li>
|
||||
<li><a href="#org1905264">1.2. Access functions</a></li>
|
||||
<li><a href="#org15586ec">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org55feb31">1.4. Test</a></li>
|
||||
<li><a href="#orgaaf65c3">1.1. Data structure</a></li>
|
||||
<li><a href="#orgecc4908">1.2. Access functions</a></li>
|
||||
<li><a href="#orgc3a9363">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org23c0e4c">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2ea5e92">2. Computation</a>
|
||||
<li><a href="#org9d36e99">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org91a0927">2.1. Nucleus-nucleus distances</a>
|
||||
<li><a href="#orgb4d210b">2.1. Nucleus-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org4136b8a">2.1.1. Get</a></li>
|
||||
<li><a href="#org81ac297">2.1.2. Compute</a></li>
|
||||
<li><a href="#org38cb6bd">2.1.3. Test</a></li>
|
||||
<li><a href="#org7fab01d">2.1.1. Get</a></li>
|
||||
<li><a href="#orgec0ce68">2.1.2. Compute</a></li>
|
||||
<li><a href="#org6dba329">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org37adff7">2.2. Nuclear repulsion energy</a>
|
||||
<li><a href="#org29a0e70">2.2. Nuclear repulsion energy</a>
|
||||
<ul>
|
||||
<li><a href="#org1023049">2.2.1. Get</a></li>
|
||||
<li><a href="#orgdbbe9a3">2.2.2. Compute</a></li>
|
||||
<li><a href="#org0696e2d">2.2.3. Test</a></li>
|
||||
<li><a href="#org173c662">2.2.1. Get</a></li>
|
||||
<li><a href="#org48fe452">2.2.2. Compute</a></li>
|
||||
<li><a href="#orge3cc6cf">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-org61341fc" class="outline-2">
|
||||
<h2 id="org61341fc"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org2b83784" class="outline-2">
|
||||
<h2 id="org2b83784"><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-org855f691" class="outline-3">
|
||||
<h3 id="org855f691"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgaaf65c3" class="outline-3">
|
||||
<h3 id="orgaaf65c3"><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-org1905264" class="outline-3">
|
||||
<h3 id="org1905264"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgecc4908" class="outline-3">
|
||||
<h3 id="orgecc4908"><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-org15586ec" class="outline-3">
|
||||
<h3 id="org15586ec"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgc3a9363" class="outline-3">
|
||||
<h3 id="orgc3a9363"><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-org55feb31" class="outline-3">
|
||||
<h3 id="org55feb31"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org23c0e4c" class="outline-3">
|
||||
<h3 id="org23c0e4c"><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-org2ea5e92" class="outline-2">
|
||||
<h2 id="org2ea5e92"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org9d36e99" class="outline-2">
|
||||
<h2 id="org9d36e99"><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-org91a0927" class="outline-3">
|
||||
<h3 id="org91a0927"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div id="outline-container-orgb4d210b" class="outline-3">
|
||||
<h3 id="orgb4d210b"><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-org4136b8a" class="outline-4">
|
||||
<h4 id="org4136b8a"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org7fab01d" class="outline-4">
|
||||
<h4 id="org7fab01d"><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-org81ac297" class="outline-4">
|
||||
<h4 id="org81ac297"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-orgec0ce68" class="outline-4">
|
||||
<h4 id="orgec0ce68"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org73cca9a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org205b2a5" 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-org38cb6bd" class="outline-4">
|
||||
<h4 id="org38cb6bd"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org6dba329" class="outline-4">
|
||||
<h4 id="org6dba329"><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-org37adff7" class="outline-3">
|
||||
<h3 id="org37adff7"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
||||
<div id="outline-container-org29a0e70" class="outline-3">
|
||||
<h3 id="org29a0e70"><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-org1023049" class="outline-4">
|
||||
<h4 id="org1023049"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org173c662" class="outline-4">
|
||||
<h4 id="org173c662"><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-orgdbbe9a3" class="outline-4">
|
||||
<h4 id="orgdbbe9a3"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org48fe452" class="outline-4">
|
||||
<h4 id="org48fe452"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orgdf0efd7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org02e9121" 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-org0696e2d" class="outline-4">
|
||||
<h4 id="org0696e2d"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-orge3cc6cf" class="outline-4">
|
||||
<h4 id="orge3cc6cf"><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: 2024-02-23 Fri 23:19</p>
|
||||
<p class="date">Created: 2024-02-26 Mon 08:24</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>
|
||||
<!-- 2024-02-23 Fri 23:19 -->
|
||||
<!-- 2024-02-26 Mon 08:24 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>‎</title>
|
||||
@ -345,18 +345,18 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org326a0f5">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org584bbf1">2. Precision</a></li>
|
||||
<li><a href="#org3b264b7">3. Range</a></li>
|
||||
<li><a href="#org5205745">4. Helper functions</a>
|
||||
<li><a href="#org45af25b">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org3f4b3f8">2. Precision</a></li>
|
||||
<li><a href="#org097322a">3. Range</a></li>
|
||||
<li><a href="#org58133ba">4. Helper functions</a>
|
||||
<ul>
|
||||
<li><a href="#org0bbb65e">4.1. Epsilon</a></li>
|
||||
<li><a href="#org172962b">4.2. Testing the number of unchanged bits</a></li>
|
||||
<li><a href="#orgc9b8bd5">4.1. Epsilon</a></li>
|
||||
<li><a href="#org9ac0090">4.2. Testing the number of unchanged bits</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgcea57c7">5. Approximate functions</a>
|
||||
<li><a href="#orge0f3e84">5. Approximate functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgfc1d048">5.1. Exponential</a></li>
|
||||
<li><a href="#org3ca01e7">5.1. Exponential</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -366,8 +366,8 @@ for the JavaScript code in this tag.
|
||||
3+TITLE: Numerical precision
|
||||
</p>
|
||||
|
||||
<div id="outline-container-org326a0f5" class="outline-2">
|
||||
<h2 id="org326a0f5"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-org45af25b" class="outline-2">
|
||||
<h2 id="org45af25b"><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
|
||||
@ -378,7 +378,7 @@ Arithmetic (IEEE 754),
|
||||
sign bit) and <i>range</i> refers to the number of exponent bits.
|
||||
</p>
|
||||
|
||||
<table id="org85a8078" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb7dfaa0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -422,8 +422,8 @@ integer. The update functions return <code>QMCKL_SUCCESS</code> or
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org584bbf1" class="outline-2">
|
||||
<h2 id="org584bbf1"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-org3f4b3f8" class="outline-2">
|
||||
<h2 id="org3f4b3f8"><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
|
||||
@ -510,8 +510,8 @@ numerical precision in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3b264b7" class="outline-2">
|
||||
<h2 id="org3b264b7"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-org097322a" class="outline-2">
|
||||
<h2 id="org097322a"><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
|
||||
@ -586,12 +586,12 @@ range in a given context.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org5205745" class="outline-2">
|
||||
<h2 id="org5205745"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-org58133ba" class="outline-2">
|
||||
<h2 id="org58133ba"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org0bbb65e" class="outline-3">
|
||||
<h3 id="org0bbb65e"><span class="section-number-3">4.1</span> Epsilon</h3>
|
||||
<div id="outline-container-orgc9b8bd5" class="outline-3">
|
||||
<h3 id="orgc9b8bd5"><span class="section-number-3">4.1</span> Epsilon</h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
<code>qmckl_get_numprec_epsilon</code> returns \(\epsilon = 2^{1-n}\) where <code>n</code> is the precision.
|
||||
@ -610,8 +610,8 @@ We need to remove the sign bit from the precision.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org172962b" class="outline-3">
|
||||
<h3 id="org172962b"><span class="section-number-3">4.2</span> Testing the number of unchanged bits</h3>
|
||||
<div id="outline-container-org9ac0090" class="outline-3">
|
||||
<h3 id="org9ac0090"><span class="section-number-3">4.2</span> Testing the number of unchanged bits</h3>
|
||||
<div class="outline-text-3" id="text-4-2">
|
||||
<p>
|
||||
To test that a given approximation keeps a given number of bits
|
||||
@ -681,12 +681,12 @@ numbers differ.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcea57c7" class="outline-2">
|
||||
<h2 id="orgcea57c7"><span class="section-number-2">5</span> Approximate functions</h2>
|
||||
<div id="outline-container-orge0f3e84" class="outline-2">
|
||||
<h2 id="orge0f3e84"><span class="section-number-2">5</span> Approximate functions</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
</div>
|
||||
<div id="outline-container-orgfc1d048" class="outline-3">
|
||||
<h3 id="orgfc1d048"><span class="section-number-3">5.1</span> Exponential</h3>
|
||||
<div id="outline-container-org3ca01e7" class="outline-3">
|
||||
<h3 id="org3ca01e7"><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
|
||||
@ -741,7 +741,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: 2024-02-23 Fri 23:19</p>
|
||||
<p class="date">Created: 2024-02-26 Mon 08:24</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>
|
||||
<!-- 2024-02-23 Fri 23:19 -->
|
||||
<!-- 2024-02-26 Mon 08:24 -->
|
||||
<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="#org5082d8b">1. Context</a>
|
||||
<li><a href="#orgb2c21c9">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org97966a7">1.1. Data structure</a></li>
|
||||
<li><a href="#orgf2be607">1.2. Access functions</a>
|
||||
<li><a href="#orgb1e4b1e">1.1. Data structure</a></li>
|
||||
<li><a href="#orga9ccdf9">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org54e9c85">1.2.1. Number of points</a></li>
|
||||
<li><a href="#orgdf92420">1.2.2. Point coordinates</a></li>
|
||||
<li><a href="#org6c181d4">1.2.1. Number of points</a></li>
|
||||
<li><a href="#orgc5fe7aa">1.2.2. Point coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org85bf084">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org4861ac8">1.4. Test</a></li>
|
||||
<li><a href="#orgc2ec1f7">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgfefdb0f">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5082d8b" class="outline-2">
|
||||
<h2 id="org5082d8b"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgb2c21c9" class="outline-2">
|
||||
<h2 id="orgb2c21c9"><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-org97966a7" class="outline-3">
|
||||
<h3 id="org97966a7"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgb1e4b1e" class="outline-3">
|
||||
<h3 id="orgb1e4b1e"><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-orgf2be607" class="outline-3">
|
||||
<h3 id="orgf2be607"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orga9ccdf9" class="outline-3">
|
||||
<h3 id="orga9ccdf9"><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-org54e9c85" class="outline-4">
|
||||
<h4 id="org54e9c85"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div id="outline-container-org6c181d4" class="outline-4">
|
||||
<h4 id="org6c181d4"><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-orgdf92420" class="outline-4">
|
||||
<h4 id="orgdf92420"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div id="outline-container-orgc5fe7aa" class="outline-4">
|
||||
<h4 id="orgc5fe7aa"><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-org85bf084" class="outline-3">
|
||||
<h3 id="org85bf084"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgc2ec1f7" class="outline-3">
|
||||
<h3 id="orgc2ec1f7"><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-org4861ac8" class="outline-3">
|
||||
<h3 id="org4861ac8"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orgfefdb0f" class="outline-3">
|
||||
<h3 id="orgfefdb0f"><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: 2024-02-23 Fri 23:19</p>
|
||||
<p class="date">Created: 2024-02-26 Mon 08:24</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>
|
||||
<!-- 2024-02-23 Fri 23:20 -->
|
||||
<!-- 2024-02-26 Mon 08:24 -->
|
||||
<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="#org2f31bca">1. Headers</a></li>
|
||||
<li><a href="#orgb698ad7">2. Naïve Sherman-Morrison</a>
|
||||
<li><a href="#org87c8640">1. Headers</a></li>
|
||||
<li><a href="#org62d1526">2. Naïve Sherman-Morrison</a>
|
||||
<ul>
|
||||
<li><a href="#org3fb97ef">2.1. <code>qmckl_sm_naive</code></a>
|
||||
<li><a href="#org1fb16c0">2.1. <code>qmckl_sm_naive</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgac41193">2.1.1. Introduction</a></li>
|
||||
<li><a href="#org4edaa9b">2.1.2. API</a></li>
|
||||
<li><a href="#orgda90ac5">2.1.3. Requirements</a></li>
|
||||
<li><a href="#orgf250ca1">2.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#orgbd1c14f">2.1.1. Introduction</a></li>
|
||||
<li><a href="#org7a9eb6d">2.1.2. API</a></li>
|
||||
<li><a href="#orgd733796">2.1.3. Requirements</a></li>
|
||||
<li><a href="#org6ae9dcb">2.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#orgef7b08a">2.1.4.1. C interface (not directly exposed)</a></li>
|
||||
<li><a href="#org784d42d">2.1.4.1. C interface (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org02d2c00">2.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org9a45a9b">2.1.6. C sources</a></li>
|
||||
<li><a href="#orgb11e460">2.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orga447f72">2.1.8. Performance</a></li>
|
||||
<li><a href="#org06ca841">2.1.9. Tests</a></li>
|
||||
<li><a href="#org542d316">2.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org96e46e0">2.1.6. C sources</a></li>
|
||||
<li><a href="#org278fc7e">2.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgce2507a">2.1.8. Performance</a></li>
|
||||
<li><a href="#org94ff75b">2.1.9. Tests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgaaf64fd">3. Sherman-Morrison with Slagel Splitting (core)</a>
|
||||
<li><a href="#orgeecc8f0">3. Sherman-Morrison with Slagel Splitting (core)</a>
|
||||
<ul>
|
||||
<li><a href="#orgc2cbe7e">3.1. <code>qmckl_sm_splitting_core</code></a>
|
||||
<li><a href="#org94dfcbc">3.1. <code>qmckl_sm_splitting_core</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgef6f8e8">3.1.1. Introduction</a></li>
|
||||
<li><a href="#orge2edbc0">3.1.2. API</a></li>
|
||||
<li><a href="#org24d4065">3.1.3. Requirements</a></li>
|
||||
<li><a href="#org25ff5a1">3.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#orga449ee2">3.1.1. Introduction</a></li>
|
||||
<li><a href="#org13b1557">3.1.2. API</a></li>
|
||||
<li><a href="#orgaae415d">3.1.3. Requirements</a></li>
|
||||
<li><a href="#orgf2c08ec">3.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#org30d474f">3.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
<li><a href="#org14ecc87">3.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd6bbb65">3.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orgbaa92f5">3.1.6. C sources</a></li>
|
||||
<li><a href="#org4d54ddd">3.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org065d83d">3.1.8. Performance</a></li>
|
||||
<li><a href="#org476c4c1">3.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orgacc8e05">3.1.6. C sources</a></li>
|
||||
<li><a href="#orgcb39007">3.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orga519336">3.1.8. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgcc04c75">4. Woodbury 2x2</a>
|
||||
<li><a href="#org5966f29">4. Woodbury 2x2</a>
|
||||
<ul>
|
||||
<li><a href="#org7eb1f78">4.1. <code>qmckl_woodbury_2x2</code></a>
|
||||
<li><a href="#orgd214ab8">4.1. <code>qmckl_woodbury_2x2</code></a>
|
||||
<ul>
|
||||
<li><a href="#org253dafb">4.1.1. Introduction</a></li>
|
||||
<li><a href="#orgfb43d60">4.1.2. API</a></li>
|
||||
<li><a href="#orgef835d6">4.1.3. Requirements</a></li>
|
||||
<li><a href="#org001ff06">4.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org47cf931">4.1.1. Introduction</a></li>
|
||||
<li><a href="#org9f51aa5">4.1.2. API</a></li>
|
||||
<li><a href="#org62cfa70">4.1.3. Requirements</a></li>
|
||||
<li><a href="#org5e27e71">4.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#org6406f50">4.1.4.1. C interface (not directly exposed)</a></li>
|
||||
<li><a href="#org2493bf0">4.1.4.1. C interface (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org14f8c50">4.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org067cd8b">4.1.6. C sources</a></li>
|
||||
<li><a href="#org0d8f8f1">4.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org405b5db">4.1.8. Performance</a></li>
|
||||
<li><a href="#orgf4e2fc2">4.1.9. Tests</a></li>
|
||||
<li><a href="#orgeedd6dc">4.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org1366ddc">4.1.6. C sources</a></li>
|
||||
<li><a href="#org9360748">4.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org4fea646">4.1.8. Performance</a></li>
|
||||
<li><a href="#org5defcbf">4.1.9. Tests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org89d3aa5">5. Woodbury 3x3</a>
|
||||
<li><a href="#orgcbc617b">5. Woodbury 3x3</a>
|
||||
<ul>
|
||||
<li><a href="#org4470afb">5.1. <code>qmckl_woodbury_3x3</code></a>
|
||||
<li><a href="#org1c111ec">5.1. <code>qmckl_woodbury_3x3</code></a>
|
||||
<ul>
|
||||
<li><a href="#org03f0856">5.1.1. Introduction</a></li>
|
||||
<li><a href="#org4d57d60">5.1.2. API</a></li>
|
||||
<li><a href="#orgae42e47">5.1.3. Requirements</a></li>
|
||||
<li><a href="#orgb2047c2">5.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org8896d6f">5.1.1. Introduction</a></li>
|
||||
<li><a href="#orgd817e2a">5.1.2. API</a></li>
|
||||
<li><a href="#org79e256f">5.1.3. Requirements</a></li>
|
||||
<li><a href="#org4cf6603">5.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#orgd47bfca">5.1.4.1. C interface (not directly exposed)</a></li>
|
||||
<li><a href="#org743b142">5.1.4.1. C interface (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2318bfc">5.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org6de1d30">5.1.6. C sources</a></li>
|
||||
<li><a href="#org2560fc1">5.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgcc3463f">5.1.8. Performance</a></li>
|
||||
<li><a href="#orgd47b9dc">5.1.9. Tests</a></li>
|
||||
<li><a href="#orgd16448f">5.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org75c9b2f">5.1.6. C sources</a></li>
|
||||
<li><a href="#org8208ea2">5.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org9ecbdf0">5.1.8. Performance</a></li>
|
||||
<li><a href="#org5272284">5.1.9. Tests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org33fb93e">6. Sherman-Morrison with Slagel Splitting</a>
|
||||
<li><a href="#orgedd101f">6. Sherman-Morrison with Slagel Splitting</a>
|
||||
<ul>
|
||||
<li><a href="#org5e0d597">6.1. <code>qmckl_sm_splitting</code></a>
|
||||
<li><a href="#orgb5b525b">6.1. <code>qmckl_sm_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#org65cbce4">6.1.1. Introduction</a></li>
|
||||
<li><a href="#orgb8952a6">6.1.2. API</a></li>
|
||||
<li><a href="#org4693e8d">6.1.3. Requirements</a></li>
|
||||
<li><a href="#orgd97ec82">6.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org2ae2358">6.1.1. Introduction</a></li>
|
||||
<li><a href="#org876c69a">6.1.2. API</a></li>
|
||||
<li><a href="#org514f002">6.1.3. Requirements</a></li>
|
||||
<li><a href="#orgf81577e">6.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#orgff039a1">6.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
<li><a href="#org2442936">6.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5bf2aa6">6.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org472be0b">6.1.6. C source</a></li>
|
||||
<li><a href="#org19c8ee4">6.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org49cb9da">6.1.8. Performance…</a></li>
|
||||
<li><a href="#org823d3f3">6.1.9. Test</a></li>
|
||||
<li><a href="#org85f3506">6.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org42d9709">6.1.6. C source</a></li>
|
||||
<li><a href="#org39ce850">6.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgf37d972">6.1.8. Performance…</a></li>
|
||||
<li><a href="#org5a86004">6.1.9. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc4c280b">7. End of files</a></li>
|
||||
<li><a href="#org00488f9">7. End of files</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2f31bca" class="outline-2">
|
||||
<h2 id="org2f31bca"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div id="outline-container-org87c8640" class="outline-2">
|
||||
<h2 id="org87c8640"><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-orgb698ad7" class="outline-2">
|
||||
<h2 id="orgb698ad7"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
||||
<div id="outline-container-org62d1526" class="outline-2">
|
||||
<h2 id="org62d1526"><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-org3fb97ef" class="outline-3">
|
||||
<h3 id="org3fb97ef"><span class="section-number-3">2.1</span> <code>qmckl_sm_naive</code></h3>
|
||||
<div id="outline-container-org1fb16c0" class="outline-3">
|
||||
<h3 id="org1fb16c0"><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-orgac41193" class="outline-4">
|
||||
<h4 id="orgac41193"><span class="section-number-4">2.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-orgbd1c14f" class="outline-4">
|
||||
<h4 id="orgbd1c14f"><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-org4edaa9b" class="outline-4">
|
||||
<h4 id="org4edaa9b"><span class="section-number-4">2.1.2</span> API</h4>
|
||||
<div id="outline-container-org7a9eb6d" class="outline-4">
|
||||
<h4 id="org7a9eb6d"><span class="section-number-4">2.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orgfc8bec7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd1dbbb7" 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-orgda90ac5" class="outline-4">
|
||||
<h4 id="orgda90ac5"><span class="section-number-4">2.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-orgd733796" class="outline-4">
|
||||
<h4 id="orgd733796"><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-orgf250ca1" class="outline-4">
|
||||
<h4 id="orgf250ca1"><span class="section-number-4">2.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-org6ae9dcb" class="outline-4">
|
||||
<h4 id="org6ae9dcb"><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-orgef7b08a" class="outline-5">
|
||||
<h5 id="orgef7b08a"><span class="section-number-5">2.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div id="outline-container-org784d42d" class="outline-5">
|
||||
<h5 id="org784d42d"><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-org02d2c00" class="outline-4">
|
||||
<h4 id="org02d2c00"><span class="section-number-4">2.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org542d316" class="outline-4">
|
||||
<h4 id="org542d316"><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-org9a45a9b" class="outline-4">
|
||||
<h4 id="org9a45a9b"><span class="section-number-4">2.1.6</span> C sources</h4>
|
||||
<div id="outline-container-org96e46e0" class="outline-4">
|
||||
<h4 id="org96e46e0"><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="org78bac05"><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="org833ee5b"><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: #a020f0;">restrict</span> <span style="color: #a0522d;">Updates</span>,
|
||||
@ -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="orgffaa447"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org7333bcc"><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="orgab6b3d7"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="orgb22a053"><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>
|
||||
@ -2706,14 +2706,14 @@ Python script that generated C switch cases that call individual kernel instance
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb11e460" class="outline-4">
|
||||
<h4 id="orgb11e460"><span class="section-number-4">2.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-org278fc7e" class="outline-4">
|
||||
<h4 id="org278fc7e"><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-orga447f72" class="outline-4">
|
||||
<h4 id="orga447f72"><span class="section-number-4">2.1.8</span> Performance</h4>
|
||||
<div id="outline-container-orgce2507a" class="outline-4">
|
||||
<h4 id="orgce2507a"><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
|
||||
@ -2722,8 +2722,8 @@ can never resolve a situation where applying the update causes singular behaviou
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org06ca841" class="outline-4">
|
||||
<h4 id="org06ca841"><span class="section-number-4">2.1.9</span> Tests</h4>
|
||||
<div id="outline-container-org94ff75b" class="outline-4">
|
||||
<h4 id="org94ff75b"><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
|
||||
@ -2791,17 +2791,17 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgaaf64fd" class="outline-2">
|
||||
<h2 id="orgaaf64fd"><span class="section-number-2">3</span> Sherman-Morrison with Slagel Splitting (core)</h2>
|
||||
<div id="outline-container-orgeecc8f0" class="outline-2">
|
||||
<h2 id="orgeecc8f0"><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-orgc2cbe7e" class="outline-3">
|
||||
<h3 id="orgc2cbe7e"><span class="section-number-3">3.1</span> <code>qmckl_sm_splitting_core</code></h3>
|
||||
<div id="outline-container-org94dfcbc" class="outline-3">
|
||||
<h3 id="org94dfcbc"><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-orgef6f8e8" class="outline-4">
|
||||
<h4 id="orgef6f8e8"><span class="section-number-4">3.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-orga449ee2" class="outline-4">
|
||||
<h4 id="orga449ee2"><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.
|
||||
@ -2829,10 +2829,10 @@ If the determinant is passed it will only be partially updated if there were any
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge2edbc0" class="outline-4">
|
||||
<h4 id="orge2edbc0"><span class="section-number-4">3.1.2</span> API</h4>
|
||||
<div id="outline-container-org13b1557" class="outline-4">
|
||||
<h4 id="org13b1557"><span class="section-number-4">3.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<table id="orge7fe7e7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org26b046b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2941,8 +2941,8 @@ If the determinant is passed it will only be partially updated if there were any
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org24d4065" class="outline-4">
|
||||
<h4 id="org24d4065"><span class="section-number-4">3.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-orgaae415d" class="outline-4">
|
||||
<h4 id="orgaae415d"><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>
|
||||
@ -2959,8 +2959,8 @@ If the determinant is passed it will only be partially updated if there were any
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org25ff5a1" class="outline-4">
|
||||
<h4 id="org25ff5a1"><span class="section-number-4">3.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-orgf2c08ec" class="outline-4">
|
||||
<h4 id="orgf2c08ec"><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
|
||||
@ -3076,8 +3076,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org30d474f" class="outline-5">
|
||||
<h5 id="org30d474f"><span class="section-number-5">3.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div id="outline-container-org14ecc87" class="outline-5">
|
||||
<h5 id="org14ecc87"><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
|
||||
@ -3090,8 +3090,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd6bbb65" class="outline-4">
|
||||
<h4 id="orgd6bbb65"><span class="section-number-4">3.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org476c4c1" class="outline-4">
|
||||
<h4 id="org476c4c1"><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> (
|
||||
@ -3146,8 +3146,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbaa92f5" class="outline-4">
|
||||
<h4 id="orgbaa92f5"><span class="section-number-4">3.1.6</span> C sources</h4>
|
||||
<div id="outline-container-orgacc8e05" class="outline-4">
|
||||
<h4 id="orgacc8e05"><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>(
|
||||
@ -3236,7 +3236,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="org5b8aa09"><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="org99a6ae6"><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: #a020f0;">restrict</span> <span style="color: #a0522d;">Updates</span>,
|
||||
@ -3320,7 +3320,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="org0de2b65"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org111fe86"><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>
|
||||
@ -3412,7 +3412,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="orgb5678b2"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org1e0392f"><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>
|
||||
@ -5380,14 +5380,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4d54ddd" class="outline-4">
|
||||
<h4 id="org4d54ddd"><span class="section-number-4">3.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-orgcb39007" class="outline-4">
|
||||
<h4 id="orgcb39007"><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-org065d83d" class="outline-4">
|
||||
<h4 id="org065d83d"><span class="section-number-4">3.1.8</span> Performance</h4>
|
||||
<div id="outline-container-orga519336" class="outline-4">
|
||||
<h4 id="orga519336"><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
|
||||
@ -5399,17 +5399,17 @@ with Sherman-Morrison and update splitting. Please look at the performance recco
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgcc04c75" class="outline-2">
|
||||
<h2 id="orgcc04c75"><span class="section-number-2">4</span> Woodbury 2x2</h2>
|
||||
<div id="outline-container-org5966f29" class="outline-2">
|
||||
<h2 id="org5966f29"><span class="section-number-2">4</span> Woodbury 2x2</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org7eb1f78" class="outline-3">
|
||||
<h3 id="org7eb1f78"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_2x2</code></h3>
|
||||
<div id="outline-container-orgd214ab8" class="outline-3">
|
||||
<h3 id="orgd214ab8"><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-org253dafb" class="outline-4">
|
||||
<h4 id="org253dafb"><span class="section-number-4">4.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org47cf931" class="outline-4">
|
||||
<h4 id="org47cf931"><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
|
||||
@ -5433,10 +5433,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfb43d60" class="outline-4">
|
||||
<h4 id="orgfb43d60"><span class="section-number-4">4.1.2</span> API</h4>
|
||||
<div id="outline-container-org9f51aa5" class="outline-4">
|
||||
<h4 id="org9f51aa5"><span class="section-number-4">4.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-4-1-2">
|
||||
<table id="org580c137" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org220e811" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -5517,8 +5517,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgef835d6" class="outline-4">
|
||||
<h4 id="orgef835d6"><span class="section-number-4">4.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-org62cfa70" class="outline-4">
|
||||
<h4 id="org62cfa70"><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>
|
||||
@ -5532,8 +5532,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org001ff06" class="outline-4">
|
||||
<h4 id="org001ff06"><span class="section-number-4">4.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-org5e27e71" class="outline-4">
|
||||
<h4 id="org5e27e71"><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
|
||||
@ -5669,8 +5669,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6406f50" class="outline-5">
|
||||
<h5 id="org6406f50"><span class="section-number-5">4.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div id="outline-container-org2493bf0" class="outline-5">
|
||||
<h5 id="org2493bf0"><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
|
||||
@ -5683,8 +5683,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org14f8c50" class="outline-4">
|
||||
<h4 id="org14f8c50"><span class="section-number-4">4.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-orgeedd6dc" class="outline-4">
|
||||
<h4 id="orgeedd6dc"><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> (
|
||||
@ -5727,8 +5727,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org067cd8b" class="outline-4">
|
||||
<h4 id="org067cd8b"><span class="section-number-4">4.1.6</span> C sources</h4>
|
||||
<div id="outline-container-org1366ddc" class="outline-4">
|
||||
<h4 id="org1366ddc"><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>,
|
||||
@ -5812,7 +5812,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="org9ddb3fa"><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="org5a56b91"><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: #a020f0;">restrict</span> <span style="color: #a0522d;">Updates</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">Updates_index</span>,
|
||||
@ -7762,14 +7762,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0d8f8f1" class="outline-4">
|
||||
<h4 id="org0d8f8f1"><span class="section-number-4">4.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-org9360748" class="outline-4">
|
||||
<h4 id="org9360748"><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-org405b5db" class="outline-4">
|
||||
<h4 id="org405b5db"><span class="section-number-4">4.1.8</span> Performance</h4>
|
||||
<div id="outline-container-org4fea646" class="outline-4">
|
||||
<h4 id="org4fea646"><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
|
||||
@ -7778,8 +7778,8 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf4e2fc2" class="outline-4">
|
||||
<h4 id="orgf4e2fc2"><span class="section-number-4">4.1.9</span> Tests</h4>
|
||||
<div id="outline-container-org5defcbf" class="outline-4">
|
||||
<h4 id="org5defcbf"><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>);
|
||||
@ -7816,17 +7816,17 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org89d3aa5" class="outline-2">
|
||||
<h2 id="org89d3aa5"><span class="section-number-2">5</span> Woodbury 3x3</h2>
|
||||
<div id="outline-container-orgcbc617b" class="outline-2">
|
||||
<h2 id="orgcbc617b"><span class="section-number-2">5</span> Woodbury 3x3</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
</div>
|
||||
<div id="outline-container-org4470afb" class="outline-3">
|
||||
<h3 id="org4470afb"><span class="section-number-3">5.1</span> <code>qmckl_woodbury_3x3</code></h3>
|
||||
<div id="outline-container-org1c111ec" class="outline-3">
|
||||
<h3 id="org1c111ec"><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-org03f0856" class="outline-4">
|
||||
<h4 id="org03f0856"><span class="section-number-4">5.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org8896d6f" class="outline-4">
|
||||
<h4 id="org8896d6f"><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
|
||||
@ -7850,10 +7850,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4d57d60" class="outline-4">
|
||||
<h4 id="org4d57d60"><span class="section-number-4">5.1.2</span> API</h4>
|
||||
<div id="outline-container-orgd817e2a" class="outline-4">
|
||||
<h4 id="orgd817e2a"><span class="section-number-4">5.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-5-1-2">
|
||||
<table id="orgeef6951" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org18cde76" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -7934,8 +7934,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgae42e47" class="outline-4">
|
||||
<h4 id="orgae42e47"><span class="section-number-4">5.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-org79e256f" class="outline-4">
|
||||
<h4 id="org79e256f"><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>
|
||||
@ -7949,8 +7949,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb2047c2" class="outline-4">
|
||||
<h4 id="orgb2047c2"><span class="section-number-4">5.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-org4cf6603" class="outline-4">
|
||||
<h4 id="org4cf6603"><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
|
||||
@ -8095,8 +8095,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd47bfca" class="outline-5">
|
||||
<h5 id="orgd47bfca"><span class="section-number-5">5.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div id="outline-container-org743b142" class="outline-5">
|
||||
<h5 id="org743b142"><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
|
||||
@ -8109,8 +8109,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2318bfc" class="outline-4">
|
||||
<h4 id="org2318bfc"><span class="section-number-4">5.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-orgd16448f" class="outline-4">
|
||||
<h4 id="orgd16448f"><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> (
|
||||
@ -8153,8 +8153,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6de1d30" class="outline-4">
|
||||
<h4 id="org6de1d30"><span class="section-number-4">5.1.6</span> C sources</h4>
|
||||
<div id="outline-container-org75c9b2f" class="outline-4">
|
||||
<h4 id="org75c9b2f"><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>,
|
||||
@ -8264,7 +8264,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="org79cd444"><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="org323624c"><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: #a020f0;">restrict</span> <span style="color: #a0522d;">Updates</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">Updates_index</span>,
|
||||
@ -10634,14 +10634,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2560fc1" class="outline-4">
|
||||
<h4 id="org2560fc1"><span class="section-number-4">5.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-org8208ea2" class="outline-4">
|
||||
<h4 id="org8208ea2"><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-orgcc3463f" class="outline-4">
|
||||
<h4 id="orgcc3463f"><span class="section-number-4">5.1.8</span> Performance</h4>
|
||||
<div id="outline-container-org9ecbdf0" class="outline-4">
|
||||
<h4 id="org9ecbdf0"><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
|
||||
@ -10650,8 +10650,8 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd47b9dc" class="outline-4">
|
||||
<h4 id="orgd47b9dc"><span class="section-number-4">5.1.9</span> Tests</h4>
|
||||
<div id="outline-container-org5272284" class="outline-4">
|
||||
<h4 id="org5272284"><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>);
|
||||
@ -10688,17 +10688,17 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org33fb93e" class="outline-2">
|
||||
<h2 id="org33fb93e"><span class="section-number-2">6</span> Sherman-Morrison with Slagel Splitting</h2>
|
||||
<div id="outline-container-orgedd101f" class="outline-2">
|
||||
<h2 id="orgedd101f"><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-org5e0d597" class="outline-3">
|
||||
<h3 id="org5e0d597"><span class="section-number-3">6.1</span> <code>qmckl_sm_splitting</code></h3>
|
||||
<div id="outline-container-orgb5b525b" class="outline-3">
|
||||
<h3 id="orgb5b525b"><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-org65cbce4" class="outline-4">
|
||||
<h4 id="org65cbce4"><span class="section-number-4">6.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org2ae2358" class="outline-4">
|
||||
<h4 id="org2ae2358"><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
|
||||
@ -10722,10 +10722,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb8952a6" class="outline-4">
|
||||
<h4 id="orgb8952a6"><span class="section-number-4">6.1.2</span> API</h4>
|
||||
<div id="outline-container-org876c69a" class="outline-4">
|
||||
<h4 id="org876c69a"><span class="section-number-4">6.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-6-1-2">
|
||||
<table id="org7a3ad73" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org355d6b8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -10813,8 +10813,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4693e8d" class="outline-4">
|
||||
<h4 id="org4693e8d"><span class="section-number-4">6.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-org514f002" class="outline-4">
|
||||
<h4 id="org514f002"><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>
|
||||
@ -10829,8 +10829,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd97ec82" class="outline-4">
|
||||
<h4 id="orgd97ec82"><span class="section-number-4">6.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-orgf81577e" class="outline-4">
|
||||
<h4 id="orgf81577e"><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
|
||||
@ -10909,8 +10909,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgff039a1" class="outline-5">
|
||||
<h5 id="orgff039a1"><span class="section-number-5">6.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div id="outline-container-org2442936" class="outline-5">
|
||||
<h5 id="org2442936"><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
|
||||
@ -10923,8 +10923,8 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5bf2aa6" class="outline-4">
|
||||
<h4 id="org5bf2aa6"><span class="section-number-4">6.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org85f3506" class="outline-4">
|
||||
<h4 id="org85f3506"><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> (
|
||||
@ -10970,11 +10970,11 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org472be0b" class="outline-4">
|
||||
<h4 id="org472be0b"><span class="section-number-4">6.1.6</span> C source</h4>
|
||||
<div id="outline-container-org42d9709" class="outline-4">
|
||||
<h4 id="org42d9709"><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="org93550ea"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org194ad48"><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>
|
||||
@ -11377,14 +11377,14 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org19c8ee4" class="outline-4">
|
||||
<h4 id="org19c8ee4"><span class="section-number-4">6.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-org39ce850" class="outline-4">
|
||||
<h4 id="org39ce850"><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-org49cb9da" class="outline-4">
|
||||
<h4 id="org49cb9da"><span class="section-number-4">6.1.8</span> Performance…</h4>
|
||||
<div id="outline-container-orgf37d972" class="outline-4">
|
||||
<h4 id="orgf37d972"><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.
|
||||
@ -11392,8 +11392,8 @@ This kernel performs best when there are 2 or more rank-1 update cycles and fail
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org823d3f3" class="outline-4">
|
||||
<h4 id="org823d3f3"><span class="section-number-4">6.1.9</span> Test</h4>
|
||||
<div id="outline-container-org5a86004" class="outline-4">
|
||||
<h4 id="org5a86004"><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>);
|
||||
@ -11431,8 +11431,8 @@ rc = QMCKL_SUCCESS;
|
||||
|
||||
|
||||
|
||||
<div id="outline-container-orgc4c280b" class="outline-2">
|
||||
<h2 id="orgc4c280b"><span class="section-number-2">7</span> End of files</h2>
|
||||
<div id="outline-container-org00488f9" class="outline-2">
|
||||
<h2 id="org00488f9"><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);
|
||||
@ -11446,7 +11446,7 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2024-02-23 Fri 23:20</p>
|
||||
<p class="date">Created: 2024-02-26 Mon 08:24</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>
|
||||
<!-- 2024-02-23 Fri 23:20 -->
|
||||
<!-- 2024-02-26 Mon 08:24 -->
|
||||
<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="#orgeb28ceb">1. CHBrClF</a>
|
||||
<li><a href="#org90194ec">1. CHBrClF</a>
|
||||
<ul>
|
||||
<li><a href="#org4c61a47">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org855606e">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#orgee395a2">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#orgd870e87">1.4. Electron coordinates</a></li>
|
||||
<li><a href="#orgf98c87f">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org422ddec">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org82af1c9">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org2515082">1.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7edcab3">2. N2</a>
|
||||
<li><a href="#orga3a8841">2. N2</a>
|
||||
<ul>
|
||||
<li><a href="#org80863a2">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orgbd38b72">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#orgce8719b">2.3. Jastrow related data</a></li>
|
||||
<li><a href="#org9d4e92d">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orgdc8d246">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#orgc9dfb02">2.3. Jastrow related data</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeb28ceb" class="outline-2">
|
||||
<h2 id="orgeb28ceb"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div id="outline-container-org90194ec" class="outline-2">
|
||||
<h2 id="org90194ec"><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-org4c61a47" class="outline-3">
|
||||
<h3 id="org4c61a47"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-orgf98c87f" class="outline-3">
|
||||
<h3 id="orgf98c87f"><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-org855606e" class="outline-3">
|
||||
<h3 id="org855606e"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div id="outline-container-org422ddec" class="outline-3">
|
||||
<h3 id="org422ddec"><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-orgee395a2" class="outline-3">
|
||||
<h3 id="orgee395a2"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org82af1c9" class="outline-3">
|
||||
<h3 id="org82af1c9"><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-orgd870e87" class="outline-3">
|
||||
<h3 id="orgd870e87"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org2515082" class="outline-3">
|
||||
<h3 id="org2515082"><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-org7edcab3" class="outline-2">
|
||||
<h2 id="org7edcab3"><span class="section-number-2">2</span> N2</h2>
|
||||
<div id="outline-container-orga3a8841" class="outline-2">
|
||||
<h2 id="orga3a8841"><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-org80863a2" class="outline-3">
|
||||
<h3 id="org80863a2"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org9d4e92d" class="outline-3">
|
||||
<h3 id="org9d4e92d"><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-orgbd38b72" class="outline-3">
|
||||
<h3 id="orgbd38b72"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div id="outline-container-orgdc8d246" class="outline-3">
|
||||
<h3 id="orgdc8d246"><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-orgce8719b" class="outline-3">
|
||||
<h3 id="orgce8719b"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div id="outline-container-orgc9dfb02" class="outline-3">
|
||||
<h3 id="orgc9dfb02"><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: 2024-02-23 Fri 23:20</p>
|
||||
<p class="date">Created: 2024-02-26 Mon 08:24</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>
|
||||
<!-- 2024-02-23 Fri 23:19 -->
|
||||
<!-- 2024-02-26 Mon 08:24 -->
|
||||
<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="#org30cc502">1. Local functions</a>
|
||||
<li><a href="#orgf16f509">1. Local functions</a>
|
||||
<ul>
|
||||
<li><a href="#org482d571">1.1. Open file</a></li>
|
||||
<li><a href="#orgb2db68b">1.2. Electron</a></li>
|
||||
<li><a href="#org50e5e0f">1.3. Nucleus</a>
|
||||
<li><a href="#org5538753">1.1. Open file</a></li>
|
||||
<li><a href="#org3be59ee">1.2. Electron</a></li>
|
||||
<li><a href="#orgc0ad193">1.3. Nucleus</a>
|
||||
<ul>
|
||||
<li><a href="#org644216b">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#orgc0746a3">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org0d4ce3e">1.3.3. Nuclear coordinates</a></li>
|
||||
<li><a href="#orgbe49a9d">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#orgb5d2303">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org2e34fae">1.3.3. Nuclear coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1f5a1f5">1.4. Basis set and AOs</a>
|
||||
<li><a href="#org8cfcbf7">1.4. Basis set and AOs</a>
|
||||
<ul>
|
||||
<li><a href="#org437c7e5">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#org80b61a0">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org67b2bc0">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#org4d86f87">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#orga67bf8d">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#orgdc6b594">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#org41d5cd0">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org97ca236">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#orgbe33306">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#orgda9035c">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#orgc76be83">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org3bfee31">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#org9f2e299">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org1dffa14">1.4.14. AO Normalization</a></li>
|
||||
<li><a href="#org5bb3400">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#orgd67cb33">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#orgd02eab0">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#org317d40f">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org5183276">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#orgf668d11">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#org72194ba">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org39d290d">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#org7f2228f">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#org75292f7">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org2206b60">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org3fed007">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#org208d1b1">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#orga6ce06e">1.4.14. AO Normalization</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgaa5f3a1">1.5. Molecular orbitals</a>
|
||||
<li><a href="#org28343db">1.5. Molecular orbitals</a>
|
||||
<ul>
|
||||
<li><a href="#org8eed618">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#orgfbae2ca">1.5.2. MO coefficients</a></li>
|
||||
<li><a href="#orgd170185">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#orgf6a9a82">1.5.2. MO coefficients</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge3bd186">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
<li><a href="#org88dd5a3">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org639dc06">2. Read everything</a></li>
|
||||
<li><a href="#orge486068">3. Test</a>
|
||||
<li><a href="#orge4f9e26">2. Read everything</a></li>
|
||||
<li><a href="#org319fd9e">3. Test</a>
|
||||
<ul>
|
||||
<li>
|
||||
<ul>
|
||||
<li><a href="#org854eabf">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org2199743">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#org2373148">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#orgd63ceda">3.0.4. MO Basis</a></li>
|
||||
<li><a href="#orga393ef6">3.0.1. Electrons</a></li>
|
||||
<li><a href="#orgf44be63">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#org24ff0b1">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#orgb7e1833">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-org30cc502" class="outline-2">
|
||||
<h2 id="org30cc502"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div id="outline-container-orgf16f509" class="outline-2">
|
||||
<h2 id="orgf16f509"><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-org482d571" class="outline-3">
|
||||
<h3 id="org482d571"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div id="outline-container-org5538753" class="outline-3">
|
||||
<h3 id="org5538753"><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-orgb2db68b" class="outline-3">
|
||||
<h3 id="orgb2db68b"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div id="outline-container-org3be59ee" class="outline-3">
|
||||
<h3 id="org3be59ee"><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-org50e5e0f" class="outline-3">
|
||||
<h3 id="org50e5e0f"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div id="outline-container-orgc0ad193" class="outline-3">
|
||||
<h3 id="orgc0ad193"><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-org644216b" class="outline-4">
|
||||
<h4 id="org644216b"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div id="outline-container-orgbe49a9d" class="outline-4">
|
||||
<h4 id="orgbe49a9d"><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-orgc0746a3" class="outline-4">
|
||||
<h4 id="orgc0746a3"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div id="outline-container-orgb5d2303" class="outline-4">
|
||||
<h4 id="orgb5d2303"><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-org0d4ce3e" class="outline-4">
|
||||
<h4 id="org0d4ce3e"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div id="outline-container-org2e34fae" class="outline-4">
|
||||
<h4 id="org2e34fae"><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-org1f5a1f5" class="outline-3">
|
||||
<h3 id="org1f5a1f5"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div id="outline-container-org8cfcbf7" class="outline-3">
|
||||
<h3 id="org8cfcbf7"><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-org437c7e5" class="outline-4">
|
||||
<h4 id="org437c7e5"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div id="outline-container-org5bb3400" class="outline-4">
|
||||
<h4 id="org5bb3400"><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-org80b61a0" class="outline-4">
|
||||
<h4 id="org80b61a0"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div id="outline-container-orgd67cb33" class="outline-4">
|
||||
<h4 id="orgd67cb33"><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-org67b2bc0" class="outline-4">
|
||||
<h4 id="org67b2bc0"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div id="outline-container-orgd02eab0" class="outline-4">
|
||||
<h4 id="orgd02eab0"><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-org4d86f87" class="outline-4">
|
||||
<h4 id="org4d86f87"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div id="outline-container-org317d40f" class="outline-4">
|
||||
<h4 id="org317d40f"><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> = 0;
|
||||
@ -770,8 +770,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga67bf8d" class="outline-4">
|
||||
<h4 id="orga67bf8d"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div id="outline-container-org5183276" class="outline-4">
|
||||
<h4 id="org5183276"><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-orgdc6b594" class="outline-4">
|
||||
<h4 id="orgdc6b594"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div id="outline-container-orgf668d11" class="outline-4">
|
||||
<h4 id="orgf668d11"><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-org41d5cd0" class="outline-4">
|
||||
<h4 id="org41d5cd0"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div id="outline-container-org72194ba" class="outline-4">
|
||||
<h4 id="org72194ba"><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-org97ca236" class="outline-4">
|
||||
<h4 id="org97ca236"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
||||
<div id="outline-container-org39d290d" class="outline-4">
|
||||
<h4 id="org39d290d"><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-orgbe33306" class="outline-4">
|
||||
<h4 id="orgbe33306"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
||||
<div id="outline-container-org7f2228f" class="outline-4">
|
||||
<h4 id="org7f2228f"><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-orgda9035c" class="outline-4">
|
||||
<h4 id="orgda9035c"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
||||
<div id="outline-container-org75292f7" class="outline-4">
|
||||
<h4 id="org75292f7"><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-orgc76be83" class="outline-4">
|
||||
<h4 id="orgc76be83"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||
<div id="outline-container-org2206b60" class="outline-4">
|
||||
<h4 id="org2206b60"><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-org3bfee31" class="outline-4">
|
||||
<h4 id="org3bfee31"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||
<div id="outline-container-org3fed007" class="outline-4">
|
||||
<h4 id="org3fed007"><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-org9f2e299" class="outline-4">
|
||||
<h4 id="org9f2e299"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
||||
<div id="outline-container-org208d1b1" class="outline-4">
|
||||
<h4 id="org208d1b1"><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-org1dffa14" class="outline-4">
|
||||
<h4 id="org1dffa14"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||
<div id="outline-container-orga6ce06e" class="outline-4">
|
||||
<h4 id="orga6ce06e"><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-orgaa5f3a1" class="outline-3">
|
||||
<h3 id="orgaa5f3a1"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org28343db" class="outline-3">
|
||||
<h3 id="org28343db"><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-org8eed618" class="outline-4">
|
||||
<h4 id="org8eed618"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
||||
<div id="outline-container-orgd170185" class="outline-4">
|
||||
<h4 id="orgd170185"><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-orgfbae2ca" class="outline-4">
|
||||
<h4 id="orgfbae2ca"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||
<div id="outline-container-orgf6a9a82" class="outline-4">
|
||||
<h4 id="orgf6a9a82"><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-orge3bd186" class="outline-3">
|
||||
<h3 id="orge3bd186"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
<div id="outline-container-org88dd5a3" class="outline-3">
|
||||
<h3 id="org88dd5a3"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org639dc06" class="outline-2">
|
||||
<h2 id="org639dc06"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div id="outline-container-orge4f9e26" class="outline-2">
|
||||
<h2 id="orge4f9e26"><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-orge486068" class="outline-2">
|
||||
<h2 id="orge486068"><span class="section-number-2">3</span> Test</h2>
|
||||
<div id="outline-container-org319fd9e" class="outline-2">
|
||||
<h2 id="org319fd9e"><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-org854eabf" class="outline-4">
|
||||
<h4 id="org854eabf"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||
<div id="outline-container-orga393ef6" class="outline-4">
|
||||
<h4 id="orga393ef6"><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-org2199743" class="outline-4">
|
||||
<h4 id="org2199743"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||
<div id="outline-container-orgf44be63" class="outline-4">
|
||||
<h4 id="orgf44be63"><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-org2373148" class="outline-4">
|
||||
<h4 id="org2373148"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||
<div id="outline-container-org24ff0b1" class="outline-4">
|
||||
<h4 id="org24ff0b1"><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-orgd63ceda" class="outline-4">
|
||||
<h4 id="orgd63ceda"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div id="outline-container-orgb7e1833" class="outline-4">
|
||||
<h4 id="orgb7e1833"><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: 2024-02-23 Fri 23:19</p>
|
||||
<p class="date">Created: 2024-02-26 Mon 08:24</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>
|
||||
<!-- 2024-02-23 Fri 23:19 -->
|
||||
<!-- 2024-02-26 Mon 08:24 -->
|
||||
<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="#org3f48061">1. Verificarlo probes</a>
|
||||
<li><a href="#orgf4c93ab">1. Verificarlo probes</a>
|
||||
<ul>
|
||||
<li><a href="#orgfe73c08">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#orgeb7ae59">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org4cff34e">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#org9a10434">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org087b7e6">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#orgc7b4dfd">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org1a36632">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org01f3bca">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#orgec1c65f">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org494d8d1">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="#org64d1165">2. Fortran wrappers</a></li>
|
||||
<li><a href="#orgea947b8">2. Fortran wrappers</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3f48061" class="outline-2">
|
||||
<h2 id="org3f48061"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div id="outline-container-orgf4c93ab" class="outline-2">
|
||||
<h2 id="orgf4c93ab"><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-orgfe73c08" class="outline-3">
|
||||
<h3 id="orgfe73c08"><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-orgc7b4dfd" class="outline-3">
|
||||
<h3 id="orgc7b4dfd"><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-orgeb7ae59" class="outline-3">
|
||||
<h3 id="orgeb7ae59"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div id="outline-container-org1a36632" class="outline-3">
|
||||
<h3 id="org1a36632"><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-org4cff34e" class="outline-3">
|
||||
<h3 id="org4cff34e"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div id="outline-container-org01f3bca" class="outline-3">
|
||||
<h3 id="org01f3bca"><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-org9a10434" class="outline-3">
|
||||
<h3 id="org9a10434"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div id="outline-container-orgec1c65f" class="outline-3">
|
||||
<h3 id="orgec1c65f"><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-org087b7e6" class="outline-3">
|
||||
<h3 id="org087b7e6"><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-org494d8d1" class="outline-3">
|
||||
<h3 id="org494d8d1"><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-org64d1165" class="outline-2">
|
||||
<h2 id="org64d1165"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||
<div id="outline-container-orgea947b8" class="outline-2">
|
||||
<h2 id="orgea947b8"><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: 2024-02-23 Fri 23:19</p>
|
||||
<p class="date">Created: 2024-02-26 Mon 08:24</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