mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2025-01-08 04:19:15 +01:00
Deploying to gh-pages from @ TREX-CoE/qmckl@2c0dc5561b 🚀
This commit is contained in:
parent
6df3d8dd70
commit
6c4f6d2ec7
@ -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-01-06 Thu 18:02 -->
|
||||
<!-- 2022-01-06 Thu 18:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>QMCkl source code documentation</title>
|
||||
@ -361,7 +361,7 @@ and bug reports should be submitted at
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:02</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
102
qmckl.html
102
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-01-06 Thu 18:02 -->
|
||||
<!-- 2022-01-06 Thu 18:05 -->
|
||||
<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,30 +333,30 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org9a74f72">1. Using QMCkl</a></li>
|
||||
<li><a href="#orgbbe4298">2. Developing in QMCkl</a>
|
||||
<li><a href="#org04b6e18">1. Using QMCkl</a></li>
|
||||
<li><a href="#org9f1638f">2. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#orgcd3df7b">2.1. Literate programming</a></li>
|
||||
<li><a href="#org6d013bb">2.2. Source code editing</a></li>
|
||||
<li><a href="#orga92d13a">2.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org3128f8c">2.4. Coding rules</a></li>
|
||||
<li><a href="#org7083d46">2.5. Design of the library</a></li>
|
||||
<li><a href="#org949e648">2.6. Naming conventions</a></li>
|
||||
<li><a href="#org27ff2ca">2.7. Application programming interface</a></li>
|
||||
<li><a href="#org43c6bef">2.8. Global state</a></li>
|
||||
<li><a href="#org6b5e385">2.9. Headers</a></li>
|
||||
<li><a href="#org66cd905">2.10. Low-level functions</a></li>
|
||||
<li><a href="#org3fe6c10">2.11. High-level functions</a></li>
|
||||
<li><a href="#org11da81a">2.12. Numerical precision</a></li>
|
||||
<li><a href="#org6fe6188">2.13. Algorithms</a></li>
|
||||
<li><a href="#org4b5b392">2.1. Literate programming</a></li>
|
||||
<li><a href="#org8e6f2bd">2.2. Source code editing</a></li>
|
||||
<li><a href="#org0e04d41">2.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org9465aed">2.4. Coding rules</a></li>
|
||||
<li><a href="#org611343f">2.5. Design of the library</a></li>
|
||||
<li><a href="#org265cce2">2.6. Naming conventions</a></li>
|
||||
<li><a href="#org658ed52">2.7. Application programming interface</a></li>
|
||||
<li><a href="#org6cd8bbf">2.8. Global state</a></li>
|
||||
<li><a href="#org4751152">2.9. Headers</a></li>
|
||||
<li><a href="#org1f4ced7">2.10. Low-level functions</a></li>
|
||||
<li><a href="#orgf8e5f4b">2.11. High-level functions</a></li>
|
||||
<li><a href="#org066acca">2.12. Numerical precision</a></li>
|
||||
<li><a href="#org8dc27c8">2.13. Algorithms</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9a74f72" class="outline-2">
|
||||
<h2 id="org9a74f72"><span class="section-number-2">1</span> Using QMCkl</h2>
|
||||
<div id="outline-container-org04b6e18" class="outline-2">
|
||||
<h2 id="org04b6e18"><span class="section-number-2">1</span> Using QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The <code>qmckl.h</code> header file installed in the <code>${prefix}/include</code> directory
|
||||
@ -385,12 +385,12 @@ Both files are located in the <code>include/</code> directory.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbbe4298" class="outline-2">
|
||||
<h2 id="orgbbe4298"><span class="section-number-2">2</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-org9f1638f" class="outline-2">
|
||||
<h2 id="org9f1638f"><span class="section-number-2">2</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgcd3df7b" class="outline-3">
|
||||
<h3 id="orgcd3df7b"><span class="section-number-3">2.1</span> Literate programming</h3>
|
||||
<div id="outline-container-org4b5b392" class="outline-3">
|
||||
<h3 id="org4b5b392"><span class="section-number-3">2.1</span> Literate programming</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
In a traditional source code, most of the lines of source files of a program
|
||||
@ -435,8 +435,8 @@ interactively, in the same spirit as Jupyter notebooks.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6d013bb" class="outline-3">
|
||||
<h3 id="org6d013bb"><span class="section-number-3">2.2</span> Source code editing</h3>
|
||||
<div id="outline-container-org8e6f2bd" class="outline-3">
|
||||
<h3 id="org8e6f2bd"><span class="section-number-3">2.2</span> Source code editing</h3>
|
||||
<div class="outline-text-3" id="text-2-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>.
|
||||
@ -467,8 +467,8 @@ org-mode.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga92d13a" class="outline-3">
|
||||
<h3 id="orga92d13a"><span class="section-number-3">2.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-org0e04d41" class="outline-3">
|
||||
<h3 id="org0e04d41"><span class="section-number-3">2.3</span> Choice of the programming language</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
Most of the codes of the <a href="https://trex-coe.eu">TREX CoE</a> are written in Fortran with some scripts in
|
||||
@ -516,8 +516,8 @@ For more guidelines on using Fortran to generate a C interface, see
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3128f8c" class="outline-3">
|
||||
<h3 id="org3128f8c"><span class="section-number-3">2.4</span> Coding rules</h3>
|
||||
<div id="outline-container-org9465aed" class="outline-3">
|
||||
<h3 id="org9465aed"><span class="section-number-3">2.4</span> Coding rules</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
The authors should follow the recommendations of the C99
|
||||
@ -535,8 +535,8 @@ Compliance can be checked with <code>cppcheck</code> as:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7083d46" class="outline-3">
|
||||
<h3 id="org7083d46"><span class="section-number-3">2.5</span> Design of the library</h3>
|
||||
<div id="outline-container-org611343f" class="outline-3">
|
||||
<h3 id="org611343f"><span class="section-number-3">2.5</span> Design of the library</h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
<p>
|
||||
The proposed API should allow the library to: deal with memory transfers
|
||||
@ -547,8 +547,8 @@ functions (see below).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org949e648" class="outline-3">
|
||||
<h3 id="org949e648"><span class="section-number-3">2.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-org265cce2" class="outline-3">
|
||||
<h3 id="org265cce2"><span class="section-number-3">2.6</span> Naming conventions</h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
To avoid namespace collisions, we use <code>qmckl_</code> as a prefix for all exported
|
||||
@ -573,8 +573,8 @@ form is allowed.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org27ff2ca" class="outline-3">
|
||||
<h3 id="org27ff2ca"><span class="section-number-3">2.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-org658ed52" class="outline-3">
|
||||
<h3 id="org658ed52"><span class="section-number-3">2.7</span> Application programming interface</h3>
|
||||
<div class="outline-text-3" id="text-2-7">
|
||||
<p>
|
||||
In the C language, the number of bits used by the integer types can change
|
||||
@ -606,15 +606,15 @@ bindings in other languages in other repositories.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org43c6bef" class="outline-3">
|
||||
<h3 id="org43c6bef"><span class="section-number-3">2.8</span> Global state</h3>
|
||||
<div id="outline-container-org6cd8bbf" class="outline-3">
|
||||
<h3 id="org6cd8bbf"><span class="section-number-3">2.8</span> Global state</h3>
|
||||
<div class="outline-text-3" id="text-2-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="org99406e3">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="orgcd213cd">=context=</a> contains the global
|
||||
state of the library, and is used as the first argument of many
|
||||
QMCkl functions.
|
||||
</p>
|
||||
@ -628,8 +628,8 @@ the state is done by setters and getters, prefixed by
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6b5e385" class="outline-3">
|
||||
<h3 id="org6b5e385"><span class="section-number-3">2.9</span> Headers</h3>
|
||||
<div id="outline-container-org4751152" class="outline-3">
|
||||
<h3 id="org4751152"><span class="section-number-3">2.9</span> Headers</h3>
|
||||
<div class="outline-text-3" id="text-2-9">
|
||||
<p>
|
||||
A single <code>qmckl.h</code> header to be distributed by the library
|
||||
@ -717,8 +717,8 @@ and the types definitions should be written in the <code>*fh_type.f90</code> fil
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org66cd905" class="outline-3">
|
||||
<h3 id="org66cd905"><span class="section-number-3">2.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-org1f4ced7" class="outline-3">
|
||||
<h3 id="org1f4ced7"><span class="section-number-3">2.10</span> Low-level functions</h3>
|
||||
<div class="outline-text-3" id="text-2-10">
|
||||
<p>
|
||||
Low-level functions are very simple functions which are leaves of
|
||||
@ -727,14 +727,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="#org99406e3"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#orgcd213cd"><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-org3fe6c10" class="outline-3">
|
||||
<h3 id="org3fe6c10"><span class="section-number-3">2.11</span> High-level functions</h3>
|
||||
<div id="outline-container-orgf8e5f4b" class="outline-3">
|
||||
<h3 id="orgf8e5f4b"><span class="section-number-3">2.11</span> High-level functions</h3>
|
||||
<div class="outline-text-3" id="text-2-11">
|
||||
<p>
|
||||
High-level functions are at the top of the function call tree.
|
||||
@ -747,20 +747,20 @@ temporary storage, to simplify the use of accelerators.
|
||||
<p>
|
||||
The high-level functions should be pure, unless the introduction
|
||||
of non-purity is justified. All the side effects should be made in
|
||||
the <a href="#org99406e3"><code>context</code></a> variable.
|
||||
the <a href="#orgcd213cd"><code>context</code></a> variable.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org11da81a" class="outline-3">
|
||||
<h3 id="org11da81a"><span class="section-number-3">2.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-org066acca" class="outline-3">
|
||||
<h3 id="org066acca"><span class="section-number-3">2.12</span> Numerical precision</h3>
|
||||
<div class="outline-text-3" id="text-2-12">
|
||||
<p>
|
||||
The number of bits of precision required for a function 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="#org99406e3"><code>context</code></a>
|
||||
functions will use the precision specified in the <a href="#orgcd213cd"><code>context</code></a>
|
||||
variable.
|
||||
</p>
|
||||
|
||||
@ -830,8 +830,8 @@ following points :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6fe6188" class="outline-3">
|
||||
<h3 id="org6fe6188"><span class="section-number-3">2.13</span> Algorithms</h3>
|
||||
<div id="outline-container-org8dc27c8" class="outline-3">
|
||||
<h3 id="org8dc27c8"><span class="section-number-3">2.13</span> Algorithms</h3>
|
||||
<div class="outline-text-3" id="text-2-13">
|
||||
<p>
|
||||
Reducing the scaling of an algorithm usually implies also reducing
|
||||
@ -847,7 +847,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-01-06 Thu 18:02</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
150
qmckl_ao.html
150
qmckl_ao.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-01-06 Thu 18:02 -->
|
||||
<!-- 2022-01-06 Thu 18:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Atomic Orbitals</title>
|
||||
@ -333,53 +333,53 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org31ec7c8">1. Introduction</a></li>
|
||||
<li><a href="#org22ea0db">2. Context</a>
|
||||
<li><a href="#org9e71383">1. Introduction</a></li>
|
||||
<li><a href="#org845f169">2. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org6517640">2.1. Constant data</a>
|
||||
<li><a href="#org7d403fe">2.1. Constant data</a>
|
||||
<ul>
|
||||
<li><a href="#org7ce1515">2.1.1. Initialization functions</a>
|
||||
<li><a href="#org63642a1">2.1.1. Initialization functions</a>
|
||||
<ul>
|
||||
<li><a href="#org9300c7f">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#orga8fe11d">2.1.1.2. Fortran interface</a></li>
|
||||
<li><a href="#org70e3711">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org655a566">2.1.1.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1b43f75">2.1.2. Access functions</a>
|
||||
<li><a href="#orgd9d6659">2.1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgd522b86">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#orgfdee7c8">2.1.2.2. Fortran interface</a></li>
|
||||
<li><a href="#org37ef082">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org6f7c63a">2.1.2.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0f0c30e">2.2. Computed data</a>
|
||||
<li><a href="#org32f1584">2.2. Computed data</a>
|
||||
<ul>
|
||||
<li><a href="#org4f04ab3">2.2.1. After initialization</a></li>
|
||||
<li><a href="#orgb168956">2.2.2. Access functions</a></li>
|
||||
<li><a href="#org223f45a">2.2.1. After initialization</a></li>
|
||||
<li><a href="#orgf12ba7c">2.2.2. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org494a188">3. Radial part</a>
|
||||
<li><a href="#orga83189f">3. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#orga19c146">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#orgd0afe1b">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org631ad16">3.3. Computation of shells</a></li>
|
||||
<li><a href="#org365e0d9">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#orgc57f697">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org468d738">3.3. Computation of shells</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgdda320e">4. Polynomial part</a>
|
||||
<li><a href="#org02ce0df">4. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#orgc094630">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org3ebe2e2">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
<li><a href="#orgfb0439a">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#orgd601cd8">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5bf9c51">5. Combining radial and polynomial parts</a></li>
|
||||
<li><a href="#org7b264dc">5. Combining radial and polynomial parts</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org31ec7c8" class="outline-2">
|
||||
<h2 id="org31ec7c8"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div id="outline-container-org9e71383" class="outline-2">
|
||||
<h2 id="org9e71383"><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
|
||||
@ -432,19 +432,19 @@ gradients and Laplacian of the atomic basis functions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org22ea0db" class="outline-2">
|
||||
<h2 id="org22ea0db"><span class="section-number-2">2</span> Context</h2>
|
||||
<div id="outline-container-org845f169" class="outline-2">
|
||||
<h2 id="org845f169"><span class="section-number-2">2</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org6517640" class="outline-3">
|
||||
<h3 id="org6517640"><span class="section-number-3">2.1</span> Constant data</h3>
|
||||
<div id="outline-container-org7d403fe" class="outline-3">
|
||||
<h3 id="org7d403fe"><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="org7f4a701" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge5ef45b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -618,7 +618,7 @@ calling the functions:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="org3a94968"><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="org9790d84"><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>,
|
||||
@ -655,7 +655,7 @@ For array variables, use the rule:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="org73dc34c"><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="orga160b5e"><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>);
|
||||
|
||||
@ -693,17 +693,17 @@ For array variables, use the rule:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7ce1515" class="outline-4">
|
||||
<h4 id="org7ce1515"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
||||
<div id="outline-container-org63642a1" class="outline-4">
|
||||
<h4 id="org63642a1"><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="#org22ea0db">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org845f169">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9300c7f" class="outline-5">
|
||||
<h5 id="org9300c7f"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div id="outline-container-org70e3711" class="outline-5">
|
||||
<h5 id="org70e3711"><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
|
||||
@ -827,8 +827,8 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga8fe11d" class="outline-5">
|
||||
<h5 id="orga8fe11d"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org655a566" class="outline-5">
|
||||
<h5 id="org655a566"><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>
|
||||
@ -1011,17 +1011,17 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1b43f75" class="outline-4">
|
||||
<h4 id="org1b43f75"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
||||
<div id="outline-container-orgd9d6659" class="outline-4">
|
||||
<h4 id="orgd9d6659"><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="#org22ea0db">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org845f169">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd522b86" class="outline-5">
|
||||
<h5 id="orgd522b86"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div id="outline-container-org37ef082" class="outline-5">
|
||||
<h5 id="org37ef082"><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>
|
||||
@ -1143,8 +1143,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfdee7c8" class="outline-5">
|
||||
<h5 id="orgfdee7c8"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org6f7c63a" class="outline-5">
|
||||
<h5 id="org6f7c63a"><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>
|
||||
@ -1328,8 +1328,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0f0c30e" class="outline-3">
|
||||
<h3 id="org0f0c30e"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div id="outline-container-org32f1584" class="outline-3">
|
||||
<h3 id="org32f1584"><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:
|
||||
@ -1393,8 +1393,8 @@ The following data is computed as described in the next sections:
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org4f04ab3" class="outline-4">
|
||||
<h4 id="org4f04ab3"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div id="outline-container-org223f45a" class="outline-4">
|
||||
<h4 id="org223f45a"><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
|
||||
@ -1408,8 +1408,8 @@ the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb168956" class="outline-4">
|
||||
<h4 id="orgb168956"><span class="section-number-4">2.2.2</span> Access functions</h4>
|
||||
<div id="outline-container-orgf12ba7c" class="outline-4">
|
||||
<h4 id="orgf12ba7c"><span class="section-number-4">2.2.2</span> Access functions</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>
|
||||
@ -1422,7 +1422,7 @@ the context.
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of primitive
|
||||
basis functions evaluated at the current coordinates.
|
||||
See section <a href="#orgd0afe1b">3.2</a>.
|
||||
See section <a href="#orgc57f697">3.2</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1435,7 +1435,7 @@ See section <a href="#orgd0afe1b">3.2</a>.
|
||||
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of contracted shells
|
||||
evaluated at the current coordinates. See section <a href="#org631ad16">3.3</a>.
|
||||
evaluated at the current coordinates. See section <a href="#org468d738">3.3</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1449,19 +1449,19 @@ evaluated at the current coordinates. See section <a href="#org631ad16">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="#org5bf9c51">5</a>.
|
||||
See section <a href="#org7b264dc">5</a>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org494a188" class="outline-2">
|
||||
<h2 id="org494a188"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div id="outline-container-orga83189f" class="outline-2">
|
||||
<h2 id="orga83189f"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orga19c146" class="outline-3">
|
||||
<h3 id="orga19c146"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div id="outline-container-org365e0d9" class="outline-3">
|
||||
<h3 id="org365e0d9"><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
|
||||
@ -1632,10 +1632,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd0afe1b" class="outline-3">
|
||||
<h3 id="orgd0afe1b"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div id="outline-container-orgc57f697" class="outline-3">
|
||||
<h3 id="orgc57f697"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<table id="org43636b4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2c79ef4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1794,10 +1794,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org631ad16" class="outline-3">
|
||||
<h3 id="org631ad16"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div id="outline-container-org468d738" class="outline-3">
|
||||
<h3 id="org468d738"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<table id="org0ca242a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3d4fc44" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2036,8 +2036,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdda320e" class="outline-2">
|
||||
<h2 id="orgdda320e"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div id="outline-container-org02ce0df" class="outline-2">
|
||||
<h2 id="org02ce0df"><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
|
||||
@ -2057,8 +2057,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-orgc094630" class="outline-3">
|
||||
<h3 id="orgc094630"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-orgfb0439a" class="outline-3">
|
||||
<h3 id="orgfb0439a"><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>
|
||||
@ -2070,7 +2070,7 @@ the \(n\) points:
|
||||
\[ P_{ik} = X_i^k \]
|
||||
</p>
|
||||
|
||||
<table id="orgb62a378" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd5c2ad4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2208,8 +2208,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3ebe2e2" class="outline-3">
|
||||
<h3 id="org3ebe2e2"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-orgd601cd8" class="outline-3">
|
||||
<h3 id="orgd601cd8"><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\)
|
||||
@ -2254,7 +2254,7 @@ Laplacians at a given point in space, of all polynomials with an
|
||||
angular momentum up to <code>lmax</code>.
|
||||
</p>
|
||||
|
||||
<table id="org5e433e3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org597dda5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2514,10 +2514,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5bf9c51" class="outline-2">
|
||||
<h2 id="org5bf9c51"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div id="outline-container-org7b264dc" class="outline-2">
|
||||
<h2 id="org7b264dc"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
<table id="org5d563b9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7a12fc9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2795,7 +2795,7 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:02</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:05</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-01-06 Thu 18:02 -->
|
||||
<!-- 2022-01-06 Thu 18:05 -->
|
||||
<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,22 +333,22 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org251bb62">1. Matrix operations</a>
|
||||
<li><a href="#orga6ec933">1. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#orgd18fc8c">1.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org4f66836">1.2. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#orgc574087">1.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org6196b4b">1.2. <code>qmckl_adjugate</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org251bb62" class="outline-2">
|
||||
<h2 id="org251bb62"><span class="section-number-2">1</span> Matrix operations</h2>
|
||||
<div id="outline-container-orga6ec933" class="outline-2">
|
||||
<h2 id="orga6ec933"><span class="section-number-2">1</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-orgd18fc8c" class="outline-3">
|
||||
<h3 id="orgd18fc8c"><span class="section-number-3">1.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div id="outline-container-orgc574087" class="outline-3">
|
||||
<h3 id="orgc574087"><span class="section-number-3">1.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
Matrix multiplication:
|
||||
@ -360,7 +360,7 @@ Matrix multiplication:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="org7753b6e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org68b8fe1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -580,8 +580,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4f66836" class="outline-3">
|
||||
<h3 id="org4f66836"><span class="section-number-3">1.2</span> <code>qmckl_adjugate</code></h3>
|
||||
<div id="outline-container-org6196b4b" class="outline-3">
|
||||
<h3 id="org6196b4b"><span class="section-number-3">1.2</span> <code>qmckl_adjugate</code></h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
Given a matrix \(\mathbf{A}\), the adjugate matrix
|
||||
@ -599,7 +599,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="orgffe7d42" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd82ba41" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -855,7 +855,7 @@ determinant with the inverse:
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:02</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:05</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-01-06 Thu 18:02 -->
|
||||
<!-- 2022-01-06 Thu 18:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Context</title>
|
||||
@ -311,21 +311,21 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org17fe035">1. Context handling</a>
|
||||
<li><a href="#org262cfd2">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#orgb4eda35">1.1. Data structure</a></li>
|
||||
<li><a href="#org5b1fcbb">1.2. Creation</a></li>
|
||||
<li><a href="#org295278d">1.3. Locking</a></li>
|
||||
<li><a href="#org6f1dbc9">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#orgf496230">1.5. Destroy</a></li>
|
||||
<li><a href="#orgd4c964e">1.1. Data structure</a></li>
|
||||
<li><a href="#org6ad2496">1.2. Creation</a></li>
|
||||
<li><a href="#orgddd8811">1.3. Locking</a></li>
|
||||
<li><a href="#org8b4c20e">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#orgda2a8e4">1.5. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org17fe035" class="outline-2">
|
||||
<h2 id="org17fe035"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-org262cfd2" class="outline-2">
|
||||
<h2 id="org262cfd2"><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="org27ddf4d"><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="orgec1f486"><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-orgb4eda35" class="outline-3">
|
||||
<h3 id="orgb4eda35"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgd4c964e" class="outline-3">
|
||||
<h3 id="orgd4c964e"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
The context keeps a ``date'' that allows to check which data needs
|
||||
@ -367,7 +367,7 @@ coordinates are updated.
|
||||
|
||||
<p>
|
||||
When a new element is added to the context, the functions
|
||||
<a href="#org5b1fcbb">qmckl<sub>context</sub><sub>create</sub></a>, <a href="#orgf496230">qmckl<sub>context</sub><sub>destroy</sub></a> and <a href="#org6f1dbc9">qmckl<sub>context</sub><sub>copy</sub></a>
|
||||
<a href="#org6ad2496">qmckl<sub>context</sub><sub>create</sub></a>, <a href="#orgda2a8e4">qmckl<sub>context</sub><sub>destroy</sub></a> and <a href="#org8b4c20e">qmckl<sub>context</sub><sub>copy</sub></a>
|
||||
should be updated inorder to make deep copies.
|
||||
</p>
|
||||
|
||||
@ -416,8 +416,8 @@ if the context is valid, <code>QMCKL_NULL_CONTEXT</code> otherwise.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5b1fcbb" class="outline-3">
|
||||
<h3 id="org5b1fcbb"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-org6ad2496" class="outline-3">
|
||||
<h3 id="org6ad2496"><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.
|
||||
@ -508,8 +508,8 @@ To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org295278d" class="outline-3">
|
||||
<h3 id="org295278d"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-orgddd8811" class="outline-3">
|
||||
<h3 id="orgddd8811"><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
|
||||
@ -554,8 +554,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6f1dbc9" class="outline-3">
|
||||
<h3 id="org6f1dbc9"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div id="outline-container-org8b4c20e" class="outline-3">
|
||||
<h3 id="org8b4c20e"><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
|
||||
@ -603,8 +603,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgf496230" class="outline-3">
|
||||
<h3 id="orgf496230"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-orgda2a8e4" class="outline-3">
|
||||
<h3 id="orgda2a8e4"><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.
|
||||
@ -658,7 +658,7 @@ It frees the context, and returns the previous context.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:02</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:05</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-01-06 Thu 18:02 -->
|
||||
<!-- 2022-01-06 Thu 18:05 -->
|
||||
<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="#org1a54ffe">1. Context</a>
|
||||
<li><a href="#org7bd6c57">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgfec2f2b">1.1. Data structure</a></li>
|
||||
<li><a href="#org7f0c8c5">1.2. Access functions</a></li>
|
||||
<li><a href="#org07dea34">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org5c8be0c">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#orgae7663f">1.5. Test</a></li>
|
||||
<li><a href="#org9b7eefd">1.1. Data structure</a></li>
|
||||
<li><a href="#orge48e587">1.2. Access functions</a></li>
|
||||
<li><a href="#org4ae7e19">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgc88fd90">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#org90b309c">1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1dffa8f">2. Computation</a>
|
||||
<li><a href="#org11909dc">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org735bfd4">2.1. Determinant matrix</a>
|
||||
<li><a href="#orgacade98">2.1. Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org1f6fac4">2.1.1. Get</a></li>
|
||||
<li><a href="#org007c98d">2.1.2. Provide</a></li>
|
||||
<li><a href="#org9080810">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#orgd312c1c">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#orgdf0c7d7">2.1.5. Test</a></li>
|
||||
<li><a href="#org9b10168">2.1.1. Get</a></li>
|
||||
<li><a href="#org048a4a8">2.1.2. Provide</a></li>
|
||||
<li><a href="#org6e50e4b">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#org34a6c82">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#org52a1ae1">2.1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4de009b">2.2. Inverse of Determinant matrix</a>
|
||||
<li><a href="#org1ab77ba">2.2. Inverse of Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org7fa70c7">2.2.1. Get</a></li>
|
||||
<li><a href="#org3b9134f">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgd601997">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#org372985a">2.2.4. Compute beta</a></li>
|
||||
<li><a href="#org59bd599">2.2.1. Get</a></li>
|
||||
<li><a href="#orgd9a3cac">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgb58056f">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#org0041038">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-org1a54ffe" class="outline-2">
|
||||
<h2 id="org1a54ffe"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org7bd6c57" class="outline-2">
|
||||
<h2 id="org7bd6c57"><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:
|
||||
@ -528,8 +528,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfec2f2b" class="outline-3">
|
||||
<h3 id="orgfec2f2b"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org9b7eefd" class="outline-3">
|
||||
<h3 id="org9b7eefd"><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> {
|
||||
@ -598,8 +598,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7f0c8c5" class="outline-3">
|
||||
<h3 id="org7f0c8c5"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orge48e587" class="outline-3">
|
||||
<h3 id="orge48e587"><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
|
||||
@ -613,8 +613,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org07dea34" class="outline-3">
|
||||
<h3 id="org07dea34"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org4ae7e19" class="outline-3">
|
||||
<h3 id="org4ae7e19"><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
|
||||
@ -638,24 +638,24 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5c8be0c" class="outline-3">
|
||||
<h3 id="org5c8be0c"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
<div id="outline-container-orgc88fd90" class="outline-3">
|
||||
<h3 id="orgc88fd90"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
</div>
|
||||
<div id="outline-container-orgae7663f" class="outline-3">
|
||||
<h3 id="orgae7663f"><span class="section-number-3">1.5</span> Test</h3>
|
||||
<div id="outline-container-org90b309c" class="outline-3">
|
||||
<h3 id="org90b309c"><span class="section-number-3">1.5</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org1dffa8f" class="outline-2">
|
||||
<h2 id="org1dffa8f"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org11909dc" class="outline-2">
|
||||
<h2 id="org11909dc"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org735bfd4" class="outline-3">
|
||||
<h3 id="org735bfd4"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
||||
<div id="outline-container-orgacade98" class="outline-3">
|
||||
<h3 id="orgacade98"><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-org1f6fac4" class="outline-4">
|
||||
<h4 id="org1f6fac4"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org9b10168" class="outline-4">
|
||||
<h4 id="org9b10168"><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>);
|
||||
@ -665,14 +665,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org007c98d" class="outline-4">
|
||||
<h4 id="org007c98d"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org048a4a8" class="outline-4">
|
||||
<h4 id="org048a4a8"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9080810" class="outline-4">
|
||||
<h4 id="org9080810"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org6e50e4b" class="outline-4">
|
||||
<h4 id="org6e50e4b"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="org67ee4b0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8591569" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -846,10 +846,10 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd312c1c" class="outline-4">
|
||||
<h4 id="orgd312c1c"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org34a6c82" class="outline-4">
|
||||
<h4 id="org34a6c82"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<table id="orgfff9c71" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org46d7383" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1023,18 +1023,18 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdf0c7d7" class="outline-4">
|
||||
<h4 id="orgdf0c7d7"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
<div id="outline-container-org52a1ae1" class="outline-4">
|
||||
<h4 id="org52a1ae1"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4de009b" class="outline-3">
|
||||
<h3 id="org4de009b"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
||||
<div id="outline-container-org1ab77ba" class="outline-3">
|
||||
<h3 id="org1ab77ba"><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-org7fa70c7" class="outline-4">
|
||||
<h4 id="org7fa70c7"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org59bd599" class="outline-4">
|
||||
<h4 id="org59bd599"><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>);
|
||||
@ -1048,14 +1048,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3b9134f" class="outline-4">
|
||||
<h4 id="org3b9134f"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-orgd9a3cac" class="outline-4">
|
||||
<h4 id="orgd9a3cac"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd601997" class="outline-4">
|
||||
<h4 id="orgd601997"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-orgb58056f" class="outline-4">
|
||||
<h4 id="orgb58056f"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org3e14c94" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf8f39d8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1217,10 +1217,10 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org372985a" class="outline-4">
|
||||
<h4 id="org372985a"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org0041038" class="outline-4">
|
||||
<h4 id="org0041038"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<table id="org2c8322b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8a44950" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1387,7 +1387,7 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:02</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:05</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-01-06 Thu 18:02 -->
|
||||
<!-- 2022-01-06 Thu 18:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Inter-particle distances</title>
|
||||
@ -333,54 +333,54 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org8f3bb87">1. Squared distance</a>
|
||||
<li><a href="#org05a192b">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#orgd52c5c0">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#org0a37ec3">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#org9eb724c">1.1.1. Performance</a></li>
|
||||
<li><a href="#orgc198b60">1.1.1. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1249f18">2. Distance</a>
|
||||
<li><a href="#org4812fe6">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org974cc0a">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#org2effed1">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#org3e42104">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orgfa7d7db">2.1.2. C header</a></li>
|
||||
<li><a href="#org2491bd5">2.1.3. Source</a></li>
|
||||
<li><a href="#orgeb49e78">2.1.4. Performance</a></li>
|
||||
<li><a href="#org7e6be2e">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orga426203">2.1.2. C header</a></li>
|
||||
<li><a href="#org3c4623b">2.1.3. Source</a></li>
|
||||
<li><a href="#org31b8330">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org522c66b">3. Rescaled Distance</a>
|
||||
<li><a href="#orgef4f134">3. Rescaled Distance</a>
|
||||
<ul>
|
||||
<li><a href="#orgf94ce31">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<li><a href="#org3b916f1">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<ul>
|
||||
<li><a href="#org55ef307">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org1226364">3.1.2. C header</a></li>
|
||||
<li><a href="#org7a64e92">3.1.3. Source</a></li>
|
||||
<li><a href="#orge9849e4">3.1.4. Performance</a></li>
|
||||
<li><a href="#org8901d78">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org407f074">3.1.2. C header</a></li>
|
||||
<li><a href="#orgca68da0">3.1.3. Source</a></li>
|
||||
<li><a href="#org2a636e7">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge31528f">4. Rescaled Distance Derivatives</a>
|
||||
<li><a href="#org3318151">4. Rescaled Distance Derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#orgda2e8cf">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a></li>
|
||||
<li><a href="#org0a0fa76">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8f3bb87" class="outline-2">
|
||||
<h2 id="org8f3bb87"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-org05a192b" class="outline-2">
|
||||
<h2 id="org05a192b"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-orgd52c5c0" class="outline-3">
|
||||
<h3 id="orgd52c5c0"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-org0a37ec3" class="outline-3">
|
||||
<h3 id="org0a37ec3"><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="org7121109" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2d60cbe" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -659,8 +659,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9eb724c" class="outline-4">
|
||||
<h4 id="org9eb724c"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div id="outline-container-orgc198b60" class="outline-4">
|
||||
<h4 id="orgc198b60"><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-org1249f18" class="outline-2">
|
||||
<h2 id="org1249f18"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-org4812fe6" class="outline-2">
|
||||
<h2 id="org4812fe6"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org974cc0a" class="outline-3">
|
||||
<h3 id="org974cc0a"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div id="outline-container-org2effed1" class="outline-3">
|
||||
<h3 id="org2effed1"><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="org09f1ea0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org48cdea0" 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-org3e42104" class="outline-4">
|
||||
<h4 id="org3e42104"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org7e6be2e" class="outline-4">
|
||||
<h4 id="org7e6be2e"><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-orgfa7d7db" class="outline-4">
|
||||
<h4 id="orgfa7d7db"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-orga426203" class="outline-4">
|
||||
<h4 id="orga426203"><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-org2491bd5" class="outline-4">
|
||||
<h4 id="org2491bd5"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-org3c4623b" class="outline-4">
|
||||
<h4 id="org3c4623b"><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-orgeb49e78" class="outline-4">
|
||||
<h4 id="orgeb49e78"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org31b8330" class="outline-4">
|
||||
<h4 id="org31b8330"><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-org522c66b" class="outline-2">
|
||||
<h2 id="org522c66b"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div id="outline-container-orgef4f134" class="outline-2">
|
||||
<h2 id="orgef4f134"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orgf94ce31" class="outline-3">
|
||||
<h3 id="orgf94ce31"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div id="outline-container-org3b916f1" class="outline-3">
|
||||
<h3 id="org3b916f1"><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="org9849ece" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org742a8fc" 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-org55ef307" class="outline-4">
|
||||
<h4 id="org55ef307"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org8901d78" class="outline-4">
|
||||
<h4 id="org8901d78"><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-org1226364" class="outline-4">
|
||||
<h4 id="org1226364"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-org407f074" class="outline-4">
|
||||
<h4 id="org407f074"><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-org7a64e92" class="outline-4">
|
||||
<h4 id="org7a64e92"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgca68da0" class="outline-4">
|
||||
<h4 id="orgca68da0"><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-orge9849e4" class="outline-4">
|
||||
<h4 id="orge9849e4"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org2a636e7" class="outline-4">
|
||||
<h4 id="org2a636e7"><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-orge31528f" class="outline-2">
|
||||
<h2 id="orge31528f"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div id="outline-container-org3318151" class="outline-2">
|
||||
<h2 id="org3318151"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-orgda2e8cf" class="outline-3">
|
||||
<h3 id="orgda2e8cf"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_deriv_e</code></h3>
|
||||
<div id="outline-container-org0a0fa76" class="outline-3">
|
||||
<h3 id="org0a0fa76"><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="orge73ba82" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org52b473f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1776,7 +1776,7 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:02</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:05</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-01-06 Thu 18:02 -->
|
||||
<!-- 2022-01-06 Thu 18:06 -->
|
||||
<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,77 +333,77 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org197cf47">1. Context</a>
|
||||
<li><a href="#orgc2b2586">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org509652a">1.1. Data structure</a></li>
|
||||
<li><a href="#org584f7f3">1.2. Access functions</a>
|
||||
<li><a href="#orgea1a904">1.1. Data structure</a></li>
|
||||
<li><a href="#org240e3b6">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgd914242">1.2.1. Number of electrons</a></li>
|
||||
<li><a href="#org8ce6640">1.2.2. Number of walkers</a></li>
|
||||
<li><a href="#org0ec41ca">1.2.3. Scaling factors Kappa</a></li>
|
||||
<li><a href="#orgbb36268">1.2.4. Electron coordinates</a></li>
|
||||
<li><a href="#org3959a48">1.2.1. Number of electrons</a></li>
|
||||
<li><a href="#org5d709c1">1.2.2. Number of walkers</a></li>
|
||||
<li><a href="#org1da3371">1.2.3. Scaling factors Kappa</a></li>
|
||||
<li><a href="#org97a535f">1.2.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgce22023">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgc725fd3">1.4. Test</a></li>
|
||||
<li><a href="#orgbc456e4">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgb249cbb">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga43fe70">2. Computation</a>
|
||||
<li><a href="#org3727797">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgad02e78">2.1. Electron-electron distances</a>
|
||||
<li><a href="#orga0cc40f">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#org5268d4e">2.1.1. Get</a></li>
|
||||
<li><a href="#org232a014">2.1.2. Compute</a></li>
|
||||
<li><a href="#org3e81316">2.1.3. Test</a></li>
|
||||
<li><a href="#org6b6bd25">2.1.1. Get</a></li>
|
||||
<li><a href="#org64821ef">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgc166a18">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge582338">2.2. Electron-electron rescaled distances</a>
|
||||
<li><a href="#orgd9f9bb7">2.2. Electron-electron rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#org3298aaa">2.2.1. Get</a></li>
|
||||
<li><a href="#org7a9b012">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgb33442d">2.2.3. Test</a></li>
|
||||
<li><a href="#org33df5f1">2.2.1. Get</a></li>
|
||||
<li><a href="#orge9d71ad">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgc1fed6d">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7de89c4">2.3. Electron-electron rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<li><a href="#orgd050f0a">2.3. Electron-electron rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<ul>
|
||||
<li><a href="#org3435baa">2.3.1. Get</a></li>
|
||||
<li><a href="#orga6b6a78">2.3.2. Compute</a></li>
|
||||
<li><a href="#org278f1ba">2.3.3. Test</a></li>
|
||||
<li><a href="#org8dc1f3e">2.3.1. Get</a></li>
|
||||
<li><a href="#org5a43e5b">2.3.2. Compute</a></li>
|
||||
<li><a href="#org8cc7b0b">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org86d3d81">2.4. Electron-electron potential</a>
|
||||
<li><a href="#org7ac91aa">2.4. Electron-electron potential</a>
|
||||
<ul>
|
||||
<li><a href="#org29f99c9">2.4.1. Get</a></li>
|
||||
<li><a href="#org953826e">2.4.2. Compute</a></li>
|
||||
<li><a href="#org129e67b">2.4.3. Test</a></li>
|
||||
<li><a href="#org596ac4a">2.4.1. Get</a></li>
|
||||
<li><a href="#org884dfc7">2.4.2. Compute</a></li>
|
||||
<li><a href="#org0ea000d">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga168a93">2.5. Electron-nucleus distances</a>
|
||||
<li><a href="#orgc5461d6">2.5. Electron-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgcb9b007">2.5.1. Get</a></li>
|
||||
<li><a href="#org49cedfd">2.5.2. Compute</a></li>
|
||||
<li><a href="#org50ec4d8">2.5.3. Test</a></li>
|
||||
<li><a href="#org287da5a">2.5.1. Get</a></li>
|
||||
<li><a href="#orgce62086">2.5.2. Compute</a></li>
|
||||
<li><a href="#orgd45e396">2.5.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org76f2a50">2.6. Electron-nucleus rescaled distances</a>
|
||||
<li><a href="#org79ba1d1">2.6. Electron-nucleus rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgd4a9d6f">2.6.1. Get</a></li>
|
||||
<li><a href="#org417a38d">2.6.2. Compute</a></li>
|
||||
<li><a href="#orgdb4d4b2">2.6.3. Test</a></li>
|
||||
<li><a href="#org6ae1a92">2.6.1. Get</a></li>
|
||||
<li><a href="#org44c7aef">2.6.2. Compute</a></li>
|
||||
<li><a href="#org07d7851">2.6.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4fdcff5">2.7. Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<li><a href="#org1de68dd">2.7. Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<ul>
|
||||
<li><a href="#org11d872a">2.7.1. Get</a></li>
|
||||
<li><a href="#org309430c">2.7.2. Compute</a></li>
|
||||
<li><a href="#org9fbe901">2.7.3. Test</a></li>
|
||||
<li><a href="#orgb9342b0">2.7.1. Get</a></li>
|
||||
<li><a href="#org02a319f">2.7.2. Compute</a></li>
|
||||
<li><a href="#org3255578">2.7.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org943b549">2.8. Electron-nucleus potential</a>
|
||||
<li><a href="#org9b1b50e">2.8. Electron-nucleus potential</a>
|
||||
<ul>
|
||||
<li><a href="#org6282b2d">2.8.1. Get</a></li>
|
||||
<li><a href="#orgfe1c288">2.8.2. Compute</a></li>
|
||||
<li><a href="#orgd30a622">2.8.3. Test</a></li>
|
||||
<li><a href="#org8fa6cab">2.8.1. Get</a></li>
|
||||
<li><a href="#org41e226d">2.8.2. Compute</a></li>
|
||||
<li><a href="#org8a7ff44">2.8.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -412,8 +412,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org197cf47" class="outline-2">
|
||||
<h2 id="org197cf47"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgc2b2586" class="outline-2">
|
||||
<h2 id="orgc2b2586"><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:
|
||||
@ -626,8 +626,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org509652a" class="outline-3">
|
||||
<h3 id="org509652a"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgea1a904" class="outline-3">
|
||||
<h3 id="orgea1a904"><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_electron_struct</span> {
|
||||
@ -706,8 +706,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org584f7f3" class="outline-3">
|
||||
<h3 id="org584f7f3"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org240e3b6" class="outline-3">
|
||||
<h3 id="org240e3b6"><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
|
||||
@ -719,12 +719,12 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd914242" class="outline-4">
|
||||
<h4 id="orgd914242"><span class="section-number-4">1.2.1</span> Number of electrons</h4>
|
||||
<div id="outline-container-org3959a48" class="outline-4">
|
||||
<h4 id="org3959a48"><span class="section-number-4">1.2.1</span> Number of electrons</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8ce6640" class="outline-4">
|
||||
<h4 id="org8ce6640"><span class="section-number-4">1.2.2</span> Number of walkers</h4>
|
||||
<div id="outline-container-org5d709c1" class="outline-4">
|
||||
<h4 id="org5d709c1"><span class="section-number-4">1.2.2</span> Number of walkers</h4>
|
||||
<div class="outline-text-4" id="text-1-2-2">
|
||||
<p>
|
||||
A walker is a set of electron coordinates that are arguments of
|
||||
@ -733,12 +733,12 @@ the wave function. <code>walk_num</code> is the number of walkers.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0ec41ca" class="outline-4">
|
||||
<h4 id="org0ec41ca"><span class="section-number-4">1.2.3</span> Scaling factors Kappa</h4>
|
||||
<div id="outline-container-org1da3371" class="outline-4">
|
||||
<h4 id="org1da3371"><span class="section-number-4">1.2.3</span> Scaling factors Kappa</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbb36268" class="outline-4">
|
||||
<h4 id="orgbb36268"><span class="section-number-4">1.2.4</span> Electron coordinates</h4>
|
||||
<div id="outline-container-org97a535f" class="outline-4">
|
||||
<h4 id="org97a535f"><span class="section-number-4">1.2.4</span> Electron coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-2-4">
|
||||
<p>
|
||||
Returns the current electron coordinates. The pointer is assumed
|
||||
@ -782,8 +782,8 @@ The order of the indices is:
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgce22023" class="outline-3">
|
||||
<h3 id="orgce22023"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgbc456e4" class="outline-3">
|
||||
<h3 id="orgbc456e4"><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 electrons in the context, the
|
||||
@ -870,8 +870,8 @@ in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc725fd3" class="outline-3">
|
||||
<h3 id="orgc725fd3"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orgb249cbb" class="outline-3">
|
||||
<h3 id="orgb249cbb"><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>*/
|
||||
@ -977,8 +977,8 @@ rc = qmckl_get_electron_coord (context, <span style="color: #8b2252;">'N'</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga43fe70" class="outline-2">
|
||||
<h2 id="orga43fe70"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org3727797" class="outline-2">
|
||||
<h2 id="org3727797"><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
|
||||
@ -991,12 +991,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgad02e78" class="outline-3">
|
||||
<h3 id="orgad02e78"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-orga0cc40f" class="outline-3">
|
||||
<h3 id="orga0cc40f"><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-org5268d4e" class="outline-4">
|
||||
<h4 id="org5268d4e"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org6b6bd25" class="outline-4">
|
||||
<h4 id="org6b6bd25"><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>);
|
||||
@ -1005,10 +1005,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org232a014" class="outline-4">
|
||||
<h4 id="org232a014"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org64821ef" class="outline-4">
|
||||
<h4 id="org64821ef"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org73ef65c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc5c38da" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1112,8 +1112,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3e81316" class="outline-4">
|
||||
<h4 id="org3e81316"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orgc166a18" class="outline-4">
|
||||
<h4 id="orgc166a18"><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>));
|
||||
@ -1147,8 +1147,8 @@ rc = qmckl_get_electron_ee_distance(context, ee_distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge582338" class="outline-3">
|
||||
<h3 id="orge582338"><span class="section-number-3">2.2</span> Electron-electron rescaled distances</h3>
|
||||
<div id="outline-container-orgd9f9bb7" class="outline-3">
|
||||
<h3 id="orgd9f9bb7"><span class="section-number-3">2.2</span> Electron-electron rescaled distances</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
<code>ee_distance_rescaled</code> stores the matrix of the rescaled distances between all
|
||||
@ -1166,8 +1166,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3298aaa" class="outline-4">
|
||||
<h4 id="org3298aaa"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org33df5f1" class="outline-4">
|
||||
<h4 id="org33df5f1"><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_distance_rescaled</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_rescaled</span>);
|
||||
@ -1176,10 +1176,10 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7a9b012" class="outline-4">
|
||||
<h4 id="org7a9b012"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-orge9d71ad" class="outline-4">
|
||||
<h4 id="orge9d71ad"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orga13ed43" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgaed91c6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1292,8 +1292,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb33442d" class="outline-4">
|
||||
<h4 id="orgb33442d"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-orgc1fed6d" class="outline-4">
|
||||
<h4 id="orgc1fed6d"><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: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_electron_provided</span>(<span style="color: #a0522d;">context</span>));
|
||||
@ -1327,8 +1327,8 @@ rc = qmckl_get_electron_ee_distance_rescaled(context, ee_distance_rescaled);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7de89c4" class="outline-3">
|
||||
<h3 id="org7de89c4"><span class="section-number-3">2.3</span> Electron-electron rescaled distance gradients and laplacian with respect to electron coords</h3>
|
||||
<div id="outline-container-orgd050f0a" class="outline-3">
|
||||
<h3 id="orgd050f0a"><span class="section-number-3">2.3</span> Electron-electron rescaled distance gradients and laplacian with respect to electron coords</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
The rescaled distances which is given as \(R = (1 - \exp{-\kappa r})/\kappa\)
|
||||
@ -1340,8 +1340,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3435baa" class="outline-4">
|
||||
<h4 id="org3435baa"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org8dc1f3e" class="outline-4">
|
||||
<h4 id="org8dc1f3e"><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_ee_distance_rescaled_deriv_e</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_rescaled_deriv_e</span>);
|
||||
@ -1350,10 +1350,10 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga6b6a78" class="outline-4">
|
||||
<h4 id="orga6b6a78"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-org5a43e5b" class="outline-4">
|
||||
<h4 id="org5a43e5b"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org3a2d492" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0d7448f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1466,8 +1466,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org278f1ba" class="outline-4">
|
||||
<h4 id="org278f1ba"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-org8cc7b0b" class="outline-4">
|
||||
<h4 id="org8cc7b0b"><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"><span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_electron_provided</span>(<span style="color: #a0522d;">context</span>));
|
||||
@ -1502,8 +1502,8 @@ rc = qmckl_get_electron_ee_distance_rescaled_deriv_e(context, ee_distance_rescal
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org86d3d81" class="outline-3">
|
||||
<h3 id="org86d3d81"><span class="section-number-3">2.4</span> Electron-electron potential</h3>
|
||||
<div id="outline-container-org7ac91aa" class="outline-3">
|
||||
<h3 id="org7ac91aa"><span class="section-number-3">2.4</span> Electron-electron potential</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
<code>ee_pot</code> calculates the <code>ee</code> potential energy.
|
||||
@ -1521,8 +1521,8 @@ distance.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org29f99c9" class="outline-4">
|
||||
<h4 id="org29f99c9"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org596ac4a" class="outline-4">
|
||||
<h4 id="org596ac4a"><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_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_pot</span>);
|
||||
@ -1531,10 +1531,10 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org953826e" class="outline-4">
|
||||
<h4 id="org953826e"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-org884dfc7" class="outline-4">
|
||||
<h4 id="org884dfc7"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="org66e8273" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org10716db" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1650,8 +1650,8 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org129e67b" class="outline-4">
|
||||
<h4 id="org129e67b"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-org0ea000d" class="outline-4">
|
||||
<h4 id="org0ea000d"><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;">ee_pot</span>[walk_num];
|
||||
@ -1663,12 +1663,12 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_pot[0]));
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orga168a93" class="outline-3">
|
||||
<h3 id="orga168a93"><span class="section-number-3">2.5</span> Electron-nucleus distances</h3>
|
||||
<div id="outline-container-orgc5461d6" class="outline-3">
|
||||
<h3 id="orgc5461d6"><span class="section-number-3">2.5</span> Electron-nucleus distances</h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
</div>
|
||||
<div id="outline-container-orgcb9b007" class="outline-4">
|
||||
<h4 id="orgcb9b007"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div id="outline-container-org287da5a" class="outline-4">
|
||||
<h4 id="org287da5a"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-5-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>);
|
||||
@ -1677,10 +1677,10 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_pot[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org49cedfd" class="outline-4">
|
||||
<h4 id="org49cedfd"><span class="section-number-4">2.5.2</span> Compute</h4>
|
||||
<div id="outline-container-orgce62086" class="outline-4">
|
||||
<h4 id="orgce62086"><span class="section-number-4">2.5.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-5-2">
|
||||
<table id="org03b89f6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org54d7b7d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1805,8 +1805,8 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_pot[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org50ec4d8" class="outline-4">
|
||||
<h4 id="org50ec4d8"><span class="section-number-4">2.5.3</span> Test</h4>
|
||||
<div id="outline-container-orgd45e396" class="outline-4">
|
||||
<h4 id="orgd45e396"><span class="section-number-4">2.5.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-5-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">
|
||||
@ -1854,8 +1854,8 @@ rc = qmckl_get_electron_en_distance(context, &(en_distance[0][0][0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org76f2a50" class="outline-3">
|
||||
<h3 id="org76f2a50"><span class="section-number-3">2.6</span> Electron-nucleus rescaled distances</h3>
|
||||
<div id="outline-container-org79ba1d1" class="outline-3">
|
||||
<h3 id="org79ba1d1"><span class="section-number-3">2.6</span> Electron-nucleus rescaled distances</h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
<code>en_distance_rescaled</code> stores the matrix of the rescaled distances between
|
||||
@ -1873,8 +1873,8 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd4a9d6f" class="outline-4">
|
||||
<h4 id="orgd4a9d6f"><span class="section-number-4">2.6.1</span> Get</h4>
|
||||
<div id="outline-container-org6ae1a92" class="outline-4">
|
||||
<h4 id="org6ae1a92"><span class="section-number-4">2.6.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-6-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_rescaled</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_rescaled</span>);
|
||||
@ -1883,10 +1883,10 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org417a38d" class="outline-4">
|
||||
<h4 id="org417a38d"><span class="section-number-4">2.6.2</span> Compute</h4>
|
||||
<div id="outline-container-org44c7aef" class="outline-4">
|
||||
<h4 id="org44c7aef"><span class="section-number-4">2.6.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-6-2">
|
||||
<table id="orga24a0d7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7dfffb6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2026,8 +2026,8 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdb4d4b2" class="outline-4">
|
||||
<h4 id="orgdb4d4b2"><span class="section-number-4">2.6.3</span> Test</h4>
|
||||
<div id="outline-container-org07d7851" class="outline-4">
|
||||
<h4 id="org07d7851"><span class="section-number-4">2.6.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-6-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">
|
||||
@ -2075,8 +2075,8 @@ rc = qmckl_get_electron_en_distance_rescaled(context, &(en_distance_rescaled
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4fdcff5" class="outline-3">
|
||||
<h3 id="org4fdcff5"><span class="section-number-3">2.7</span> Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</h3>
|
||||
<div id="outline-container-org1de68dd" class="outline-3">
|
||||
<h3 id="org1de68dd"><span class="section-number-3">2.7</span> Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</h3>
|
||||
<div class="outline-text-3" id="text-2-7">
|
||||
<p>
|
||||
The rescaled distances which is given as \(R = (1 - \exp{-\kappa r})/\kappa\)
|
||||
@ -2088,8 +2088,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org11d872a" class="outline-4">
|
||||
<h4 id="org11d872a"><span class="section-number-4">2.7.1</span> Get</h4>
|
||||
<div id="outline-container-orgb9342b0" class="outline-4">
|
||||
<h4 id="orgb9342b0"><span class="section-number-4">2.7.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-7-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_rescaled_deriv_e</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_rescaled_deriv_e</span>);
|
||||
@ -2098,10 +2098,10 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org309430c" class="outline-4">
|
||||
<h4 id="org309430c"><span class="section-number-4">2.7.2</span> Compute</h4>
|
||||
<div id="outline-container-org02a319f" class="outline-4">
|
||||
<h4 id="org02a319f"><span class="section-number-4">2.7.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-7-2">
|
||||
<table id="orgc2cdaa8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgfab4748" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2242,8 +2242,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9fbe901" class="outline-4">
|
||||
<h4 id="org9fbe901"><span class="section-number-4">2.7.3</span> Test</h4>
|
||||
<div id="outline-container-org3255578" class="outline-4">
|
||||
<h4 id="org3255578"><span class="section-number-4">2.7.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-7-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">
|
||||
@ -2295,8 +2295,8 @@ rc = qmckl_get_electron_en_distance_rescaled_deriv_e(context, &(en_distance_
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org943b549" class="outline-3">
|
||||
<h3 id="org943b549"><span class="section-number-3">2.8</span> Electron-nucleus potential</h3>
|
||||
<div id="outline-container-org9b1b50e" class="outline-3">
|
||||
<h3 id="org9b1b50e"><span class="section-number-3">2.8</span> Electron-nucleus potential</h3>
|
||||
<div class="outline-text-3" id="text-2-8">
|
||||
<p>
|
||||
<code>en_potential</code> stores the <code>en</code> potential energy
|
||||
@ -2314,8 +2314,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6282b2d" class="outline-4">
|
||||
<h4 id="org6282b2d"><span class="section-number-4">2.8.1</span> Get</h4>
|
||||
<div id="outline-container-org8fa6cab" class="outline-4">
|
||||
<h4 id="org8fa6cab"><span class="section-number-4">2.8.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-8-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_pot</span>);
|
||||
@ -2324,10 +2324,10 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfe1c288" class="outline-4">
|
||||
<h4 id="orgfe1c288"><span class="section-number-4">2.8.2</span> Compute</h4>
|
||||
<div id="outline-container-org41e226d" class="outline-4">
|
||||
<h4 id="org41e226d"><span class="section-number-4">2.8.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-8-2">
|
||||
<table id="org8e8caaa" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org731832f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2461,8 +2461,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd30a622" class="outline-4">
|
||||
<h4 id="orgd30a622"><span class="section-number-4">2.8.3</span> Test</h4>
|
||||
<div id="outline-container-org8a7ff44" class="outline-4">
|
||||
<h4 id="org8a7ff44"><span class="section-number-4">2.8.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-8-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">double</span> <span style="color: #a0522d;">en_pot</span>[walk_num];
|
||||
@ -2478,7 +2478,7 @@ rc = qmckl_get_electron_en_potential(context, &(en_pot[0]));
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:02</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:06</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-01-06 Thu 18:02 -->
|
||||
<!-- 2022-01-06 Thu 18:05 -->
|
||||
<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,17 +311,17 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org3006f8a">1. Decoding errors</a></li>
|
||||
<li><a href="#org41a6d51">2. Data structure in context</a></li>
|
||||
<li><a href="#org0d6970e">3. Updating errors in the context</a></li>
|
||||
<li><a href="#orgecab9f0">4. Get the error</a></li>
|
||||
<li><a href="#orgf8cd46f">5. Failing</a></li>
|
||||
<li><a href="#org77dfc18">1. Decoding errors</a></li>
|
||||
<li><a href="#org31e671a">2. Data structure in context</a></li>
|
||||
<li><a href="#orga340343">3. Updating errors in the context</a></li>
|
||||
<li><a href="#orgca26ed8">4. Get the error</a></li>
|
||||
<li><a href="#org604fe19">5. Failing</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3006f8a" class="outline-2">
|
||||
<h2 id="org3006f8a"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-org77dfc18" class="outline-2">
|
||||
<h2 id="org77dfc18"><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
|
||||
@ -451,8 +451,8 @@ The text strings are extracted from the previous table.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org41a6d51" class="outline-2">
|
||||
<h2 id="org41a6d51"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-org31e671a" class="outline-2">
|
||||
<h2 id="org31e671a"><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 with a maximum fixed size to avoid
|
||||
@ -475,8 +475,8 @@ dynamic memory allocation.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0d6970e" class="outline-2">
|
||||
<h2 id="org0d6970e"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div id="outline-container-orga340343" class="outline-2">
|
||||
<h2 id="orga340343"><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>.
|
||||
@ -522,8 +522,8 @@ explaining the error. The exit code can't be <code>QMCKL_SUCCESS</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgecab9f0" class="outline-2">
|
||||
<h2 id="orgecab9f0"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div id="outline-container-orgca26ed8" class="outline-2">
|
||||
<h2 id="orgca26ed8"><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
|
||||
@ -575,8 +575,8 @@ function name and message is mandatory.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf8cd46f" class="outline-2">
|
||||
<h2 id="orgf8cd46f"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div id="outline-container-org604fe19" class="outline-2">
|
||||
<h2 id="org604fe19"><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
|
||||
@ -639,7 +639,7 @@ For example, this function can be used as
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:02</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:05</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-01-06 Thu 18:02 -->
|
||||
<!-- 2022-01-06 Thu 18:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Jastrow Factor</title>
|
||||
@ -333,100 +333,100 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgf5348d2">1. Context</a>
|
||||
<li><a href="#org82e92e9">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org653d8d2">1.1. Data structure</a></li>
|
||||
<li><a href="#orgc17b16a">1.2. Access functions</a></li>
|
||||
<li><a href="#orgae0282f">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org0a0d390">1.4. Test</a></li>
|
||||
<li><a href="#org279c484">1.1. Data structure</a></li>
|
||||
<li><a href="#org5c52bb8">1.2. Access functions</a></li>
|
||||
<li><a href="#orge6f9c4b">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org1d89a20">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1e64ceb">2. Computation</a>
|
||||
<li><a href="#org0412f93">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org87d3177">2.1. Asymptotic component for \(f_{ee}\)</a>
|
||||
<li><a href="#orga5c7323">2.1. Asymptotic component for \(f_{ee}\)</a>
|
||||
<ul>
|
||||
<li><a href="#orgf2662f8">2.1.1. Get</a></li>
|
||||
<li><a href="#org4fc126a">2.1.2. Compute</a></li>
|
||||
<li><a href="#orga9aa4f6">2.1.3. Test</a></li>
|
||||
<li><a href="#org05fc7b0">2.1.1. Get</a></li>
|
||||
<li><a href="#org756c2e4">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgaefd98a">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf27e56f">2.2. Electron-electron component \(f_{ee}\)</a>
|
||||
<li><a href="#org816ce83">2.2. Electron-electron component \(f_{ee}\)</a>
|
||||
<ul>
|
||||
<li><a href="#org0132601">2.2.1. Get</a></li>
|
||||
<li><a href="#orgdba1f63">2.2.2. Compute</a></li>
|
||||
<li><a href="#orga9e31c0">2.2.3. Test</a></li>
|
||||
<li><a href="#org781352e">2.2.1. Get</a></li>
|
||||
<li><a href="#org9996737">2.2.2. Compute</a></li>
|
||||
<li><a href="#org02efb00">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga3d6ceb">2.3. Electron-electron component derivative \(f'_{ee}\)</a>
|
||||
<li><a href="#org40f2211">2.3. Electron-electron component derivative \(f'_{ee}\)</a>
|
||||
<ul>
|
||||
<li><a href="#org649a9b5">2.3.1. Get</a></li>
|
||||
<li><a href="#orga71dfcc">2.3.2. Compute</a></li>
|
||||
<li><a href="#org7c3a1af">2.3.3. Test</a></li>
|
||||
<li><a href="#org0892d9c">2.3.1. Get</a></li>
|
||||
<li><a href="#org588bee3">2.3.2. Compute</a></li>
|
||||
<li><a href="#org3d5df65">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge8f5ac2">2.4. Electron-nucleus component \(f_{en}\)</a>
|
||||
<li><a href="#orgdd8c0bc">2.4. Electron-nucleus component \(f_{en}\)</a>
|
||||
<ul>
|
||||
<li><a href="#orgb1db64d">2.4.1. Get</a></li>
|
||||
<li><a href="#org8c71b3b">2.4.2. Compute</a></li>
|
||||
<li><a href="#orgfec423f">2.4.3. Test</a></li>
|
||||
<li><a href="#org254bbeb">2.4.1. Get</a></li>
|
||||
<li><a href="#org6a34e1d">2.4.2. Compute</a></li>
|
||||
<li><a href="#org746fa00">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga9213f5">2.5. Electron-nucleus component derivative \(f'_{en}\)</a>
|
||||
<li><a href="#org570ef92">2.5. Electron-nucleus component derivative \(f'_{en}\)</a>
|
||||
<ul>
|
||||
<li><a href="#orgccdc1eb">2.5.1. Get</a></li>
|
||||
<li><a href="#org3e4389e">2.5.2. Compute</a></li>
|
||||
<li><a href="#org0a826fe">2.5.3. Test</a></li>
|
||||
<li><a href="#orgc6c0e79">2.5.1. Get</a></li>
|
||||
<li><a href="#org57125bb">2.5.2. Compute</a></li>
|
||||
<li><a href="#org5ba6783">2.5.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgccf18a3">2.6. Electron-electron rescaled distances for each order</a>
|
||||
<li><a href="#orgfbc2369">2.6. Electron-electron rescaled distances for each order</a>
|
||||
<ul>
|
||||
<li><a href="#org1bc7d98">2.6.1. Get</a></li>
|
||||
<li><a href="#org616f09f">2.6.2. Compute</a></li>
|
||||
<li><a href="#orgb99a32f">2.6.3. Test</a></li>
|
||||
<li><a href="#org0f6b893">2.6.1. Get</a></li>
|
||||
<li><a href="#org9c07cc5">2.6.2. Compute</a></li>
|
||||
<li><a href="#org34dcd63">2.6.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5d2bb62">2.7. Electron-electron rescaled distances for each order and derivatives</a>
|
||||
<li><a href="#org085e81f">2.7. Electron-electron rescaled distances for each order and derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#org7bafadb">2.7.1. Get</a></li>
|
||||
<li><a href="#org63e7804">2.7.2. Compute</a></li>
|
||||
<li><a href="#org0864d56">2.7.3. Test</a></li>
|
||||
<li><a href="#org345a0d3">2.7.1. Get</a></li>
|
||||
<li><a href="#org2564def">2.7.2. Compute</a></li>
|
||||
<li><a href="#org84ed555">2.7.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4abd0d6">2.8. Electron-nucleus rescaled distances for each order</a>
|
||||
<li><a href="#orgcf79ac0">2.8. Electron-nucleus rescaled distances for each order</a>
|
||||
<ul>
|
||||
<li><a href="#org4535d00">2.8.1. Get</a></li>
|
||||
<li><a href="#org054d49e">2.8.2. Compute</a></li>
|
||||
<li><a href="#org036aa8c">2.8.3. Test</a></li>
|
||||
<li><a href="#org693f9c2">2.8.1. Get</a></li>
|
||||
<li><a href="#org78f2093">2.8.2. Compute</a></li>
|
||||
<li><a href="#org09357db">2.8.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org651f514">2.9. Electron-nucleus rescaled distances for each order and derivatives</a>
|
||||
<li><a href="#orgac04458">2.9. Electron-nucleus rescaled distances for each order and derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#orge191508">2.9.1. Get</a></li>
|
||||
<li><a href="#org6ae54f4">2.9.2. Compute</a></li>
|
||||
<li><a href="#org43a5cbc">2.9.3. Test</a></li>
|
||||
<li><a href="#orgbe8743e">2.9.1. Get</a></li>
|
||||
<li><a href="#orgc64fadd">2.9.2. Compute</a></li>
|
||||
<li><a href="#org12bdb78">2.9.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9cf35d9">2.10. Prepare for electron-electron-nucleus Jastrow \(f_{een}\)</a>
|
||||
<li><a href="#org755abde">2.10. Prepare for electron-electron-nucleus Jastrow \(f_{een}\)</a>
|
||||
<ul>
|
||||
<li><a href="#org59bae56">2.10.1. Get</a></li>
|
||||
<li><a href="#org0c020dc">2.10.2. Compute dim<sub>cord</sub><sub>vect</sub></a></li>
|
||||
<li><a href="#orge6c901b">2.10.3. Compute cord<sub>vect</sub><sub>full</sub></a></li>
|
||||
<li><a href="#org1a409e3">2.10.4. Compute lkpm<sub>combined</sub><sub>index</sub></a></li>
|
||||
<li><a href="#orge989f07">2.10.5. Test</a></li>
|
||||
<li><a href="#org68d23ed">2.10.1. Get</a></li>
|
||||
<li><a href="#org7a150ff">2.10.2. Compute dim<sub>cord</sub><sub>vect</sub></a></li>
|
||||
<li><a href="#orgd116feb">2.10.3. Compute cord<sub>vect</sub><sub>full</sub></a></li>
|
||||
<li><a href="#orgffd97fa">2.10.4. Compute lkpm<sub>combined</sub><sub>index</sub></a></li>
|
||||
<li><a href="#org3c86111">2.10.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf7013b1">2.11. Electron-electron-nucleus Jastrow \(f_{een}\)</a>
|
||||
<li><a href="#orgc8866f3">2.11. Electron-electron-nucleus Jastrow \(f_{een}\)</a>
|
||||
<ul>
|
||||
<li><a href="#org7b4bbdf">2.11.1. Get</a></li>
|
||||
<li><a href="#org06699c5">2.11.2. Compute</a></li>
|
||||
<li><a href="#org5ce653d">2.11.3. Test</a></li>
|
||||
<li><a href="#orgaa311af">2.11.1. Get</a></li>
|
||||
<li><a href="#org9aedcba">2.11.2. Compute</a></li>
|
||||
<li><a href="#orgf30fa8f">2.11.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge02fb55">2.12. Electron-electron-nucleus Jastrow \(f_{een}\) derivative</a>
|
||||
<li><a href="#org9c37984">2.12. Electron-electron-nucleus Jastrow \(f_{een}\) derivative</a>
|
||||
<ul>
|
||||
<li><a href="#orgf43b3d3">2.12.1. Get</a></li>
|
||||
<li><a href="#org3ec53b5">2.12.2. Compute</a></li>
|
||||
<li><a href="#org387a396">2.12.3. Test</a></li>
|
||||
<li><a href="#orgdd8b295">2.12.1. Get</a></li>
|
||||
<li><a href="#org74b56f0">2.12.2. Compute</a></li>
|
||||
<li><a href="#orgae313d4">2.12.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -435,14 +435,14 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf5348d2" class="outline-2">
|
||||
<h2 id="orgf5348d2"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org82e92e9" class="outline-2">
|
||||
<h2 id="org82e92e9"><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:
|
||||
</p>
|
||||
|
||||
<table id="org6fdeda3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8450c36" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -770,7 +770,7 @@ For H2O we have the following data:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python" id="orga642587"><span style="color: #a020f0;">import</span> numpy <span style="color: #a020f0;">as</span> np
|
||||
<pre class="src src-python" id="orged8ee2d"><span style="color: #a020f0;">import</span> numpy <span style="color: #a020f0;">as</span> np
|
||||
|
||||
<span style="color: #a0522d;">elec_num</span> = 10
|
||||
<span style="color: #a0522d;">nucl_num</span> = 2
|
||||
@ -920,8 +920,8 @@ For H2O we have the following data:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org653d8d2" class="outline-3">
|
||||
<h3 id="org653d8d2"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org279c484" class="outline-3">
|
||||
<h3 id="org279c484"><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_jastrow_struct</span>{
|
||||
@ -1008,8 +1008,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc17b16a" class="outline-3">
|
||||
<h3 id="orgc17b16a"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org5c52bb8" class="outline-3">
|
||||
<h3 id="org5c52bb8"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
Along with these core functions, calculation of the jastrow factor
|
||||
@ -1029,8 +1029,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgae0282f" class="outline-3">
|
||||
<h3 id="orgae0282f"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orge6f9c4b" class="outline-3">
|
||||
<h3 id="orge6f9c4b"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To prepare for the Jastrow and its derivative, all the following functions need to be
|
||||
@ -1056,8 +1056,8 @@ are precontracted using BLAS LEVEL 3 operations for an optimal FLOP count.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0a0d390" class="outline-3">
|
||||
<h3 id="org0a0d390"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org1d89a20" class="outline-3">
|
||||
<h3 id="org1d89a20"><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>*/
|
||||
@ -1232,8 +1232,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1e64ceb" class="outline-2">
|
||||
<h2 id="org1e64ceb"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org0412f93" class="outline-2">
|
||||
<h2 id="org0412f93"><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
|
||||
@ -1246,8 +1246,8 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org87d3177" class="outline-3">
|
||||
<h3 id="org87d3177"><span class="section-number-3">2.1</span> Asymptotic component for \(f_{ee}\)</h3>
|
||||
<div id="outline-container-orga5c7323" class="outline-3">
|
||||
<h3 id="orga5c7323"><span class="section-number-3">2.1</span> Asymptotic component for \(f_{ee}\)</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
Calculate the asymptotic component <code>asymp_jasb</code> to be substracted from the final
|
||||
@ -1262,8 +1262,8 @@ via the <code>bord_vector</code> and the electron-electron rescale factor <code>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf2662f8" class="outline-4">
|
||||
<h4 id="orgf2662f8"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org05fc7b0" class="outline-4">
|
||||
<h4 id="org05fc7b0"><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_jastrow_asymp_jasb</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;">asymp_jasb</span>);
|
||||
@ -1272,10 +1272,10 @@ via the <code>bord_vector</code> and the electron-electron rescale factor <code>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4fc126a" class="outline-4">
|
||||
<h4 id="org4fc126a"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org756c2e4" class="outline-4">
|
||||
<h4 id="org756c2e4"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orgc689406" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8c3b94f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1388,8 +1388,8 @@ via the <code>bord_vector</code> and the electron-electron rescale factor <code>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orga9aa4f6" class="outline-4">
|
||||
<h4 id="orga9aa4f6"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orgaefd98a" class="outline-4">
|
||||
<h4 id="orgaefd98a"><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>));
|
||||
@ -1441,8 +1441,8 @@ rc = qmckl_get_jastrow_asymp_jasb(context, asymp_jasb);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf27e56f" class="outline-3">
|
||||
<h3 id="orgf27e56f"><span class="section-number-3">2.2</span> Electron-electron component \(f_{ee}\)</h3>
|
||||
<div id="outline-container-org816ce83" class="outline-3">
|
||||
<h3 id="org816ce83"><span class="section-number-3">2.2</span> Electron-electron component \(f_{ee}\)</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
Calculate the electron-electron jastrow component <code>factor_ee</code> using the <code>asymp_jasb</code>
|
||||
@ -1457,8 +1457,8 @@ f_{ee} = \sum_{i,j<i} \left\{ \frac{ \eta B_0 C_{ij}}{1 - B_1 C_{ij}} - J_{asym
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org0132601" class="outline-4">
|
||||
<h4 id="org0132601"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org781352e" class="outline-4">
|
||||
<h4 id="org781352e"><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_jastrow_factor_ee</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;">factor_ee</span>);
|
||||
@ -1467,10 +1467,10 @@ f_{ee} = \sum_{i,j<i} \left\{ \frac{ \eta B_0 C_{ij}}{1 - B_1 C_{ij}} - J_{asym
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdba1f63" class="outline-4">
|
||||
<h4 id="orgdba1f63"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org9996737" class="outline-4">
|
||||
<h4 id="org9996737"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="org717e7c6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgfc5844d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1645,8 +1645,8 @@ f_{ee} = \sum_{i,j<i} \left\{ \frac{ \eta B_0 C_{ij}}{1 - B_1 C_{ij}} - J_{asym
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orga9e31c0" class="outline-4">
|
||||
<h4 id="orga9e31c0"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org02efb00" class="outline-4">
|
||||
<h4 id="org02efb00"><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;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -1664,8 +1664,8 @@ rc = qmckl_get_jastrow_factor_ee(context, factor_ee);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga3d6ceb" class="outline-3">
|
||||
<h3 id="orga3d6ceb"><span class="section-number-3">2.3</span> Electron-electron component derivative \(f'_{ee}\)</h3>
|
||||
<div id="outline-container-org40f2211" class="outline-3">
|
||||
<h3 id="org40f2211"><span class="section-number-3">2.3</span> Electron-electron component derivative \(f'_{ee}\)</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
Calculate the derivative of the <code>factor_ee</code> using the <code>ee_distance_rescaled</code> and
|
||||
@ -1680,8 +1680,8 @@ TODO: Add equation
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org649a9b5" class="outline-4">
|
||||
<h4 id="org649a9b5"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org0892d9c" class="outline-4">
|
||||
<h4 id="org0892d9c"><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_jastrow_factor_ee_deriv_e</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;">factor_ee_deriv_e</span>);
|
||||
@ -1690,10 +1690,10 @@ TODO: Add equation
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga71dfcc" class="outline-4">
|
||||
<h4 id="orga71dfcc"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-org588bee3" class="outline-4">
|
||||
<h4 id="org588bee3"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org067727d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org879915a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1908,8 +1908,8 @@ TODO: Add equation
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org7c3a1af" class="outline-4">
|
||||
<h4 id="org7c3a1af"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-org3d5df65" class="outline-4">
|
||||
<h4 id="org3d5df65"><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">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -1931,8 +1931,8 @@ rc = qmckl_get_jastrow_factor_ee_deriv_e(context, &(factor_ee_deriv_e[0][0][
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge8f5ac2" class="outline-3">
|
||||
<h3 id="orge8f5ac2"><span class="section-number-3">2.4</span> Electron-nucleus component \(f_{en}\)</h3>
|
||||
<div id="outline-container-orgdd8c0bc" class="outline-3">
|
||||
<h3 id="orgdd8c0bc"><span class="section-number-3">2.4</span> Electron-nucleus component \(f_{en}\)</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
Calculate the electron-electron jastrow component <code>factor_en</code> using the <code>aord_vector</code>
|
||||
@ -1947,8 +1947,8 @@ f_{en} = \sum_{i,j<i} \left\{ \frac{ A_0 C_{ij}}{1 - A_1 C_{ij}} + \sum^{nord}_{
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgb1db64d" class="outline-4">
|
||||
<h4 id="orgb1db64d"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org254bbeb" class="outline-4">
|
||||
<h4 id="org254bbeb"><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_jastrow_factor_en</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;">factor_en</span>);
|
||||
@ -1957,10 +1957,10 @@ f_{en} = \sum_{i,j<i} \left\{ \frac{ A_0 C_{ij}}{1 - A_1 C_{ij}} + \sum^{nord}_{
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8c71b3b" class="outline-4">
|
||||
<h4 id="org8c71b3b"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-org6a34e1d" class="outline-4">
|
||||
<h4 id="org6a34e1d"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="org4c42065" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5bed630" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2142,8 +2142,8 @@ f_{en} = \sum_{i,j<i} \left\{ \frac{ A_0 C_{ij}}{1 - A_1 C_{ij}} + \sum^{nord}_{
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgfec423f" class="outline-4">
|
||||
<h4 id="orgfec423f"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-org746fa00" class="outline-4">
|
||||
<h4 id="org746fa00"><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: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -2161,8 +2161,8 @@ rc = qmckl_get_jastrow_factor_en(context, factor_en);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga9213f5" class="outline-3">
|
||||
<h3 id="orga9213f5"><span class="section-number-3">2.5</span> Electron-nucleus component derivative \(f'_{en}\)</h3>
|
||||
<div id="outline-container-org570ef92" class="outline-3">
|
||||
<h3 id="org570ef92"><span class="section-number-3">2.5</span> Electron-nucleus component derivative \(f'_{en}\)</h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
<p>
|
||||
Calculate the electron-electron jastrow component <code>factor_en_deriv_e</code> derivative
|
||||
@ -2175,8 +2175,8 @@ TODO: write equations.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgccdc1eb" class="outline-4">
|
||||
<h4 id="orgccdc1eb"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div id="outline-container-orgc6c0e79" class="outline-4">
|
||||
<h4 id="orgc6c0e79"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-5-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_jastrow_factor_en_deriv_e</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;">factor_en_deriv_e</span>);
|
||||
@ -2185,10 +2185,10 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3e4389e" class="outline-4">
|
||||
<h4 id="org3e4389e"><span class="section-number-4">2.5.2</span> Compute</h4>
|
||||
<div id="outline-container-org57125bb" class="outline-4">
|
||||
<h4 id="org57125bb"><span class="section-number-4">2.5.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-5-2">
|
||||
<table id="org192a717" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge6692ad" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2409,8 +2409,8 @@ TODO: write equations.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org0a826fe" class="outline-4">
|
||||
<h4 id="org0a826fe"><span class="section-number-4">2.5.3</span> Test</h4>
|
||||
<div id="outline-container-org5ba6783" class="outline-4">
|
||||
<h4 id="org5ba6783"><span class="section-number-4">2.5.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-5-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -2432,8 +2432,8 @@ rc = qmckl_get_jastrow_factor_en_deriv_e(context, &(factor_en_deriv_e[0][0][
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgccf18a3" class="outline-3">
|
||||
<h3 id="orgccf18a3"><span class="section-number-3">2.6</span> Electron-electron rescaled distances for each order</h3>
|
||||
<div id="outline-container-orgfbc2369" class="outline-3">
|
||||
<h3 id="orgfbc2369"><span class="section-number-3">2.6</span> Electron-electron rescaled distances for each order</h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
<code>een_rescaled_e</code> stores the table of the rescaled distances between all
|
||||
@ -2451,8 +2451,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1bc7d98" class="outline-4">
|
||||
<h4 id="org1bc7d98"><span class="section-number-4">2.6.1</span> Get</h4>
|
||||
<div id="outline-container-org0f6b893" class="outline-4">
|
||||
<h4 id="org0f6b893"><span class="section-number-4">2.6.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-6-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_jastrow_een_rescaled_e</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_rescaled</span>);
|
||||
@ -2461,10 +2461,10 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org616f09f" class="outline-4">
|
||||
<h4 id="org616f09f"><span class="section-number-4">2.6.2</span> Compute</h4>
|
||||
<div id="outline-container-org9c07cc5" class="outline-4">
|
||||
<h4 id="org9c07cc5"><span class="section-number-4">2.6.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-6-2">
|
||||
<table id="org00148f8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd6ef21c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2638,8 +2638,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb99a32f" class="outline-4">
|
||||
<h4 id="orgb99a32f"><span class="section-number-4">2.6.3</span> Test</h4>
|
||||
<div id="outline-container-org34dcd63" class="outline-4">
|
||||
<h4 id="org34dcd63"><span class="section-number-4">2.6.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-6-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>));
|
||||
@ -2662,8 +2662,8 @@ rc = qmckl_get_jastrow_een_rescaled_e(context, &(een_rescaled_e[0][0][0][0])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5d2bb62" class="outline-3">
|
||||
<h3 id="org5d2bb62"><span class="section-number-3">2.7</span> Electron-electron rescaled distances for each order and derivatives</h3>
|
||||
<div id="outline-container-org085e81f" class="outline-3">
|
||||
<h3 id="org085e81f"><span class="section-number-3">2.7</span> Electron-electron rescaled distances for each order and derivatives</h3>
|
||||
<div class="outline-text-3" id="text-2-7">
|
||||
<p>
|
||||
<code>een_rescaled_e_deriv_e</code> stores the table of the derivatives of the
|
||||
@ -2678,8 +2678,8 @@ TODO: write formulae
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org7bafadb" class="outline-4">
|
||||
<h4 id="org7bafadb"><span class="section-number-4">2.7.1</span> Get</h4>
|
||||
<div id="outline-container-org345a0d3" class="outline-4">
|
||||
<h4 id="org345a0d3"><span class="section-number-4">2.7.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-7-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_jastrow_een_rescaled_e_deriv_e</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_rescaled</span>);
|
||||
@ -2688,10 +2688,10 @@ TODO: write formulae
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org63e7804" class="outline-4">
|
||||
<h4 id="org63e7804"><span class="section-number-4">2.7.2</span> Compute</h4>
|
||||
<div id="outline-container-org2564def" class="outline-4">
|
||||
<h4 id="org2564def"><span class="section-number-4">2.7.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-7-2">
|
||||
<table id="orgd9346e3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgbf04e91" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2878,8 +2878,8 @@ TODO: write formulae
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org0864d56" class="outline-4">
|
||||
<h4 id="org0864d56"><span class="section-number-4">2.7.3</span> Test</h4>
|
||||
<div id="outline-container-org84ed555" class="outline-4">
|
||||
<h4 id="org84ed555"><span class="section-number-4">2.7.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-7-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">//<span style="color: #b22222;">assert(qmckl_electron_provided(context));</span>
|
||||
@ -2899,8 +2899,8 @@ rc = qmckl_get_jastrow_een_rescaled_e_deriv_e(context, &(een_rescaled_e_deri
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4abd0d6" class="outline-3">
|
||||
<h3 id="org4abd0d6"><span class="section-number-3">2.8</span> Electron-nucleus rescaled distances for each order</h3>
|
||||
<div id="outline-container-orgcf79ac0" class="outline-3">
|
||||
<h3 id="orgcf79ac0"><span class="section-number-3">2.8</span> Electron-nucleus rescaled distances for each order</h3>
|
||||
<div class="outline-text-3" id="text-2-8">
|
||||
<p>
|
||||
<code>een_rescaled_n</code> stores the table of the rescaled distances between
|
||||
@ -2918,8 +2918,8 @@ where \(C_{ia}\) is the matrix of electron-nucleus distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4535d00" class="outline-4">
|
||||
<h4 id="org4535d00"><span class="section-number-4">2.8.1</span> Get</h4>
|
||||
<div id="outline-container-org693f9c2" class="outline-4">
|
||||
<h4 id="org693f9c2"><span class="section-number-4">2.8.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-8-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_jastrow_een_rescaled_n</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_rescaled</span>);
|
||||
@ -2928,10 +2928,10 @@ where \(C_{ia}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org054d49e" class="outline-4">
|
||||
<h4 id="org054d49e"><span class="section-number-4">2.8.2</span> Compute</h4>
|
||||
<div id="outline-container-org78f2093" class="outline-4">
|
||||
<h4 id="org78f2093"><span class="section-number-4">2.8.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-8-2">
|
||||
<table id="orgdbb11d2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org254cb5c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3095,8 +3095,8 @@ where \(C_{ia}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org036aa8c" class="outline-4">
|
||||
<h4 id="org036aa8c"><span class="section-number-4">2.8.3</span> Test</h4>
|
||||
<div id="outline-container-org09357db" class="outline-4">
|
||||
<h4 id="org09357db"><span class="section-number-4">2.8.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-8-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>));
|
||||
@ -3118,8 +3118,8 @@ rc = qmckl_get_jastrow_een_rescaled_n(context, &(een_rescaled_n[0][0][0][0])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org651f514" class="outline-3">
|
||||
<h3 id="org651f514"><span class="section-number-3">2.9</span> Electron-nucleus rescaled distances for each order and derivatives</h3>
|
||||
<div id="outline-container-orgac04458" class="outline-3">
|
||||
<h3 id="orgac04458"><span class="section-number-3">2.9</span> Electron-nucleus rescaled distances for each order and derivatives</h3>
|
||||
<div class="outline-text-3" id="text-2-9">
|
||||
<p>
|
||||
<code>een_rescaled_n_deriv_e</code> stores the table of the rescaled distances between
|
||||
@ -3128,8 +3128,8 @@ electrons and nucleii raised to the power \(p\) defined by <code>cord_num</code>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orge191508" class="outline-4">
|
||||
<h4 id="orge191508"><span class="section-number-4">2.9.1</span> Get</h4>
|
||||
<div id="outline-container-orgbe8743e" class="outline-4">
|
||||
<h4 id="orgbe8743e"><span class="section-number-4">2.9.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-9-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_jastrow_een_rescaled_n_deriv_e</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_rescaled</span>);
|
||||
@ -3138,10 +3138,10 @@ electrons and nucleii raised to the power \(p\) defined by <code>cord_num</code>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6ae54f4" class="outline-4">
|
||||
<h4 id="org6ae54f4"><span class="section-number-4">2.9.2</span> Compute</h4>
|
||||
<div id="outline-container-orgc64fadd" class="outline-4">
|
||||
<h4 id="orgc64fadd"><span class="section-number-4">2.9.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-9-2">
|
||||
<table id="org28bdefa" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga3f68b1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3351,8 +3351,8 @@ electrons and nucleii raised to the power \(p\) defined by <code>cord_num</code>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org43a5cbc" class="outline-4">
|
||||
<h4 id="org43a5cbc"><span class="section-number-4">2.9.3</span> Test</h4>
|
||||
<div id="outline-container-org12bdb78" class="outline-4">
|
||||
<h4 id="org12bdb78"><span class="section-number-4">2.9.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-9-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>));
|
||||
@ -3374,8 +3374,8 @@ rc = qmckl_get_jastrow_een_rescaled_n_deriv_e(context, &(een_rescaled_n_deri
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9cf35d9" class="outline-3">
|
||||
<h3 id="org9cf35d9"><span class="section-number-3">2.10</span> Prepare for electron-electron-nucleus Jastrow \(f_{een}\)</h3>
|
||||
<div id="outline-container-org755abde" class="outline-3">
|
||||
<h3 id="org755abde"><span class="section-number-3">2.10</span> Prepare for electron-electron-nucleus Jastrow \(f_{een}\)</h3>
|
||||
<div class="outline-text-3" id="text-2-10">
|
||||
<p>
|
||||
Prepare <code>cord_vect_full</code> and <code>lkpm_combined_index</code> tables required for the
|
||||
@ -3384,8 +3384,8 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org59bae56" class="outline-4">
|
||||
<h4 id="org59bae56"><span class="section-number-4">2.10.1</span> Get</h4>
|
||||
<div id="outline-container-org68d23ed" class="outline-4">
|
||||
<h4 id="org68d23ed"><span class="section-number-4">2.10.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-10-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_jastrow_dim_cord_vect</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">int64_t</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">dim_cord_vect</span>);
|
||||
@ -3396,10 +3396,10 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0c020dc" class="outline-4">
|
||||
<h4 id="org0c020dc"><span class="section-number-4">2.10.2</span> Compute dim<sub>cord</sub><sub>vect</sub></h4>
|
||||
<div id="outline-container-org7a150ff" class="outline-4">
|
||||
<h4 id="org7a150ff"><span class="section-number-4">2.10.2</span> Compute dim<sub>cord</sub><sub>vect</sub></h4>
|
||||
<div class="outline-text-4" id="text-2-10-2">
|
||||
<table id="org2fd6229" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgafb7621" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3497,10 +3497,10 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orge6c901b" class="outline-4">
|
||||
<h4 id="orge6c901b"><span class="section-number-4">2.10.3</span> Compute cord<sub>vect</sub><sub>full</sub></h4>
|
||||
<div id="outline-container-orgd116feb" class="outline-4">
|
||||
<h4 id="orgd116feb"><span class="section-number-4">2.10.3</span> Compute cord<sub>vect</sub><sub>full</sub></h4>
|
||||
<div class="outline-text-4" id="text-2-10-3">
|
||||
<table id="org305780b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org01b6948" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3634,10 +3634,10 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org1a409e3" class="outline-4">
|
||||
<h4 id="org1a409e3"><span class="section-number-4">2.10.4</span> Compute lkpm<sub>combined</sub><sub>index</sub></h4>
|
||||
<div id="outline-container-orgffd97fa" class="outline-4">
|
||||
<h4 id="orgffd97fa"><span class="section-number-4">2.10.4</span> Compute lkpm<sub>combined</sub><sub>index</sub></h4>
|
||||
<div class="outline-text-4" id="text-2-10-4">
|
||||
<table id="org45d552a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org06e0e68" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3755,8 +3755,8 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orge989f07" class="outline-4">
|
||||
<h4 id="orge989f07"><span class="section-number-4">2.10.5</span> Test</h4>
|
||||
<div id="outline-container-org3c86111" class="outline-4">
|
||||
<h4 id="org3c86111"><span class="section-number-4">2.10.5</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-10-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">//<span style="color: #b22222;">assert(qmckl_electron_provided(context));</span>
|
||||
@ -3768,8 +3768,8 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf7013b1" class="outline-3">
|
||||
<h3 id="orgf7013b1"><span class="section-number-3">2.11</span> Electron-electron-nucleus Jastrow \(f_{een}\)</h3>
|
||||
<div id="outline-container-orgc8866f3" class="outline-3">
|
||||
<h3 id="orgc8866f3"><span class="section-number-3">2.11</span> Electron-electron-nucleus Jastrow \(f_{een}\)</h3>
|
||||
<div class="outline-text-3" id="text-2-11">
|
||||
<p>
|
||||
Calculate the electron-electron-nuclear three-body jastrow component <code>factor_een</code>
|
||||
@ -3781,8 +3781,8 @@ TODO: write equations.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7b4bbdf" class="outline-4">
|
||||
<h4 id="org7b4bbdf"><span class="section-number-4">2.11.1</span> Get</h4>
|
||||
<div id="outline-container-orgaa311af" class="outline-4">
|
||||
<h4 id="orgaa311af"><span class="section-number-4">2.11.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-11-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_jastrow_factor_een</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;">factor_een</span>);
|
||||
@ -3791,10 +3791,10 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org06699c5" class="outline-4">
|
||||
<h4 id="org06699c5"><span class="section-number-4">2.11.2</span> Compute</h4>
|
||||
<div id="outline-container-org9aedcba" class="outline-4">
|
||||
<h4 id="org9aedcba"><span class="section-number-4">2.11.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-11-2">
|
||||
<table id="orgc73c562" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0b22710" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3990,8 +3990,8 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5ce653d" class="outline-4">
|
||||
<h4 id="org5ce653d"><span class="section-number-4">2.11.3</span> Test</h4>
|
||||
<div id="outline-container-orgf30fa8f" class="outline-4">
|
||||
<h4 id="orgf30fa8f"><span class="section-number-4">2.11.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-11-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -4007,8 +4007,8 @@ rc = qmckl_get_jastrow_factor_een(context, &(factor_een[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge02fb55" class="outline-3">
|
||||
<h3 id="orge02fb55"><span class="section-number-3">2.12</span> Electron-electron-nucleus Jastrow \(f_{een}\) derivative</h3>
|
||||
<div id="outline-container-org9c37984" class="outline-3">
|
||||
<h3 id="org9c37984"><span class="section-number-3">2.12</span> Electron-electron-nucleus Jastrow \(f_{een}\) derivative</h3>
|
||||
<div class="outline-text-3" id="text-2-12">
|
||||
<p>
|
||||
Calculate the electron-electron-nuclear three-body jastrow component <code>factor_een_deriv_e</code>
|
||||
@ -4020,8 +4020,8 @@ TODO: write equations.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf43b3d3" class="outline-4">
|
||||
<h4 id="orgf43b3d3"><span class="section-number-4">2.12.1</span> Get</h4>
|
||||
<div id="outline-container-orgdd8b295" class="outline-4">
|
||||
<h4 id="orgdd8b295"><span class="section-number-4">2.12.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-12-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_jastrow_factor_een_deriv_e</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;">factor_een_deriv_e</span>);
|
||||
@ -4030,10 +4030,10 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3ec53b5" class="outline-4">
|
||||
<h4 id="org3ec53b5"><span class="section-number-4">2.12.2</span> Compute</h4>
|
||||
<div id="outline-container-org74b56f0" class="outline-4">
|
||||
<h4 id="org74b56f0"><span class="section-number-4">2.12.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-12-2">
|
||||
<table id="org3696ee7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8490021" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4266,8 +4266,8 @@ TODO: write equations.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org387a396" class="outline-4">
|
||||
<h4 id="org387a396"><span class="section-number-4">2.12.3</span> Test</h4>
|
||||
<div id="outline-container-orgae313d4" class="outline-4">
|
||||
<h4 id="orgae313d4"><span class="section-number-4">2.12.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-12-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -4286,7 +4286,7 @@ rc = qmckl_get_jastrow_factor_een_deriv_e(context, &(factor_een_deriv_e[0][0
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:02</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:05</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-01-06 Thu 18:02 -->
|
||||
<!-- 2022-01-06 Thu 18:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Local Energy</title>
|
||||
@ -333,43 +333,43 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org3dd6433">1. Context</a>
|
||||
<li><a href="#org39a4942">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org62df37f">1.1. Data structure</a></li>
|
||||
<li><a href="#orgb2a85b5">1.1. Data structure</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8768f6a">2. Computation</a>
|
||||
<li><a href="#org3e27d39">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org6587df5">2.1. Kinetic energy</a>
|
||||
<li><a href="#org0c20c32">2.1. Kinetic energy</a>
|
||||
<ul>
|
||||
<li><a href="#org63469f4">2.1.1. Get</a></li>
|
||||
<li><a href="#orgb8d769d">2.1.2. Provide</a></li>
|
||||
<li><a href="#org2207bfb">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#orgd53d234">2.1.4. Test</a></li>
|
||||
<li><a href="#orgc0dc392">2.1.1. Get</a></li>
|
||||
<li><a href="#org9809e36">2.1.2. Provide</a></li>
|
||||
<li><a href="#org0beecd7">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#orge1c7650">2.1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org319eec2">2.2. Potential energy</a>
|
||||
<li><a href="#org9ff98fb">2.2. Potential energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgc023494">2.2.1. Get</a></li>
|
||||
<li><a href="#org667dc46">2.2.2. Provide</a></li>
|
||||
<li><a href="#org63901e1">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#orga27ba31">2.2.4. Test</a></li>
|
||||
<li><a href="#org256f06e">2.2.1. Get</a></li>
|
||||
<li><a href="#org12cd934">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgba33bbf">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org62b49a3">2.2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8f66c82">2.3. Local energy</a>
|
||||
<li><a href="#org20a3772">2.3. Local energy</a>
|
||||
<ul>
|
||||
<li><a href="#org15eebd4">2.3.1. Get</a></li>
|
||||
<li><a href="#org5ad3448">2.3.2. Provide</a></li>
|
||||
<li><a href="#org1f03a59">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#orgc540224">2.3.4. Test</a></li>
|
||||
<li><a href="#org5d28437">2.3.1. Get</a></li>
|
||||
<li><a href="#org53283f4">2.3.2. Provide</a></li>
|
||||
<li><a href="#orgc2c2228">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#org23a4722">2.3.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc2c3d0b">2.4. Drift vector</a>
|
||||
<li><a href="#orgf7dd702">2.4. Drift vector</a>
|
||||
<ul>
|
||||
<li><a href="#orgd650f90">2.4.1. Get</a></li>
|
||||
<li><a href="#org416d929">2.4.2. Provide</a></li>
|
||||
<li><a href="#org4bd4c44">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org0cf3255">2.4.4. Test</a></li>
|
||||
<li><a href="#org6f5bb03">2.4.1. Get</a></li>
|
||||
<li><a href="#org191e243">2.4.2. Provide</a></li>
|
||||
<li><a href="#org566a296">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org6f8522e">2.4.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -378,8 +378,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3dd6433" class="outline-2">
|
||||
<h2 id="org3dd6433"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org39a4942" class="outline-2">
|
||||
<h2 id="org39a4942"><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:
|
||||
@ -452,8 +452,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org62df37f" class="outline-3">
|
||||
<h3 id="org62df37f"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgb2a85b5" class="outline-3">
|
||||
<h3 id="orgb2a85b5"><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,12 +488,12 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8768f6a" class="outline-2">
|
||||
<h2 id="org8768f6a"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org3e27d39" class="outline-2">
|
||||
<h2 id="org3e27d39"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org6587df5" class="outline-3">
|
||||
<h3 id="org6587df5"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div id="outline-container-org0c20c32" class="outline-3">
|
||||
<h3 id="org0c20c32"><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:
|
||||
@ -517,8 +517,8 @@ case is given as follows:
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org63469f4" class="outline-4">
|
||||
<h4 id="org63469f4"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orgc0dc392" class="outline-4">
|
||||
<h4 id="orgc0dc392"><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>);
|
||||
@ -527,14 +527,14 @@ case is given as follows:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb8d769d" class="outline-4">
|
||||
<h4 id="orgb8d769d"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org9809e36" class="outline-4">
|
||||
<h4 id="org9809e36"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2207bfb" class="outline-4">
|
||||
<h4 id="org2207bfb"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
||||
<div id="outline-container-org0beecd7" class="outline-4">
|
||||
<h4 id="org0beecd7"><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="org1b84219" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc37935d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -777,12 +777,12 @@ case is given as follows:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd53d234" class="outline-4">
|
||||
<h4 id="orgd53d234"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
<div id="outline-container-orge1c7650" class="outline-4">
|
||||
<h4 id="orge1c7650"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org319eec2" class="outline-3">
|
||||
<h3 id="org319eec2"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div id="outline-container-org9ff98fb" class="outline-3">
|
||||
<h3 id="org9ff98fb"><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
|
||||
@ -818,8 +818,8 @@ contributions.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc023494" class="outline-4">
|
||||
<h4 id="orgc023494"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org256f06e" class="outline-4">
|
||||
<h4 id="org256f06e"><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>);
|
||||
@ -828,14 +828,14 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org667dc46" class="outline-4">
|
||||
<h4 id="org667dc46"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org12cd934" class="outline-4">
|
||||
<h4 id="org12cd934"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org63901e1" class="outline-4">
|
||||
<h4 id="org63901e1"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
||||
<div id="outline-container-orgba33bbf" class="outline-4">
|
||||
<h4 id="orgba33bbf"><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="orgc33029d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga7aa922" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -963,12 +963,12 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga27ba31" class="outline-4">
|
||||
<h4 id="orga27ba31"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
<div id="outline-container-org62b49a3" class="outline-4">
|
||||
<h4 id="org62b49a3"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org8f66c82" class="outline-3">
|
||||
<h3 id="org8f66c82"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div id="outline-container-org20a3772" class="outline-3">
|
||||
<h3 id="org20a3772"><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.
|
||||
@ -982,8 +982,8 @@ E_L = KE + PE
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org15eebd4" class="outline-4">
|
||||
<h4 id="org15eebd4"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org5d28437" class="outline-4">
|
||||
<h4 id="org5d28437"><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>);
|
||||
@ -992,14 +992,14 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5ad3448" class="outline-4">
|
||||
<h4 id="org5ad3448"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-org53283f4" class="outline-4">
|
||||
<h4 id="org53283f4"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1f03a59" class="outline-4">
|
||||
<h4 id="org1f03a59"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
||||
<div id="outline-container-orgc2c2228" class="outline-4">
|
||||
<h4 id="orgc2c2228"><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="org80f0a4f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgddf1139" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1095,12 +1095,12 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc540224" class="outline-4">
|
||||
<h4 id="orgc540224"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
<div id="outline-container-org23a4722" class="outline-4">
|
||||
<h4 id="org23a4722"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgc2c3d0b" class="outline-3">
|
||||
<h3 id="orgc2c3d0b"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div id="outline-container-orgf7dd702" class="outline-3">
|
||||
<h3 id="orgf7dd702"><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
|
||||
@ -1114,8 +1114,8 @@ with the determinant of the wavefunction.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd650f90" class="outline-4">
|
||||
<h4 id="orgd650f90"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org6f5bb03" class="outline-4">
|
||||
<h4 id="org6f5bb03"><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>);
|
||||
@ -1124,14 +1124,14 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org416d929" class="outline-4">
|
||||
<h4 id="org416d929"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
<div id="outline-container-org191e243" class="outline-4">
|
||||
<h4 id="org191e243"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4bd4c44" class="outline-4">
|
||||
<h4 id="org4bd4c44"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
||||
<div id="outline-container-org566a296" class="outline-4">
|
||||
<h4 id="org566a296"><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="org7c7e7c7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org42b3097" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1352,15 +1352,15 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0cf3255" class="outline-4">
|
||||
<h4 id="org0cf3255"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
<div id="outline-container-org6f8522e" class="outline-4">
|
||||
<h4 id="org6f8522e"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:02</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:05</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-01-06 Thu 18:02 -->
|
||||
<!-- 2022-01-06 Thu 18:05 -->
|
||||
<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,15 +311,15 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org05a308b">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#orgb577b14">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#org67312a5">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#orgbaffa24">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org10f17e7">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orge66e37d">3. Allocation/deallocation functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org05a308b" class="outline-2">
|
||||
<h2 id="org05a308b"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div id="outline-container-orgbaffa24" class="outline-2">
|
||||
<h2 id="orgbaffa24"><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
|
||||
@ -361,8 +361,8 @@ array, and the number of allocated blocks.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb577b14" class="outline-2">
|
||||
<h2 id="orgb577b14"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div id="outline-container-org10f17e7" class="outline-2">
|
||||
<h2 id="org10f17e7"><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
|
||||
@ -371,8 +371,8 @@ passing an instance of a <code>qmckl_memory_info_struct</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org67312a5" class="outline-2">
|
||||
<h2 id="org67312a5"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-orge66e37d" class="outline-2">
|
||||
<h2 id="orge66e37d"><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
|
||||
@ -535,7 +535,7 @@ allocation and needs to be updated.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:02</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:05</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-01-06 Thu 18:02 -->
|
||||
<!-- 2022-01-06 Thu 18:05 -->
|
||||
<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,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="#org754b342">1. Context</a>
|
||||
<li><a href="#orgd16af3c">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org0dab27d">1.1. Data structure</a></li>
|
||||
<li><a href="#org787a8bf">1.2. Access functions</a></li>
|
||||
<li><a href="#org476a99f">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org23520e4">1.1. Data structure</a></li>
|
||||
<li><a href="#orgbbdd5ff">1.2. Access functions</a></li>
|
||||
<li><a href="#org2055aa8">1.3. Initialization functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0d00a46">2. Computation</a>
|
||||
<li><a href="#org5c2d1c2">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org4c9eb6e">2.1. Computation of MOs</a>
|
||||
<li><a href="#org7b46205">2.1. Computation of MOs</a>
|
||||
<ul>
|
||||
<li><a href="#org8c78e40">2.1.1. Get</a></li>
|
||||
<li><a href="#org56b7015">2.1.2. Provide</a></li>
|
||||
<li><a href="#org5975bdc">2.1.3. Compute</a></li>
|
||||
<li><a href="#orgb0c630f">2.1.4. Test</a></li>
|
||||
<li><a href="#org7560ea2">2.1.1. Get</a></li>
|
||||
<li><a href="#org65178d8">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgab68ca0">2.1.3. Compute</a></li>
|
||||
<li><a href="#orgf82beef">2.1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -334,8 +334,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org754b342" class="outline-2">
|
||||
<h2 id="org754b342"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgd16af3c" class="outline-2">
|
||||
<h2 id="orgd16af3c"><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:
|
||||
@ -397,8 +397,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0dab27d" class="outline-3">
|
||||
<h3 id="org0dab27d"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org23520e4" class="outline-3">
|
||||
<h3 id="org23520e4"><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> {
|
||||
@ -447,8 +447,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org787a8bf" class="outline-3">
|
||||
<h3 id="org787a8bf"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgbbdd5ff" class="outline-3">
|
||||
<h3 id="orgbbdd5ff"><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 AOs have been provided, the following
|
||||
@ -462,8 +462,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org476a99f" class="outline-3">
|
||||
<h3 id="org476a99f"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org2055aa8" class="outline-3">
|
||||
<h3 id="org2055aa8"><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
|
||||
@ -484,16 +484,16 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0d00a46" class="outline-2">
|
||||
<h2 id="org0d00a46"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org5c2d1c2" class="outline-2">
|
||||
<h2 id="org5c2d1c2"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org4c9eb6e" class="outline-3">
|
||||
<h3 id="org4c9eb6e"><span class="section-number-3">2.1</span> Computation of MOs</h3>
|
||||
<div id="outline-container-org7b46205" class="outline-3">
|
||||
<h3 id="org7b46205"><span class="section-number-3">2.1</span> Computation of MOs</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
</div>
|
||||
<div id="outline-container-org8c78e40" class="outline-4">
|
||||
<h4 id="org8c78e40"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org7560ea2" class="outline-4">
|
||||
<h4 id="org7560ea2"><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_mo_basis_vgl</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;">mo_vgl</span>);
|
||||
@ -502,14 +502,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org56b7015" class="outline-4">
|
||||
<h4 id="org56b7015"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org65178d8" class="outline-4">
|
||||
<h4 id="org65178d8"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5975bdc" class="outline-4">
|
||||
<h4 id="org5975bdc"><span class="section-number-4">2.1.3</span> Compute</h4>
|
||||
<div id="outline-container-orgab68ca0" class="outline-4">
|
||||
<h4 id="orgab68ca0"><span class="section-number-4">2.1.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="orgc04ac7d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2adad85" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -667,15 +667,15 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgb0c630f" class="outline-4">
|
||||
<h4 id="orgb0c630f"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
<div id="outline-container-orgf82beef" class="outline-4">
|
||||
<h4 id="orgf82beef"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:02</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:05</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-01-06 Thu 18:02 -->
|
||||
<!-- 2022-01-06 Thu 18:05 -->
|
||||
<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,35 +333,35 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgfbc0ee9">1. Context</a>
|
||||
<li><a href="#org37f8951">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org1ba4481">1.1. Data structure</a></li>
|
||||
<li><a href="#orgc6429df">1.2. Access functions</a></li>
|
||||
<li><a href="#orgbf3e3cd">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org1205c5d">1.4. Test</a></li>
|
||||
<li><a href="#org0f92cea">1.1. Data structure</a></li>
|
||||
<li><a href="#org56bd59b">1.2. Access functions</a></li>
|
||||
<li><a href="#org2ff88e5">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org6c6225f">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf1c8dcd">2. Computation</a>
|
||||
<li><a href="#org33d76be">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org3b364e7">2.1. Nucleus-nucleus distances</a>
|
||||
<li><a href="#orgb13bdb5">2.1. Nucleus-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org407b5a4">2.1.1. Get</a></li>
|
||||
<li><a href="#org27604f1">2.1.2. Compute</a></li>
|
||||
<li><a href="#org758630b">2.1.3. Test</a></li>
|
||||
<li><a href="#org825f210">2.1.1. Get</a></li>
|
||||
<li><a href="#org0090318">2.1.2. Compute</a></li>
|
||||
<li><a href="#org3a3b40a">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org95d4462">2.2. Nucleus-nucleus rescaled distances</a>
|
||||
<li><a href="#org8488966">2.2. Nucleus-nucleus rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#orge5fcdca">2.2.1. Get</a></li>
|
||||
<li><a href="#org36a4cb1">2.2.2. Compute</a></li>
|
||||
<li><a href="#org9735507">2.2.3. Test</a></li>
|
||||
<li><a href="#orgb848c7d">2.2.1. Get</a></li>
|
||||
<li><a href="#orge3c0c06">2.2.2. Compute</a></li>
|
||||
<li><a href="#org33ed093">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org788fe68">2.3. Nuclear repulsion energy</a>
|
||||
<li><a href="#orgc518efb">2.3. Nuclear repulsion energy</a>
|
||||
<ul>
|
||||
<li><a href="#org76fceac">2.3.1. Get</a></li>
|
||||
<li><a href="#org76cadea">2.3.2. Compute</a></li>
|
||||
<li><a href="#org38cf3e0">2.3.3. Test</a></li>
|
||||
<li><a href="#org4b98393">2.3.1. Get</a></li>
|
||||
<li><a href="#orgc2f9b98">2.3.2. Compute</a></li>
|
||||
<li><a href="#org501d587">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -370,8 +370,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfbc0ee9" class="outline-2">
|
||||
<h2 id="orgfbc0ee9"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org37f8951" class="outline-2">
|
||||
<h2 id="org37f8951"><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:
|
||||
@ -486,8 +486,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1ba4481" class="outline-3">
|
||||
<h3 id="org1ba4481"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org0f92cea" class="outline-3">
|
||||
<h3 id="org0f92cea"><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> {
|
||||
@ -545,8 +545,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc6429df" class="outline-3">
|
||||
<h3 id="orgc6429df"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org56bd59b" class="outline-3">
|
||||
<h3 id="org56bd59b"><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
|
||||
@ -560,8 +560,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbf3e3cd" class="outline-3">
|
||||
<h3 id="orgbf3e3cd"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org2ff88e5" class="outline-3">
|
||||
<h3 id="org2ff88e5"><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
|
||||
@ -596,8 +596,8 @@ atoms. The coordinates should be given in atomic units.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1205c5d" class="outline-3">
|
||||
<h3 id="org1205c5d"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org6c6225f" class="outline-3">
|
||||
<h3 id="org6c6225f"><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;">int64_t</span> <span style="color: #a0522d;">nucl_num</span> = chbrclf_nucl_num;
|
||||
@ -681,8 +681,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf1c8dcd" class="outline-2">
|
||||
<h2 id="orgf1c8dcd"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org33d76be" class="outline-2">
|
||||
<h2 id="org33d76be"><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
|
||||
@ -695,12 +695,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3b364e7" class="outline-3">
|
||||
<h3 id="org3b364e7"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div id="outline-container-orgb13bdb5" class="outline-3">
|
||||
<h3 id="orgb13bdb5"><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-org407b5a4" class="outline-4">
|
||||
<h4 id="org407b5a4"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org825f210" class="outline-4">
|
||||
<h4 id="org825f210"><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_nucleus_nn_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>);
|
||||
@ -709,10 +709,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org27604f1" class="outline-4">
|
||||
<h4 id="org27604f1"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org0090318" class="outline-4">
|
||||
<h4 id="org0090318"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orgd44fad5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4c2ad08" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -790,8 +790,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org758630b" class="outline-4">
|
||||
<h4 id="org758630b"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org3a3b40a" class="outline-4">
|
||||
<h4 id="org3a3b40a"><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>*/
|
||||
@ -810,12 +810,12 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org95d4462" class="outline-3">
|
||||
<h3 id="org95d4462"><span class="section-number-3">2.2</span> Nucleus-nucleus rescaled distances</h3>
|
||||
<div id="outline-container-org8488966" class="outline-3">
|
||||
<h3 id="org8488966"><span class="section-number-3">2.2</span> Nucleus-nucleus rescaled distances</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
</div>
|
||||
<div id="outline-container-orge5fcdca" class="outline-4">
|
||||
<h4 id="orge5fcdca"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgb848c7d" class="outline-4">
|
||||
<h4 id="orgb848c7d"><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_nn_distance_rescaled</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_rescaled</span>);
|
||||
@ -824,10 +824,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org36a4cb1" class="outline-4">
|
||||
<h4 id="org36a4cb1"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-orge3c0c06" class="outline-4">
|
||||
<h4 id="orge3c0c06"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orgcf3c6df" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb43e0ce" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -906,8 +906,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9735507" class="outline-4">
|
||||
<h4 id="org9735507"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org33ed093" class="outline-4">
|
||||
<h4 id="org33ed093"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -927,8 +927,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org788fe68" class="outline-3">
|
||||
<h3 id="org788fe68"><span class="section-number-3">2.3</span> Nuclear repulsion energy</h3>
|
||||
<div id="outline-container-orgc518efb" class="outline-3">
|
||||
<h3 id="orgc518efb"><span class="section-number-3">2.3</span> Nuclear repulsion energy</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
\[
|
||||
@ -937,8 +937,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org76fceac" class="outline-4">
|
||||
<h4 id="org76fceac"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org4b98393" class="outline-4">
|
||||
<h4 id="org4b98393"><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_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: #a0522d;">energy</span>);
|
||||
@ -947,10 +947,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org76cadea" class="outline-4">
|
||||
<h4 id="org76cadea"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-orgc2f9b98" class="outline-4">
|
||||
<h4 id="orgc2f9b98"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org869e89c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org45e9b47" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1040,8 +1040,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org38cf3e0" class="outline-4">
|
||||
<h4 id="org38cf3e0"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-org501d587" class="outline-4">
|
||||
<h4 id="org501d587"><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">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -1061,7 +1061,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-01-06 Thu 18:02</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:05</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-01-06 Thu 18:02 -->
|
||||
<!-- 2022-01-06 Thu 18:06 -->
|
||||
<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="#org5fa7976">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org82ff968">2. Precision</a></li>
|
||||
<li><a href="#org6bd7936">3. Range</a></li>
|
||||
<li><a href="#orgdddcc39">4. Helper functions</a></li>
|
||||
<li><a href="#org942a448">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org6a8f092">2. Precision</a></li>
|
||||
<li><a href="#org61e5450">3. Range</a></li>
|
||||
<li><a href="#org6d8aec0">4. Helper functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5fa7976" class="outline-2">
|
||||
<h2 id="org5fa7976"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-org942a448" class="outline-2">
|
||||
<h2 id="org942a448"><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="orgf249662" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3c2cc6e" 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-org82ff968" class="outline-2">
|
||||
<h2 id="org82ff968"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-org6a8f092" class="outline-2">
|
||||
<h2 id="org6a8f092"><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-org6bd7936" class="outline-2">
|
||||
<h2 id="org6bd7936"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-org61e5450" class="outline-2">
|
||||
<h2 id="org61e5450"><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-orgdddcc39" class="outline-2">
|
||||
<h2 id="orgdddcc39"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-org6d8aec0" class="outline-2">
|
||||
<h2 id="org6d8aec0"><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-01-06 Thu 18:02</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:06</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-01-06 Thu 18:02 -->
|
||||
<!-- 2022-01-06 Thu 18:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Sherman-Morrison-Woodbury</title>
|
||||
@ -333,86 +333,86 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orged2be94">1. Headers</a></li>
|
||||
<li><a href="#orgcd5e228">2. Naïve Sherman-Morrison</a>
|
||||
<li><a href="#org6d2ac02">1. Headers</a></li>
|
||||
<li><a href="#orgbe123a5">2. Naïve Sherman-Morrison</a>
|
||||
<ul>
|
||||
<li><a href="#org435efaa">2.1. <code>qmckl_sherman_morrison</code></a>
|
||||
<li><a href="#orgcef21f0">2.1. <code>qmckl_sherman_morrison</code></a>
|
||||
<ul>
|
||||
<li><a href="#org4c90dc3">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orgdf8d946">2.1.2. C header</a></li>
|
||||
<li><a href="#org6a8497a">2.1.3. C source</a></li>
|
||||
<li><a href="#orgdb6b23b">2.1.4. Performance</a></li>
|
||||
<li><a href="#orgea5c307">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orgca2390e">2.1.2. C header</a></li>
|
||||
<li><a href="#org9d0a9ff">2.1.3. C source</a></li>
|
||||
<li><a href="#org841b700">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0b1677c">3. Woodbury 2x2</a>
|
||||
<li><a href="#org1a8672a">3. Woodbury 2x2</a>
|
||||
<ul>
|
||||
<li><a href="#org7f18acc">3.1. <code>qmckl_woodbury_2</code></a>
|
||||
<li><a href="#org271dd4d">3.1. <code>qmckl_woodbury_2</code></a>
|
||||
<ul>
|
||||
<li><a href="#org1547051">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orgcdf525e">3.1.2. C header</a></li>
|
||||
<li><a href="#org900593f">3.1.3. C source</a></li>
|
||||
<li><a href="#org00dd171">3.1.4. Performance</a></li>
|
||||
<li><a href="#orgec28e9f">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org88c867a">3.1.2. C header</a></li>
|
||||
<li><a href="#org5413866">3.1.3. C source</a></li>
|
||||
<li><a href="#org007067e">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org74468fb">4. Woodbury 3x3</a>
|
||||
<li><a href="#orgb7a8390">4. Woodbury 3x3</a>
|
||||
<ul>
|
||||
<li><a href="#org47eeb25">4.1. <code>qmckl_woodbury_3</code></a>
|
||||
<li><a href="#org18bdf90">4.1. <code>qmckl_woodbury_3</code></a>
|
||||
<ul>
|
||||
<li><a href="#orga29dd1a">4.1.1. Requirements</a></li>
|
||||
<li><a href="#orgb2a732c">4.1.2. C header</a></li>
|
||||
<li><a href="#orgc13b14b">4.1.3. C source</a></li>
|
||||
<li><a href="#org9b8eb3c">4.1.4. Performance…</a></li>
|
||||
<li><a href="#org132e8f3">4.1.1. Requirements</a></li>
|
||||
<li><a href="#org01ae44d">4.1.2. C header</a></li>
|
||||
<li><a href="#orga9dfd7e">4.1.3. C source</a></li>
|
||||
<li><a href="#org783cb0e">4.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd135a50">5. Sherman-Morrison with update splitting</a>
|
||||
<li><a href="#orgc76f87a">5. Sherman-Morrison with update splitting</a>
|
||||
<ul>
|
||||
<li><a href="#org62aef2c">5.1. <code>qmckl_sherman_morrison_splitting</code></a>
|
||||
<li><a href="#org6c61147">5.1. <code>qmckl_sherman_morrison_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#orga77fa29">5.1.1. Requirements</a></li>
|
||||
<li><a href="#org516e026">5.1.2. C header</a></li>
|
||||
<li><a href="#org05dda15">5.1.3. C source</a></li>
|
||||
<li><a href="#org7e61dc9">5.1.4. Performance…</a></li>
|
||||
<li><a href="#org18dbb8e">5.1.1. Requirements</a></li>
|
||||
<li><a href="#org97ba185">5.1.2. C header</a></li>
|
||||
<li><a href="#org9d788bf">5.1.3. C source</a></li>
|
||||
<li><a href="#org34ff62f">5.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org631a71d">6. Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</a>
|
||||
<li><a href="#orge3526c6">6. Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</a>
|
||||
<ul>
|
||||
<li><a href="#orgc6b7d11">6.1. <code>qmckl_sherman_morrison_smw32s</code></a>
|
||||
<li><a href="#orgc0b3786">6.1. <code>qmckl_sherman_morrison_smw32s</code></a>
|
||||
<ul>
|
||||
<li><a href="#org6004e7f">6.1.1. Requirements</a></li>
|
||||
<li><a href="#orgcca523f">6.1.2. C header</a></li>
|
||||
<li><a href="#org59c0a35">6.1.3. C source</a></li>
|
||||
<li><a href="#org98b96db">6.1.4. Performance…</a></li>
|
||||
<li><a href="#org1151209">6.1.1. Requirements</a></li>
|
||||
<li><a href="#org050a629">6.1.2. C header</a></li>
|
||||
<li><a href="#orgcd92dcb">6.1.3. C source</a></li>
|
||||
<li><a href="#orgd9980f7">6.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org811ff95">7. Helper Functions</a>
|
||||
<li><a href="#org6ff5bb9">7. Helper Functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgb139c94">7.1. <code>qmckl_slagel_splitting</code></a>
|
||||
<li><a href="#org67e4526">7.1. <code>qmckl_slagel_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#org15f58e4">7.1.1. Requirements</a></li>
|
||||
<li><a href="#org79a9ef3">7.1.2. C header</a></li>
|
||||
<li><a href="#org79c11fc">7.1.3. C source</a></li>
|
||||
<li><a href="#orgc25ffa2">7.1.4. Performance</a></li>
|
||||
<li><a href="#orgcaac59a">7.1.1. Requirements</a></li>
|
||||
<li><a href="#org3090456">7.1.2. C header</a></li>
|
||||
<li><a href="#org1f1751d">7.1.3. C source</a></li>
|
||||
<li><a href="#orgac32219">7.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbe41567">8. End of files</a></li>
|
||||
<li><a href="#org1d884f3">8. End of files</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orged2be94" class="outline-2">
|
||||
<h2 id="orged2be94"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div id="outline-container-org6d2ac02" class="outline-2">
|
||||
<h2 id="org6d2ac02"><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-orgcd5e228" class="outline-2">
|
||||
<h2 id="orgcd5e228"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
||||
<div id="outline-container-orgbe123a5" class="outline-2">
|
||||
<h2 id="orgbe123a5"><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-org435efaa" class="outline-3">
|
||||
<h3 id="org435efaa"><span class="section-number-3">2.1</span> <code>qmckl_sherman_morrison</code></h3>
|
||||
<div id="outline-container-orgcef21f0" class="outline-3">
|
||||
<h3 id="orgcef21f0"><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="orgb503107" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org559d6e0" 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-org4c90dc3" class="outline-4">
|
||||
<h4 id="org4c90dc3"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgea5c307" class="outline-4">
|
||||
<h4 id="orgea5c307"><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-orgdf8d946" class="outline-4">
|
||||
<h4 id="orgdf8d946"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgca2390e" class="outline-4">
|
||||
<h4 id="orgca2390e"><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-org6a8497a" class="outline-4">
|
||||
<h4 id="org6a8497a"><span class="section-number-4">2.1.3</span> C source</h4>
|
||||
<div id="outline-container-org9d0a9ff" class="outline-4">
|
||||
<h4 id="org9d0a9ff"><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-orgdb6b23b" class="outline-4">
|
||||
<h4 id="orgdb6b23b"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org841b700" class="outline-4">
|
||||
<h4 id="org841b700"><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-org0b1677c" class="outline-2">
|
||||
<h2 id="org0b1677c"><span class="section-number-2">3</span> Woodbury 2x2</h2>
|
||||
<div id="outline-container-org1a8672a" class="outline-2">
|
||||
<h2 id="org1a8672a"><span class="section-number-2">3</span> Woodbury 2x2</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org7f18acc" class="outline-3">
|
||||
<h3 id="org7f18acc"><span class="section-number-3">3.1</span> <code>qmckl_woodbury_2</code></h3>
|
||||
<div id="outline-container-org271dd4d" class="outline-3">
|
||||
<h3 id="org271dd4d"><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="org1c6ef8a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org542a978" 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-org1547051" class="outline-4">
|
||||
<h4 id="org1547051"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgec28e9f" class="outline-4">
|
||||
<h4 id="orgec28e9f"><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-orgcdf525e" class="outline-4">
|
||||
<h4 id="orgcdf525e"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-org88c867a" class="outline-4">
|
||||
<h4 id="org88c867a"><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-org900593f" class="outline-4">
|
||||
<h4 id="org900593f"><span class="section-number-4">3.1.3</span> C source</h4>
|
||||
<div id="outline-container-org5413866" class="outline-4">
|
||||
<h4 id="org5413866"><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-org00dd171" class="outline-4">
|
||||
<h4 id="org00dd171"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org007067e" class="outline-4">
|
||||
<h4 id="org007067e"><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-org74468fb" class="outline-2">
|
||||
<h2 id="org74468fb"><span class="section-number-2">4</span> Woodbury 3x3</h2>
|
||||
<div id="outline-container-orgb7a8390" class="outline-2">
|
||||
<h2 id="orgb7a8390"><span class="section-number-2">4</span> Woodbury 3x3</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org47eeb25" class="outline-3">
|
||||
<h3 id="org47eeb25"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_3</code></h3>
|
||||
<div id="outline-container-org18bdf90" class="outline-3">
|
||||
<h3 id="org18bdf90"><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="org74fd884" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgaba3ac9" 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-orga29dd1a" class="outline-4">
|
||||
<h4 id="orga29dd1a"><span class="section-number-4">4.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org132e8f3" class="outline-4">
|
||||
<h4 id="org132e8f3"><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-orgb2a732c" class="outline-4">
|
||||
<h4 id="orgb2a732c"><span class="section-number-4">4.1.2</span> C header</h4>
|
||||
<div id="outline-container-org01ae44d" class="outline-4">
|
||||
<h4 id="org01ae44d"><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-orgc13b14b" class="outline-4">
|
||||
<h4 id="orgc13b14b"><span class="section-number-4">4.1.3</span> C source</h4>
|
||||
<div id="outline-container-orga9dfd7e" class="outline-4">
|
||||
<h4 id="orga9dfd7e"><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-org9b8eb3c" class="outline-4">
|
||||
<h4 id="org9b8eb3c"><span class="section-number-4">4.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org783cb0e" class="outline-4">
|
||||
<h4 id="org783cb0e"><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-orgd135a50" class="outline-2">
|
||||
<h2 id="orgd135a50"><span class="section-number-2">5</span> Sherman-Morrison with update splitting</h2>
|
||||
<div id="outline-container-orgc76f87a" class="outline-2">
|
||||
<h2 id="orgc76f87a"><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-org62aef2c" class="outline-3">
|
||||
<h3 id="org62aef2c"><span class="section-number-3">5.1</span> <code>qmckl_sherman_morrison_splitting</code></h3>
|
||||
<div id="outline-container-org6c61147" class="outline-3">
|
||||
<h3 id="org6c61147"><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="org1b5e22f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge1d18a4" 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-orga77fa29" class="outline-4">
|
||||
<h4 id="orga77fa29"><span class="section-number-4">5.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org18dbb8e" class="outline-4">
|
||||
<h4 id="org18dbb8e"><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-org516e026" class="outline-4">
|
||||
<h4 id="org516e026"><span class="section-number-4">5.1.2</span> C header</h4>
|
||||
<div id="outline-container-org97ba185" class="outline-4">
|
||||
<h4 id="org97ba185"><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-org05dda15" class="outline-4">
|
||||
<h4 id="org05dda15"><span class="section-number-4">5.1.3</span> C source</h4>
|
||||
<div id="outline-container-org9d788bf" class="outline-4">
|
||||
<h4 id="org9d788bf"><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-org7e61dc9" class="outline-4">
|
||||
<h4 id="org7e61dc9"><span class="section-number-4">5.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org34ff62f" class="outline-4">
|
||||
<h4 id="org34ff62f"><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-org631a71d" class="outline-2">
|
||||
<h2 id="org631a71d"><span class="section-number-2">6</span> Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</h2>
|
||||
<div id="outline-container-orge3526c6" class="outline-2">
|
||||
<h2 id="orge3526c6"><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-orgc6b7d11" class="outline-3">
|
||||
<h3 id="orgc6b7d11"><span class="section-number-3">6.1</span> <code>qmckl_sherman_morrison_smw32s</code></h3>
|
||||
<div id="outline-container-orgc0b3786" class="outline-3">
|
||||
<h3 id="orgc0b3786"><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="orga5efc5d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org38ddf54" 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-org6004e7f" class="outline-4">
|
||||
<h4 id="org6004e7f"><span class="section-number-4">6.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org1151209" class="outline-4">
|
||||
<h4 id="org1151209"><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-orgcca523f" class="outline-4">
|
||||
<h4 id="orgcca523f"><span class="section-number-4">6.1.2</span> C header</h4>
|
||||
<div id="outline-container-org050a629" class="outline-4">
|
||||
<h4 id="org050a629"><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-org59c0a35" class="outline-4">
|
||||
<h4 id="org59c0a35"><span class="section-number-4">6.1.3</span> C source</h4>
|
||||
<div id="outline-container-orgcd92dcb" class="outline-4">
|
||||
<h4 id="orgcd92dcb"><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-org98b96db" class="outline-4">
|
||||
<h4 id="org98b96db"><span class="section-number-4">6.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-orgd9980f7" class="outline-4">
|
||||
<h4 id="orgd9980f7"><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-org811ff95" class="outline-2">
|
||||
<h2 id="org811ff95"><span class="section-number-2">7</span> Helper Functions</h2>
|
||||
<div id="outline-container-org6ff5bb9" class="outline-2">
|
||||
<h2 id="org6ff5bb9"><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-orgb139c94" class="outline-3">
|
||||
<h3 id="orgb139c94"><span class="section-number-3">7.1</span> <code>qmckl_slagel_splitting</code></h3>
|
||||
<div id="outline-container-org67e4526" class="outline-3">
|
||||
<h3 id="org67e4526"><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="org12cee16" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9cba7c5" 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-org15f58e4" class="outline-4">
|
||||
<h4 id="org15f58e4"><span class="section-number-4">7.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgcaac59a" class="outline-4">
|
||||
<h4 id="orgcaac59a"><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-org79a9ef3" class="outline-4">
|
||||
<h4 id="org79a9ef3"><span class="section-number-4">7.1.2</span> C header</h4>
|
||||
<div id="outline-container-org3090456" class="outline-4">
|
||||
<h4 id="org3090456"><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-org79c11fc" class="outline-4">
|
||||
<h4 id="org79c11fc"><span class="section-number-4">7.1.3</span> C source</h4>
|
||||
<div id="outline-container-org1f1751d" class="outline-4">
|
||||
<h4 id="org1f1751d"><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-orgc25ffa2" class="outline-4">
|
||||
<h4 id="orgc25ffa2"><span class="section-number-4">7.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgac32219" class="outline-4">
|
||||
<h4 id="orgac32219"><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-orgbe41567" class="outline-2">
|
||||
<h2 id="orgbe41567"><span class="section-number-2">8</span> End of files</h2>
|
||||
<div id="outline-container-org1d884f3" class="outline-2">
|
||||
<h2 id="org1d884f3"><span class="section-number-2">8</span> End of files</h2>
|
||||
<div class="outline-text-2" id="text-8">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"> <span style="color: #0000ff;">assert</span> (<span style="color: #228b22;">qmckl_context_destroy</span>(<span style="color: #a0522d;">context</span>) == QMCKL_SUCCESS);
|
||||
@ -1848,7 +1848,7 @@ with Sherman-Morrison and update splitting. Please look at the performance recco
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:02</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:05</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-01-06 Thu 18:02 -->
|
||||
<!-- 2022-01-06 Thu 18:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Data for Tests</title>
|
||||
@ -233,27 +233,27 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org4bad0c2">1. CHBrClF</a>
|
||||
<li><a href="#org012f406">1. CHBrClF</a>
|
||||
<ul>
|
||||
<li><a href="#orgc89e0ff">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org3c40180">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org5d339bb">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org534362e">1.4. Electron coordinates</a></li>
|
||||
<li><a href="#org45e7fe4">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org2734b64">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#orgd7b0c22">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org9ecb542">1.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org542dad1">2. N2</a>
|
||||
<li><a href="#org8967cd8">2. N2</a>
|
||||
<ul>
|
||||
<li><a href="#org9f0fd29">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org3b4108d">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#orgfd72f21">2.3. Jastrow related data</a></li>
|
||||
<li><a href="#org6afd043">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org156d185">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org3cf75d8">2.3. Jastrow related data</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4bad0c2" class="outline-2">
|
||||
<h2 id="org4bad0c2"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div id="outline-container-org012f406" class="outline-2">
|
||||
<h2 id="org012f406"><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-orgc89e0ff" class="outline-3">
|
||||
<h3 id="orgc89e0ff"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org45e7fe4" class="outline-3">
|
||||
<h3 id="org45e7fe4"><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-org3c40180" class="outline-3">
|
||||
<h3 id="org3c40180"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div id="outline-container-org2734b64" class="outline-3">
|
||||
<h3 id="org2734b64"><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-org5d339bb" class="outline-3">
|
||||
<h3 id="org5d339bb"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-orgd7b0c22" class="outline-3">
|
||||
<h3 id="orgd7b0c22"><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-org534362e" class="outline-3">
|
||||
<h3 id="org534362e"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org9ecb542" class="outline-3">
|
||||
<h3 id="org9ecb542"><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-org542dad1" class="outline-2">
|
||||
<h2 id="org542dad1"><span class="section-number-2">2</span> N2</h2>
|
||||
<div id="outline-container-org8967cd8" class="outline-2">
|
||||
<h2 id="org8967cd8"><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-org9f0fd29" class="outline-3">
|
||||
<h3 id="org9f0fd29"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org6afd043" class="outline-3">
|
||||
<h3 id="org6afd043"><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-org3b4108d" class="outline-3">
|
||||
<h3 id="org3b4108d"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org156d185" class="outline-3">
|
||||
<h3 id="org156d185"><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-orgfd72f21" class="outline-3">
|
||||
<h3 id="orgfd72f21"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div id="outline-container-org3cf75d8" class="outline-3">
|
||||
<h3 id="org3cf75d8"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
This test is mainly for the Jastrow factor and was supplied by
|
||||
@ -60573,7 +60573,7 @@ Ramon Panades Baruetta.
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="date">Created: 2022-01-06 Thu 18:02</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:05</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-01-06 Thu 18:02 -->
|
||||
<!-- 2022-01-06 Thu 18:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>TREXIO I/O library</title>
|
||||
@ -311,53 +311,53 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org63bc4d1">1. Local functions</a>
|
||||
<li><a href="#org4adaf0f">1. Local functions</a>
|
||||
<ul>
|
||||
<li><a href="#orga885375">1.1. Open file</a></li>
|
||||
<li><a href="#org2ff1a00">1.2. Electron</a></li>
|
||||
<li><a href="#orga9df40f">1.3. Nucleus</a>
|
||||
<li><a href="#orgcfaf512">1.1. Open file</a></li>
|
||||
<li><a href="#org2dee385">1.2. Electron</a></li>
|
||||
<li><a href="#org53c46e5">1.3. Nucleus</a>
|
||||
<ul>
|
||||
<li><a href="#org168796b">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#org26ec695">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org1e62078">1.3.3. Nuclear coordinates</a></li>
|
||||
<li><a href="#orgfbc036e">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#orgb05b31a">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org747f5f2">1.3.3. Nuclear coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3e03975">1.4. Basis set and AOs</a>
|
||||
<li><a href="#orgd9465c3">1.4. Basis set and AOs</a>
|
||||
<ul>
|
||||
<li><a href="#org3ee2796">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#orgd4de8bf">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org9a59596">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#org7aeff8b">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org117727a">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org73ada45">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#org04ea439">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org35a7392">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#orgd3032b7">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#org2ed8e96">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org090dc51">1.4.11. Exponents</a></li>
|
||||
<li><a href="#orga8a2267">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#org75ade07">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org95c27bc">1.4.14. AO Normalization</a></li>
|
||||
<li><a href="#org966bd57">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#orga37b87d">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#orgb7ced72">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#orge89266c">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org623eda0">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org11e6558">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#orgdcdb84c">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#orgec35448">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#orga3f87ba">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#orga493189">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org3ceae79">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org391080e">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#orgc0af71b">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org8bed7ff">1.4.14. AO Normalization</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2fa8b13">1.5. Molecular orbitals</a>
|
||||
<li><a href="#org39a378b">1.5. Molecular orbitals</a>
|
||||
<ul>
|
||||
<li><a href="#orgf4b12a2">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#org0b44e4b">1.5.2. MO coefficients</a></li>
|
||||
<li><a href="#orge5c028a">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#org6f80899">1.5.2. MO coefficients</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org77d2ead">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
<li><a href="#org401da10">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org227674f">2. Read everything</a></li>
|
||||
<li><a href="#org64c44e2">3. Test</a>
|
||||
<li><a href="#orga50baa5">2. Read everything</a></li>
|
||||
<li><a href="#org837ee27">3. Test</a>
|
||||
<ul>
|
||||
<li>
|
||||
<ul>
|
||||
<li><a href="#org4036c13">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org22472d1">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#org596f368">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org5232690">3.0.4. MO Basis</a></li>
|
||||
<li><a href="#org3c1bab5">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org80b3203">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#orgee003b1">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org03c9023">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-org63bc4d1" class="outline-2">
|
||||
<h2 id="org63bc4d1"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div id="outline-container-org4adaf0f" class="outline-2">
|
||||
<h2 id="org4adaf0f"><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-orga885375" class="outline-3">
|
||||
<h3 id="orga885375"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div id="outline-container-orgcfaf512" class="outline-3">
|
||||
<h3 id="orgcfaf512"><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
|
||||
@ -423,8 +423,8 @@ groups of data by passing the <code>trexio_t</code> handle.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2ff1a00" class="outline-3">
|
||||
<h3 id="org2ff1a00"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div id="outline-container-org2dee385" class="outline-3">
|
||||
<h3 id="org2dee385"><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.
|
||||
@ -475,8 +475,8 @@ We read the number of up-spin and down-spin electrons.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga9df40f" class="outline-3">
|
||||
<h3 id="orga9df40f"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div id="outline-container-org53c46e5" class="outline-3">
|
||||
<h3 id="org53c46e5"><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.
|
||||
@ -496,8 +496,8 @@ In this section we read the number of nuclei, the molecular geometry and nuclear
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org168796b" class="outline-4">
|
||||
<h4 id="org168796b"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div id="outline-container-orgfbc036e" class="outline-4">
|
||||
<h4 id="orgfbc036e"><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;
|
||||
@ -520,8 +520,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org26ec695" class="outline-4">
|
||||
<h4 id="org26ec695"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div id="outline-container-orgb05b31a" class="outline-4">
|
||||
<h4 id="orgb05b31a"><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">{
|
||||
@ -562,8 +562,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1e62078" class="outline-4">
|
||||
<h4 id="org1e62078"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div id="outline-container-org747f5f2" class="outline-4">
|
||||
<h4 id="org747f5f2"><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
|
||||
@ -619,8 +619,8 @@ in the TREXIO file (<code>'N'</code>), so it will be automatically transposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3e03975" class="outline-3">
|
||||
<h3 id="org3e03975"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div id="outline-container-orgd9465c3" class="outline-3">
|
||||
<h3 id="orgd9465c3"><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.
|
||||
@ -646,8 +646,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3ee2796" class="outline-4">
|
||||
<h4 id="org3ee2796"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div id="outline-container-org966bd57" class="outline-4">
|
||||
<h4 id="org966bd57"><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
|
||||
@ -678,8 +678,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd4de8bf" class="outline-4">
|
||||
<h4 id="orgd4de8bf"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div id="outline-container-orga37b87d" class="outline-4">
|
||||
<h4 id="orga37b87d"><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;
|
||||
@ -703,8 +703,8 @@ rc = qmckl_set_ao_basis_shell_num(context, shell_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9a59596" class="outline-4">
|
||||
<h4 id="org9a59596"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div id="outline-container-orgb7ced72" class="outline-4">
|
||||
<h4 id="orgb7ced72"><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;
|
||||
@ -728,8 +728,8 @@ rc = qmckl_set_ao_basis_prim_num(context, prim_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7aeff8b" class="outline-4">
|
||||
<h4 id="org7aeff8b"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div id="outline-container-orge89266c" class="outline-4">
|
||||
<h4 id="orge89266c"><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;
|
||||
@ -753,8 +753,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org117727a" class="outline-4">
|
||||
<h4 id="org117727a"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div id="outline-container-org623eda0" class="outline-4">
|
||||
<h4 id="org623eda0"><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">{
|
||||
@ -836,8 +836,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org73ada45" class="outline-4">
|
||||
<h4 id="org73ada45"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div id="outline-container-org11e6558" class="outline-4">
|
||||
<h4 id="org11e6558"><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">{
|
||||
@ -922,8 +922,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org04ea439" class="outline-4">
|
||||
<h4 id="org04ea439"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div id="outline-container-orgdcdb84c" class="outline-4">
|
||||
<h4 id="orgdcdb84c"><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">{
|
||||
@ -968,8 +968,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org35a7392" class="outline-4">
|
||||
<h4 id="org35a7392"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
||||
<div id="outline-container-orgec35448" class="outline-4">
|
||||
<h4 id="orgec35448"><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">{
|
||||
@ -1053,8 +1053,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd3032b7" class="outline-4">
|
||||
<h4 id="orgd3032b7"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
||||
<div id="outline-container-orga3f87ba" class="outline-4">
|
||||
<h4 id="orga3f87ba"><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">{
|
||||
@ -1134,8 +1134,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2ed8e96" class="outline-4">
|
||||
<h4 id="org2ed8e96"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
||||
<div id="outline-container-orga493189" class="outline-4">
|
||||
<h4 id="orga493189"><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">{
|
||||
@ -1180,8 +1180,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org090dc51" class="outline-4">
|
||||
<h4 id="org090dc51"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||
<div id="outline-container-org3ceae79" class="outline-4">
|
||||
<h4 id="org3ceae79"><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">{
|
||||
@ -1226,8 +1226,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga8a2267" class="outline-4">
|
||||
<h4 id="orga8a2267"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||
<div id="outline-container-org391080e" class="outline-4">
|
||||
<h4 id="org391080e"><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">{
|
||||
@ -1272,8 +1272,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org75ade07" class="outline-4">
|
||||
<h4 id="org75ade07"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
||||
<div id="outline-container-orgc0af71b" class="outline-4">
|
||||
<h4 id="orgc0af71b"><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">{
|
||||
@ -1318,8 +1318,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org95c27bc" class="outline-4">
|
||||
<h4 id="org95c27bc"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||
<div id="outline-container-org8bed7ff" class="outline-4">
|
||||
<h4 id="org8bed7ff"><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">{
|
||||
@ -1374,8 +1374,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org2fa8b13" class="outline-3">
|
||||
<h3 id="org2fa8b13"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org39a378b" class="outline-3">
|
||||
<h3 id="org39a378b"><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.
|
||||
@ -1401,8 +1401,8 @@ In this section we read the MO coefficients.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf4b12a2" class="outline-4">
|
||||
<h4 id="orgf4b12a2"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
||||
<div id="outline-container-orge5c028a" class="outline-4">
|
||||
<h4 id="orge5c028a"><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;
|
||||
@ -1425,8 +1425,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0b44e4b" class="outline-4">
|
||||
<h4 id="org0b44e4b"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||
<div id="outline-container-org6f80899" class="outline-4">
|
||||
<h4 id="org6f80899"><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">{
|
||||
@ -1475,12 +1475,12 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org77d2ead" class="outline-3">
|
||||
<h3 id="org77d2ead"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
<div id="outline-container-org401da10" class="outline-3">
|
||||
<h3 id="org401da10"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org227674f" class="outline-2">
|
||||
<h2 id="org227674f"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div id="outline-container-orga50baa5" class="outline-2">
|
||||
<h2 id="orga50baa5"><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> <span style="color: #0000ff;">qmckl_trexio_read</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #a020f0;">const</span> <span style="color: #228b22;">char</span>* <span style="color: #a0522d;">file_name</span>);
|
||||
@ -1561,8 +1561,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org64c44e2" class="outline-2">
|
||||
<h2 id="org64c44e2"><span class="section-number-2">3</span> Test</h2>
|
||||
<div id="outline-container-org837ee27" class="outline-2">
|
||||
<h2 id="org837ee27"><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
|
||||
@ -1596,8 +1596,8 @@ rc = qmckl_trexio_read(context, fname);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4036c13" class="outline-4">
|
||||
<h4 id="org4036c13"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||
<div id="outline-container-org3c1bab5" class="outline-4">
|
||||
<h4 id="org3c1bab5"><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>);
|
||||
@ -1615,8 +1615,8 @@ rc = qmckl_get_electron_down_num(context, &dn_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org22472d1" class="outline-4">
|
||||
<h4 id="org22472d1"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||
<div id="outline-container-org80b3203" class="outline-4">
|
||||
<h4 id="org80b3203"><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>);
|
||||
@ -1656,8 +1656,8 @@ coord = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org596f368" class="outline-4">
|
||||
<h4 id="org596f368"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||
<div id="outline-container-orgee003b1" class="outline-4">
|
||||
<h4 id="orgee003b1"><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>);
|
||||
@ -1765,8 +1765,8 @@ prim_factor = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5232690" class="outline-4">
|
||||
<h4 id="org5232690"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div id="outline-container-org03c9023" class="outline-4">
|
||||
<h4 id="org03c9023"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div class="outline-text-4" id="text-3-0-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">printf(<span style="color: #8b2252;">"MOs\n"</span>);
|
||||
@ -1796,7 +1796,7 @@ charge = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:02</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:05</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-01-06 Thu 18:02 -->
|
||||
<!-- 2022-01-06 Thu 18:06 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Utility functions</title>
|
||||
@ -333,13 +333,13 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgdba3005">1. Matrix operations</a>
|
||||
<li><a href="#org9b5ddb8">1. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#orged2fc09">1.1. <code>qmckl_transpose</code></a>
|
||||
<li><a href="#org4f8aa48">1.1. <code>qmckl_transpose</code></a>
|
||||
<ul>
|
||||
<li><a href="#org1f51206">1.1.1. Requirements</a></li>
|
||||
<li><a href="#orgf004656">1.1.2. C header</a></li>
|
||||
<li><a href="#org59709a2">1.1.3. Source</a></li>
|
||||
<li><a href="#org09874fd">1.1.1. Requirements</a></li>
|
||||
<li><a href="#orga987ddd">1.1.2. C header</a></li>
|
||||
<li><a href="#org6160624">1.1.3. Source</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -348,18 +348,18 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdba3005" class="outline-2">
|
||||
<h2 id="orgdba3005"><span class="section-number-2">1</span> Matrix operations</h2>
|
||||
<div id="outline-container-org9b5ddb8" class="outline-2">
|
||||
<h2 id="org9b5ddb8"><span class="section-number-2">1</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-orged2fc09" class="outline-3">
|
||||
<h3 id="orged2fc09"><span class="section-number-3">1.1</span> <code>qmckl_transpose</code></h3>
|
||||
<div id="outline-container-org4f8aa48" class="outline-3">
|
||||
<h3 id="org4f8aa48"><span class="section-number-3">1.1</span> <code>qmckl_transpose</code></h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</p>
|
||||
|
||||
<table id="org09de381" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgdd19d64" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -424,8 +424,8 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1f51206" class="outline-4">
|
||||
<h4 id="org1f51206"><span class="section-number-4">1.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org09874fd" class="outline-4">
|
||||
<h4 id="org09874fd"><span class="section-number-4">1.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-1-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -439,8 +439,8 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf004656" class="outline-4">
|
||||
<h4 id="orgf004656"><span class="section-number-4">1.1.2</span> C header</h4>
|
||||
<div id="outline-container-orga987ddd" class="outline-4">
|
||||
<h4 id="orga987ddd"><span class="section-number-4">1.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-1-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_transpose</span> (
|
||||
@ -456,8 +456,8 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org59709a2" class="outline-4">
|
||||
<h4 id="org59709a2"><span class="section-number-4">1.1.3</span> Source</h4>
|
||||
<div id="outline-container-org6160624" class="outline-4">
|
||||
<h4 id="org6160624"><span class="section-number-4">1.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-1-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer </span><span style="color: #a020f0;">function</span><span style="color: #a0522d;"> </span><span style="color: #0000ff;">qmckl_transpose_f</span><span style="color: #000000; background-color: #ffffff;">(context, m, n, A, LDA, B, LDB)</span><span style="color: #a0522d;"> </span><span style="color: #a020f0;">&</span>
|
||||
@ -516,7 +516,7 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:02</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:06</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-01-06 Thu 18:02 -->
|
||||
<!-- 2022-01-06 Thu 18:05 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Verificarlo CI</title>
|
||||
@ -311,22 +311,22 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgca3a21d">1. Verificarlo probes</a>
|
||||
<li><a href="#org4335cf1">1. Verificarlo probes</a>
|
||||
<ul>
|
||||
<li><a href="#org0dc7e9a">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org0a69eb7">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org216dc79">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#org5aa5ea1">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org9b3373c">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#orgc1451aa">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org7ef1160">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#orgb79b847">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#orgdffdf69">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org027c676">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="#org299b5af">2. Fortran wrappers</a></li>
|
||||
<li><a href="#orgf703406">2. Fortran wrappers</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgca3a21d" class="outline-2">
|
||||
<h2 id="orgca3a21d"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div id="outline-container-org4335cf1" class="outline-2">
|
||||
<h2 id="org4335cf1"><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-org0dc7e9a" class="outline-3">
|
||||
<h3 id="org0dc7e9a"><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-orgc1451aa" class="outline-3">
|
||||
<h3 id="orgc1451aa"><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: #483d8b;">#ifdef</span> VFC_CI
|
||||
@ -398,8 +398,8 @@ To learn more about Verificarlo CI :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0a69eb7" class="outline-3">
|
||||
<h3 id="org0a69eb7"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div id="outline-container-org7ef1160" class="outline-3">
|
||||
<h3 id="org7ef1160"><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>
|
||||
@ -434,8 +434,8 @@ if <code>VFC_CI</code> is undefined, return <code>false</code> (no error)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org216dc79" class="outline-3">
|
||||
<h3 id="org216dc79"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div id="outline-container-orgb79b847" class="outline-3">
|
||||
<h3 id="orgb79b847"><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>
|
||||
@ -475,8 +475,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5aa5ea1" class="outline-3">
|
||||
<h3 id="org5aa5ea1"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div id="outline-container-orgdffdf69" class="outline-3">
|
||||
<h3 id="orgdffdf69"><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>
|
||||
@ -516,8 +516,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9b3373c" class="outline-3">
|
||||
<h3 id="org9b3373c"><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-org027c676" class="outline-3">
|
||||
<h3 id="org027c676"><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: #483d8b;">#ifdef</span> VFC_CI
|
||||
@ -538,8 +538,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org299b5af" class="outline-2">
|
||||
<h2 id="org299b5af"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||
<div id="outline-container-orgf703406" class="outline-2">
|
||||
<h2 id="orgf703406"><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>(
|
||||
@ -663,7 +663,7 @@ and accuracy
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:02</p>
|
||||
<p class="date">Created: 2022-01-06 Thu 18:05</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user