mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-11-03 12:43:57 +01:00
Deploying to gh-pages from @ TREX-CoE/qmckl@5a1a8aae10 🚀
This commit is contained in:
parent
44f8d8d5c6
commit
315f7938c2
118
qmckl.html
118
qmckl.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-11-16 Wed 21:56 -->
|
||||
<!-- 2022-11-16 Wed 21:57 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Introduction</title>
|
||||
@ -333,36 +333,36 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org8b2d904">1. Installing QMCkl</a>
|
||||
<li><a href="#org18e0045">1. Installing QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#org06876c9">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org68a213a">1.2. Installing from the source repository (for developers)</a></li>
|
||||
<li><a href="#org9aef809">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org3b18f7a">1.2. Installing from the source repository (for developers)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf130ac0">2. Using QMCkl</a></li>
|
||||
<li><a href="#org0d8570a">3. Developing in QMCkl</a>
|
||||
<li><a href="#org798a1a0">2. Using QMCkl</a></li>
|
||||
<li><a href="#orge39d16b">3. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#org5df99ab">3.1. Literate programming</a></li>
|
||||
<li><a href="#org6b338da">3.2. Source code editing</a></li>
|
||||
<li><a href="#orgd6390be">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org6466ce0">3.4. Coding rules</a></li>
|
||||
<li><a href="#org4b0f4f4">3.5. Design of the library</a></li>
|
||||
<li><a href="#org3b98068">3.6. Naming conventions</a></li>
|
||||
<li><a href="#org00d6212">3.7. Application programming interface</a></li>
|
||||
<li><a href="#orge699308">3.8. Global state</a></li>
|
||||
<li><a href="#orged65944">3.9. Headers</a></li>
|
||||
<li><a href="#org87b058b">3.10. Low-level functions</a></li>
|
||||
<li><a href="#orgb0d6f88">3.11. High-level functions</a></li>
|
||||
<li><a href="#orgaae098b">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org9302855">3.13. Algorithms</a></li>
|
||||
<li><a href="#org5facb59">3.1. Literate programming</a></li>
|
||||
<li><a href="#orgf758240">3.2. Source code editing</a></li>
|
||||
<li><a href="#org4fea233">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#orgfdd1ccd">3.4. Coding rules</a></li>
|
||||
<li><a href="#orga22da4b">3.5. Design of the library</a></li>
|
||||
<li><a href="#orgc871a0a">3.6. Naming conventions</a></li>
|
||||
<li><a href="#org08610a0">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org039f4ce">3.8. Global state</a></li>
|
||||
<li><a href="#orgb7c3566">3.9. Headers</a></li>
|
||||
<li><a href="#orgb5fc43c">3.10. Low-level functions</a></li>
|
||||
<li><a href="#orgd60e73f">3.11. High-level functions</a></li>
|
||||
<li><a href="#org285bf72">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org5ab4f3b">3.13. Algorithms</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8b2d904" class="outline-2">
|
||||
<h2 id="org8b2d904"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div id="outline-container-org18e0045" class="outline-2">
|
||||
<h2 id="org18e0045"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The latest version fo QMCkl can be downloaded
|
||||
@ -371,8 +371,8 @@ The latest version fo QMCkl can be downloaded
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org06876c9" class="outline-3">
|
||||
<h3 id="org06876c9"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div id="outline-container-org9aef809" class="outline-3">
|
||||
<h3 id="org9aef809"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
QMCkl is built with GNU Autotools, so the usual
|
||||
@ -387,8 +387,8 @@ options are defined using <code>CFLAGS</code> and <code>FCFLAGS</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org68a213a" class="outline-3">
|
||||
<h3 id="org68a213a"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div id="outline-container-org3b18f7a" class="outline-3">
|
||||
<h3 id="org3b18f7a"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To compile from the source repository, additional dependencies are
|
||||
@ -409,8 +409,8 @@ to be executed first.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf130ac0" class="outline-2">
|
||||
<h2 id="orgf130ac0"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div id="outline-container-org798a1a0" class="outline-2">
|
||||
<h2 id="org798a1a0"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The <code>qmckl.h</code> header file installed in the <code>${prefix}/include</code> directory
|
||||
@ -439,12 +439,12 @@ Both files are located in the <code>include/</code> directory.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0d8570a" class="outline-2">
|
||||
<h2 id="org0d8570a"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-orge39d16b" class="outline-2">
|
||||
<h2 id="orge39d16b"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org5df99ab" class="outline-3">
|
||||
<h3 id="org5df99ab"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div id="outline-container-org5facb59" class="outline-3">
|
||||
<h3 id="org5facb59"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
In a traditional source code, most of the lines of source files of a program
|
||||
@ -494,8 +494,8 @@ tarball contains the generated source code.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6b338da" class="outline-3">
|
||||
<h3 id="org6b338da"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div id="outline-container-orgf758240" class="outline-3">
|
||||
<h3 id="orgf758240"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<p>
|
||||
For a tutorial on literate programming with org-mode, follow <a href="http://www.howardism.org/Technical/Emacs/literate-programming-tutorial.html">this link</a>.
|
||||
@ -526,8 +526,8 @@ org-mode.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd6390be" class="outline-3">
|
||||
<h3 id="orgd6390be"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-org4fea233" class="outline-3">
|
||||
<h3 id="org4fea233"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<p>
|
||||
Most of the codes of the <a href="https://trex-coe.eu">TREX CoE</a> are written in Fortran with some
|
||||
@ -591,8 +591,8 @@ For more guidelines on using Fortran to generate a C interface, see
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6466ce0" class="outline-3">
|
||||
<h3 id="org6466ce0"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div id="outline-container-orgfdd1ccd" class="outline-3">
|
||||
<h3 id="orgfdd1ccd"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div class="outline-text-3" id="text-3-4">
|
||||
<p>
|
||||
The authors should follow the recommendations of the C99
|
||||
@ -612,8 +612,8 @@ make cppcheck ; cat cppcheck.out
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4b0f4f4" class="outline-3">
|
||||
<h3 id="org4b0f4f4"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div id="outline-container-orga22da4b" class="outline-3">
|
||||
<h3 id="orga22da4b"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div class="outline-text-3" id="text-3-5">
|
||||
<p>
|
||||
The proposed API should allow the library to: deal with memory transfers
|
||||
@ -624,8 +624,8 @@ functions (see below).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3b98068" class="outline-3">
|
||||
<h3 id="org3b98068"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-orgc871a0a" class="outline-3">
|
||||
<h3 id="orgc871a0a"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div class="outline-text-3" id="text-3-6">
|
||||
<p>
|
||||
To avoid namespace collisions, we use <code>qmckl_</code> as a prefix for all exported
|
||||
@ -646,8 +646,8 @@ form is allowed.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org00d6212" class="outline-3">
|
||||
<h3 id="org00d6212"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-org08610a0" class="outline-3">
|
||||
<h3 id="org08610a0"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div class="outline-text-3" id="text-3-7">
|
||||
<p>
|
||||
In the C language, the number of bits used by the integer types can change
|
||||
@ -679,15 +679,15 @@ bindings in other languages in other repositories.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge699308" class="outline-3">
|
||||
<h3 id="orge699308"><span class="section-number-3">3.8</span> Global state</h3>
|
||||
<div id="outline-container-org039f4ce" class="outline-3">
|
||||
<h3 id="org039f4ce"><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="org6304357">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="orgc5de3fd">=context=</a> contains the global
|
||||
state of the library, and is used as the first argument of many
|
||||
QMCkl functions.
|
||||
</p>
|
||||
@ -701,8 +701,8 @@ the state is done by setters and getters, prefixed by
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orged65944" class="outline-3">
|
||||
<h3 id="orged65944"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div id="outline-container-orgb7c3566" class="outline-3">
|
||||
<h3 id="orgb7c3566"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div class="outline-text-3" id="text-3-9">
|
||||
<p>
|
||||
A single <code>qmckl.h</code> header to be distributed by the library
|
||||
@ -790,8 +790,8 @@ and the types definitions should be written in the <code>*fh_type.f90</code> fil
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org87b058b" class="outline-3">
|
||||
<h3 id="org87b058b"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-orgb5fc43c" class="outline-3">
|
||||
<h3 id="orgb5fc43c"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div class="outline-text-3" id="text-3-10">
|
||||
<p>
|
||||
Low-level functions are very simple functions which are leaves of
|
||||
@ -800,14 +800,14 @@ the function call tree (they don't call any other QMCkl function).
|
||||
|
||||
<p>
|
||||
These functions are <i>pure</i>, and unaware of the QMCkl
|
||||
<a href="#org6304357"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#orgc5de3fd"><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-orgb0d6f88" class="outline-3">
|
||||
<h3 id="orgb0d6f88"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div id="outline-container-orgd60e73f" class="outline-3">
|
||||
<h3 id="orgd60e73f"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div class="outline-text-3" id="text-3-11">
|
||||
<p>
|
||||
High-level functions are at the top of the function call tree.
|
||||
@ -819,8 +819,8 @@ temporary storage, to simplify the use of accelerators.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaae098b" class="outline-3">
|
||||
<h3 id="orgaae098b"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-org285bf72" class="outline-3">
|
||||
<h3 id="org285bf72"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div class="outline-text-3" id="text-3-12">
|
||||
<p>
|
||||
The minimal number of bits of precision required for a function
|
||||
@ -828,7 +828,7 @@ should be given as an input of low-level computational
|
||||
functions. This input will be used to define the values of the
|
||||
different thresholds that might be used to avoid computing
|
||||
unnecessary noise. High-level functions will use the precision
|
||||
specified in the <a href="#org6304357"><code>context</code></a> variable.
|
||||
specified in the <a href="#orgc5de3fd"><code>context</code></a> variable.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -896,8 +896,8 @@ following points :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9302855" class="outline-3">
|
||||
<h3 id="org9302855"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div id="outline-container-org5ab4f3b" class="outline-3">
|
||||
<h3 id="org5ab4f3b"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div class="outline-text-3" id="text-3-13">
|
||||
<p>
|
||||
Reducing the scaling of an algorithm usually implies also reducing
|
||||
@ -913,7 +913,7 @@ implemented adapted to different problem sizes.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 21:56</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 21:57</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
208
qmckl_ao.html
208
qmckl_ao.html
@ -333,61 +333,61 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org6513d8e">1. Introduction</a></li>
|
||||
<li><a href="#orgd477ea3">2. Context</a>
|
||||
<li><a href="#org04e4743">1. Introduction</a></li>
|
||||
<li><a href="#org9b0394b">2. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org1ef0df9">2.1. Constant data</a>
|
||||
<li><a href="#org238892f">2.1. Constant data</a>
|
||||
<ul>
|
||||
<li><a href="#orgc0143e6">2.1.1. Initialization functions</a>
|
||||
<li><a href="#orgd04e556">2.1.1. Initialization functions</a>
|
||||
<ul>
|
||||
<li><a href="#org0789e3d">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org4f55d5c">2.1.1.2. Fortran interface</a></li>
|
||||
<li><a href="#org6a7ecd1">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org8b9e764">2.1.1.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc0d2841">2.1.2. Access functions</a>
|
||||
<li><a href="#org29a8de1">2.1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org0958332">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org58d5713">2.1.2.2. Fortran interface</a></li>
|
||||
<li><a href="#org0f83a35">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#orga236b36">2.1.2.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org42a8e23">2.2. Computed data</a>
|
||||
<li><a href="#org3ebaf08">2.2. Computed data</a>
|
||||
<ul>
|
||||
<li><a href="#orgb09a46a">2.2.1. After initialization</a></li>
|
||||
<li><a href="#org56e8b18">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#org9762a1a">2.2.3. Access functions</a></li>
|
||||
<li><a href="#org9746ff8">2.2.1. After initialization</a></li>
|
||||
<li><a href="#orga3dea2a">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#orgf09b861">2.2.3. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgce3e0b8">3. Radial part</a>
|
||||
<li><a href="#org310144f">3. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#org9b963c7">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#orgd8cc67f">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#orgf125dc6">3.3. Computation of shells</a></li>
|
||||
<li><a href="#org0cef0ca">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org9e627cd">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org939e67c">3.3. Computation of shells</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org15ab87f">4. Polynomial part</a>
|
||||
<li><a href="#orgd886fb4">4. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#org894b972">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org46718d9">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
<li><a href="#org73ee96c">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org4953db9">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6025142">5. Combining radial and polynomial parts</a>
|
||||
<li><a href="#org85cc168">5. Combining radial and polynomial parts</a>
|
||||
<ul>
|
||||
<li><a href="#orgb1a2f85">5.1. Values only</a>
|
||||
<li><a href="#org7bbd5e6">5.1. Values only</a>
|
||||
<ul>
|
||||
<li><a href="#org183ea9a">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#org19d0c23">5.1.2. HPC version</a></li>
|
||||
<li><a href="#orgc15bc57">5.1.3. Interfaces</a></li>
|
||||
<li><a href="#org6a3ede0">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#orga6c8c17">5.1.2. HPC version</a></li>
|
||||
<li><a href="#orgc8d215b">5.1.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7ac9335">5.2. Value, gradients, Laplacian</a>
|
||||
<li><a href="#org3e5a222">5.2. Value, gradients, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org1a49b33">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#orgeef6ca6">5.2.2. HPC version</a></li>
|
||||
<li><a href="#orga35c073">5.2.3. Interfaces</a></li>
|
||||
<li><a href="#orgd5af23b">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#org425b10c">5.2.2. HPC version</a></li>
|
||||
<li><a href="#org9a4eaa9">5.2.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -396,8 +396,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6513d8e" class="outline-2">
|
||||
<h2 id="org6513d8e"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div id="outline-container-org04e4743" class="outline-2">
|
||||
<h2 id="org04e4743"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The atomic basis set is defined as a list of shells. Each shell \(s\) is
|
||||
@ -450,19 +450,19 @@ gradients and Laplacian of the atomic basis functions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd477ea3" class="outline-2">
|
||||
<h2 id="orgd477ea3"><span class="section-number-2">2</span> Context</h2>
|
||||
<div id="outline-container-org9b0394b" class="outline-2">
|
||||
<h2 id="org9b0394b"><span class="section-number-2">2</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org1ef0df9" class="outline-3">
|
||||
<h3 id="org1ef0df9"><span class="section-number-3">2.1</span> Constant data</h3>
|
||||
<div id="outline-container-org238892f" class="outline-3">
|
||||
<h3 id="org238892f"><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="org8bc1536" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0a20047" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -636,7 +636,7 @@ calling the functions:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="orga39e681"><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="orgc5ae1ea"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_set_ao_basis_$V$</span> ( <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> $type_of_V$ $V$);
|
||||
|
||||
<span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_ao_basis_$V$</span> ( <span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
@ -673,7 +673,7 @@ For array variables, use the rule:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="orgc2f870e"><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="orgfced65d"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_set_ao_basis_$V$</span> ( <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> $type_of_V$ $V$,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">size_max</span>);
|
||||
|
||||
@ -711,17 +711,17 @@ For array variables, use the rule:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc0143e6" class="outline-4">
|
||||
<h4 id="orgc0143e6"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
||||
<div id="outline-container-orgd04e556" class="outline-4">
|
||||
<h4 id="orgd04e556"><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="#orgd477ea3">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org9b0394b">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0789e3d" class="outline-5">
|
||||
<h5 id="org0789e3d"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div id="outline-container-org6a7ecd1" class="outline-5">
|
||||
<h5 id="org6a7ecd1"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-1-1">
|
||||
<p>
|
||||
To set the basis set, all the following functions need to be
|
||||
@ -845,8 +845,8 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4f55d5c" class="outline-5">
|
||||
<h5 id="org4f55d5c"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org8b9e764" class="outline-5">
|
||||
<h5 id="org8b9e764"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #a020f0;">interface</span>
|
||||
@ -1029,17 +1029,17 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc0d2841" class="outline-4">
|
||||
<h4 id="orgc0d2841"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
||||
<div id="outline-container-org29a8de1" class="outline-4">
|
||||
<h4 id="org29a8de1"><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="#orgd477ea3">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org9b0394b">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0958332" class="outline-5">
|
||||
<h5 id="org0958332"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div id="outline-container-org0f83a35" class="outline-5">
|
||||
<h5 id="org0f83a35"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1161,8 +1161,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org58d5713" class="outline-5">
|
||||
<h5 id="org58d5713"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-orga236b36" class="outline-5">
|
||||
<h5 id="orga236b36"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-2-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #a020f0;">interface</span>
|
||||
@ -1346,8 +1346,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org42a8e23" class="outline-3">
|
||||
<h3 id="org42a8e23"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div id="outline-container-org3ebaf08" class="outline-3">
|
||||
<h3 id="org3ebaf08"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
The following data is computed as described in the next sections:
|
||||
@ -1422,8 +1422,8 @@ The following data is computed as described in the next sections:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb09a46a" class="outline-4">
|
||||
<h4 id="orgb09a46a"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div id="outline-container-org9746ff8" class="outline-4">
|
||||
<h4 id="org9746ff8"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<p>
|
||||
When the basis set is completely entered, extra data structures may be
|
||||
@ -1437,8 +1437,8 @@ the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org56e8b18" class="outline-4">
|
||||
<h4 id="org56e8b18"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
||||
<div id="outline-container-orga3dea2a" class="outline-4">
|
||||
<h4 id="orga3dea2a"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<p>
|
||||
For faster access, we provide extra arrays for the shell information as:
|
||||
@ -1468,8 +1468,8 @@ which is a matrix-vector product.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9762a1a" class="outline-4">
|
||||
<h4 id="org9762a1a"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||
<div id="outline-container-orgf09b861" class="outline-4">
|
||||
<h4 id="orgf09b861"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1482,7 +1482,7 @@ which is a matrix-vector product.
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of primitive
|
||||
basis functions evaluated at the current coordinates.
|
||||
See section <a href="#orgd8cc67f">3.2</a>.
|
||||
See section <a href="#org9e627cd">3.2</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1495,7 +1495,7 @@ See section <a href="#orgd8cc67f">3.2</a>.
|
||||
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of contracted shells
|
||||
evaluated at the current coordinates. See section <a href="#orgf125dc6">3.3</a>.
|
||||
evaluated at the current coordinates. See section <a href="#org939e67c">3.3</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1509,7 +1509,7 @@ evaluated at the current coordinates. See section <a href="#orgf125dc6">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="#org6025142">5</a>.
|
||||
See section <a href="#org85cc168">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1534,7 +1534,7 @@ Uses the given array to compute the VGL.
|
||||
|
||||
<p>
|
||||
Returns the array of values of the atomic orbitals evaluated at
|
||||
the current coordinates. See section <a href="#org6025142">5</a>.
|
||||
the current coordinates. See section <a href="#org85cc168">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1553,12 +1553,12 @@ Uses the given array to compute the value.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgce3e0b8" class="outline-2">
|
||||
<h2 id="orgce3e0b8"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div id="outline-container-org310144f" class="outline-2">
|
||||
<h2 id="org310144f"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org9b963c7" class="outline-3">
|
||||
<h3 id="org9b963c7"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div id="outline-container-org0cef0ca" class="outline-3">
|
||||
<h3 id="org0cef0ca"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
<code>qmckl_ao_gaussian_vgl</code> computes the values, gradients and
|
||||
@ -1729,10 +1729,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd8cc67f" class="outline-3">
|
||||
<h3 id="orgd8cc67f"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div id="outline-container-org9e627cd" class="outline-3">
|
||||
<h3 id="org9e627cd"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<table id="org4557672" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge250ce1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1891,10 +1891,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf125dc6" class="outline-3">
|
||||
<h3 id="orgf125dc6"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div id="outline-container-org939e67c" class="outline-3">
|
||||
<h3 id="org939e67c"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<table id="orgb6994c7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgda783ca" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2146,8 +2146,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org15ab87f" class="outline-2">
|
||||
<h2 id="org15ab87f"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div id="outline-container-orgd886fb4" class="outline-2">
|
||||
<h2 id="orgd886fb4"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
Going from the atomic basis set to AOs implies a systematic
|
||||
@ -2167,8 +2167,8 @@ f & : & f_{xxx}, f_{xxy}, f_{xxz}, f_{xyy}, f_{xyz}, f_{xzz}, f_{yyy}, f_{yyz},
|
||||
\end{eqnarray}
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org894b972" class="outline-3">
|
||||
<h3 id="org894b972"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-org73ee96c" class="outline-3">
|
||||
<h3 id="org73ee96c"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
The <code>qmckl_ao_power</code> function computes all the powers of the <code>n</code>
|
||||
@ -2180,7 +2180,7 @@ the \(n\) points:
|
||||
\[ P_{ik} = X_i^k \]
|
||||
</p>
|
||||
|
||||
<table id="org3a8f662" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9a3447c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2318,8 +2318,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org46718d9" class="outline-3">
|
||||
<h3 id="org46718d9"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-org4953db9" class="outline-3">
|
||||
<h3 id="org4953db9"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div class="outline-text-3" id="text-4-2">
|
||||
<p>
|
||||
A polynomial is centered on a nucleus \(\mathbf{R}_i\)
|
||||
@ -2364,7 +2364,7 @@ Laplacians at a given point in space, of all polynomials with an
|
||||
angular momentum up to <code>lmax</code>.
|
||||
</p>
|
||||
|
||||
<table id="orge828c0b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org85d7159" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3143,18 +3143,18 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6025142" class="outline-2">
|
||||
<h2 id="org6025142"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div id="outline-container-org85cc168" class="outline-2">
|
||||
<h2 id="org85cc168"><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-orgb1a2f85" class="outline-3">
|
||||
<h3 id="orgb1a2f85"><span class="section-number-3">5.1</span> Values only</h3>
|
||||
<div id="outline-container-org7bbd5e6" class="outline-3">
|
||||
<h3 id="org7bbd5e6"><span class="section-number-3">5.1</span> Values only</h3>
|
||||
<div class="outline-text-3" id="text-5-1">
|
||||
</div>
|
||||
<div id="outline-container-org183ea9a" class="outline-4">
|
||||
<h4 id="org183ea9a"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-org6a3ede0" class="outline-4">
|
||||
<h4 id="org6a3ede0"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-1">
|
||||
<table id="org3d3635c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8123a61" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3390,10 +3390,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org19d0c23" class="outline-4">
|
||||
<h4 id="org19d0c23"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div id="outline-container-orga6c8c17" class="outline-4">
|
||||
<h4 id="orga6c8c17"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-2">
|
||||
<table id="orgbca7682" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org99e373f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3551,8 +3551,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc15bc57" class="outline-4">
|
||||
<h4 id="orgc15bc57"><span class="section-number-4">5.1.3</span> Interfaces</h4>
|
||||
<div id="outline-container-orgc8d215b" class="outline-4">
|
||||
<h4 id="orgc8d215b"><span class="section-number-4">5.1.3</span> Interfaces</h4>
|
||||
<div class="outline-text-4" id="text-5-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_compute_ao_value_doc</span> (
|
||||
@ -3601,14 +3601,14 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7ac9335" class="outline-3">
|
||||
<h3 id="org7ac9335"><span class="section-number-3">5.2</span> Value, gradients, Laplacian</h3>
|
||||
<div id="outline-container-org3e5a222" class="outline-3">
|
||||
<h3 id="org3e5a222"><span class="section-number-3">5.2</span> Value, gradients, Laplacian</h3>
|
||||
<div class="outline-text-3" id="text-5-2">
|
||||
</div>
|
||||
<div id="outline-container-org1a49b33" class="outline-4">
|
||||
<h4 id="org1a49b33"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-orgd5af23b" class="outline-4">
|
||||
<h4 id="orgd5af23b"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-1">
|
||||
<table id="org125dd3b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1b21b3e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3873,10 +3873,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeef6ca6" class="outline-4">
|
||||
<h4 id="orgeef6ca6"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div id="outline-container-org425b10c" class="outline-4">
|
||||
<h4 id="org425b10c"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-2">
|
||||
<table id="orgee0d114" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgeadb0a2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4035,8 +4035,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orga35c073" class="outline-4">
|
||||
<h4 id="orga35c073"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||
<div id="outline-container-org9a4eaa9" class="outline-4">
|
||||
<h4 id="org9a4eaa9"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||
<div class="outline-text-4" id="text-5-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_compute_ao_vgl_doc</span> (
|
||||
|
172
qmckl_blas.html
172
qmckl_blas.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-11-16 Wed 21:56 -->
|
||||
<!-- 2022-11-16 Wed 21:57 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>BLAS functions</title>
|
||||
@ -333,54 +333,54 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgc55a35a">-</a></li>
|
||||
<li><a href="#orgb012585">1. Data types</a>
|
||||
<li><a href="#org4b017fb">-</a></li>
|
||||
<li><a href="#org2b4cf39">1. Data types</a>
|
||||
<ul>
|
||||
<li><a href="#orgd1bdabd">1.1. Vector</a></li>
|
||||
<li><a href="#org66acd4c">1.2. Matrix</a></li>
|
||||
<li><a href="#org8a04519">1.3. Tensor</a></li>
|
||||
<li><a href="#org5e4741d">1.4. Reshaping</a>
|
||||
<li><a href="#orgbe8bc02">1.1. Vector</a></li>
|
||||
<li><a href="#orgc45b9a6">1.2. Matrix</a></li>
|
||||
<li><a href="#org55f9586">1.3. Tensor</a></li>
|
||||
<li><a href="#org04b7eea">1.4. Reshaping</a>
|
||||
<ul>
|
||||
<li><a href="#org0cdbe30">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#orgf04424f">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#orgbbff41b">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#org430eb36">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#org0e7d93d">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#orgf07e3fb">1.4.6. Tensor -> Matrix</a></li>
|
||||
<li><a href="#org385851f">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#org2b327b5">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#orgea5f2e3">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#orgf34fbc7">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#org3cd36de">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#orgc66b038">1.4.6. Tensor -> Matrix</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb67c6d5">1.5. Access macros</a></li>
|
||||
<li><a href="#orgb3bddc2">1.6. Set all elements</a>
|
||||
<li><a href="#org3c41c72">1.5. Access macros</a></li>
|
||||
<li><a href="#orga533437">1.6. Set all elements</a>
|
||||
<ul>
|
||||
<li><a href="#orgaeb0518">1.6.1. Vector</a></li>
|
||||
<li><a href="#orge4179e2">1.6.2. Matrix</a></li>
|
||||
<li><a href="#orgbac3a03">1.6.3. Tensor</a></li>
|
||||
<li><a href="#orge76218d">1.6.1. Vector</a></li>
|
||||
<li><a href="#org7b2e2f3">1.6.2. Matrix</a></li>
|
||||
<li><a href="#org03c62ef">1.6.3. Tensor</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbb9ba73">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#org2567496">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbb49279">2. Matrix operations</a>
|
||||
<li><a href="#org6bf7753">2. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#org2a2443e">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#orgb4a5676">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#orgd195bb6">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org52432dd">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#orga94cbcb">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<li><a href="#org149743f">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#orgc2eaa0c">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#orgdfdf35f">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org8192b2e">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#orgf892270">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgbcb29c3">2.5.1. C interface</a></li>
|
||||
<li><a href="#orgd8ddda6">2.5.1. C interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org051af4a">2.6. <code>qmckl_transpose</code></a></li>
|
||||
<li><a href="#org5704c46">2.6. <code>qmckl_transpose</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc55a35a" class="outline-2">
|
||||
<h2 id="orgc55a35a">-</h2>
|
||||
<div class="outline-text-2" id="text-orgc55a35a">
|
||||
<div id="outline-container-org4b017fb" class="outline-2">
|
||||
<h2 id="org4b017fb">-</h2>
|
||||
<div class="outline-text-2" id="text-org4b017fb">
|
||||
<p>
|
||||
Basic linear algebra data types and operations are described in this file.
|
||||
The data types are private, so that HPC implementations can use
|
||||
@ -394,12 +394,12 @@ are not intended to be passed to external codes.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb012585" class="outline-2">
|
||||
<h2 id="orgb012585"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div id="outline-container-org2b4cf39" class="outline-2">
|
||||
<h2 id="org2b4cf39"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-orgd1bdabd" class="outline-3">
|
||||
<h3 id="orgd1bdabd"><span class="section-number-3">1.1</span> Vector</h3>
|
||||
<div id="outline-container-orgbe8bc02" class="outline-3">
|
||||
<h3 id="orgbe8bc02"><span class="section-number-3">1.1</span> Vector</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
@ -453,8 +453,8 @@ Allocates a new vector. If the allocation failed the size is zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org66acd4c" class="outline-3">
|
||||
<h3 id="org66acd4c"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||
<div id="outline-container-orgc45b9a6" class="outline-3">
|
||||
<h3 id="orgc45b9a6"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
@ -514,8 +514,8 @@ Allocates a new matrix. If the allocation failed the sizes are zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8a04519" class="outline-3">
|
||||
<h3 id="org8a04519"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||
<div id="outline-container-org55f9586" class="outline-3">
|
||||
<h3 id="org55f9586"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
@ -582,16 +582,16 @@ is zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5e4741d" class="outline-3">
|
||||
<h3 id="org5e4741d"><span class="section-number-3">1.4</span> Reshaping</h3>
|
||||
<div id="outline-container-org04b7eea" class="outline-3">
|
||||
<h3 id="org04b7eea"><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-org0cdbe30" class="outline-4">
|
||||
<h4 id="org0cdbe30"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||
<div id="outline-container-org385851f" class="outline-4">
|
||||
<h4 id="org385851f"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||
<div class="outline-text-4" id="text-1-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||
@ -607,8 +607,8 @@ Reshapes a vector into a matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf04424f" class="outline-4">
|
||||
<h4 id="orgf04424f"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||
<div id="outline-container-org2b327b5" class="outline-4">
|
||||
<h4 id="org2b327b5"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||
<div class="outline-text-4" id="text-1-4-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||
@ -624,8 +624,8 @@ Reshapes a vector into a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbbff41b" class="outline-4">
|
||||
<h4 id="orgbbff41b"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||
<div id="outline-container-orgea5f2e3" class="outline-4">
|
||||
<h4 id="orgea5f2e3"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||
<div class="outline-text-4" id="text-1-4-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||
@ -639,8 +639,8 @@ Reshapes a matrix into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org430eb36" class="outline-4">
|
||||
<h4 id="org430eb36"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||
<div id="outline-container-orgf34fbc7" class="outline-4">
|
||||
<h4 id="orgf34fbc7"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||
<div class="outline-text-4" id="text-1-4-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||
@ -656,8 +656,8 @@ Reshapes a matrix into a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0e7d93d" class="outline-4">
|
||||
<h4 id="org0e7d93d"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||
<div id="outline-container-org3cd36de" class="outline-4">
|
||||
<h4 id="org3cd36de"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||
<div class="outline-text-4" id="text-1-4-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||
@ -671,8 +671,8 @@ Reshapes a tensor into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf07e3fb" class="outline-4">
|
||||
<h4 id="orgf07e3fb"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||
<div id="outline-container-orgc66b038" class="outline-4">
|
||||
<h4 id="orgc66b038"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||
<div class="outline-text-4" id="text-1-4-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||
@ -689,8 +689,8 @@ Reshapes a tensor into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb67c6d5" class="outline-3">
|
||||
<h3 id="orgb67c6d5"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||
<div id="outline-container-org3c41c72" class="outline-3">
|
||||
<h3 id="org3c41c72"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
Macros are provided to ease the access to vectors, matrices and
|
||||
@ -714,12 +714,12 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb3bddc2" class="outline-3">
|
||||
<h3 id="orgb3bddc2"><span class="section-number-3">1.6</span> Set all elements</h3>
|
||||
<div id="outline-container-orga533437" class="outline-3">
|
||||
<h3 id="orga533437"><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-orgaeb0518" class="outline-4">
|
||||
<h4 id="orgaeb0518"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||
<div id="outline-container-orge76218d" class="outline-4">
|
||||
<h4 id="orge76218d"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||
<div class="outline-text-4" id="text-1-6-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||
@ -729,8 +729,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge4179e2" class="outline-4">
|
||||
<h4 id="orge4179e2"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||
<div id="outline-container-org7b2e2f3" class="outline-4">
|
||||
<h4 id="org7b2e2f3"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||
<div class="outline-text-4" id="text-1-6-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||
@ -740,8 +740,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbac3a03" class="outline-4">
|
||||
<h4 id="orgbac3a03"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||
<div id="outline-container-org03c62ef" class="outline-4">
|
||||
<h4 id="org03c62ef"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||
<div class="outline-text-4" id="text-1-6-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||
@ -752,8 +752,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbb9ba73" class="outline-3">
|
||||
<h3 id="orgbb9ba73"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||
<div id="outline-container-org2567496" class="outline-3">
|
||||
<h3 id="org2567496"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||
<div class="outline-text-3" id="text-1-7">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -836,12 +836,12 @@ Converts a <code>double*</code> to a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbb49279" class="outline-2">
|
||||
<h2 id="orgbb49279"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div id="outline-container-org6bf7753" class="outline-2">
|
||||
<h2 id="org6bf7753"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org2a2443e" class="outline-3">
|
||||
<h3 id="org2a2443e"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div id="outline-container-org149743f" class="outline-3">
|
||||
<h3 id="org149743f"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
Matrix multiplication with a BLAS interface:
|
||||
@ -853,7 +853,7 @@ Matrix multiplication with a BLAS interface:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="org3f4739d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb45c010" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1012,8 +1012,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb4a5676" class="outline-3">
|
||||
<h3 id="orgb4a5676"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
||||
<div id="outline-container-orgc2eaa0c" class="outline-3">
|
||||
<h3 id="orgc2eaa0c"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
"Size-safe" proxy function with the same functionality as <code>qmckl_dgemm</code>
|
||||
@ -1022,7 +1022,7 @@ are required primarily for the Python API, where compatibility with
|
||||
NumPy arrays implies that sizes of the input and output arrays are provided.
|
||||
</p>
|
||||
|
||||
<table id="org05531db" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org65ebf5e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1208,8 +1208,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd195bb6" class="outline-3">
|
||||
<h3 id="orgd195bb6"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
||||
<div id="outline-container-orgdfdf35f" class="outline-3">
|
||||
<h3 id="orgdfdf35f"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
@ -1221,7 +1221,7 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="orgab7be63" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb12ec17" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1315,8 +1315,8 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org52432dd" class="outline-3">
|
||||
<h3 id="org52432dd"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
||||
<div id="outline-container-org8192b2e" class="outline-3">
|
||||
<h3 id="org8192b2e"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
Given a matrix \(\mathbf{A}\), the adjugate matrix
|
||||
@ -1334,7 +1334,7 @@ of \(\mathbf{A}\).
|
||||
See also: <a href="https://en.wikipedia.org/wiki/Adjugate_matrix">https://en.wikipedia.org/wiki/Adjugate_matrix</a>
|
||||
</p>
|
||||
|
||||
<table id="org38731e9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6bc2303" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1530,8 +1530,8 @@ determinant with the inverse:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga94cbcb" class="outline-3">
|
||||
<h3 id="orga94cbcb"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
||||
<div id="outline-container-orgf892270" class="outline-3">
|
||||
<h3 id="orgf892270"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
<p>
|
||||
"Size-safe" proxy function with the same functionality as <code>qmckl_adjugate</code>
|
||||
@ -1541,7 +1541,7 @@ NumPy arrays implies that sizes of the input and output arrays are provided.
|
||||
</p>
|
||||
|
||||
|
||||
<table id="org05e7e09" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga9ec34e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1663,13 +1663,13 @@ LAPACK library.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbcb29c3" class="outline-4">
|
||||
<h4 id="orgbcb29c3"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
<div id="outline-container-orgd8ddda6" class="outline-4">
|
||||
<h4 id="orgd8ddda6"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org051af4a" class="outline-3">
|
||||
<h3 id="org051af4a"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
||||
<div id="outline-container-org5704c46" class="outline-3">
|
||||
<h3 id="org5704c46"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
||||
@ -1732,7 +1732,7 @@ Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 21:56</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 21:57</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -311,21 +311,21 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgf3e855c">1. Context handling</a>
|
||||
<li><a href="#org59f3b84">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#org7742eff">1.1. Data structure</a></li>
|
||||
<li><a href="#org784a101">1.2. Creation</a></li>
|
||||
<li><a href="#org4cc355f">1.3. Locking</a></li>
|
||||
<li><a href="#org36202b9">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#orgf818c13">1.5. Destroy</a></li>
|
||||
<li><a href="#org3a96c37">1.1. Data structure</a></li>
|
||||
<li><a href="#org2bdae81">1.2. Creation</a></li>
|
||||
<li><a href="#org1982cc9">1.3. Locking</a></li>
|
||||
<li><a href="#orgaa8e701">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#orgd9b45f0">1.5. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf3e855c" class="outline-2">
|
||||
<h2 id="orgf3e855c"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-org59f3b84" class="outline-2">
|
||||
<h2 id="org59f3b84"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The context variable is a handle for the state of the library,
|
||||
@ -338,7 +338,7 @@ A value of <code>QMCKL_NULL_CONTEXT</code> for the context is equivalent to a
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org0193aec"><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="org36cb691"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int64_t</span> <span style="color: #228b22;">qmckl_context</span> ;
|
||||
<span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">QMCKL_NULL_CONTEXT</span> (qmckl_context) 0
|
||||
</pre>
|
||||
</div>
|
||||
@ -356,8 +356,8 @@ and <code>ctx</code> is a <code>qmckl_context_struct*</code> pointer.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7742eff" class="outline-3">
|
||||
<h3 id="org7742eff"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org3a96c37" class="outline-3">
|
||||
<h3 id="org3a96c37"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
A tag is used internally to check if the memory domain pointed
|
||||
@ -385,7 +385,7 @@ to be recomputed. The date is incremented when the context is touched.
|
||||
|
||||
<p>
|
||||
When a new element is added to the context, the functions
|
||||
<a href="#org784a101"><code>qmckl_context_create</code></a> <a href="#orgf818c13"><code>qmckl_context_destroy</code></a> and <a href="#org36202b9"><code>qmckl_context_copy</code></a>
|
||||
<a href="#org2bdae81"><code>qmckl_context_create</code></a> <a href="#orgd9b45f0"><code>qmckl_context_destroy</code></a> and <a href="#orgaa8e701"><code>qmckl_context_copy</code></a>
|
||||
should be updated in order to make deep copies.
|
||||
</p>
|
||||
|
||||
@ -406,8 +406,8 @@ This has the effect to increment the date of the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org784a101" class="outline-3">
|
||||
<h3 id="org784a101"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-org2bdae81" class="outline-3">
|
||||
<h3 id="org2bdae81"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
@ -424,8 +424,8 @@ To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org4cc355f" class="outline-3">
|
||||
<h3 id="org4cc355f"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-org1982cc9" class="outline-3">
|
||||
<h3 id="org1982cc9"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
For thread safety, the context may be locked/unlocked. The lock is
|
||||
@ -441,8 +441,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org36202b9" class="outline-3">
|
||||
<h3 id="org36202b9"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div id="outline-container-orgaa8e701" class="outline-3">
|
||||
<h3 id="orgaa8e701"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
<code>qmckl_context_copy</code> makes a deep copy of a context. It returns
|
||||
@ -450,8 +450,8 @@ number of times the thread has locked it is saved in the
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgf818c13" class="outline-3">
|
||||
<h3 id="orgf818c13"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-orgd9b45f0" class="outline-3">
|
||||
<h3 id="orgd9b45f0"><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.
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-11-16 Wed 21:56 -->
|
||||
<!-- 2022-11-16 Wed 21:57 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Slater Determinant</title>
|
||||
@ -311,32 +311,32 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org16bf9a3">1. Context</a>
|
||||
<li><a href="#orgf9ec3c7">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org2d75965">1.1. Data structure</a></li>
|
||||
<li><a href="#org27034f4">1.2. Access functions</a></li>
|
||||
<li><a href="#orgf8bfca6">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgdf97a00">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#orgf84ce82">1.5. Test</a></li>
|
||||
<li><a href="#orgcf94b12">1.1. Data structure</a></li>
|
||||
<li><a href="#orgdb6a944">1.2. Access functions</a></li>
|
||||
<li><a href="#org1ec74cb">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgd0215d9">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#org2a8ae8a">1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org12ac679">2. Computation</a>
|
||||
<li><a href="#org500a0a6">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org6c92229">2.1. Determinant matrix</a>
|
||||
<li><a href="#org2e60657">2.1. Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#orgaf431e5">2.1.1. Get</a></li>
|
||||
<li><a href="#orgbfc8ea3">2.1.2. Provide</a></li>
|
||||
<li><a href="#org7413d9f">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#org28ad252">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#orgd50baad">2.1.5. Test</a></li>
|
||||
<li><a href="#org3b6a5f4">2.1.1. Get</a></li>
|
||||
<li><a href="#org38d48bd">2.1.2. Provide</a></li>
|
||||
<li><a href="#org0cd2083">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#org5e44207">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#orgd5b0f10">2.1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1c2bdbc">2.2. Inverse of Determinant matrix</a>
|
||||
<li><a href="#org8ae3326">2.2. Inverse of Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#orgb6c2faf">2.2.1. Get</a></li>
|
||||
<li><a href="#org1d8d05f">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgce2cb85">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#orgf896fd6">2.2.4. Compute beta</a></li>
|
||||
<li><a href="#org34509b9">2.2.1. Get</a></li>
|
||||
<li><a href="#org2df545c">2.2.2. Provide</a></li>
|
||||
<li><a href="#org4e78526">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#org9f01dab">2.2.4. Compute beta</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -345,8 +345,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org16bf9a3" class="outline-2">
|
||||
<h2 id="org16bf9a3"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgf9ec3c7" class="outline-2">
|
||||
<h2 id="orgf9ec3c7"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following arrays are stored in the context:
|
||||
@ -522,8 +522,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2d75965" class="outline-3">
|
||||
<h3 id="org2d75965"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgcf94b12" class="outline-3">
|
||||
<h3 id="orgcf94b12"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_determinant_struct</span> {
|
||||
@ -591,8 +591,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org27034f4" class="outline-3">
|
||||
<h3 id="org27034f4"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgdb6a944" class="outline-3">
|
||||
<h3 id="orgdb6a944"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
When all the data for the slater determinants have been provided, the following
|
||||
@ -606,8 +606,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf8bfca6" class="outline-3">
|
||||
<h3 id="orgf8bfca6"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org1ec74cb" class="outline-3">
|
||||
<h3 id="org1ec74cb"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To set the basis set, all the following functions need to be
|
||||
@ -630,24 +630,24 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdf97a00" class="outline-3">
|
||||
<h3 id="orgdf97a00"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
<div id="outline-container-orgd0215d9" class="outline-3">
|
||||
<h3 id="orgd0215d9"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
</div>
|
||||
<div id="outline-container-orgf84ce82" class="outline-3">
|
||||
<h3 id="orgf84ce82"><span class="section-number-3">1.5</span> Test</h3>
|
||||
<div id="outline-container-org2a8ae8a" class="outline-3">
|
||||
<h3 id="org2a8ae8a"><span class="section-number-3">1.5</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org12ac679" class="outline-2">
|
||||
<h2 id="org12ac679"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org500a0a6" class="outline-2">
|
||||
<h2 id="org500a0a6"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org6c92229" class="outline-3">
|
||||
<h3 id="org6c92229"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
||||
<div id="outline-container-org2e60657" class="outline-3">
|
||||
<h3 id="org2e60657"><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-orgaf431e5" class="outline-4">
|
||||
<h4 id="orgaf431e5"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org3b6a5f4" class="outline-4">
|
||||
<h4 id="org3b6a5f4"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_det_vgl_alpha</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">det_vgl_alpha</span>);
|
||||
@ -657,14 +657,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbfc8ea3" class="outline-4">
|
||||
<h4 id="orgbfc8ea3"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org38d48bd" class="outline-4">
|
||||
<h4 id="org38d48bd"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7413d9f" class="outline-4">
|
||||
<h4 id="org7413d9f"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org0cd2083" class="outline-4">
|
||||
<h4 id="org0cd2083"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="org9fcb853" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8be6134" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -838,10 +838,10 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org28ad252" class="outline-4">
|
||||
<h4 id="org28ad252"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org5e44207" class="outline-4">
|
||||
<h4 id="org5e44207"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<table id="org12c00b8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org442de49" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1015,18 +1015,18 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd50baad" class="outline-4">
|
||||
<h4 id="orgd50baad"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
<div id="outline-container-orgd5b0f10" class="outline-4">
|
||||
<h4 id="orgd5b0f10"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1c2bdbc" class="outline-3">
|
||||
<h3 id="org1c2bdbc"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
||||
<div id="outline-container-org8ae3326" class="outline-3">
|
||||
<h3 id="org8ae3326"><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-orgb6c2faf" class="outline-4">
|
||||
<h4 id="orgb6c2faf"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org34509b9" class="outline-4">
|
||||
<h4 id="org34509b9"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_det_inv_matrix_alpha</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">det_inv_matrix_alpha</span>);
|
||||
@ -1040,14 +1040,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1d8d05f" class="outline-4">
|
||||
<h4 id="org1d8d05f"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org2df545c" class="outline-4">
|
||||
<h4 id="org2df545c"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgce2cb85" class="outline-4">
|
||||
<h4 id="orgce2cb85"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org4e78526" class="outline-4">
|
||||
<h4 id="org4e78526"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org22e4e63" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgfbb1009" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1209,10 +1209,10 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf896fd6" class="outline-4">
|
||||
<h4 id="orgf896fd6"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org9f01dab" class="outline-4">
|
||||
<h4 id="org9f01dab"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<table id="org2439947" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3b06b73" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1379,7 +1379,7 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 21:56</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 21:57</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -333,54 +333,54 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org6d92064">1. Squared distance</a>
|
||||
<li><a href="#org4085a42">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#org29ed15b">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#orgf02fefc">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgf91a764">1.1.1. Performance</a></li>
|
||||
<li><a href="#orgb00d9cf">1.1.1. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9282984">2. Distance</a>
|
||||
<li><a href="#org8453b3a">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org65243ee">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#orgec50174">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#org7e30cca">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orgbf06b40">2.1.2. C header</a></li>
|
||||
<li><a href="#org0350363">2.1.3. Source</a></li>
|
||||
<li><a href="#orgd59879d">2.1.4. Performance</a></li>
|
||||
<li><a href="#org16a896f">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org216baa8">2.1.2. C header</a></li>
|
||||
<li><a href="#org69c0887">2.1.3. Source</a></li>
|
||||
<li><a href="#org413ddd5">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbc130c2">3. Rescaled Distance</a>
|
||||
<li><a href="#org6c3213f">3. Rescaled Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org0c1d074">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<li><a href="#orgc7a8952">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<ul>
|
||||
<li><a href="#org947120a">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org7c28be7">3.1.2. C header</a></li>
|
||||
<li><a href="#org4b09420">3.1.3. Source</a></li>
|
||||
<li><a href="#org21f9919">3.1.4. Performance</a></li>
|
||||
<li><a href="#org427ee89">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orge660614">3.1.2. C header</a></li>
|
||||
<li><a href="#orgcfef733">3.1.3. Source</a></li>
|
||||
<li><a href="#org1f20ea8">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgca0ea07">4. Rescaled Distance Derivatives</a>
|
||||
<li><a href="#org6e1b74e">4. Rescaled Distance Derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#org8a64c78">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a></li>
|
||||
<li><a href="#org8c78036">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6d92064" class="outline-2">
|
||||
<h2 id="org6d92064"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-org4085a42" class="outline-2">
|
||||
<h2 id="org4085a42"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org29ed15b" class="outline-3">
|
||||
<h3 id="org29ed15b"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-orgf02fefc" class="outline-3">
|
||||
<h3 id="orgf02fefc"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
<code>qmckl_distance_sq</code> computes the matrix of the squared distances
|
||||
@ -393,7 +393,7 @@ between all pairs of points in two sets, one point within each set:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="orgac14bbb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2e49765" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -659,8 +659,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf91a764" class="outline-4">
|
||||
<h4 id="orgf91a764"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div id="outline-container-orgb00d9cf" class="outline-4">
|
||||
<h4 id="orgb00d9cf"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-1-1-1">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are
|
||||
@ -670,12 +670,12 @@ transposed.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org9282984" class="outline-2">
|
||||
<h2 id="org9282984"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-org8453b3a" class="outline-2">
|
||||
<h2 id="org8453b3a"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org65243ee" class="outline-3">
|
||||
<h3 id="org65243ee"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div id="outline-container-orgec50174" class="outline-3">
|
||||
<h3 id="orgec50174"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
<code>qmckl_distance</code> computes the matrix of the distances between all
|
||||
@ -693,7 +693,7 @@ If the input array is normal (<code>'N'</code>), the xyz coordinates are in
|
||||
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
||||
</p>
|
||||
|
||||
<table id="org4f494ef" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4e472d6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -794,8 +794,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7e30cca" class="outline-4">
|
||||
<h4 id="org7e30cca"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org16a896f" class="outline-4">
|
||||
<h4 id="org16a896f"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -813,8 +813,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbf06b40" class="outline-4">
|
||||
<h4 id="orgbf06b40"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-org216baa8" class="outline-4">
|
||||
<h4 id="org216baa8"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance</span> (
|
||||
@ -834,8 +834,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0350363" class="outline-4">
|
||||
<h4 id="org0350363"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-org69c0887" class="outline-4">
|
||||
<h4 id="org69c0887"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
||||
@ -1002,8 +1002,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd59879d" class="outline-4">
|
||||
<h4 id="orgd59879d"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org413ddd5" class="outline-4">
|
||||
<h4 id="org413ddd5"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are transposed.
|
||||
@ -1013,12 +1013,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbc130c2" class="outline-2">
|
||||
<h2 id="orgbc130c2"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div id="outline-container-org6c3213f" class="outline-2">
|
||||
<h2 id="org6c3213f"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org0c1d074" class="outline-3">
|
||||
<h3 id="org0c1d074"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div id="outline-container-orgc7a8952" class="outline-3">
|
||||
<h3 id="orgc7a8952"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
<code>qmckl_distance_rescaled</code> computes the matrix of the rescaled distances between all
|
||||
@ -1036,7 +1036,7 @@ If the input array is normal (<code>'N'</code>), the xyz coordinates are in
|
||||
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
||||
</p>
|
||||
|
||||
<table id="orga4c82c8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org365a1d9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1144,8 +1144,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org947120a" class="outline-4">
|
||||
<h4 id="org947120a"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org427ee89" class="outline-4">
|
||||
<h4 id="org427ee89"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-3-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1163,8 +1163,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7c28be7" class="outline-4">
|
||||
<h4 id="org7c28be7"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-orge660614" class="outline-4">
|
||||
<h4 id="orge660614"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance_rescaled</span> (
|
||||
@ -1185,8 +1185,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4b09420" class="outline-4">
|
||||
<h4 id="org4b09420"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgcfef733" class="outline-4">
|
||||
<h4 id="orgcfef733"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-3-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_rescaled_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
||||
@ -1356,8 +1356,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org21f9919" class="outline-4">
|
||||
<h4 id="org21f9919"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org1f20ea8" class="outline-4">
|
||||
<h4 id="org1f20ea8"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-3-1-4">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are transposed.
|
||||
@ -1366,12 +1366,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgca0ea07" class="outline-2">
|
||||
<h2 id="orgca0ea07"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div id="outline-container-org6e1b74e" class="outline-2">
|
||||
<h2 id="org6e1b74e"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org8a64c78" class="outline-3">
|
||||
<h3 id="org8a64c78"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_deriv_e</code></h3>
|
||||
<div id="outline-container-org8c78036" class="outline-3">
|
||||
<h3 id="org8c78036"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_deriv_e</code></h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
<code>qmckl_distance_rescaled_deriv_e</code> computes the matrix of the gradient and laplacian of the
|
||||
@ -1438,7 +1438,7 @@ If the input array is normal (<code>'N'</code>), the xyz coordinates are in
|
||||
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
||||
</p>
|
||||
|
||||
<table id="orgcb5b230" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgbfb722f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-11-16 Wed 21:56 -->
|
||||
<!-- 2022-11-16 Wed 21:57 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Electrons</title>
|
||||
@ -333,59 +333,59 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org9a5b7b2">1. Context</a>
|
||||
<li><a href="#org3feaf99">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgfee4984">1.1. Data structure</a></li>
|
||||
<li><a href="#org5b97d12">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org01404d4">1.3. Access functions</a>
|
||||
<li><a href="#org2f71bed">1.1. Data structure</a></li>
|
||||
<li><a href="#org15cbe97">1.2. Initialization functions</a></li>
|
||||
<li><a href="#orgfbd6fba">1.3. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org0962dba">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#orgc134709">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#orgca1ef80">1.3.3. Electron coordinates</a></li>
|
||||
<li><a href="#orgc8affbf">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#orge1d251d">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#orgb41c7f3">1.3.3. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd9a0a67">1.4. Test</a></li>
|
||||
<li><a href="#orgbb4eef3">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org869258c">2. Computation</a>
|
||||
<li><a href="#org050c39e">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org9a47b87">2.1. Electron-electron distances</a>
|
||||
<li><a href="#orgc038964">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#org34fe5c3">2.1.1. Get</a></li>
|
||||
<li><a href="#org57300af">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgc25c9f4">2.1.3. Test</a></li>
|
||||
<li><a href="#org59c9c81">2.1.1. Get</a></li>
|
||||
<li><a href="#org7205062">2.1.2. Compute</a></li>
|
||||
<li><a href="#org104e536">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1732f11">2.2. Electron-electron potential</a>
|
||||
<li><a href="#org9924a0b">2.2. Electron-electron potential</a>
|
||||
<ul>
|
||||
<li><a href="#org350e3f6">2.2.1. Get</a></li>
|
||||
<li><a href="#orga9908fe">2.2.2. Compute</a></li>
|
||||
<li><a href="#org63b9083">2.2.3. Test</a></li>
|
||||
<li><a href="#orgddc0423">2.2.1. Get</a></li>
|
||||
<li><a href="#org9ae1bbb">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgf1f4840">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4de2cf0">2.3. Electron-nucleus distances</a>
|
||||
<li><a href="#org92a7cb5">2.3. Electron-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org2860976">2.3.1. Get</a></li>
|
||||
<li><a href="#org94d2f0b">2.3.2. Compute</a></li>
|
||||
<li><a href="#org261c2d6">2.3.3. Test</a></li>
|
||||
<li><a href="#org8a7374d">2.3.1. Get</a></li>
|
||||
<li><a href="#orga098a04">2.3.2. Compute</a></li>
|
||||
<li><a href="#org0ca3620">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbce2a89">2.4. Electron-nucleus potential</a>
|
||||
<li><a href="#org681d268">2.4. Electron-nucleus potential</a>
|
||||
<ul>
|
||||
<li><a href="#orga463f43">2.4.1. Get</a></li>
|
||||
<li><a href="#org1fca394">2.4.2. Compute</a></li>
|
||||
<li><a href="#orgd5e8e98">2.4.3. Test</a></li>
|
||||
<li><a href="#org99aaa60">2.4.1. Get</a></li>
|
||||
<li><a href="#orgcfff94c">2.4.2. Compute</a></li>
|
||||
<li><a href="#org2a5fc71">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org26c72d1">2.5. Generate initial coordinates</a></li>
|
||||
<li><a href="#org6ef48a3">2.5. Generate initial coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9a5b7b2" class="outline-2">
|
||||
<h2 id="org9a5b7b2"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org3feaf99" class="outline-2">
|
||||
<h2 id="org3feaf99"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following data stored in the context:
|
||||
@ -526,8 +526,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfee4984" class="outline-3">
|
||||
<h3 id="orgfee4984"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org2f71bed" class="outline-3">
|
||||
<h3 id="org2f71bed"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">
|
||||
@ -596,8 +596,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5b97d12" class="outline-3">
|
||||
<h3 id="org5b97d12"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-org15cbe97" class="outline-3">
|
||||
<h3 id="org15cbe97"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To set the data relative to the electrons in the context, the
|
||||
@ -670,8 +670,8 @@ in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org01404d4" class="outline-3">
|
||||
<h3 id="org01404d4"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div id="outline-container-orgfbd6fba" class="outline-3">
|
||||
<h3 id="orgfbd6fba"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
Access functions return <code>QMCKL_SUCCESS</code> when the data has been
|
||||
@ -683,12 +683,12 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0962dba" class="outline-4">
|
||||
<h4 id="org0962dba"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
<div id="outline-container-orgc8affbf" class="outline-4">
|
||||
<h4 id="orgc8affbf"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc134709" class="outline-4">
|
||||
<h4 id="orgc134709"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
||||
<div id="outline-container-orge1d251d" class="outline-4">
|
||||
<h4 id="orge1d251d"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
||||
<div class="outline-text-4" id="text-1-3-2">
|
||||
<p>
|
||||
A walker is a set of electron coordinates that are arguments of
|
||||
@ -697,8 +697,8 @@ the wave function. <code>walk_num</code> is the number of walkers.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgca1ef80" class="outline-4">
|
||||
<h4 id="orgca1ef80"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
||||
<div id="outline-container-orgb41c7f3" class="outline-4">
|
||||
<h4 id="orgb41c7f3"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-3-3">
|
||||
<p>
|
||||
Returns the current electron coordinates. The pointer is assumed
|
||||
@ -748,8 +748,8 @@ current points.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd9a0a67" class="outline-3">
|
||||
<h3 id="orgd9a0a67"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orgbb4eef3" class="outline-3">
|
||||
<h3 id="orgbb4eef3"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -828,8 +828,8 @@ rc = qmckl_get_electron_coord (context, <span style="color: #8b2252;">'N'</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org869258c" class="outline-2">
|
||||
<h2 id="org869258c"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org050c39e" class="outline-2">
|
||||
<h2 id="org050c39e"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The computed data is stored in the context so that it can be reused
|
||||
@ -842,12 +842,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9a47b87" class="outline-3">
|
||||
<h3 id="org9a47b87"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-orgc038964" class="outline-3">
|
||||
<h3 id="orgc038964"><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-org34fe5c3" class="outline-4">
|
||||
<h4 id="org34fe5c3"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org59c9c81" class="outline-4">
|
||||
<h4 id="org59c9c81"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_ee_distance</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">distance</span>);
|
||||
@ -856,10 +856,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org57300af" class="outline-4">
|
||||
<h4 id="org57300af"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org7205062" class="outline-4">
|
||||
<h4 id="org7205062"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org6a1cc72" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9aa79b9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -964,8 +964,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc25c9f4" class="outline-4">
|
||||
<h4 id="orgc25c9f4"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org104e536" class="outline-4">
|
||||
<h4 id="org104e536"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_electron_provided</span>(<span style="color: #a0522d;">context</span>));
|
||||
@ -999,8 +999,8 @@ rc = qmckl_get_electron_ee_distance(context, ee_distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1732f11" class="outline-3">
|
||||
<h3 id="org1732f11"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
||||
<div id="outline-container-org9924a0b" class="outline-3">
|
||||
<h3 id="org9924a0b"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
<code>ee_potential</code> is given by
|
||||
@ -1018,8 +1018,8 @@ distance.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org350e3f6" class="outline-4">
|
||||
<h4 id="org350e3f6"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgddc0423" class="outline-4">
|
||||
<h4 id="orgddc0423"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_ee_potential</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">ee_potential</span>);
|
||||
@ -1028,10 +1028,10 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga9908fe" class="outline-4">
|
||||
<h4 id="orga9908fe"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org9ae1bbb" class="outline-4">
|
||||
<h4 id="org9ae1bbb"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orgc820ab2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org28bfc54" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1147,8 +1147,8 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org63b9083" class="outline-4">
|
||||
<h4 id="org63b9083"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-orgf1f4840" class="outline-4">
|
||||
<h4 id="orgf1f4840"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">double</span> <span style="color: #a0522d;">ee_potential</span>[walk_num];
|
||||
@ -1160,12 +1160,12 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org4de2cf0" class="outline-3">
|
||||
<h3 id="org4de2cf0"><span class="section-number-3">2.3</span> Electron-nucleus distances</h3>
|
||||
<div id="outline-container-org92a7cb5" class="outline-3">
|
||||
<h3 id="org92a7cb5"><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-org2860976" class="outline-4">
|
||||
<h4 id="org2860976"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org8a7374d" class="outline-4">
|
||||
<h4 id="org8a7374d"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_distance</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">distance</span>);
|
||||
@ -1174,10 +1174,10 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org94d2f0b" class="outline-4">
|
||||
<h4 id="org94d2f0b"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-orga098a04" class="outline-4">
|
||||
<h4 id="orga098a04"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org5e4eae2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb165cce" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1302,8 +1302,8 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org261c2d6" class="outline-4">
|
||||
<h4 id="org261c2d6"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-org0ca3620" class="outline-4">
|
||||
<h4 id="org0ca3620"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-3-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">
|
||||
@ -1351,8 +1351,8 @@ rc = qmckl_get_electron_en_distance(context, &(en_distance[0][0][0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbce2a89" class="outline-3">
|
||||
<h3 id="orgbce2a89"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
||||
<div id="outline-container-org681d268" class="outline-3">
|
||||
<h3 id="org681d268"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
<code>en_potential</code> stores the <code>en</code> potential energy
|
||||
@ -1370,8 +1370,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga463f43" class="outline-4">
|
||||
<h4 id="orga463f43"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org99aaa60" class="outline-4">
|
||||
<h4 id="org99aaa60"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_potential</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">en_potential</span>);
|
||||
@ -1380,10 +1380,10 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1fca394" class="outline-4">
|
||||
<h4 id="org1fca394"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-orgcfff94c" class="outline-4">
|
||||
<h4 id="orgcfff94c"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="orgdd92e1e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8a0409e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1517,8 +1517,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd5e8e98" class="outline-4">
|
||||
<h4 id="orgd5e8e98"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-org2a5fc71" class="outline-4">
|
||||
<h4 id="org2a5fc71"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-4-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">double</span> <span style="color: #a0522d;">en_potential</span>[walk_num];
|
||||
@ -1531,14 +1531,14 @@ rc = qmckl_get_electron_en_potential(context, &(en_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org26c72d1" class="outline-3">
|
||||
<h3 id="org26c72d1"><span class="section-number-3">2.5</span> Generate initial coordinates</h3>
|
||||
<div id="outline-container-org6ef48a3" class="outline-3">
|
||||
<h3 id="org6ef48a3"><span class="section-number-3">2.5</span> Generate initial coordinates</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 21:56</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 21:57</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-11-16 Wed 21:56 -->
|
||||
<!-- 2022-11-16 Wed 21:57 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Error handling</title>
|
||||
@ -311,29 +311,29 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org59e7ca8">-</a></li>
|
||||
<li><a href="#orgf762ad2">1. Decoding errors</a></li>
|
||||
<li><a href="#org6cd45b5">2. Data structure in context</a></li>
|
||||
<li><a href="#org47ef72b">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org0d14b09">4. Get the error</a></li>
|
||||
<li><a href="#orgf0e66b6">5. Failing</a></li>
|
||||
<li><a href="#org9df164f">6. Last error</a>
|
||||
<li><a href="#org251e018">-</a></li>
|
||||
<li><a href="#org238098d">1. Decoding errors</a></li>
|
||||
<li><a href="#org3c15b28">2. Data structure in context</a></li>
|
||||
<li><a href="#orgad56ee4">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org85692e2">4. Get the error</a></li>
|
||||
<li><a href="#orgd0551e5">5. Failing</a></li>
|
||||
<li><a href="#orgc517b90">6. Last error</a>
|
||||
<ul>
|
||||
<li><a href="#org31782fc">6.1. Fortran inteface</a></li>
|
||||
<li><a href="#orgd9be403">6.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf446be1">7. Helper functions for debugging</a>
|
||||
<li><a href="#orgf017b93">7. Helper functions for debugging</a>
|
||||
<ul>
|
||||
<li><a href="#org2dea113">7.1. Fortran inteface</a></li>
|
||||
<li><a href="#orgcb97404">7.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org59e7ca8" class="outline-2">
|
||||
<h2 id="org59e7ca8">-</h2>
|
||||
<div class="outline-text-2" id="text-org59e7ca8">
|
||||
<div id="outline-container-org251e018" class="outline-2">
|
||||
<h2 id="org251e018">-</h2>
|
||||
<div class="outline-text-2" id="text-org251e018">
|
||||
<p>
|
||||
The library should never make the calling programs abort, nor
|
||||
perform any input/output operations. This decision has to be taken
|
||||
@ -344,7 +344,7 @@ by the developer of the code calling the library.
|
||||
All the functions return with an exit code, defined as
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org63c1308"><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="org29ea229"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int32_t</span> <span style="color: #228b22;">qmckl_exit_code</span>;
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -361,7 +361,7 @@ error code is returned to the program.
|
||||
Here is the complete list of exit codes.
|
||||
</p>
|
||||
|
||||
<table id="org580ff03" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8ea9dbb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -569,8 +569,8 @@ string is assumed to be large enough to contain the error message
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf762ad2" class="outline-2">
|
||||
<h2 id="orgf762ad2"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-org238098d" class="outline-2">
|
||||
<h2 id="org238098d"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
To decode the error messages, <code>qmckl_string_of_error</code> converts an
|
||||
@ -588,8 +588,8 @@ The text strings are extracted from the previous table.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org6cd45b5" class="outline-2">
|
||||
<h2 id="org6cd45b5"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-org3c15b28" class="outline-2">
|
||||
<h2 id="org3c15b28"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The strings are declared internally with a maximum fixed size to avoid
|
||||
@ -612,8 +612,8 @@ dynamic memory allocation.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org47ef72b" class="outline-2">
|
||||
<h2 id="org47ef72b"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div id="outline-container-orgad56ee4" class="outline-2">
|
||||
<h2 id="orgad56ee4"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
The error is updated in the context using <code>qmckl_set_error</code>.
|
||||
@ -632,8 +632,8 @@ explaining the error. The exit code can't be <code>QMCKL_SUCCESS</code>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org0d14b09" class="outline-2">
|
||||
<h2 id="org0d14b09"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div id="outline-container-org85692e2" class="outline-2">
|
||||
<h2 id="org85692e2"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
Upon error, the error type and message can be obtained from the
|
||||
@ -652,8 +652,8 @@ function name and message is mandatory.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgf0e66b6" class="outline-2">
|
||||
<h2 id="orgf0e66b6"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div id="outline-container-orgd0551e5" class="outline-2">
|
||||
<h2 id="orgd0551e5"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
<p>
|
||||
To make a function fail, the <code>qmckl_failwith</code> function should be
|
||||
@ -690,8 +690,8 @@ For example, this function can be used as
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9df164f" class="outline-2">
|
||||
<h2 id="org9df164f"><span class="section-number-2">6</span> Last error</h2>
|
||||
<div id="outline-container-orgc517b90" class="outline-2">
|
||||
<h2 id="orgc517b90"><span class="section-number-2">6</span> Last error</h2>
|
||||
<div class="outline-text-2" id="text-6">
|
||||
<p>
|
||||
Returns a string describing the last error, using <code>qmckl_get_error</code>.
|
||||
@ -703,13 +703,13 @@ Returns a string describing the last error, using <code>qmckl_get_error</code>.
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org31782fc" class="outline-3">
|
||||
<h3 id="org31782fc"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-orgd9be403" class="outline-3">
|
||||
<h3 id="orgd9be403"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf446be1" class="outline-2">
|
||||
<h2 id="orgf446be1"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
||||
<div id="outline-container-orgf017b93" class="outline-2">
|
||||
<h2 id="orgf017b93"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
||||
<div class="outline-text-2" id="text-7">
|
||||
<p>
|
||||
The following function prints to <code>stderr</code> an error message is the return code is
|
||||
@ -735,14 +735,14 @@ It should be used as:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2dea113" class="outline-3">
|
||||
<h3 id="org2dea113"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-orgcb97404" class="outline-3">
|
||||
<h3 id="orgcb97404"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 21:56</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 21:57</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-11-16 Wed 21:56 -->
|
||||
<!-- 2022-11-16 Wed 21:57 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Code examples</title>
|
||||
@ -333,27 +333,27 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgac77305">1. Python</a>
|
||||
<li><a href="#org50fc0b9">1. Python</a>
|
||||
<ul>
|
||||
<li><a href="#orgd7d88de">1.1. Check numerically that MOs are orthonormal</a></li>
|
||||
<li><a href="#org04668d9">1.1. Check numerically that MOs are orthonormal</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga5a7ce2">2. Fortran</a>
|
||||
<li><a href="#org5b2efb1">2. Fortran</a>
|
||||
<ul>
|
||||
<li><a href="#org7fece38">2.1. Checking errors</a></li>
|
||||
<li><a href="#org948adaf">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
<li><a href="#org242a7a2">2.1. Checking errors</a></li>
|
||||
<li><a href="#org39c4809">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgac77305" class="outline-2">
|
||||
<h2 id="orgac77305"><span class="section-number-2">1</span> Python</h2>
|
||||
<div id="outline-container-org50fc0b9" class="outline-2">
|
||||
<h2 id="org50fc0b9"><span class="section-number-2">1</span> Python</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-orgd7d88de" class="outline-3">
|
||||
<h3 id="orgd7d88de"><span class="section-number-3">1.1</span> Check numerically that MOs are orthonormal</h3>
|
||||
<div id="outline-container-org04668d9" class="outline-3">
|
||||
<h3 id="org04668d9"><span class="section-number-3">1.1</span> Check numerically that MOs are orthonormal</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
In this example, we will compute numerically the overlap
|
||||
@ -529,12 +529,12 @@ and finally we compute the overlap between all the MOs as
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga5a7ce2" class="outline-2">
|
||||
<h2 id="orga5a7ce2"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div id="outline-container-org5b2efb1" class="outline-2">
|
||||
<h2 id="org5b2efb1"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org7fece38" class="outline-3">
|
||||
<h3 id="org7fece38"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div id="outline-container-org242a7a2" class="outline-3">
|
||||
<h3 id="org242a7a2"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
All QMCkl functions return an error code. A convenient way to handle
|
||||
@ -543,7 +543,7 @@ error in text format and exits the program.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90" id="org73f1bd7"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<pre class="src src-f90" id="orgc3c75c3"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl</span>
|
||||
<span style="color: #a020f0;">implicit</span> <span style="color: #228b22;">none</span>
|
||||
<span style="color: #228b22;">integer</span>(qmckl_exit_code), <span style="color: #a020f0;">intent</span>(in) ::<span style="color: #a0522d;"> rc</span>
|
||||
@ -561,8 +561,8 @@ error in text format and exits the program.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org948adaf" class="outline-3">
|
||||
<h3 id="org948adaf"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div id="outline-container-org39c4809" class="outline-3">
|
||||
<h3 id="org39c4809"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
The following program, in Fortran, computes the values of an atomic
|
||||
@ -781,7 +781,7 @@ We finally print the value and Laplacian of the AO:
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 21:56</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 21:57</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
@ -333,44 +333,44 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgbeae352">1. Context</a>
|
||||
<li><a href="#orgadd83fb">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orge04d584">1.1. Data structure</a></li>
|
||||
<li><a href="#org4dc0ec5">1.2. Access functions</a></li>
|
||||
<li><a href="#orgf5099e0">1.1. Data structure</a></li>
|
||||
<li><a href="#org4196f81">1.2. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1db249f">2. Computation</a>
|
||||
<li><a href="#orgb620258">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org2d71cd0">2.1. Kinetic energy</a>
|
||||
<li><a href="#org9ff360b">2.1. Kinetic energy</a>
|
||||
<ul>
|
||||
<li><a href="#org39aef15">2.1.1. Get</a></li>
|
||||
<li><a href="#org1360688">2.1.2. Provide</a></li>
|
||||
<li><a href="#org3174b6b">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#orgd5c0858">2.1.4. Test</a></li>
|
||||
<li><a href="#org2debbaa">2.1.1. Get</a></li>
|
||||
<li><a href="#orgffa7931">2.1.2. Provide</a></li>
|
||||
<li><a href="#org4164b3e">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org7d15c4f">2.1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7c13228">2.2. Potential energy</a>
|
||||
<li><a href="#org1f0f643">2.2. Potential energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgb7ed8c0">2.2.1. Get</a></li>
|
||||
<li><a href="#orgac92067">2.2.2. Provide</a></li>
|
||||
<li><a href="#orge39c83e">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org0eaa836">2.2.4. Test</a></li>
|
||||
<li><a href="#orgb60ffe0">2.2.1. Get</a></li>
|
||||
<li><a href="#orgd5ceadb">2.2.2. Provide</a></li>
|
||||
<li><a href="#org00fd2ea">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org69d8956">2.2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf705145">2.3. Local energy</a>
|
||||
<li><a href="#org4ad8957">2.3. Local energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgd0f126a">2.3.1. Get</a></li>
|
||||
<li><a href="#org20396fb">2.3.2. Provide</a></li>
|
||||
<li><a href="#org323dbf7">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#orgdb17cb4">2.3.4. Test</a></li>
|
||||
<li><a href="#orgd1594c8">2.3.1. Get</a></li>
|
||||
<li><a href="#org476c1db">2.3.2. Provide</a></li>
|
||||
<li><a href="#org05930a6">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#org5d82507">2.3.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgcb99f87">2.4. Drift vector</a>
|
||||
<li><a href="#org4bbeb0b">2.4. Drift vector</a>
|
||||
<ul>
|
||||
<li><a href="#orga9b9f2b">2.4.1. Get</a></li>
|
||||
<li><a href="#orge2b7db4">2.4.2. Provide</a></li>
|
||||
<li><a href="#orgdabaa3e">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org96b2447">2.4.4. Test</a></li>
|
||||
<li><a href="#org433763c">2.4.1. Get</a></li>
|
||||
<li><a href="#org5a82dd2">2.4.2. Provide</a></li>
|
||||
<li><a href="#org48dedd6">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#orgd31ba00">2.4.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -379,8 +379,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbeae352" class="outline-2">
|
||||
<h2 id="orgbeae352"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgadd83fb" class="outline-2">
|
||||
<h2 id="orgadd83fb"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following arrays are stored in the context:
|
||||
@ -453,8 +453,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge04d584" class="outline-3">
|
||||
<h3 id="orge04d584"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgf5099e0" class="outline-3">
|
||||
<h3 id="orgf5099e0"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_local_energy_struct</span> {
|
||||
@ -488,8 +488,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4dc0ec5" class="outline-3">
|
||||
<h3 id="org4dc0ec5"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org4196f81" class="outline-3">
|
||||
<h3 id="org4196f81"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
When all the data for the local energy have been provided, the following
|
||||
@ -504,12 +504,12 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1db249f" class="outline-2">
|
||||
<h2 id="org1db249f"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orgb620258" class="outline-2">
|
||||
<h2 id="orgb620258"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org2d71cd0" class="outline-3">
|
||||
<h3 id="org2d71cd0"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div id="outline-container-org9ff360b" class="outline-3">
|
||||
<h3 id="org9ff360b"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
Where the kinetic energy is given as:
|
||||
@ -533,8 +533,8 @@ case is given as follows:
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org39aef15" class="outline-4">
|
||||
<h4 id="org39aef15"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org2debbaa" class="outline-4">
|
||||
<h4 id="org2debbaa"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_kinetic_energy</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">kinetic_energy</span>);
|
||||
@ -543,14 +543,14 @@ case is given as follows:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1360688" class="outline-4">
|
||||
<h4 id="org1360688"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-orgffa7931" class="outline-4">
|
||||
<h4 id="orgffa7931"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3174b6b" class="outline-4">
|
||||
<h4 id="org3174b6b"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
||||
<div id="outline-container-org4164b3e" class="outline-4">
|
||||
<h4 id="org4164b3e"><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="org8982b6c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgdde807b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -779,12 +779,12 @@ case is given as follows:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd5c0858" class="outline-4">
|
||||
<h4 id="orgd5c0858"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
<div id="outline-container-org7d15c4f" class="outline-4">
|
||||
<h4 id="org7d15c4f"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org7c13228" class="outline-3">
|
||||
<h3 id="org7c13228"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div id="outline-container-org1f0f643" class="outline-3">
|
||||
<h3 id="org1f0f643"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
The potential energy is the sum of all the following terms
|
||||
@ -820,8 +820,8 @@ contributions.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb7ed8c0" class="outline-4">
|
||||
<h4 id="orgb7ed8c0"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgb60ffe0" class="outline-4">
|
||||
<h4 id="orgb60ffe0"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_potential_energy</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">potential_energy</span>);
|
||||
@ -830,14 +830,14 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgac92067" class="outline-4">
|
||||
<h4 id="orgac92067"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-orgd5ceadb" class="outline-4">
|
||||
<h4 id="orgd5ceadb"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge39c83e" class="outline-4">
|
||||
<h4 id="orge39c83e"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
||||
<div id="outline-container-org00fd2ea" class="outline-4">
|
||||
<h4 id="org00fd2ea"><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="org0838da4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb80b26e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -964,12 +964,12 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0eaa836" class="outline-4">
|
||||
<h4 id="org0eaa836"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
<div id="outline-container-org69d8956" class="outline-4">
|
||||
<h4 id="org69d8956"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgf705145" class="outline-3">
|
||||
<h3 id="orgf705145"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div id="outline-container-org4ad8957" class="outline-3">
|
||||
<h3 id="org4ad8957"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
The local energy is the sum of kinetic and potential energies.
|
||||
@ -983,8 +983,8 @@ E_L = KE + PE
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgd0f126a" class="outline-4">
|
||||
<h4 id="orgd0f126a"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-orgd1594c8" class="outline-4">
|
||||
<h4 id="orgd1594c8"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_local_energy</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">local_energy</span>, <span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">size_max</span>);
|
||||
@ -993,14 +993,14 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org20396fb" class="outline-4">
|
||||
<h4 id="org20396fb"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-org476c1db" class="outline-4">
|
||||
<h4 id="org476c1db"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org323dbf7" class="outline-4">
|
||||
<h4 id="org323dbf7"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
||||
<div id="outline-container-org05930a6" class="outline-4">
|
||||
<h4 id="org05930a6"><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="orgdbcd013" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8879b45" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1096,12 +1096,12 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdb17cb4" class="outline-4">
|
||||
<h4 id="orgdb17cb4"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
<div id="outline-container-org5d82507" class="outline-4">
|
||||
<h4 id="org5d82507"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgcb99f87" class="outline-3">
|
||||
<h3 id="orgcb99f87"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div id="outline-container-org4bbeb0b" class="outline-3">
|
||||
<h3 id="org4bbeb0b"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
The drift vector is calculated as the ration of the gradient
|
||||
@ -1115,8 +1115,8 @@ with the determinant of the wavefunction.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga9b9f2b" class="outline-4">
|
||||
<h4 id="orga9b9f2b"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org433763c" class="outline-4">
|
||||
<h4 id="org433763c"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_drift_vector</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">drift_vector</span>);
|
||||
@ -1125,14 +1125,14 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge2b7db4" class="outline-4">
|
||||
<h4 id="orge2b7db4"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
<div id="outline-container-org5a82dd2" class="outline-4">
|
||||
<h4 id="org5a82dd2"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdabaa3e" class="outline-4">
|
||||
<h4 id="orgdabaa3e"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
||||
<div id="outline-container-org48dedd6" class="outline-4">
|
||||
<h4 id="org48dedd6"><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="org2cdf3e2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge82ae95" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1353,8 +1353,8 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org96b2447" class="outline-4">
|
||||
<h4 id="org96b2447"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
<div id="outline-container-orgd31ba00" class="outline-4">
|
||||
<h4 id="orgd31ba00"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-11-16 Wed 21:56 -->
|
||||
<!-- 2022-11-16 Wed 21:57 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Memory management</title>
|
||||
@ -311,16 +311,16 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org1ba3e1b">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#orgeb60a91">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orge6bf2d5">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#org6dd819f">4. Get the size of a memory block</a></li>
|
||||
<li><a href="#org31bba88">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org6234de7">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#org89a4588">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#org6364ddb">4. Get the size of a memory block</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1ba3e1b" class="outline-2">
|
||||
<h2 id="org1ba3e1b"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div id="outline-container-org31bba88" class="outline-2">
|
||||
<h2 id="org31bba88"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
Every time a new block of memory is allocated, the information
|
||||
@ -362,8 +362,8 @@ array, and the number of allocated blocks.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeb60a91" class="outline-2">
|
||||
<h2 id="orgeb60a91"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div id="outline-container-org6234de7" class="outline-2">
|
||||
<h2 id="org6234de7"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
Passing information to the allocation routine should be done by
|
||||
@ -372,8 +372,8 @@ passing an instance of a <code>qmckl_memory_info_struct</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge6bf2d5" class="outline-2">
|
||||
<h2 id="orge6bf2d5"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-org89a4588" class="outline-2">
|
||||
<h2 id="org89a4588"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
Memory allocation inside the library should be done with
|
||||
@ -537,8 +537,8 @@ allocation and needs to be updated.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org6dd819f" class="outline-2">
|
||||
<h2 id="org6dd819f"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
||||
<div id="outline-container-org6364ddb" class="outline-2">
|
||||
<h2 id="org6364ddb"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
All the blocks allocated with <code>qmckl_malloc</code> keep track of how many
|
||||
@ -633,7 +633,7 @@ rc = qmckl_context_destroy(context);
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 21:56</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 21:57</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
122
qmckl_mo.html
122
qmckl_mo.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-11-16 Wed 21:56 -->
|
||||
<!-- 2022-11-16 Wed 21:57 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Molecular Orbitals</title>
|
||||
@ -311,49 +311,49 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org985eb86">1. Context</a>
|
||||
<li><a href="#org5ef4f5b">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgefcf377">1.1. Data structure</a></li>
|
||||
<li><a href="#orgc9f11b0">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org9dd3e0f">1.3. Access functions</a>
|
||||
<li><a href="#orgbf851c9">1.1. Data structure</a></li>
|
||||
<li><a href="#org7a81c64">1.2. Initialization functions</a></li>
|
||||
<li><a href="#orgedae892">1.3. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgebbf8f1">1.3.1. Fortran interfaces</a></li>
|
||||
<li><a href="#org7364be4">1.3.1. Fortran interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd851736">1.4. Update</a>
|
||||
<li><a href="#org89d9988">1.4. Update</a>
|
||||
<ul>
|
||||
<li><a href="#org47b8357">1.4.1. Fortran interface</a></li>
|
||||
<li><a href="#orgd0c6af0">1.4.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0434c43">2. Computation</a>
|
||||
<li><a href="#orgfcf41d6">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org16c8bf5">2.1. Computation of MOs: values only</a>
|
||||
<li><a href="#org6a907ce">2.1. Computation of MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#org2eac673">2.1.1. Get</a></li>
|
||||
<li><a href="#org01e0fab">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgccb8b51">2.1.3. Compute</a></li>
|
||||
<li><a href="#org33ed8fb">2.1.4. HPC version</a></li>
|
||||
<li><a href="#org8f9e394">2.1.1. Get</a></li>
|
||||
<li><a href="#org3cc7c8c">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgf6fd7f0">2.1.3. Compute</a></li>
|
||||
<li><a href="#org680beb2">2.1.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0af3627">2.2. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<li><a href="#orga75a702">2.2. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org36bd978">2.2.1. Get</a></li>
|
||||
<li><a href="#org51e0949">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgdee730f">2.2.3. Compute</a></li>
|
||||
<li><a href="#org9002235">2.2.4. HPC version</a></li>
|
||||
<li><a href="#org351d5d0">2.2.1. Get</a></li>
|
||||
<li><a href="#orgec59b66">2.2.2. Provide</a></li>
|
||||
<li><a href="#org23dbc7c">2.2.3. Compute</a></li>
|
||||
<li><a href="#org1ad1c3d">2.2.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org94d3c49">2.3. Test</a></li>
|
||||
<li><a href="#orgf262430">2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org985eb86" class="outline-2">
|
||||
<h2 id="org985eb86"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org5ef4f5b" class="outline-2">
|
||||
<h2 id="org5ef4f5b"><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:
|
||||
@ -433,8 +433,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgefcf377" class="outline-3">
|
||||
<h3 id="orgefcf377"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgbf851c9" class="outline-3">
|
||||
<h3 id="orgbf851c9"><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> {
|
||||
@ -486,8 +486,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc9f11b0" class="outline-3">
|
||||
<h3 id="orgc9f11b0"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-org7a81c64" class="outline-3">
|
||||
<h3 id="org7a81c64"><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
|
||||
@ -507,8 +507,8 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9dd3e0f" class="outline-3">
|
||||
<h3 id="org9dd3e0f"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div id="outline-container-orgedae892" class="outline-3">
|
||||
<h3 id="orgedae892"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
When all the data for the AOs have been provided, the following
|
||||
@ -521,13 +521,13 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgebbf8f1" class="outline-4">
|
||||
<h4 id="orgebbf8f1"><span class="section-number-4">1.3.1</span> Fortran interfaces</h4>
|
||||
<div id="outline-container-org7364be4" class="outline-4">
|
||||
<h4 id="org7364be4"><span class="section-number-4">1.3.1</span> Fortran interfaces</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd851736" class="outline-3">
|
||||
<h3 id="orgd851736"><span class="section-number-3">1.4</span> Update</h3>
|
||||
<div id="outline-container-org89d9988" class="outline-3">
|
||||
<h3 id="org89d9988"><span class="section-number-3">1.4</span> Update</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
Useless MOs can be removed, for instance virtual MOs in a single
|
||||
@ -548,22 +548,22 @@ otherwise it is kept.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org47b8357" class="outline-4">
|
||||
<h4 id="org47b8357"><span class="section-number-4">1.4.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-orgd0c6af0" class="outline-4">
|
||||
<h4 id="orgd0c6af0"><span class="section-number-4">1.4.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0434c43" class="outline-2">
|
||||
<h2 id="org0434c43"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orgfcf41d6" class="outline-2">
|
||||
<h2 id="orgfcf41d6"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org16c8bf5" class="outline-3">
|
||||
<h3 id="org16c8bf5"><span class="section-number-3">2.1</span> Computation of MOs: values only</h3>
|
||||
<div id="outline-container-org6a907ce" class="outline-3">
|
||||
<h3 id="org6a907ce"><span class="section-number-3">2.1</span> Computation of MOs: values only</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
</div>
|
||||
<div id="outline-container-org2eac673" class="outline-4">
|
||||
<h4 id="org2eac673"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org8f9e394" class="outline-4">
|
||||
<h4 id="org8f9e394"><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>
|
||||
@ -587,8 +587,8 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org01e0fab" class="outline-4">
|
||||
<h4 id="org01e0fab"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org3cc7c8c" class="outline-4">
|
||||
<h4 id="org3cc7c8c"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_provide_mo_basis_mo_value</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>);
|
||||
@ -673,10 +673,10 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgccb8b51" class="outline-4">
|
||||
<h4 id="orgccb8b51"><span class="section-number-4">2.1.3</span> Compute</h4>
|
||||
<div id="outline-container-orgf6fd7f0" class="outline-4">
|
||||
<h4 id="orgf6fd7f0"><span class="section-number-4">2.1.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="orge8392b1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2f509b7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -850,8 +850,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org33ed8fb" class="outline-4">
|
||||
<h4 id="org33ed8fb"><span class="section-number-4">2.1.4</span> HPC version</h4>
|
||||
<div id="outline-container-org680beb2" class="outline-4">
|
||||
<h4 id="org680beb2"><span class="section-number-4">2.1.4</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
@ -944,12 +944,12 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0af3627" class="outline-3">
|
||||
<h3 id="org0af3627"><span class="section-number-3">2.2</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-orga75a702" class="outline-3">
|
||||
<h3 id="orga75a702"><span class="section-number-3">2.2</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
</div>
|
||||
<div id="outline-container-org36bd978" class="outline-4">
|
||||
<h4 id="org36bd978"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org351d5d0" class="outline-4">
|
||||
<h4 id="org351d5d0"><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>
|
||||
@ -973,8 +973,8 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org51e0949" class="outline-4">
|
||||
<h4 id="org51e0949"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-orgec59b66" class="outline-4">
|
||||
<h4 id="orgec59b66"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_provide_mo_basis_mo_vgl</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>);
|
||||
@ -1058,10 +1058,10 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdee730f" class="outline-4">
|
||||
<h4 id="orgdee730f"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div id="outline-container-org23dbc7c" class="outline-4">
|
||||
<h4 id="org23dbc7c"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org6006b5d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4091fa2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1233,8 +1233,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9002235" class="outline-4">
|
||||
<h4 id="org9002235"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
||||
<div id="outline-container-org1ad1c3d" class="outline-4">
|
||||
<h4 id="org1ad1c3d"><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
|
||||
@ -1380,14 +1380,14 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org94d3c49" class="outline-3">
|
||||
<h3 id="org94d3c49"><span class="section-number-3">2.3</span> Test</h3>
|
||||
<div id="outline-container-orgf262430" class="outline-3">
|
||||
<h3 id="orgf262430"><span class="section-number-3">2.3</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 21:56</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 21:57</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-11-16 Wed 21:56 -->
|
||||
<!-- 2022-11-16 Wed 21:57 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Nucleus</title>
|
||||
@ -333,28 +333,28 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgdbbb9ca">1. Context</a>
|
||||
<li><a href="#org9ecabd3">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org23a3a61">1.1. Data structure</a></li>
|
||||
<li><a href="#orge52e1d7">1.2. Access functions</a></li>
|
||||
<li><a href="#orga7bb141">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgb6d24dc">1.4. Test</a></li>
|
||||
<li><a href="#orgf2e58e3">1.1. Data structure</a></li>
|
||||
<li><a href="#org8b0528d">1.2. Access functions</a></li>
|
||||
<li><a href="#org8814f86">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org67f3aa5">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org81265c6">2. Computation</a>
|
||||
<li><a href="#org987b357">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org024e50a">2.1. Nucleus-nucleus distances</a>
|
||||
<li><a href="#org6b55e13">2.1. Nucleus-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org88705de">2.1.1. Get</a></li>
|
||||
<li><a href="#org2339d22">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgf69b92e">2.1.3. Test</a></li>
|
||||
<li><a href="#orgfc3f41c">2.1.1. Get</a></li>
|
||||
<li><a href="#org459653d">2.1.2. Compute</a></li>
|
||||
<li><a href="#org8f8f4d3">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5f43f3b">2.2. Nuclear repulsion energy</a>
|
||||
<li><a href="#org2977c5b">2.2. Nuclear repulsion energy</a>
|
||||
<ul>
|
||||
<li><a href="#org4068669">2.2.1. Get</a></li>
|
||||
<li><a href="#org899f9c0">2.2.2. Compute</a></li>
|
||||
<li><a href="#org8b34559">2.2.3. Test</a></li>
|
||||
<li><a href="#orgaeae950">2.2.1. Get</a></li>
|
||||
<li><a href="#org0f26587">2.2.2. Compute</a></li>
|
||||
<li><a href="#org111cdf3">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -363,8 +363,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdbbb9ca" class="outline-2">
|
||||
<h2 id="orgdbbb9ca"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org9ecabd3" class="outline-2">
|
||||
<h2 id="org9ecabd3"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following data stored in the context:
|
||||
@ -461,8 +461,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org23a3a61" class="outline-3">
|
||||
<h3 id="org23a3a61"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgf2e58e3" class="outline-3">
|
||||
<h3 id="orgf2e58e3"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_nucleus_struct</span> {
|
||||
@ -516,8 +516,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge52e1d7" class="outline-3">
|
||||
<h3 id="orge52e1d7"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org8b0528d" class="outline-3">
|
||||
<h3 id="org8b0528d"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
When all the data relative to nuclei have been set, the following
|
||||
@ -531,8 +531,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga7bb141" class="outline-3">
|
||||
<h3 id="orga7bb141"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org8814f86" class="outline-3">
|
||||
<h3 id="org8814f86"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To set the data relative to the nuclei in the context, the
|
||||
@ -578,8 +578,8 @@ are be given in atomic units.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb6d24dc" class="outline-3">
|
||||
<h3 id="orgb6d24dc"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org67f3aa5" class="outline-3">
|
||||
<h3 id="org67f3aa5"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">nucl_charge</span> = chbrclf_charge;
|
||||
@ -648,8 +648,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2, chbrclf_nucl_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org81265c6" class="outline-2">
|
||||
<h2 id="org81265c6"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org987b357" class="outline-2">
|
||||
<h2 id="org987b357"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The computed data is stored in the context so that it can be reused
|
||||
@ -662,12 +662,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org024e50a" class="outline-3">
|
||||
<h3 id="org024e50a"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div id="outline-container-org6b55e13" class="outline-3">
|
||||
<h3 id="org6b55e13"><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-org88705de" class="outline-4">
|
||||
<h4 id="org88705de"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orgfc3f41c" class="outline-4">
|
||||
<h4 id="orgfc3f41c"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -679,10 +679,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2339d22" class="outline-4">
|
||||
<h4 id="org2339d22"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org459653d" class="outline-4">
|
||||
<h4 id="org459653d"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org655face" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1c192f4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -760,8 +760,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf69b92e" class="outline-4">
|
||||
<h4 id="orgf69b92e"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org8f8f4d3" class="outline-4">
|
||||
<h4 id="org8f8f4d3"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -780,8 +780,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5f43f3b" class="outline-3">
|
||||
<h3 id="org5f43f3b"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
||||
<div id="outline-container-org2977c5b" class="outline-3">
|
||||
<h3 id="org2977c5b"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
\[
|
||||
@ -790,8 +790,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4068669" class="outline-4">
|
||||
<h4 id="org4068669"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgaeae950" class="outline-4">
|
||||
<h4 id="orgaeae950"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_nucleus_repulsion</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">energy</span>);
|
||||
@ -800,10 +800,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org899f9c0" class="outline-4">
|
||||
<h4 id="org899f9c0"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org0f26587" class="outline-4">
|
||||
<h4 id="org0f26587"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="org85d3a08" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orged9e141" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -893,8 +893,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8b34559" class="outline-4">
|
||||
<h4 id="org8b34559"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org111cdf3" class="outline-4">
|
||||
<h4 id="org111cdf3"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -914,7 +914,7 @@ rc = qmckl_get_nucleus_repulsion(context, &rep);
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 21:56</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 21:57</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-11-16 Wed 21:56 -->
|
||||
<!-- 2022-11-16 Wed 21:57 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Numerical precision</title>
|
||||
@ -333,16 +333,16 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org566c0e5">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org90d0d19">2. Precision</a></li>
|
||||
<li><a href="#org2ad3335">3. Range</a></li>
|
||||
<li><a href="#org374ffa0">4. Helper functions</a></li>
|
||||
<li><a href="#org345b31d">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org6e7e67c">2. Precision</a></li>
|
||||
<li><a href="#orgd87a8a0">3. Range</a></li>
|
||||
<li><a href="#org316b9b3">4. Helper functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org566c0e5" class="outline-2">
|
||||
<h2 id="org566c0e5"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-org345b31d" class="outline-2">
|
||||
<h2 id="org345b31d"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
Controlling numerical precision enables optimizations. Here, the
|
||||
@ -353,7 +353,7 @@ Arithmetic (IEEE 754),
|
||||
refers to the number of exponent bits.
|
||||
</p>
|
||||
|
||||
<table id="org3c27979" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd25b8f0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -397,8 +397,8 @@ integer. The update functions return <code>QMCKL_SUCCESS</code> or
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org90d0d19" class="outline-2">
|
||||
<h2 id="org90d0d19"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-org6e7e67c" class="outline-2">
|
||||
<h2 id="org6e7e67c"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
<code>qmckl_context_set_numprec_precision</code> modifies the parameter for the
|
||||
@ -485,8 +485,8 @@ numerical precision in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2ad3335" class="outline-2">
|
||||
<h2 id="org2ad3335"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-orgd87a8a0" class="outline-2">
|
||||
<h2 id="orgd87a8a0"><span class="section-number-2">3</span> Range</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
<code>qmckl_set_numprec_range</code> modifies the parameter for the numerical
|
||||
@ -561,8 +561,8 @@ range in a given context.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org374ffa0" class="outline-2">
|
||||
<h2 id="org374ffa0"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-org316b9b3" class="outline-2">
|
||||
<h2 id="org316b9b3"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
<code>qmckl_get_numprec_epsilon</code> returns \(\epsilon = 2^{1-n}\) where <code>n</code> is the precision.
|
||||
@ -581,7 +581,7 @@ We need to remove the sign bit from the precision.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 21:56</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 21:57</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -333,25 +333,25 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org194d22d">1. Context</a>
|
||||
<li><a href="#orgd5f6e27">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org42eb3ca">1.1. Data structure</a></li>
|
||||
<li><a href="#org532e7e3">1.2. Access functions</a>
|
||||
<li><a href="#org110ed4f">1.1. Data structure</a></li>
|
||||
<li><a href="#orgf7bdc79">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orge0bea31">1.2.1. Number of points</a></li>
|
||||
<li><a href="#orgdfaca68">1.2.2. Point coordinates</a></li>
|
||||
<li><a href="#org4f48ba0">1.2.1. Number of points</a></li>
|
||||
<li><a href="#org4580fd3">1.2.2. Point coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge1c7b83">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org1bb8b2f">1.4. Test</a></li>
|
||||
<li><a href="#orgea0e751">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org6b525d7">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org194d22d" class="outline-2">
|
||||
<h2 id="org194d22d"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgd5f6e27" class="outline-2">
|
||||
<h2 id="orgd5f6e27"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following data stored in the context:
|
||||
@ -401,8 +401,8 @@ corresponds to the 3 × <code>num</code> matrix.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org42eb3ca" class="outline-3">
|
||||
<h3 id="org42eb3ca"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org110ed4f" class="outline-3">
|
||||
<h3 id="org110ed4f"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_point_struct</span> {
|
||||
@ -438,8 +438,8 @@ corresponds to the 3 × <code>num</code> matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org532e7e3" class="outline-3">
|
||||
<h3 id="org532e7e3"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgf7bdc79" class="outline-3">
|
||||
<h3 id="orgf7bdc79"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
Access functions return <code>QMCKL_SUCCESS</code> when the data has been
|
||||
@ -450,8 +450,8 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge0bea31" class="outline-4">
|
||||
<h4 id="orge0bea31"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div id="outline-container-org4f48ba0" class="outline-4">
|
||||
<h4 id="org4f48ba0"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div class="outline-text-4" id="text-1-2-1">
|
||||
<p>
|
||||
Returns the number of points stored in the context.
|
||||
@ -473,8 +473,8 @@ Returns the number of points stored in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdfaca68" class="outline-4">
|
||||
<h4 id="orgdfaca68"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div id="outline-container-org4580fd3" class="outline-4">
|
||||
<h4 id="org4580fd3"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-2-2">
|
||||
<p>
|
||||
Returns the point coordinates as sequences of (x,y,z).
|
||||
@ -502,8 +502,8 @@ The pointer is assumed to point on a memory block of size
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orge1c7b83" class="outline-3">
|
||||
<h3 id="orge1c7b83"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgea0e751" class="outline-3">
|
||||
<h3 id="orgea0e751"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
When the data is set in the context, if the arrays are large
|
||||
@ -635,8 +635,8 @@ Copy a sequence of <code>num</code> points \((x,y,z)\) into the context.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org1bb8b2f" class="outline-3">
|
||||
<h3 id="org1bb8b2f"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org6b525d7" class="outline-3">
|
||||
<h3 id="org6b525d7"><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>*/
|
||||
|
@ -333,86 +333,86 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgf811aca">1. Headers</a></li>
|
||||
<li><a href="#org0bb7762">2. Naïve Sherman-Morrison</a>
|
||||
<li><a href="#orgf2bd7c0">1. Headers</a></li>
|
||||
<li><a href="#org47bef41">2. Naïve Sherman-Morrison</a>
|
||||
<ul>
|
||||
<li><a href="#org955c06c">2.1. <code>qmckl_sherman_morrison</code></a>
|
||||
<li><a href="#orge6c28cc">2.1. <code>qmckl_sherman_morrison</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgca2cd5f">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orgd8a2892">2.1.2. C header</a></li>
|
||||
<li><a href="#org6b831f2">2.1.3. C source</a></li>
|
||||
<li><a href="#orgee959d5">2.1.4. Performance</a></li>
|
||||
<li><a href="#org79a1b64">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orgda7afea">2.1.2. C header</a></li>
|
||||
<li><a href="#orgdc60acf">2.1.3. C source</a></li>
|
||||
<li><a href="#org81aed9e">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org36a47d3">3. Woodbury 2x2</a>
|
||||
<li><a href="#orgc1cf345">3. Woodbury 2x2</a>
|
||||
<ul>
|
||||
<li><a href="#org4cb2891">3.1. <code>qmckl_woodbury_2</code></a>
|
||||
<li><a href="#org2d4489f">3.1. <code>qmckl_woodbury_2</code></a>
|
||||
<ul>
|
||||
<li><a href="#org23a5582">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org463acf0">3.1.2. C header</a></li>
|
||||
<li><a href="#org71b0840">3.1.3. C source</a></li>
|
||||
<li><a href="#org49311eb">3.1.4. Performance</a></li>
|
||||
<li><a href="#orga21f5e4">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orgb0be85d">3.1.2. C header</a></li>
|
||||
<li><a href="#orgf201d3a">3.1.3. C source</a></li>
|
||||
<li><a href="#orgd1ec427">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org69b72ef">4. Woodbury 3x3</a>
|
||||
<li><a href="#org0c45188">4. Woodbury 3x3</a>
|
||||
<ul>
|
||||
<li><a href="#orgb35372a">4.1. <code>qmckl_woodbury_3</code></a>
|
||||
<li><a href="#orge4d0e1d">4.1. <code>qmckl_woodbury_3</code></a>
|
||||
<ul>
|
||||
<li><a href="#org8af2909">4.1.1. Requirements</a></li>
|
||||
<li><a href="#org028866e">4.1.2. C header</a></li>
|
||||
<li><a href="#orga723384">4.1.3. C source</a></li>
|
||||
<li><a href="#org27a4c28">4.1.4. Performance…</a></li>
|
||||
<li><a href="#orgfe81949">4.1.1. Requirements</a></li>
|
||||
<li><a href="#org84d1def">4.1.2. C header</a></li>
|
||||
<li><a href="#orgff7f501">4.1.3. C source</a></li>
|
||||
<li><a href="#org2028a34">4.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9c8e1e7">5. Sherman-Morrison with update splitting</a>
|
||||
<li><a href="#org1c74377">5. Sherman-Morrison with update splitting</a>
|
||||
<ul>
|
||||
<li><a href="#org442b0ad">5.1. <code>qmckl_sherman_morrison_splitting</code></a>
|
||||
<li><a href="#orgdb78c4b">5.1. <code>qmckl_sherman_morrison_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#org9505185">5.1.1. Requirements</a></li>
|
||||
<li><a href="#org82e51f5">5.1.2. C header</a></li>
|
||||
<li><a href="#orgea0e3a7">5.1.3. C source</a></li>
|
||||
<li><a href="#orgec4652a">5.1.4. Performance…</a></li>
|
||||
<li><a href="#org44c6de0">5.1.1. Requirements</a></li>
|
||||
<li><a href="#org990fd47">5.1.2. C header</a></li>
|
||||
<li><a href="#org9765674">5.1.3. C source</a></li>
|
||||
<li><a href="#org48c4210">5.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5f720a5">6. Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</a>
|
||||
<li><a href="#org61a08c9">6. Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</a>
|
||||
<ul>
|
||||
<li><a href="#orgdd41a01">6.1. <code>qmckl_sherman_morrison_smw32s</code></a>
|
||||
<li><a href="#orgd14160b">6.1. <code>qmckl_sherman_morrison_smw32s</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgcb48d6d">6.1.1. Requirements</a></li>
|
||||
<li><a href="#org30ffe79">6.1.2. C header</a></li>
|
||||
<li><a href="#org5c1104a">6.1.3. C source</a></li>
|
||||
<li><a href="#org804123e">6.1.4. Performance…</a></li>
|
||||
<li><a href="#org7f252fa">6.1.1. Requirements</a></li>
|
||||
<li><a href="#org0016dd3">6.1.2. C header</a></li>
|
||||
<li><a href="#org13fcc82">6.1.3. C source</a></li>
|
||||
<li><a href="#orge78f468">6.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgab879a3">7. Helper Functions</a>
|
||||
<li><a href="#org10e2815">7. Helper Functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgd9949e1">7.1. <code>qmckl_slagel_splitting</code></a>
|
||||
<li><a href="#org5ced731">7.1. <code>qmckl_slagel_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#org5c7749e">7.1.1. Requirements</a></li>
|
||||
<li><a href="#org613acd9">7.1.2. C header</a></li>
|
||||
<li><a href="#org0421063">7.1.3. C source</a></li>
|
||||
<li><a href="#org3f88412">7.1.4. Performance</a></li>
|
||||
<li><a href="#org8822226">7.1.1. Requirements</a></li>
|
||||
<li><a href="#orgde43e9f">7.1.2. C header</a></li>
|
||||
<li><a href="#orga89815b">7.1.3. C source</a></li>
|
||||
<li><a href="#org90bfd43">7.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd746afc">8. End of files</a></li>
|
||||
<li><a href="#org92d9fc3">8. End of files</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf811aca" class="outline-2">
|
||||
<h2 id="orgf811aca"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div id="outline-container-orgf2bd7c0" class="outline-2">
|
||||
<h2 id="orgf2bd7c0"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;">"qmckl.h"</span>
|
||||
@ -431,12 +431,12 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0bb7762" class="outline-2">
|
||||
<h2 id="org0bb7762"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
||||
<div id="outline-container-org47bef41" class="outline-2">
|
||||
<h2 id="org47bef41"><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-org955c06c" class="outline-3">
|
||||
<h3 id="org955c06c"><span class="section-number-3">2.1</span> <code>qmckl_sherman_morrison</code></h3>
|
||||
<div id="outline-container-orge6c28cc" class="outline-3">
|
||||
<h3 id="orge6c28cc"><span class="section-number-3">2.1</span> <code>qmckl_sherman_morrison</code></h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
This is the simplest of the available Sherman-Morrison-Woodbury kernels. It applies rank-1 updates one by one in
|
||||
@ -478,7 +478,7 @@ If the determinant of the Slater-matrix is passed, it will be updated to the det
|
||||
from applying the updates to the original matrix.
|
||||
</p>
|
||||
|
||||
<table id="org9ccb7c0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgcb37704" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -557,8 +557,8 @@ from applying the updates to the original matrix.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgca2cd5f" class="outline-4">
|
||||
<h4 id="orgca2cd5f"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org79a1b64" class="outline-4">
|
||||
<h4 id="org79a1b64"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -573,8 +573,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd8a2892" class="outline-4">
|
||||
<h4 id="orgd8a2892"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgda7afea" class="outline-4">
|
||||
<h4 id="orgda7afea"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sherman_morrison</span> (
|
||||
@ -592,8 +592,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6b831f2" class="outline-4">
|
||||
<h4 id="org6b831f2"><span class="section-number-4">2.1.3</span> C source</h4>
|
||||
<div id="outline-container-orgdc60acf" class="outline-4">
|
||||
<h4 id="orgdc60acf"><span class="section-number-4">2.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -663,8 +663,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgee959d5" class="outline-4">
|
||||
<h4 id="orgee959d5"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org81aed9e" class="outline-4">
|
||||
<h4 id="org81aed9e"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<p>
|
||||
This function performs best when there is only 1 rank-1 update in the update cycle. It is not useful to
|
||||
@ -676,12 +676,12 @@ where applying the update causes singular behaviour.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org36a47d3" class="outline-2">
|
||||
<h2 id="org36a47d3"><span class="section-number-2">3</span> Woodbury 2x2</h2>
|
||||
<div id="outline-container-orgc1cf345" class="outline-2">
|
||||
<h2 id="orgc1cf345"><span class="section-number-2">3</span> Woodbury 2x2</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org4cb2891" class="outline-3">
|
||||
<h3 id="org4cb2891"><span class="section-number-3">3.1</span> <code>qmckl_woodbury_2</code></h3>
|
||||
<div id="outline-container-org2d4489f" class="outline-3">
|
||||
<h3 id="org2d4489f"><span class="section-number-3">3.1</span> <code>qmckl_woodbury_2</code></h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
The Woodbury 2x2 kernel. It is used to apply two rank-1 updates at once. The formula used in
|
||||
@ -705,7 +705,7 @@ from applying the updates to the original matrix.
|
||||
|
||||
|
||||
|
||||
<table id="org515ef9a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgce0b6a8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -777,8 +777,8 @@ from applying the updates to the original matrix.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org23a5582" class="outline-4">
|
||||
<h4 id="org23a5582"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orga21f5e4" class="outline-4">
|
||||
<h4 id="orga21f5e4"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-3-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>qmckl_null_context</code></li>
|
||||
@ -792,8 +792,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org463acf0" class="outline-4">
|
||||
<h4 id="org463acf0"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgb0be85d" class="outline-4">
|
||||
<h4 id="orgb0be85d"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_2</span> (
|
||||
@ -810,8 +810,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org71b0840" class="outline-4">
|
||||
<h4 id="org71b0840"><span class="section-number-4">3.1.3</span> C source</h4>
|
||||
<div id="outline-container-orgf201d3a" class="outline-4">
|
||||
<h4 id="orgf201d3a"><span class="section-number-4">3.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-3-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -898,8 +898,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org49311eb" class="outline-4">
|
||||
<h4 id="org49311eb"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgd1ec427" class="outline-4">
|
||||
<h4 id="orgd1ec427"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-3-1-4">
|
||||
<p>
|
||||
This function is most efficient when used in cases where there are only 2 rank-1 updates and
|
||||
@ -910,12 +910,12 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org69b72ef" class="outline-2">
|
||||
<h2 id="org69b72ef"><span class="section-number-2">4</span> Woodbury 3x3</h2>
|
||||
<div id="outline-container-org0c45188" class="outline-2">
|
||||
<h2 id="org0c45188"><span class="section-number-2">4</span> Woodbury 3x3</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-orgb35372a" class="outline-3">
|
||||
<h3 id="orgb35372a"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_3</code></h3>
|
||||
<div id="outline-container-orge4d0e1d" class="outline-3">
|
||||
<h3 id="orge4d0e1d"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_3</code></h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
The 3x3 version of the Woodbury 2x2 kernel. It is used to apply three
|
||||
@ -936,7 +936,7 @@ from applying the updates to the original matrix.
|
||||
|
||||
|
||||
|
||||
<table id="org8797421" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga9c59be" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1008,8 +1008,8 @@ from applying the updates to the original matrix.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8af2909" class="outline-4">
|
||||
<h4 id="org8af2909"><span class="section-number-4">4.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgfe81949" class="outline-4">
|
||||
<h4 id="orgfe81949"><span class="section-number-4">4.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-4-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>qmckl_null_context</code></li>
|
||||
@ -1023,8 +1023,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org028866e" class="outline-4">
|
||||
<h4 id="org028866e"><span class="section-number-4">4.1.2</span> C header</h4>
|
||||
<div id="outline-container-org84d1def" class="outline-4">
|
||||
<h4 id="org84d1def"><span class="section-number-4">4.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-4-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_3</span> (
|
||||
@ -1041,8 +1041,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga723384" class="outline-4">
|
||||
<h4 id="orga723384"><span class="section-number-4">4.1.3</span> C source</h4>
|
||||
<div id="outline-container-orgff7f501" class="outline-4">
|
||||
<h4 id="orgff7f501"><span class="section-number-4">4.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-4-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -1144,8 +1144,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org27a4c28" class="outline-4">
|
||||
<h4 id="org27a4c28"><span class="section-number-4">4.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org2028a34" class="outline-4">
|
||||
<h4 id="org2028a34"><span class="section-number-4">4.1.4</span> Performance…</h4>
|
||||
<div class="outline-text-4" id="text-4-1-4">
|
||||
<p>
|
||||
This function is most efficient when used in cases where there are only 3 rank-1 updates and
|
||||
@ -1156,12 +1156,12 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9c8e1e7" class="outline-2">
|
||||
<h2 id="org9c8e1e7"><span class="section-number-2">5</span> Sherman-Morrison with update splitting</h2>
|
||||
<div id="outline-container-org1c74377" class="outline-2">
|
||||
<h2 id="org1c74377"><span class="section-number-2">5</span> Sherman-Morrison with update splitting</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
</div>
|
||||
<div id="outline-container-org442b0ad" class="outline-3">
|
||||
<h3 id="org442b0ad"><span class="section-number-3">5.1</span> <code>qmckl_sherman_morrison_splitting</code></h3>
|
||||
<div id="outline-container-orgdb78c4b" class="outline-3">
|
||||
<h3 id="orgdb78c4b"><span class="section-number-3">5.1</span> <code>qmckl_sherman_morrison_splitting</code></h3>
|
||||
<div class="outline-text-3" id="text-5-1">
|
||||
<p>
|
||||
This is a variation on the 'Naive' Sherman-Morrison kernel. Whenever the denominator \(1+v_j^T S^{-1} u_j\) in
|
||||
@ -1183,7 +1183,7 @@ If the determinant of the Slater-matrix is passed, it will be updated to the det
|
||||
from applying the updates to the original matrix.
|
||||
</p>
|
||||
|
||||
<table id="orgdb9bc2e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb8d9042" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1267,8 +1267,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org9505185" class="outline-4">
|
||||
<h4 id="org9505185"><span class="section-number-4">5.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org44c6de0" class="outline-4">
|
||||
<h4 id="org44c6de0"><span class="section-number-4">5.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-5-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1283,8 +1283,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org82e51f5" class="outline-4">
|
||||
<h4 id="org82e51f5"><span class="section-number-4">5.1.2</span> C header</h4>
|
||||
<div id="outline-container-org990fd47" class="outline-4">
|
||||
<h4 id="org990fd47"><span class="section-number-4">5.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-5-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sherman_morrison_splitting</span> (
|
||||
@ -1302,8 +1302,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgea0e3a7" class="outline-4">
|
||||
<h4 id="orgea0e3a7"><span class="section-number-4">5.1.3</span> C source</h4>
|
||||
<div id="outline-container-org9765674" class="outline-4">
|
||||
<h4 id="org9765674"><span class="section-number-4">5.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-5-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -1343,8 +1343,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgec4652a" class="outline-4">
|
||||
<h4 id="orgec4652a"><span class="section-number-4">5.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org48c4210" class="outline-4">
|
||||
<h4 id="org48c4210"><span class="section-number-4">5.1.4</span> Performance…</h4>
|
||||
<div class="outline-text-4" id="text-5-1-4">
|
||||
<p>
|
||||
This kernel performs best when there are 2 or more rank-1 update cycles and fail-rate is high.
|
||||
@ -1354,12 +1354,12 @@ This kernel performs best when there are 2 or more rank-1 update cycles and fail
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5f720a5" class="outline-2">
|
||||
<h2 id="org5f720a5"><span class="section-number-2">6</span> Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</h2>
|
||||
<div id="outline-container-org61a08c9" class="outline-2">
|
||||
<h2 id="org61a08c9"><span class="section-number-2">6</span> Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</h2>
|
||||
<div class="outline-text-2" id="text-6">
|
||||
</div>
|
||||
<div id="outline-container-orgdd41a01" class="outline-3">
|
||||
<h3 id="orgdd41a01"><span class="section-number-3">6.1</span> <code>qmckl_sherman_morrison_smw32s</code></h3>
|
||||
<div id="outline-container-orgd14160b" class="outline-3">
|
||||
<h3 id="orgd14160b"><span class="section-number-3">6.1</span> <code>qmckl_sherman_morrison_smw32s</code></h3>
|
||||
<div class="outline-text-3" id="text-6-1">
|
||||
<p>
|
||||
The Woodbury 3x3 and 2x2 kernel with Sherman-Morrison and update splitting combines the low-level Woodbury 3x3 kernel,
|
||||
@ -1374,7 +1374,7 @@ If the determinant of the Slater-matrix is passed, it will be updated to the det
|
||||
from applying the updates to the original matrix.
|
||||
</p>
|
||||
|
||||
<table id="orgb3f79dc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgac07fca" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1454,8 +1454,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgcb48d6d" class="outline-4">
|
||||
<h4 id="orgcb48d6d"><span class="section-number-4">6.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org7f252fa" class="outline-4">
|
||||
<h4 id="org7f252fa"><span class="section-number-4">6.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-6-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1470,8 +1470,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org30ffe79" class="outline-4">
|
||||
<h4 id="org30ffe79"><span class="section-number-4">6.1.2</span> C header</h4>
|
||||
<div id="outline-container-org0016dd3" class="outline-4">
|
||||
<h4 id="org0016dd3"><span class="section-number-4">6.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-6-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sherman_morrison_smw32s</span> (
|
||||
@ -1489,8 +1489,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5c1104a" class="outline-4">
|
||||
<h4 id="org5c1104a"><span class="section-number-4">6.1.3</span> C source</h4>
|
||||
<div id="outline-container-org13fcc82" class="outline-4">
|
||||
<h4 id="org13fcc82"><span class="section-number-4">6.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-6-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -1568,8 +1568,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org804123e" class="outline-4">
|
||||
<h4 id="org804123e"><span class="section-number-4">6.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-orge78f468" class="outline-4">
|
||||
<h4 id="orge78f468"><span class="section-number-4">6.1.4</span> Performance…</h4>
|
||||
<div class="outline-text-4" id="text-6-1-4">
|
||||
<p>
|
||||
This kernel performs best for update cycles with 2 or more rank-1 updates and the fail-rate is low.
|
||||
@ -1579,8 +1579,8 @@ This kernel performs best for update cycles with 2 or more rank-1 updates and th
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgab879a3" class="outline-2">
|
||||
<h2 id="orgab879a3"><span class="section-number-2">7</span> Helper Functions</h2>
|
||||
<div id="outline-container-org10e2815" class="outline-2">
|
||||
<h2 id="org10e2815"><span class="section-number-2">7</span> Helper Functions</h2>
|
||||
<div class="outline-text-2" id="text-7">
|
||||
<p>
|
||||
Private helper-functions that are used by the Sherman-Morrison-Woodbury kernels.
|
||||
@ -1588,8 +1588,8 @@ These functions can only be used internally by the kernels in this module.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd9949e1" class="outline-3">
|
||||
<h3 id="orgd9949e1"><span class="section-number-3">7.1</span> <code>qmckl_slagel_splitting</code></h3>
|
||||
<div id="outline-container-org5ced731" class="outline-3">
|
||||
<h3 id="org5ced731"><span class="section-number-3">7.1</span> <code>qmckl_slagel_splitting</code></h3>
|
||||
<div class="outline-text-3" id="text-7-1">
|
||||
<p>
|
||||
<code>qmckl_slagel_splitting</code> is the non-recursive, inner part of the 'Sherman-Morrison with update splitting'-kernel.
|
||||
@ -1609,7 +1609,7 @@ If the determinant of the Slater-matrix is passed, it will be updated to the det
|
||||
from applying the updates to the original matrix.
|
||||
</p>
|
||||
|
||||
<table id="org20052ef" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge0d7b46" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1703,8 +1703,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org5c7749e" class="outline-4">
|
||||
<h4 id="org5c7749e"><span class="section-number-4">7.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org8822226" class="outline-4">
|
||||
<h4 id="org8822226"><span class="section-number-4">7.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-7-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>LDS >= 2</code></li>
|
||||
@ -1721,8 +1721,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org613acd9" class="outline-4">
|
||||
<h4 id="org613acd9"><span class="section-number-4">7.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgde43e9f" class="outline-4">
|
||||
<h4 id="orgde43e9f"><span class="section-number-4">7.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-7-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">double</span> <span style="color: #0000ff;">qmckl_slagel_splitting</span> (
|
||||
@ -1742,8 +1742,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0421063" class="outline-4">
|
||||
<h4 id="org0421063"><span class="section-number-4">7.1.3</span> C source</h4>
|
||||
<div id="outline-container-orga89815b" class="outline-4">
|
||||
<h4 id="orga89815b"><span class="section-number-4">7.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-7-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -1821,8 +1821,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3f88412" class="outline-4">
|
||||
<h4 id="org3f88412"><span class="section-number-4">7.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org90bfd43" class="outline-4">
|
||||
<h4 id="org90bfd43"><span class="section-number-4">7.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-7-1-4">
|
||||
<p>
|
||||
This function cannot be used by itself and is used in Sherman-Morrison with update splitting and Woodbury 3x3 and 2x2
|
||||
@ -1833,8 +1833,8 @@ with Sherman-Morrison and update splitting. Please look at the performance recco
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd746afc" class="outline-2">
|
||||
<h2 id="orgd746afc"><span class="section-number-2">8</span> End of files</h2>
|
||||
<div id="outline-container-org92d9fc3" class="outline-2">
|
||||
<h2 id="org92d9fc3"><span class="section-number-2">8</span> End of files</h2>
|
||||
<div class="outline-text-2" id="text-8">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"> <span style="color: #0000ff;">assert</span> (<span style="color: #228b22;">qmckl_context_destroy</span>(<span style="color: #a0522d;">context</span>) == QMCKL_SUCCESS);
|
||||
|
@ -233,27 +233,27 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgde04add">1. CHBrClF</a>
|
||||
<li><a href="#org5455832">1. CHBrClF</a>
|
||||
<ul>
|
||||
<li><a href="#orgd779068">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org04258fc">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org0c47f5d">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#orgab0748e">1.4. Electron coordinates</a></li>
|
||||
<li><a href="#org922958f">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orgd25b9ec">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#orgd59738f">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#orgab16b2a">1.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge117507">2. N2</a>
|
||||
<li><a href="#org5a66032">2. N2</a>
|
||||
<ul>
|
||||
<li><a href="#org13df913">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orgcb08102">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#orgc9af50e">2.3. Jastrow related data</a></li>
|
||||
<li><a href="#org4e44321">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orgcc61002">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org6dc6599">2.3. Jastrow related data</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgde04add" class="outline-2">
|
||||
<h2 id="orgde04add"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div id="outline-container-org5455832" class="outline-2">
|
||||
<h2 id="org5455832"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
This test is the all-electron Hartree-Fock wave function of CHClBr,
|
||||
@ -337,8 +337,8 @@ and with a high maximum angular momentum.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgd779068" class="outline-3">
|
||||
<h3 id="orgd779068"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org922958f" class="outline-3">
|
||||
<h3 id="org922958f"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<pre class="example">
|
||||
5
|
||||
@ -368,8 +368,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org04258fc" class="outline-3">
|
||||
<h3 id="org04258fc"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div id="outline-container-orgd25b9ec" class="outline-3">
|
||||
<h3 id="orgd25b9ec"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<pre class="example">
|
||||
HYDROGEN
|
||||
@ -1288,8 +1288,8 @@ F 1
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0c47f5d" class="outline-3">
|
||||
<h3 id="org0c47f5d"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-orgd59738f" class="outline-3">
|
||||
<h3 id="orgd59738f"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">chbrclf_mo_num</span> ((<span style="color: #228b22;">int64_t</span>) 224)
|
||||
@ -60213,8 +60213,8 @@ F 1
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgab0748e" class="outline-3">
|
||||
<h3 id="orgab0748e"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div id="outline-container-orgab16b2a" class="outline-3">
|
||||
<h3 id="orgab16b2a"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
Electron coordinates are stored in atomic units in normal format.
|
||||
@ -60373,8 +60373,8 @@ Electron coordinates are stored in atomic units in normal format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge117507" class="outline-2">
|
||||
<h2 id="orge117507"><span class="section-number-2">2</span> N2</h2>
|
||||
<div id="outline-container-org5a66032" class="outline-2">
|
||||
<h2 id="org5a66032"><span class="section-number-2">2</span> N2</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
This test is mainly for the Jastrow factor and was supplied by
|
||||
@ -60415,8 +60415,8 @@ treated by pseudopotentials thus excluded from the actual calculation.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org13df913" class="outline-3">
|
||||
<h3 id="org13df913"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org4e44321" class="outline-3">
|
||||
<h3 id="org4e44321"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<pre class="example">
|
||||
2
|
||||
@ -60443,8 +60443,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcb08102" class="outline-3">
|
||||
<h3 id="orgcb08102"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div id="outline-container-orgcc61002" class="outline-3">
|
||||
<h3 id="orgcc61002"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
Electron coordinates are stored in atomic units in normal format.
|
||||
@ -60473,8 +60473,8 @@ Electron coordinates are stored in atomic units in normal format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc9af50e" class="outline-3">
|
||||
<h3 id="orgc9af50e"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div id="outline-container-org6dc6599" class="outline-3">
|
||||
<h3 id="org6dc6599"><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
|
||||
|
@ -311,53 +311,53 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgb93d852">1. Local functions</a>
|
||||
<li><a href="#org037312c">1. Local functions</a>
|
||||
<ul>
|
||||
<li><a href="#org4f83250">1.1. Open file</a></li>
|
||||
<li><a href="#org07850f6">1.2. Electron</a></li>
|
||||
<li><a href="#org220d566">1.3. Nucleus</a>
|
||||
<li><a href="#orgf4755c3">1.1. Open file</a></li>
|
||||
<li><a href="#orgf70d3ef">1.2. Electron</a></li>
|
||||
<li><a href="#org021325b">1.3. Nucleus</a>
|
||||
<ul>
|
||||
<li><a href="#org8b1efd9">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#org6b8b87e">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#orgb8e8273">1.3.3. Nuclear coordinates</a></li>
|
||||
<li><a href="#orgae6785d">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#orga0b3942">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org7d69a83">1.3.3. Nuclear coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1984164">1.4. Basis set and AOs</a>
|
||||
<li><a href="#org99891f6">1.4. Basis set and AOs</a>
|
||||
<ul>
|
||||
<li><a href="#orgfe274e1">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#org36eb0f8">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org974962b">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#org5d7a64c">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org6a549e5">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#orgbbd4c30">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#orgf8fc2de">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org55c8286">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#org558aa02">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#orgfdc2ab8">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org4aad6c7">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org15f5e4f">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#orgfd0c9bf">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org5ff610b">1.4.14. AO Normalization</a></li>
|
||||
<li><a href="#orga54717d">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#orgf031d6b">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org211bd4d">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#org97bbf62">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org771e8a2">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#orgb22312a">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#org338558a">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org4de079c">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#org922fda0">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#org26d5f6e">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#orge2739e0">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org4cf520f">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#org8d538c1">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org3a9a17b">1.4.14. AO Normalization</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org813c63b">1.5. Molecular orbitals</a>
|
||||
<li><a href="#org8d6fd98">1.5. Molecular orbitals</a>
|
||||
<ul>
|
||||
<li><a href="#org0416c50">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#orgbc992c2">1.5.2. MO coefficients</a></li>
|
||||
<li><a href="#org18671b3">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#orgd9bd7dc">1.5.2. MO coefficients</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga1b6260">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
<li><a href="#org2c555f5">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7f1a2f6">2. Read everything</a></li>
|
||||
<li><a href="#orgf337791">3. Test</a>
|
||||
<li><a href="#org863acc1">2. Read everything</a></li>
|
||||
<li><a href="#org1597fef">3. Test</a>
|
||||
<ul>
|
||||
<li>
|
||||
<ul>
|
||||
<li><a href="#org2733c91">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org5079cdd">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#orgb0eeeee">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#orga7ba4c6">3.0.4. MO Basis</a></li>
|
||||
<li><a href="#org657fa1f">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org1d7d0e2">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#orgbbd072e">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org1bd8ffa">3.0.4. MO Basis</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -366,8 +366,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb93d852" class="outline-2">
|
||||
<h2 id="orgb93d852"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div id="outline-container-org037312c" class="outline-2">
|
||||
<h2 id="org037312c"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
Functions defined in this section are all local: they should not be
|
||||
@ -390,8 +390,8 @@ In the functions defined in this section, we use as local variables
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4f83250" class="outline-3">
|
||||
<h3 id="org4f83250"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div id="outline-container-orgf4755c3" class="outline-3">
|
||||
<h3 id="orgf4755c3"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
We first define a helper function to open a file by first trying to
|
||||
@ -429,8 +429,8 @@ groups of data by passing the <code>trexio_t</code> handle.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org07850f6" class="outline-3">
|
||||
<h3 id="org07850f6"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div id="outline-container-orgf70d3ef" class="outline-3">
|
||||
<h3 id="orgf70d3ef"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
In this section we read all the data into the electron data structure.
|
||||
@ -481,8 +481,8 @@ We read the number of up-spin and down-spin electrons.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org220d566" class="outline-3">
|
||||
<h3 id="org220d566"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div id="outline-container-org021325b" class="outline-3">
|
||||
<h3 id="org021325b"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
In this section we read the number of nuclei, the molecular geometry and nuclear charges.
|
||||
@ -502,8 +502,8 @@ In this section we read the number of nuclei, the molecular geometry and nuclear
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8b1efd9" class="outline-4">
|
||||
<h4 id="org8b1efd9"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div id="outline-container-orgae6785d" class="outline-4">
|
||||
<h4 id="orgae6785d"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div class="outline-text-4" id="text-1-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">nucleus_num</span> = 0L;
|
||||
@ -526,8 +526,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6b8b87e" class="outline-4">
|
||||
<h4 id="org6b8b87e"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div id="outline-container-orga0b3942" class="outline-4">
|
||||
<h4 id="orga0b3942"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div class="outline-text-4" id="text-1-3-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -567,8 +567,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb8e8273" class="outline-4">
|
||||
<h4 id="orgb8e8273"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div id="outline-container-org7d69a83" class="outline-4">
|
||||
<h4 id="org7d69a83"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-3-3">
|
||||
<p>
|
||||
Now, we read the molecular geometry. It is stored in normal format
|
||||
@ -623,8 +623,8 @@ in the TREXIO file (<code>'N'</code>), so it will be automatically transposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1984164" class="outline-3">
|
||||
<h3 id="org1984164"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div id="outline-container-org99891f6" class="outline-3">
|
||||
<h3 id="org99891f6"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
In this section we read the atomic basis set and atomic orbitals.
|
||||
@ -650,8 +650,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfe274e1" class="outline-4">
|
||||
<h4 id="orgfe274e1"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div id="outline-container-orga54717d" class="outline-4">
|
||||
<h4 id="orga54717d"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div class="outline-text-4" id="text-1-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">MAX_STR_LEN</span> 1024
|
||||
@ -682,8 +682,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org36eb0f8" class="outline-4">
|
||||
<h4 id="org36eb0f8"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div id="outline-container-orgf031d6b" class="outline-4">
|
||||
<h4 id="orgf031d6b"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div class="outline-text-4" id="text-1-4-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">shell_num</span> = 0L;
|
||||
@ -707,8 +707,8 @@ rc = qmckl_set_ao_basis_shell_num(context, shell_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org974962b" class="outline-4">
|
||||
<h4 id="org974962b"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div id="outline-container-org211bd4d" class="outline-4">
|
||||
<h4 id="org211bd4d"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div class="outline-text-4" id="text-1-4-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">prim_num</span> = 0L;
|
||||
@ -732,8 +732,8 @@ rc = qmckl_set_ao_basis_prim_num(context, prim_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5d7a64c" class="outline-4">
|
||||
<h4 id="org5d7a64c"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div id="outline-container-org97bbf62" class="outline-4">
|
||||
<h4 id="org97bbf62"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div class="outline-text-4" id="text-1-4-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">ao_num</span> = 0LL;
|
||||
@ -757,8 +757,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6a549e5" class="outline-4">
|
||||
<h4 id="org6a549e5"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div id="outline-container-org771e8a2" class="outline-4">
|
||||
<h4 id="org771e8a2"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div class="outline-text-4" id="text-1-4-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -838,8 +838,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbbd4c30" class="outline-4">
|
||||
<h4 id="orgbbd4c30"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div id="outline-container-orgb22312a" class="outline-4">
|
||||
<h4 id="orgb22312a"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div class="outline-text-4" id="text-1-4-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -924,8 +924,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf8fc2de" class="outline-4">
|
||||
<h4 id="orgf8fc2de"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div id="outline-container-org338558a" class="outline-4">
|
||||
<h4 id="org338558a"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div class="outline-text-4" id="text-1-4-7">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -970,8 +970,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org55c8286" class="outline-4">
|
||||
<h4 id="org55c8286"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
||||
<div id="outline-container-org4de079c" class="outline-4">
|
||||
<h4 id="org4de079c"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
||||
<div class="outline-text-4" id="text-1-4-8">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1055,8 +1055,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org558aa02" class="outline-4">
|
||||
<h4 id="org558aa02"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
||||
<div id="outline-container-org922fda0" class="outline-4">
|
||||
<h4 id="org922fda0"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
||||
<div class="outline-text-4" id="text-1-4-9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1136,8 +1136,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfdc2ab8" class="outline-4">
|
||||
<h4 id="orgfdc2ab8"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
||||
<div id="outline-container-org26d5f6e" class="outline-4">
|
||||
<h4 id="org26d5f6e"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
||||
<div class="outline-text-4" id="text-1-4-10">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1182,8 +1182,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4aad6c7" class="outline-4">
|
||||
<h4 id="org4aad6c7"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||
<div id="outline-container-orge2739e0" class="outline-4">
|
||||
<h4 id="orge2739e0"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||
<div class="outline-text-4" id="text-1-4-11">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1228,8 +1228,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org15f5e4f" class="outline-4">
|
||||
<h4 id="org15f5e4f"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||
<div id="outline-container-org4cf520f" class="outline-4">
|
||||
<h4 id="org4cf520f"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||
<div class="outline-text-4" id="text-1-4-12">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1274,8 +1274,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfd0c9bf" class="outline-4">
|
||||
<h4 id="orgfd0c9bf"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
||||
<div id="outline-container-org8d538c1" class="outline-4">
|
||||
<h4 id="org8d538c1"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
||||
<div class="outline-text-4" id="text-1-4-13">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1320,8 +1320,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5ff610b" class="outline-4">
|
||||
<h4 id="org5ff610b"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||
<div id="outline-container-org3a9a17b" class="outline-4">
|
||||
<h4 id="org3a9a17b"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||
<div class="outline-text-4" id="text-1-4-14">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1376,8 +1376,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org813c63b" class="outline-3">
|
||||
<h3 id="org813c63b"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org8d6fd98" class="outline-3">
|
||||
<h3 id="org8d6fd98"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
In this section we read the MO coefficients.
|
||||
@ -1403,8 +1403,8 @@ In this section we read the MO coefficients.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0416c50" class="outline-4">
|
||||
<h4 id="org0416c50"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
||||
<div id="outline-container-org18671b3" class="outline-4">
|
||||
<h4 id="org18671b3"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
||||
<div class="outline-text-4" id="text-1-5-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">mo_num</span> = 0L;
|
||||
@ -1427,8 +1427,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbc992c2" class="outline-4">
|
||||
<h4 id="orgbc992c2"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||
<div id="outline-container-orgd9bd7dc" class="outline-4">
|
||||
<h4 id="orgd9bd7dc"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||
<div class="outline-text-4" id="text-1-5-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -1477,12 +1477,12 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga1b6260" class="outline-3">
|
||||
<h3 id="orga1b6260"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
<div id="outline-container-org2c555f5" class="outline-3">
|
||||
<h3 id="org2c555f5"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org7f1a2f6" class="outline-2">
|
||||
<h2 id="org7f1a2f6"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div id="outline-container-org863acc1" class="outline-2">
|
||||
<h2 id="org863acc1"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1557,8 +1557,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf337791" class="outline-2">
|
||||
<h2 id="orgf337791"><span class="section-number-2">3</span> Test</h2>
|
||||
<div id="outline-container-org1597fef" class="outline-2">
|
||||
<h2 id="org1597fef"><span class="section-number-2">3</span> Test</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_TREXIO
|
||||
@ -1582,8 +1582,8 @@ rc = qmckl_trexio_read(context, filename, 255);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2733c91" class="outline-4">
|
||||
<h4 id="org2733c91"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||
<div id="outline-container-org657fa1f" class="outline-4">
|
||||
<h4 id="org657fa1f"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||
<div class="outline-text-4" id="text-3-0-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">printf(<span style="color: #8b2252;">"Electrons\n"</span>);
|
||||
@ -1601,8 +1601,8 @@ rc = qmckl_get_electron_down_num(context, &dn_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5079cdd" class="outline-4">
|
||||
<h4 id="org5079cdd"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||
<div id="outline-container-org1d7d0e2" class="outline-4">
|
||||
<h4 id="org1d7d0e2"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||
<div class="outline-text-4" id="text-3-0-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">printf(<span style="color: #8b2252;">"Nuclei\n"</span>);
|
||||
@ -1642,8 +1642,8 @@ coord = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb0eeeee" class="outline-4">
|
||||
<h4 id="orgb0eeeee"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||
<div id="outline-container-orgbbd072e" class="outline-4">
|
||||
<h4 id="orgbbd072e"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||
<div class="outline-text-4" id="text-3-0-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">printf(<span style="color: #8b2252;">"Atomic basis\n"</span>);
|
||||
@ -1751,8 +1751,8 @@ prim_factor = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga7ba4c6" class="outline-4">
|
||||
<h4 id="orga7ba4c6"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div id="outline-container-org1bd8ffa" class="outline-4">
|
||||
<h4 id="org1bd8ffa"><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>);
|
||||
|
@ -311,22 +311,22 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org581a632">1. Verificarlo probes</a>
|
||||
<li><a href="#orgb224c41">1. Verificarlo probes</a>
|
||||
<ul>
|
||||
<li><a href="#org61dfa56">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#orgbd489a5">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#orgf7ffde7">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#orgb98c9cb">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#orgdaa09b0">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org0d236d2">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org82cc767">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#orge7511d3">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#org791d8df">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#orgab20742">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="#org9f0f4b6">2. Fortran wrappers</a></li>
|
||||
<li><a href="#org8e37db0">2. Fortran wrappers</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org581a632" class="outline-2">
|
||||
<h2 id="org581a632"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div id="outline-container-orgb224c41" class="outline-2">
|
||||
<h2 id="orgb224c41"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
This file contains utility functions to enable the Verificarlo
|
||||
@ -377,8 +377,8 @@ To learn more about Verificarlo CI :
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org61dfa56" class="outline-3">
|
||||
<h3 id="org61dfa56"><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-org0d236d2" class="outline-3">
|
||||
<h3 id="org0d236d2"><span class="section-number-3">1.1</span> Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">void</span> <span style="color: #0000ff;">qmckl_init_probes</span>();
|
||||
@ -396,8 +396,8 @@ To learn more about Verificarlo CI :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbd489a5" class="outline-3">
|
||||
<h3 id="orgbd489a5"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div id="outline-container-org82cc767" class="outline-3">
|
||||
<h3 id="org82cc767"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<ul class="org-ul">
|
||||
<li>if <code>VFC_CI</code> is defined, place a standard probe</li>
|
||||
@ -432,8 +432,8 @@ if <code>VFC_CI</code> is undefined, return <code>false</code> (no error)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf7ffde7" class="outline-3">
|
||||
<h3 id="orgf7ffde7"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div id="outline-container-orge7511d3" class="outline-3">
|
||||
<h3 id="orge7511d3"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<ul class="org-ul">
|
||||
<li>if <code>VFC_CI</code> is defined, place a probe with an absolute check</li>
|
||||
@ -473,8 +473,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb98c9cb" class="outline-3">
|
||||
<h3 id="orgb98c9cb"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div id="outline-container-org791d8df" class="outline-3">
|
||||
<h3 id="org791d8df"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<ul class="org-ul">
|
||||
<li>if <code>VFC_CI</code> is defined, place a probe with a relative check</li>
|
||||
@ -514,8 +514,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdaa09b0" class="outline-3">
|
||||
<h3 id="orgdaa09b0"><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-orgab20742" class="outline-3">
|
||||
<h3 id="orgab20742"><span class="section-number-3">1.5</span> Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">void</span> <span style="color: #0000ff;">qmckl_dump_probes</span>();
|
||||
@ -534,8 +534,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9f0f4b6" class="outline-2">
|
||||
<h2 id="org9f0f4b6"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||
<div id="outline-container-org8e37db0" class="outline-2">
|
||||
<h2 id="org8e37db0"><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>(
|
||||
|
Loading…
Reference in New Issue
Block a user