mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-08-24 22:21:46 +02:00
Deploying to gh-pages from @ TREX-CoE/qmckl@5fffb52513 🚀
This commit is contained in:
parent
876876766c
commit
4de68c1834
@ -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-08-17 Wed 11:43 -->
|
||||
<!-- 2022-08-18 Thu 14:17 -->
|
||||
<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>
|
||||
@ -362,7 +362,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-08-17 Wed 11:43</p>
|
||||
<p class="date">Created: 2022-08-18 Thu 14:17</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
118
qmckl.html
118
qmckl.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-08-17 Wed 11:43 -->
|
||||
<!-- 2022-08-18 Thu 14:17 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Introduction</title>
|
||||
@ -333,36 +333,36 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org95573eb">1. Installing QMCkl</a>
|
||||
<li><a href="#orgbd1420e">1. Installing QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#org968ad50">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org73db5f3">1.2. Installing from the source repository (for developers)</a></li>
|
||||
<li><a href="#orgd8d7a18">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org4f257d7">1.2. Installing from the source repository (for developers)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7df4d78">2. Using QMCkl</a></li>
|
||||
<li><a href="#org608b765">3. Developing in QMCkl</a>
|
||||
<li><a href="#org6341d51">2. Using QMCkl</a></li>
|
||||
<li><a href="#org48e35e7">3. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#org891450b">3.1. Literate programming</a></li>
|
||||
<li><a href="#org93af67f">3.2. Source code editing</a></li>
|
||||
<li><a href="#orgf36830d">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org1ae4ee0">3.4. Coding rules</a></li>
|
||||
<li><a href="#orgb725f18">3.5. Design of the library</a></li>
|
||||
<li><a href="#org8247cc0">3.6. Naming conventions</a></li>
|
||||
<li><a href="#org0ba0a5e">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org5d71ca7">3.8. Global state</a></li>
|
||||
<li><a href="#org8f01889">3.9. Headers</a></li>
|
||||
<li><a href="#orgaac913f">3.10. Low-level functions</a></li>
|
||||
<li><a href="#orge414d03">3.11. High-level functions</a></li>
|
||||
<li><a href="#org77d502c">3.12. Numerical precision</a></li>
|
||||
<li><a href="#orgb9e2f9c">3.13. Algorithms</a></li>
|
||||
<li><a href="#org523be8e">3.1. Literate programming</a></li>
|
||||
<li><a href="#orgc2438ba">3.2. Source code editing</a></li>
|
||||
<li><a href="#org1ea40c1">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org0919118">3.4. Coding rules</a></li>
|
||||
<li><a href="#orgc676e62">3.5. Design of the library</a></li>
|
||||
<li><a href="#org67b3231">3.6. Naming conventions</a></li>
|
||||
<li><a href="#org3e540df">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org2a79b03">3.8. Global state</a></li>
|
||||
<li><a href="#org8207beb">3.9. Headers</a></li>
|
||||
<li><a href="#org5783c46">3.10. Low-level functions</a></li>
|
||||
<li><a href="#orgc168bf3">3.11. High-level functions</a></li>
|
||||
<li><a href="#org40ed72e">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org8959213">3.13. Algorithms</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org95573eb" class="outline-2">
|
||||
<h2 id="org95573eb"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div id="outline-container-orgbd1420e" class="outline-2">
|
||||
<h2 id="orgbd1420e"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The latest version fo QMCkl can be downloaded
|
||||
@ -371,8 +371,8 @@ The latest version fo QMCkl can be downloaded
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org968ad50" class="outline-3">
|
||||
<h3 id="org968ad50"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div id="outline-container-orgd8d7a18" class="outline-3">
|
||||
<h3 id="orgd8d7a18"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
QMCkl is built with GNU Autotools, so the usual
|
||||
@ -387,8 +387,8 @@ options are defined using <code>CFLAGS</code> and <code>FCFLAGS</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org73db5f3" class="outline-3">
|
||||
<h3 id="org73db5f3"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div id="outline-container-org4f257d7" class="outline-3">
|
||||
<h3 id="org4f257d7"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To compile from the source repository, additional dependencies are
|
||||
@ -409,8 +409,8 @@ to be executed first.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7df4d78" class="outline-2">
|
||||
<h2 id="org7df4d78"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div id="outline-container-org6341d51" class="outline-2">
|
||||
<h2 id="org6341d51"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The <code>qmckl.h</code> header file installed in the <code>${prefix}/include</code> directory
|
||||
@ -439,12 +439,12 @@ Both files are located in the <code>include/</code> directory.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org608b765" class="outline-2">
|
||||
<h2 id="org608b765"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-org48e35e7" class="outline-2">
|
||||
<h2 id="org48e35e7"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org891450b" class="outline-3">
|
||||
<h3 id="org891450b"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div id="outline-container-org523be8e" class="outline-3">
|
||||
<h3 id="org523be8e"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
In a traditional source code, most of the lines of source files of a program
|
||||
@ -494,8 +494,8 @@ tarball contains the generated source code.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org93af67f" class="outline-3">
|
||||
<h3 id="org93af67f"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div id="outline-container-orgc2438ba" class="outline-3">
|
||||
<h3 id="orgc2438ba"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<p>
|
||||
For a tutorial on literate programming with org-mode, follow <a href="http://www.howardism.org/Technical/Emacs/literate-programming-tutorial.html">this link</a>.
|
||||
@ -526,8 +526,8 @@ org-mode.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf36830d" class="outline-3">
|
||||
<h3 id="orgf36830d"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-org1ea40c1" class="outline-3">
|
||||
<h3 id="org1ea40c1"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<p>
|
||||
Most of the codes of the <a href="https://trex-coe.eu">TREX CoE</a> are written in Fortran with some
|
||||
@ -591,8 +591,8 @@ For more guidelines on using Fortran to generate a C interface, see
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1ae4ee0" class="outline-3">
|
||||
<h3 id="org1ae4ee0"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div id="outline-container-org0919118" class="outline-3">
|
||||
<h3 id="org0919118"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div class="outline-text-3" id="text-3-4">
|
||||
<p>
|
||||
The authors should follow the recommendations of the C99
|
||||
@ -612,8 +612,8 @@ make cppcheck ; cat cppcheck.out
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb725f18" class="outline-3">
|
||||
<h3 id="orgb725f18"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div id="outline-container-orgc676e62" class="outline-3">
|
||||
<h3 id="orgc676e62"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div class="outline-text-3" id="text-3-5">
|
||||
<p>
|
||||
The proposed API should allow the library to: deal with memory transfers
|
||||
@ -624,8 +624,8 @@ functions (see below).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8247cc0" class="outline-3">
|
||||
<h3 id="org8247cc0"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-org67b3231" class="outline-3">
|
||||
<h3 id="org67b3231"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div class="outline-text-3" id="text-3-6">
|
||||
<p>
|
||||
To avoid namespace collisions, we use <code>qmckl_</code> as a prefix for all exported
|
||||
@ -646,8 +646,8 @@ form is allowed.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0ba0a5e" class="outline-3">
|
||||
<h3 id="org0ba0a5e"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-org3e540df" class="outline-3">
|
||||
<h3 id="org3e540df"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div class="outline-text-3" id="text-3-7">
|
||||
<p>
|
||||
In the C language, the number of bits used by the integer types can change
|
||||
@ -679,15 +679,15 @@ bindings in other languages in other repositories.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5d71ca7" class="outline-3">
|
||||
<h3 id="org5d71ca7"><span class="section-number-3">3.8</span> Global state</h3>
|
||||
<div id="outline-container-org2a79b03" class="outline-3">
|
||||
<h3 id="org2a79b03"><span class="section-number-3">3.8</span> Global state</h3>
|
||||
<div class="outline-text-3" id="text-3-8">
|
||||
<p>
|
||||
Global variables should be avoided in the library, because it is
|
||||
possible that one single program needs to use multiple instances
|
||||
of the library. To solve this problem we propose to use a pointer
|
||||
to a <a href="./qmckl_context.html"><code>context</code></a> variable, built by the library with the
|
||||
<code>qmckl_context_create</code> function. The <a id="org762accf">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="org80c81d0">=context=</a> contains the global
|
||||
state of the library, and is used as the first argument of many
|
||||
QMCkl functions.
|
||||
</p>
|
||||
@ -701,8 +701,8 @@ the state is done by setters and getters, prefixed by
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8f01889" class="outline-3">
|
||||
<h3 id="org8f01889"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div id="outline-container-org8207beb" class="outline-3">
|
||||
<h3 id="org8207beb"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div class="outline-text-3" id="text-3-9">
|
||||
<p>
|
||||
A single <code>qmckl.h</code> header to be distributed by the library
|
||||
@ -790,8 +790,8 @@ and the types definitions should be written in the <code>*fh_type.f90</code> fil
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaac913f" class="outline-3">
|
||||
<h3 id="orgaac913f"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-org5783c46" class="outline-3">
|
||||
<h3 id="org5783c46"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div class="outline-text-3" id="text-3-10">
|
||||
<p>
|
||||
Low-level functions are very simple functions which are leaves of
|
||||
@ -800,14 +800,14 @@ the function call tree (they don't call any other QMCkl function).
|
||||
|
||||
<p>
|
||||
These functions are <i>pure</i>, and unaware of the QMCkl
|
||||
<a href="#org762accf"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#org80c81d0"><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-orge414d03" class="outline-3">
|
||||
<h3 id="orge414d03"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div id="outline-container-orgc168bf3" class="outline-3">
|
||||
<h3 id="orgc168bf3"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div class="outline-text-3" id="text-3-11">
|
||||
<p>
|
||||
High-level functions are at the top of the function call tree.
|
||||
@ -819,8 +819,8 @@ temporary storage, to simplify the use of accelerators.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org77d502c" class="outline-3">
|
||||
<h3 id="org77d502c"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-org40ed72e" class="outline-3">
|
||||
<h3 id="org40ed72e"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div class="outline-text-3" id="text-3-12">
|
||||
<p>
|
||||
The minimal number of bits of precision required for a function
|
||||
@ -828,7 +828,7 @@ should be given as an input of low-level computational
|
||||
functions. This input will be used to define the values of the
|
||||
different thresholds that might be used to avoid computing
|
||||
unnecessary noise. High-level functions will use the precision
|
||||
specified in the <a href="#org762accf"><code>context</code></a> variable.
|
||||
specified in the <a href="#org80c81d0"><code>context</code></a> variable.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -896,8 +896,8 @@ following points :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb9e2f9c" class="outline-3">
|
||||
<h3 id="orgb9e2f9c"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div id="outline-container-org8959213" class="outline-3">
|
||||
<h3 id="org8959213"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div class="outline-text-3" id="text-3-13">
|
||||
<p>
|
||||
Reducing the scaling of an algorithm usually implies also reducing
|
||||
@ -913,7 +913,7 @@ implemented adapted to different problem sizes.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-08-17 Wed 11:43</p>
|
||||
<p class="date">Created: 2022-08-18 Thu 14:17</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
212
qmckl_ao.html
212
qmckl_ao.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-08-17 Wed 11:43 -->
|
||||
<!-- 2022-08-18 Thu 14:18 -->
|
||||
<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,61 +333,61 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org731e8d0">1. Introduction</a></li>
|
||||
<li><a href="#orgc9a4b6e">2. Context</a>
|
||||
<li><a href="#orga868182">1. Introduction</a></li>
|
||||
<li><a href="#org2bd5f27">2. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org3f15b24">2.1. Constant data</a>
|
||||
<li><a href="#org6e5e9fc">2.1. Constant data</a>
|
||||
<ul>
|
||||
<li><a href="#org52ed234">2.1.1. Initialization functions</a>
|
||||
<li><a href="#orgea91fd4">2.1.1. Initialization functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgf1a227b">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#orgbeb7fb0">2.1.1.2. Fortran interface</a></li>
|
||||
<li><a href="#org5d86f59">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org1354a91">2.1.1.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd827250">2.1.2. Access functions</a>
|
||||
<li><a href="#org8a1c72c">2.1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org4cf445b">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org6675582">2.1.2.2. Fortran interface</a></li>
|
||||
<li><a href="#orgfe160b9">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org48e8d51">2.1.2.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1b1f4d5">2.2. Computed data</a>
|
||||
<li><a href="#org22aee06">2.2. Computed data</a>
|
||||
<ul>
|
||||
<li><a href="#org98dca21">2.2.1. After initialization</a></li>
|
||||
<li><a href="#orgb6da1bb">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#orgd3b64dc">2.2.3. Access functions</a></li>
|
||||
<li><a href="#orga736d3e">2.2.1. After initialization</a></li>
|
||||
<li><a href="#orgbe23801">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#org6ebdde6">2.2.3. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7d5daad">3. Radial part</a>
|
||||
<li><a href="#org6e0c2cd">3. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#org3df02ae">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org6ef7a65">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org963aca9">3.3. Computation of shells</a></li>
|
||||
<li><a href="#org201c84d">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org16b080a">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org6b8b8c2">3.3. Computation of shells</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org841556c">4. Polynomial part</a>
|
||||
<li><a href="#orgd5f28f6">4. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#org907b363">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org74dbf65">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
<li><a href="#org7d7368b">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org1af553d">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge7a4ea2">5. Combining radial and polynomial parts</a>
|
||||
<li><a href="#orgd3788f6">5. Combining radial and polynomial parts</a>
|
||||
<ul>
|
||||
<li><a href="#org270f9fa">5.1. Values only</a>
|
||||
<li><a href="#orgea3b538">5.1. Values only</a>
|
||||
<ul>
|
||||
<li><a href="#orgacec904">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#orgc069d07">5.1.2. HPC version</a></li>
|
||||
<li><a href="#orgda107b5">5.1.3. Interfaces</a></li>
|
||||
<li><a href="#org4aa0283">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#org5ba7d3f">5.1.2. HPC version</a></li>
|
||||
<li><a href="#org9b0483b">5.1.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf72ec44">5.2. Value, gradients, Laplacian</a>
|
||||
<li><a href="#org990daab">5.2. Value, gradients, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#orga766311">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#org5501cf9">5.2.2. HPC version</a></li>
|
||||
<li><a href="#org27f853d">5.2.3. Interfaces</a></li>
|
||||
<li><a href="#org202e3e1">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#org6bff59a">5.2.2. HPC version</a></li>
|
||||
<li><a href="#org646ae7d">5.2.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -396,8 +396,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org731e8d0" class="outline-2">
|
||||
<h2 id="org731e8d0"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div id="outline-container-orga868182" class="outline-2">
|
||||
<h2 id="orga868182"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The atomic basis set is defined as a list of shells. Each shell \(s\) is
|
||||
@ -450,19 +450,19 @@ gradients and Laplacian of the atomic basis functions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc9a4b6e" class="outline-2">
|
||||
<h2 id="orgc9a4b6e"><span class="section-number-2">2</span> Context</h2>
|
||||
<div id="outline-container-org2bd5f27" class="outline-2">
|
||||
<h2 id="org2bd5f27"><span class="section-number-2">2</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org3f15b24" class="outline-3">
|
||||
<h3 id="org3f15b24"><span class="section-number-3">2.1</span> Constant data</h3>
|
||||
<div id="outline-container-org6e5e9fc" class="outline-3">
|
||||
<h3 id="org6e5e9fc"><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="org5ac77eb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org226cd19" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -636,7 +636,7 @@ calling the functions:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="org0456267"><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="orge066ab8"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_set_ao_basis_$V$</span> ( <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> $type_of_V$ $V$);
|
||||
|
||||
<span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_ao_basis_$V$</span> ( <span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
@ -673,7 +673,7 @@ For array variables, use the rule:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="orgb3a9758"><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="orga52546f"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_set_ao_basis_$V$</span> ( <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> $type_of_V$ $V$,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">size_max</span>);
|
||||
|
||||
@ -711,17 +711,17 @@ For array variables, use the rule:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org52ed234" class="outline-4">
|
||||
<h4 id="org52ed234"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
||||
<div id="outline-container-orgea91fd4" class="outline-4">
|
||||
<h4 id="orgea91fd4"><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="#orgc9a4b6e">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org2bd5f27">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf1a227b" class="outline-5">
|
||||
<h5 id="orgf1a227b"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div id="outline-container-org5d86f59" class="outline-5">
|
||||
<h5 id="org5d86f59"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-1-1">
|
||||
<p>
|
||||
To set the basis set, all the following functions need to be
|
||||
@ -845,8 +845,8 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbeb7fb0" class="outline-5">
|
||||
<h5 id="orgbeb7fb0"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org1354a91" class="outline-5">
|
||||
<h5 id="org1354a91"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #a020f0;">interface</span>
|
||||
@ -1029,17 +1029,17 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd827250" class="outline-4">
|
||||
<h4 id="orgd827250"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
||||
<div id="outline-container-org8a1c72c" class="outline-4">
|
||||
<h4 id="org8a1c72c"><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="#orgc9a4b6e">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org2bd5f27">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4cf445b" class="outline-5">
|
||||
<h5 id="org4cf445b"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div id="outline-container-orgfe160b9" class="outline-5">
|
||||
<h5 id="orgfe160b9"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1161,8 +1161,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6675582" class="outline-5">
|
||||
<h5 id="org6675582"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org48e8d51" class="outline-5">
|
||||
<h5 id="org48e8d51"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-2-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #a020f0;">interface</span>
|
||||
@ -1346,8 +1346,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1b1f4d5" class="outline-3">
|
||||
<h3 id="org1b1f4d5"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div id="outline-container-org22aee06" class="outline-3">
|
||||
<h3 id="org22aee06"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
The following data is computed as described in the next sections:
|
||||
@ -1422,8 +1422,8 @@ The following data is computed as described in the next sections:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org98dca21" class="outline-4">
|
||||
<h4 id="org98dca21"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div id="outline-container-orga736d3e" class="outline-4">
|
||||
<h4 id="orga736d3e"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<p>
|
||||
When the basis set is completely entered, extra data structures may be
|
||||
@ -1437,8 +1437,8 @@ the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb6da1bb" class="outline-4">
|
||||
<h4 id="orgb6da1bb"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
||||
<div id="outline-container-orgbe23801" class="outline-4">
|
||||
<h4 id="orgbe23801"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<p>
|
||||
For faster access, we provide extra arrays for the shell information as:
|
||||
@ -1468,8 +1468,8 @@ which is a matrix-vector product.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd3b64dc" class="outline-4">
|
||||
<h4 id="orgd3b64dc"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||
<div id="outline-container-org6ebdde6" class="outline-4">
|
||||
<h4 id="org6ebdde6"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1482,7 +1482,7 @@ which is a matrix-vector product.
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of primitive
|
||||
basis functions evaluated at the current coordinates.
|
||||
See section <a href="#org6ef7a65">3.2</a>.
|
||||
See section <a href="#org16b080a">3.2</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1495,7 +1495,7 @@ See section <a href="#org6ef7a65">3.2</a>.
|
||||
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of contracted shells
|
||||
evaluated at the current coordinates. See section <a href="#org963aca9">3.3</a>.
|
||||
evaluated at the current coordinates. See section <a href="#org6b8b8c2">3.3</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1509,7 +1509,7 @@ evaluated at the current coordinates. See section <a href="#org963aca9">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="#orge7a4ea2">5</a>.
|
||||
See section <a href="#orgd3788f6">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1534,7 +1534,7 @@ Uses the given array to compute the VGL.
|
||||
|
||||
<p>
|
||||
Returns the array of values of the atomic orbitals evaluated at
|
||||
the current coordinates. See section <a href="#orge7a4ea2">5</a>.
|
||||
the current coordinates. See section <a href="#orgd3788f6">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1553,12 +1553,12 @@ Uses the given array to compute the value.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7d5daad" class="outline-2">
|
||||
<h2 id="org7d5daad"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div id="outline-container-org6e0c2cd" class="outline-2">
|
||||
<h2 id="org6e0c2cd"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org3df02ae" class="outline-3">
|
||||
<h3 id="org3df02ae"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div id="outline-container-org201c84d" class="outline-3">
|
||||
<h3 id="org201c84d"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
<code>qmckl_ao_gaussian_vgl</code> computes the values, gradients and
|
||||
@ -1729,10 +1729,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6ef7a65" class="outline-3">
|
||||
<h3 id="org6ef7a65"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div id="outline-container-org16b080a" class="outline-3">
|
||||
<h3 id="org16b080a"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<table id="org191ec5c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org429e46c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1891,10 +1891,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org963aca9" class="outline-3">
|
||||
<h3 id="org963aca9"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div id="outline-container-org6b8b8c2" class="outline-3">
|
||||
<h3 id="org6b8b8c2"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<table id="org5dc1c03" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5b00988" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2146,8 +2146,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org841556c" class="outline-2">
|
||||
<h2 id="org841556c"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div id="outline-container-orgd5f28f6" class="outline-2">
|
||||
<h2 id="orgd5f28f6"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
Going from the atomic basis set to AOs implies a systematic
|
||||
@ -2167,8 +2167,8 @@ f & : & f_{xxx}, f_{xxy}, f_{xxz}, f_{xyy}, f_{xyz}, f_{xzz}, f_{yyy}, f_{yyz},
|
||||
\end{eqnarray}
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org907b363" class="outline-3">
|
||||
<h3 id="org907b363"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-org7d7368b" class="outline-3">
|
||||
<h3 id="org7d7368b"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
The <code>qmckl_ao_power</code> function computes all the powers of the <code>n</code>
|
||||
@ -2180,7 +2180,7 @@ the \(n\) points:
|
||||
\[ P_{ik} = X_i^k \]
|
||||
</p>
|
||||
|
||||
<table id="org103246e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc0cab34" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2318,8 +2318,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org74dbf65" class="outline-3">
|
||||
<h3 id="org74dbf65"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-org1af553d" class="outline-3">
|
||||
<h3 id="org1af553d"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div class="outline-text-3" id="text-4-2">
|
||||
<p>
|
||||
A polynomial is centered on a nucleus \(\mathbf{R}_i\)
|
||||
@ -2364,7 +2364,7 @@ Laplacians at a given point in space, of all polynomials with an
|
||||
angular momentum up to <code>lmax</code>.
|
||||
</p>
|
||||
|
||||
<table id="orgd12de5b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6479a06" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3128,18 +3128,18 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge7a4ea2" class="outline-2">
|
||||
<h2 id="orge7a4ea2"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div id="outline-container-orgd3788f6" class="outline-2">
|
||||
<h2 id="orgd3788f6"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
</div>
|
||||
<div id="outline-container-org270f9fa" class="outline-3">
|
||||
<h3 id="org270f9fa"><span class="section-number-3">5.1</span> Values only</h3>
|
||||
<div id="outline-container-orgea3b538" class="outline-3">
|
||||
<h3 id="orgea3b538"><span class="section-number-3">5.1</span> Values only</h3>
|
||||
<div class="outline-text-3" id="text-5-1">
|
||||
</div>
|
||||
<div id="outline-container-orgacec904" class="outline-4">
|
||||
<h4 id="orgacec904"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-org4aa0283" class="outline-4">
|
||||
<h4 id="org4aa0283"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-1">
|
||||
<table id="orga89288c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc75b7a8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3375,10 +3375,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc069d07" class="outline-4">
|
||||
<h4 id="orgc069d07"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div id="outline-container-org5ba7d3f" class="outline-4">
|
||||
<h4 id="org5ba7d3f"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-2">
|
||||
<table id="orgaa9e79b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org74d6507" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3536,8 +3536,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgda107b5" class="outline-4">
|
||||
<h4 id="orgda107b5"><span class="section-number-4">5.1.3</span> Interfaces</h4>
|
||||
<div id="outline-container-org9b0483b" class="outline-4">
|
||||
<h4 id="org9b0483b"><span class="section-number-4">5.1.3</span> Interfaces</h4>
|
||||
<div class="outline-text-4" id="text-5-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_compute_ao_value_doc</span> (
|
||||
@ -3586,14 +3586,14 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf72ec44" class="outline-3">
|
||||
<h3 id="orgf72ec44"><span class="section-number-3">5.2</span> Value, gradients, Laplacian</h3>
|
||||
<div id="outline-container-org990daab" class="outline-3">
|
||||
<h3 id="org990daab"><span class="section-number-3">5.2</span> Value, gradients, Laplacian</h3>
|
||||
<div class="outline-text-3" id="text-5-2">
|
||||
</div>
|
||||
<div id="outline-container-orga766311" class="outline-4">
|
||||
<h4 id="orga766311"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-org202e3e1" class="outline-4">
|
||||
<h4 id="org202e3e1"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-1">
|
||||
<table id="orgd4ac370" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2b6cdd0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3858,10 +3858,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5501cf9" class="outline-4">
|
||||
<h4 id="org5501cf9"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div id="outline-container-org6bff59a" class="outline-4">
|
||||
<h4 id="org6bff59a"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-2">
|
||||
<table id="org44185da" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org63eebc8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4020,8 +4020,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org27f853d" class="outline-4">
|
||||
<h4 id="org27f853d"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||
<div id="outline-container-org646ae7d" class="outline-4">
|
||||
<h4 id="org646ae7d"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||
<div class="outline-text-4" id="text-5-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_compute_ao_vgl_doc</span> (
|
||||
@ -4073,7 +4073,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-08-17 Wed 11:43</p>
|
||||
<p class="date">Created: 2022-08-18 Thu 14:18</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
150
qmckl_blas.html
150
qmckl_blas.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-08-17 Wed 11:43 -->
|
||||
<!-- 2022-08-18 Thu 14:17 -->
|
||||
<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,48 +333,48 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgc2e12a2">-</a></li>
|
||||
<li><a href="#orgdf5d07f">1. Data types</a>
|
||||
<li><a href="#org4ded4db">-</a></li>
|
||||
<li><a href="#orga4ba3af">1. Data types</a>
|
||||
<ul>
|
||||
<li><a href="#org5eb753e">1.1. Vector</a></li>
|
||||
<li><a href="#org37a5c4c">1.2. Matrix</a></li>
|
||||
<li><a href="#orgebeae62">1.3. Tensor</a></li>
|
||||
<li><a href="#org945206a">1.4. Reshaping</a>
|
||||
<li><a href="#orgf8e9e41">1.1. Vector</a></li>
|
||||
<li><a href="#orgdb03f07">1.2. Matrix</a></li>
|
||||
<li><a href="#orgfe9dab7">1.3. Tensor</a></li>
|
||||
<li><a href="#org74864ba">1.4. Reshaping</a>
|
||||
<ul>
|
||||
<li><a href="#orgacfe83f">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#orga4caa30">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#org68fd92d">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#org61983b0">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#org8a85782">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#orgbe2b35e">1.4.6. Tensor -> Matrix</a></li>
|
||||
<li><a href="#orgcab4dab">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#orge741e5b">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#orgad9a32a">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#org8e768dc">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#orgceaae78">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#org999c842">1.4.6. Tensor -> Matrix</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org66dc0a2">1.5. Access macros</a></li>
|
||||
<li><a href="#org4457d39">1.6. Set all elements</a>
|
||||
<li><a href="#org9cf45e5">1.5. Access macros</a></li>
|
||||
<li><a href="#org5dbb112">1.6. Set all elements</a>
|
||||
<ul>
|
||||
<li><a href="#orgb01cbed">1.6.1. Vector</a></li>
|
||||
<li><a href="#orge551087">1.6.2. Matrix</a></li>
|
||||
<li><a href="#orga1bfdf0">1.6.3. Tensor</a></li>
|
||||
<li><a href="#orgeab48b4">1.6.1. Vector</a></li>
|
||||
<li><a href="#org9cf5aa4">1.6.2. Matrix</a></li>
|
||||
<li><a href="#orgc64ddaf">1.6.3. Tensor</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9c17893">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#orgfb404f2">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga977638">2. Matrix operations</a>
|
||||
<li><a href="#org7ae4586">2. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#orge2646a9">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#orgbdec448">2.2. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org4b985d5">2.3. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#org14fcafc">2.4. <code>qmckl_transpose</code></a></li>
|
||||
<li><a href="#orgfed01f3">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org6e4174d">2.2. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#orgb23b507">2.3. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#org40b5a1e">2.4. <code>qmckl_transpose</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc2e12a2" class="outline-2">
|
||||
<h2 id="orgc2e12a2">-</h2>
|
||||
<div class="outline-text-2" id="text-orgc2e12a2">
|
||||
<div id="outline-container-org4ded4db" class="outline-2">
|
||||
<h2 id="org4ded4db">-</h2>
|
||||
<div class="outline-text-2" id="text-org4ded4db">
|
||||
<p>
|
||||
Basic linear algebra data types and operations are described in this file.
|
||||
The data types are private, so that HPC implementations can use
|
||||
@ -388,12 +388,12 @@ are not intended to be passed to external codes.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdf5d07f" class="outline-2">
|
||||
<h2 id="orgdf5d07f"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div id="outline-container-orga4ba3af" class="outline-2">
|
||||
<h2 id="orga4ba3af"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org5eb753e" class="outline-3">
|
||||
<h3 id="org5eb753e"><span class="section-number-3">1.1</span> Vector</h3>
|
||||
<div id="outline-container-orgf8e9e41" class="outline-3">
|
||||
<h3 id="orgf8e9e41"><span class="section-number-3">1.1</span> Vector</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
@ -447,8 +447,8 @@ Allocates a new vector. If the allocation failed the size is zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org37a5c4c" class="outline-3">
|
||||
<h3 id="org37a5c4c"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||
<div id="outline-container-orgdb03f07" class="outline-3">
|
||||
<h3 id="orgdb03f07"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
@ -508,8 +508,8 @@ Allocates a new matrix. If the allocation failed the sizes are zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgebeae62" class="outline-3">
|
||||
<h3 id="orgebeae62"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||
<div id="outline-container-orgfe9dab7" class="outline-3">
|
||||
<h3 id="orgfe9dab7"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
@ -576,16 +576,16 @@ is zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org945206a" class="outline-3">
|
||||
<h3 id="org945206a"><span class="section-number-3">1.4</span> Reshaping</h3>
|
||||
<div id="outline-container-org74864ba" class="outline-3">
|
||||
<h3 id="org74864ba"><span class="section-number-3">1.4</span> Reshaping</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
Reshaping occurs in-place and the pointer to the data is copied.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgacfe83f" class="outline-4">
|
||||
<h4 id="orgacfe83f"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||
<div id="outline-container-orgcab4dab" class="outline-4">
|
||||
<h4 id="orgcab4dab"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||
<div class="outline-text-4" id="text-1-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||
@ -601,8 +601,8 @@ Reshapes a vector into a matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga4caa30" class="outline-4">
|
||||
<h4 id="orga4caa30"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||
<div id="outline-container-orge741e5b" class="outline-4">
|
||||
<h4 id="orge741e5b"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||
<div class="outline-text-4" id="text-1-4-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||
@ -618,8 +618,8 @@ Reshapes a vector into a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org68fd92d" class="outline-4">
|
||||
<h4 id="org68fd92d"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||
<div id="outline-container-orgad9a32a" class="outline-4">
|
||||
<h4 id="orgad9a32a"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||
<div class="outline-text-4" id="text-1-4-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||
@ -633,8 +633,8 @@ Reshapes a matrix into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org61983b0" class="outline-4">
|
||||
<h4 id="org61983b0"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||
<div id="outline-container-org8e768dc" class="outline-4">
|
||||
<h4 id="org8e768dc"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||
<div class="outline-text-4" id="text-1-4-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||
@ -650,8 +650,8 @@ Reshapes a matrix into a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8a85782" class="outline-4">
|
||||
<h4 id="org8a85782"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||
<div id="outline-container-orgceaae78" class="outline-4">
|
||||
<h4 id="orgceaae78"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||
<div class="outline-text-4" id="text-1-4-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||
@ -665,8 +665,8 @@ Reshapes a tensor into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbe2b35e" class="outline-4">
|
||||
<h4 id="orgbe2b35e"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||
<div id="outline-container-org999c842" class="outline-4">
|
||||
<h4 id="org999c842"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||
<div class="outline-text-4" id="text-1-4-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||
@ -683,8 +683,8 @@ Reshapes a tensor into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org66dc0a2" class="outline-3">
|
||||
<h3 id="org66dc0a2"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||
<div id="outline-container-org9cf45e5" class="outline-3">
|
||||
<h3 id="org9cf45e5"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
Macros are provided to ease the access to vectors, matrices and
|
||||
@ -708,12 +708,12 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4457d39" class="outline-3">
|
||||
<h3 id="org4457d39"><span class="section-number-3">1.6</span> Set all elements</h3>
|
||||
<div id="outline-container-org5dbb112" class="outline-3">
|
||||
<h3 id="org5dbb112"><span class="section-number-3">1.6</span> Set all elements</h3>
|
||||
<div class="outline-text-3" id="text-1-6">
|
||||
</div>
|
||||
<div id="outline-container-orgb01cbed" class="outline-4">
|
||||
<h4 id="orgb01cbed"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||
<div id="outline-container-orgeab48b4" class="outline-4">
|
||||
<h4 id="orgeab48b4"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||
<div class="outline-text-4" id="text-1-6-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||
@ -723,8 +723,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge551087" class="outline-4">
|
||||
<h4 id="orge551087"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||
<div id="outline-container-org9cf5aa4" class="outline-4">
|
||||
<h4 id="org9cf5aa4"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||
<div class="outline-text-4" id="text-1-6-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||
@ -734,8 +734,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga1bfdf0" class="outline-4">
|
||||
<h4 id="orga1bfdf0"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||
<div id="outline-container-orgc64ddaf" class="outline-4">
|
||||
<h4 id="orgc64ddaf"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||
<div class="outline-text-4" id="text-1-6-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||
@ -746,8 +746,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9c17893" class="outline-3">
|
||||
<h3 id="org9c17893"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||
<div id="outline-container-orgfb404f2" class="outline-3">
|
||||
<h3 id="orgfb404f2"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||
<div class="outline-text-3" id="text-1-7">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -830,12 +830,12 @@ Converts a <code>double*</code> to a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga977638" class="outline-2">
|
||||
<h2 id="orga977638"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div id="outline-container-org7ae4586" class="outline-2">
|
||||
<h2 id="org7ae4586"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orge2646a9" class="outline-3">
|
||||
<h3 id="orge2646a9"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div id="outline-container-orgfed01f3" class="outline-3">
|
||||
<h3 id="orgfed01f3"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
Matrix multiplication with a BLAS interface:
|
||||
@ -847,7 +847,7 @@ Matrix multiplication with a BLAS interface:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="org6704d66" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge82e685" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1006,8 +1006,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbdec448" class="outline-3">
|
||||
<h3 id="orgbdec448"><span class="section-number-3">2.2</span> <code>qmckl_matmul</code></h3>
|
||||
<div id="outline-container-org6e4174d" class="outline-3">
|
||||
<h3 id="org6e4174d"><span class="section-number-3">2.2</span> <code>qmckl_matmul</code></h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
@ -1019,7 +1019,7 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="orgb98a65e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org344940f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1113,8 +1113,8 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4b985d5" class="outline-3">
|
||||
<h3 id="org4b985d5"><span class="section-number-3">2.3</span> <code>qmckl_adjugate</code></h3>
|
||||
<div id="outline-container-orgb23b507" class="outline-3">
|
||||
<h3 id="orgb23b507"><span class="section-number-3">2.3</span> <code>qmckl_adjugate</code></h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
Given a matrix \(\mathbf{A}\), the adjugate matrix
|
||||
@ -1132,7 +1132,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="org8afd4c8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1f6dba1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1328,8 +1328,8 @@ determinant with the inverse:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org14fcafc" class="outline-3">
|
||||
<h3 id="org14fcafc"><span class="section-number-3">2.4</span> <code>qmckl_transpose</code></h3>
|
||||
<div id="outline-container-org40b5a1e" class="outline-3">
|
||||
<h3 id="org40b5a1e"><span class="section-number-3">2.4</span> <code>qmckl_transpose</code></h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
||||
@ -1392,7 +1392,7 @@ Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-08-17 Wed 11:43</p>
|
||||
<p class="date">Created: 2022-08-18 Thu 14:17</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-08-17 Wed 11:43 -->
|
||||
<!-- 2022-08-18 Thu 14:17 -->
|
||||
<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="#orgf89aeed">1. Context handling</a>
|
||||
<li><a href="#orgd294a4f">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#org2830f90">1.1. Data structure</a></li>
|
||||
<li><a href="#orgd41b07a">1.2. Creation</a></li>
|
||||
<li><a href="#org1323770">1.3. Locking</a></li>
|
||||
<li><a href="#org54adfab">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org7b00e10">1.5. Destroy</a></li>
|
||||
<li><a href="#orgfbb2577">1.1. Data structure</a></li>
|
||||
<li><a href="#org92d868a">1.2. Creation</a></li>
|
||||
<li><a href="#org4d4f90b">1.3. Locking</a></li>
|
||||
<li><a href="#org3a396e5">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#orga76d0ea">1.5. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf89aeed" class="outline-2">
|
||||
<h2 id="orgf89aeed"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-orgd294a4f" class="outline-2">
|
||||
<h2 id="orgd294a4f"><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="orgb7a2c0f"><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="org5f423b8"><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-org2830f90" class="outline-3">
|
||||
<h3 id="org2830f90"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgfbb2577" class="outline-3">
|
||||
<h3 id="orgfbb2577"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
A tag is used internally to check if the memory domain pointed
|
||||
@ -385,7 +385,7 @@ to be recomputed. The date is incremented when the context is touched.
|
||||
|
||||
<p>
|
||||
When a new element is added to the context, the functions
|
||||
<a href="#orgd41b07a"><code>qmckl_context_create</code></a> <a href="#org7b00e10"><code>qmckl_context_destroy</code></a> and <a href="#org54adfab"><code>qmckl_context_copy</code></a>
|
||||
<a href="#org92d868a"><code>qmckl_context_create</code></a> <a href="#orga76d0ea"><code>qmckl_context_destroy</code></a> and <a href="#org3a396e5"><code>qmckl_context_copy</code></a>
|
||||
should be updated in order to make deep copies.
|
||||
</p>
|
||||
|
||||
@ -406,8 +406,8 @@ This has the effect to increment the date of the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd41b07a" class="outline-3">
|
||||
<h3 id="orgd41b07a"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-org92d868a" class="outline-3">
|
||||
<h3 id="org92d868a"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
@ -424,8 +424,8 @@ To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org1323770" class="outline-3">
|
||||
<h3 id="org1323770"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-org4d4f90b" class="outline-3">
|
||||
<h3 id="org4d4f90b"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
For thread safety, the context may be locked/unlocked. The lock is
|
||||
@ -441,8 +441,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org54adfab" class="outline-3">
|
||||
<h3 id="org54adfab"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div id="outline-container-org3a396e5" class="outline-3">
|
||||
<h3 id="org3a396e5"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
<code>qmckl_context_copy</code> makes a deep copy of a context. It returns
|
||||
@ -450,8 +450,8 @@ number of times the thread has locked it is saved in the
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org7b00e10" class="outline-3">
|
||||
<h3 id="org7b00e10"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-orga76d0ea" class="outline-3">
|
||||
<h3 id="orga76d0ea"><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.
|
||||
@ -469,7 +469,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-08-17 Wed 11:43</p>
|
||||
<p class="date">Created: 2022-08-18 Thu 14:17</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-08-17 Wed 11:43 -->
|
||||
<!-- 2022-08-18 Thu 14:17 -->
|
||||
<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="#org224b74a">1. Context</a>
|
||||
<li><a href="#org20fbd55">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgc7aa0d7">1.1. Data structure</a></li>
|
||||
<li><a href="#orgf3c1b14">1.2. Access functions</a></li>
|
||||
<li><a href="#org3177267">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orga6aadac">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#orga340788">1.5. Test</a></li>
|
||||
<li><a href="#org94562e1">1.1. Data structure</a></li>
|
||||
<li><a href="#org37f85e5">1.2. Access functions</a></li>
|
||||
<li><a href="#org6b4d6cc">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org1c48b24">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#org5d7d8e8">1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgfd345b1">2. Computation</a>
|
||||
<li><a href="#org092878a">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org72e0edf">2.1. Determinant matrix</a>
|
||||
<li><a href="#org815af23">2.1. Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org135a57e">2.1.1. Get</a></li>
|
||||
<li><a href="#orgf9b83c1">2.1.2. Provide</a></li>
|
||||
<li><a href="#orga1b6bf8">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#org88451a5">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#orge91a063">2.1.5. Test</a></li>
|
||||
<li><a href="#orgeb1f994">2.1.1. Get</a></li>
|
||||
<li><a href="#org5f10b45">2.1.2. Provide</a></li>
|
||||
<li><a href="#orga6a18bb">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#org24b1ee1">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#org702fc46">2.1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2f0ba3c">2.2. Inverse of Determinant matrix</a>
|
||||
<li><a href="#org9ef2420">2.2. Inverse of Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org364448e">2.2.1. Get</a></li>
|
||||
<li><a href="#orgbc94b89">2.2.2. Provide</a></li>
|
||||
<li><a href="#org8249049">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#org9c17457">2.2.4. Compute beta</a></li>
|
||||
<li><a href="#orgb0536d4">2.2.1. Get</a></li>
|
||||
<li><a href="#org4df20c3">2.2.2. Provide</a></li>
|
||||
<li><a href="#org073b2fd">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#org8758038">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-org224b74a" class="outline-2">
|
||||
<h2 id="org224b74a"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org20fbd55" class="outline-2">
|
||||
<h2 id="org20fbd55"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following arrays are stored in the context:
|
||||
@ -522,8 +522,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc7aa0d7" class="outline-3">
|
||||
<h3 id="orgc7aa0d7"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org94562e1" class="outline-3">
|
||||
<h3 id="org94562e1"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_determinant_struct</span> {
|
||||
@ -591,8 +591,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf3c1b14" class="outline-3">
|
||||
<h3 id="orgf3c1b14"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org37f85e5" class="outline-3">
|
||||
<h3 id="org37f85e5"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
When all the data for the slater determinants have been provided, the following
|
||||
@ -606,8 +606,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3177267" class="outline-3">
|
||||
<h3 id="org3177267"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org6b4d6cc" class="outline-3">
|
||||
<h3 id="org6b4d6cc"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To set the basis set, all the following functions need to be
|
||||
@ -630,24 +630,24 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga6aadac" class="outline-3">
|
||||
<h3 id="orga6aadac"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
<div id="outline-container-org1c48b24" class="outline-3">
|
||||
<h3 id="org1c48b24"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
</div>
|
||||
<div id="outline-container-orga340788" class="outline-3">
|
||||
<h3 id="orga340788"><span class="section-number-3">1.5</span> Test</h3>
|
||||
<div id="outline-container-org5d7d8e8" class="outline-3">
|
||||
<h3 id="org5d7d8e8"><span class="section-number-3">1.5</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgfd345b1" class="outline-2">
|
||||
<h2 id="orgfd345b1"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org092878a" class="outline-2">
|
||||
<h2 id="org092878a"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org72e0edf" class="outline-3">
|
||||
<h3 id="org72e0edf"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
||||
<div id="outline-container-org815af23" class="outline-3">
|
||||
<h3 id="org815af23"><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-org135a57e" class="outline-4">
|
||||
<h4 id="org135a57e"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orgeb1f994" class="outline-4">
|
||||
<h4 id="orgeb1f994"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_det_vgl_alpha</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">det_vgl_alpha</span>);
|
||||
@ -657,14 +657,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf9b83c1" class="outline-4">
|
||||
<h4 id="orgf9b83c1"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org5f10b45" class="outline-4">
|
||||
<h4 id="org5f10b45"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga1b6bf8" class="outline-4">
|
||||
<h4 id="orga1b6bf8"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-orga6a18bb" class="outline-4">
|
||||
<h4 id="orga6a18bb"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="org7f027f8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb7684d3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -838,10 +838,10 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org88451a5" class="outline-4">
|
||||
<h4 id="org88451a5"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org24b1ee1" class="outline-4">
|
||||
<h4 id="org24b1ee1"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<table id="org5de8cbb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4b1f846" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1015,18 +1015,18 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge91a063" class="outline-4">
|
||||
<h4 id="orge91a063"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
<div id="outline-container-org702fc46" class="outline-4">
|
||||
<h4 id="org702fc46"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2f0ba3c" class="outline-3">
|
||||
<h3 id="org2f0ba3c"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
||||
<div id="outline-container-org9ef2420" class="outline-3">
|
||||
<h3 id="org9ef2420"><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-org364448e" class="outline-4">
|
||||
<h4 id="org364448e"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgb0536d4" class="outline-4">
|
||||
<h4 id="orgb0536d4"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_det_inv_matrix_alpha</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">det_inv_matrix_alpha</span>);
|
||||
@ -1040,14 +1040,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbc94b89" class="outline-4">
|
||||
<h4 id="orgbc94b89"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org4df20c3" class="outline-4">
|
||||
<h4 id="org4df20c3"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8249049" class="outline-4">
|
||||
<h4 id="org8249049"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org073b2fd" class="outline-4">
|
||||
<h4 id="org073b2fd"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org1e543f6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org63fcef6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1209,10 +1209,10 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9c17457" class="outline-4">
|
||||
<h4 id="org9c17457"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org8758038" class="outline-4">
|
||||
<h4 id="org8758038"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<table id="orgbab6545" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org78a8f92" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1379,7 +1379,7 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-08-17 Wed 11:43</p>
|
||||
<p class="date">Created: 2022-08-18 Thu 14:17</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-08-17 Wed 11:43 -->
|
||||
<!-- 2022-08-18 Thu 14:17 -->
|
||||
<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="#org50499b0">1. Squared distance</a>
|
||||
<li><a href="#orgeb2596d">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#org1ee787e">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#org740ebb1">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#org85c39b3">1.1.1. Performance</a></li>
|
||||
<li><a href="#org4d3138d">1.1.1. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7ff6993">2. Distance</a>
|
||||
<li><a href="#org659b509">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org80e7d3a">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#org2364ada">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#org8d491e0">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orgb3a498c">2.1.2. C header</a></li>
|
||||
<li><a href="#org4890f18">2.1.3. Source</a></li>
|
||||
<li><a href="#org3b9ffdf">2.1.4. Performance</a></li>
|
||||
<li><a href="#org1f7afc0">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orgcf7fb16">2.1.2. C header</a></li>
|
||||
<li><a href="#org04d9790">2.1.3. Source</a></li>
|
||||
<li><a href="#orgd6653bd">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge1abfb5">3. Rescaled Distance</a>
|
||||
<li><a href="#orgdc5c23b">3. Rescaled Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org4159992">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<li><a href="#org1ffafaf">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgeb13b98">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orga2af0ba">3.1.2. C header</a></li>
|
||||
<li><a href="#org0e28f7e">3.1.3. Source</a></li>
|
||||
<li><a href="#org9bbd6da">3.1.4. Performance</a></li>
|
||||
<li><a href="#org4350a5e">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orgc6c01a8">3.1.2. C header</a></li>
|
||||
<li><a href="#orgbaccebc">3.1.3. Source</a></li>
|
||||
<li><a href="#orgc01427f">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3947d31">4. Rescaled Distance Derivatives</a>
|
||||
<li><a href="#org5bb313c">4. Rescaled Distance Derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#orgefdbcd8">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a></li>
|
||||
<li><a href="#org0d80ebd">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org50499b0" class="outline-2">
|
||||
<h2 id="org50499b0"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-orgeb2596d" class="outline-2">
|
||||
<h2 id="orgeb2596d"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org1ee787e" class="outline-3">
|
||||
<h3 id="org1ee787e"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-org740ebb1" class="outline-3">
|
||||
<h3 id="org740ebb1"><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="org04ba4d8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2c702da" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -659,8 +659,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org85c39b3" class="outline-4">
|
||||
<h4 id="org85c39b3"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div id="outline-container-org4d3138d" class="outline-4">
|
||||
<h4 id="org4d3138d"><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-org7ff6993" class="outline-2">
|
||||
<h2 id="org7ff6993"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-org659b509" class="outline-2">
|
||||
<h2 id="org659b509"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org80e7d3a" class="outline-3">
|
||||
<h3 id="org80e7d3a"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div id="outline-container-org2364ada" class="outline-3">
|
||||
<h3 id="org2364ada"><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="orgf0d195a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1a44f60" 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-org8d491e0" class="outline-4">
|
||||
<h4 id="org8d491e0"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org1f7afc0" class="outline-4">
|
||||
<h4 id="org1f7afc0"><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-orgb3a498c" class="outline-4">
|
||||
<h4 id="orgb3a498c"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgcf7fb16" class="outline-4">
|
||||
<h4 id="orgcf7fb16"><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-org4890f18" class="outline-4">
|
||||
<h4 id="org4890f18"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-org04d9790" class="outline-4">
|
||||
<h4 id="org04d9790"><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-org3b9ffdf" class="outline-4">
|
||||
<h4 id="org3b9ffdf"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgd6653bd" class="outline-4">
|
||||
<h4 id="orgd6653bd"><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-orge1abfb5" class="outline-2">
|
||||
<h2 id="orge1abfb5"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div id="outline-container-orgdc5c23b" class="outline-2">
|
||||
<h2 id="orgdc5c23b"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org4159992" class="outline-3">
|
||||
<h3 id="org4159992"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div id="outline-container-org1ffafaf" class="outline-3">
|
||||
<h3 id="org1ffafaf"><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="org0200e5f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orged520f2" 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-orgeb13b98" class="outline-4">
|
||||
<h4 id="orgeb13b98"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org4350a5e" class="outline-4">
|
||||
<h4 id="org4350a5e"><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-orga2af0ba" class="outline-4">
|
||||
<h4 id="orga2af0ba"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgc6c01a8" class="outline-4">
|
||||
<h4 id="orgc6c01a8"><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-org0e28f7e" class="outline-4">
|
||||
<h4 id="org0e28f7e"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgbaccebc" class="outline-4">
|
||||
<h4 id="orgbaccebc"><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-org9bbd6da" class="outline-4">
|
||||
<h4 id="org9bbd6da"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgc01427f" class="outline-4">
|
||||
<h4 id="orgc01427f"><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-org3947d31" class="outline-2">
|
||||
<h2 id="org3947d31"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div id="outline-container-org5bb313c" class="outline-2">
|
||||
<h2 id="org5bb313c"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-orgefdbcd8" class="outline-3">
|
||||
<h3 id="orgefdbcd8"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_deriv_e</code></h3>
|
||||
<div id="outline-container-org0d80ebd" class="outline-3">
|
||||
<h3 id="org0d80ebd"><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="org02ab3d9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7415da9" 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-08-17 Wed 11:43</p>
|
||||
<p class="date">Created: 2022-08-18 Thu 14:17</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-08-17 Wed 11:43 -->
|
||||
<!-- 2022-08-18 Thu 14:17 -->
|
||||
<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,88 +333,88 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgc921f70">1. Context</a>
|
||||
<li><a href="#org6294c1f">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org439b44b">1.1. Data structure</a></li>
|
||||
<li><a href="#org74800a7">1.2. Access functions</a>
|
||||
<li><a href="#org9943daa">1.1. Data structure</a></li>
|
||||
<li><a href="#org61bfaef">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org80c27ab">1.2.1. Number of electrons</a></li>
|
||||
<li><a href="#org52a91a9">1.2.2. Number of walkers</a></li>
|
||||
<li><a href="#orgd85410e">1.2.3. Scaling factors Kappa</a></li>
|
||||
<li><a href="#orgc632147">1.2.4. Electron coordinates</a></li>
|
||||
<li><a href="#org47a658f">1.2.1. Number of electrons</a></li>
|
||||
<li><a href="#org2d8829f">1.2.2. Number of walkers</a></li>
|
||||
<li><a href="#org198264b">1.2.3. Scaling factors Kappa</a></li>
|
||||
<li><a href="#org3e7bca7">1.2.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbb246af">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org9cab44d">1.4. Test</a></li>
|
||||
<li><a href="#org58d8985">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgacc06dc">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc232a0d">2. Computation</a>
|
||||
<li><a href="#org2e83dbf">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org21db0ea">2.1. Electron-electron distances</a>
|
||||
<li><a href="#orgfa0ea5e">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgceca405">2.1.1. Get</a></li>
|
||||
<li><a href="#orgc342a8e">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgc9d81e6">2.1.3. Test</a></li>
|
||||
<li><a href="#orgd2ca534">2.1.1. Get</a></li>
|
||||
<li><a href="#orga80e18b">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgbca1917">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0a6d220">2.2. Electron-electron rescaled distances</a>
|
||||
<li><a href="#org82d9f8f">2.2. Electron-electron rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#orge8e1406">2.2.1. Get</a></li>
|
||||
<li><a href="#orgf4eac43">2.2.2. Compute</a></li>
|
||||
<li><a href="#org8e2c419">2.2.3. Test</a></li>
|
||||
<li><a href="#org72cc52c">2.2.1. Get</a></li>
|
||||
<li><a href="#org7344149">2.2.2. Compute</a></li>
|
||||
<li><a href="#orga5ec756">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org532d24d">2.3. Electron-electron rescaled distance gradients and Laplacian with respect to electron coords</a>
|
||||
<li><a href="#org37989e9">2.3. Electron-electron rescaled distance gradients and Laplacian with respect to electron coords</a>
|
||||
<ul>
|
||||
<li><a href="#org577513c">2.3.1. Get</a></li>
|
||||
<li><a href="#org1220d0a">2.3.2. Compute</a></li>
|
||||
<li><a href="#org199aa03">2.3.3. Test</a></li>
|
||||
<li><a href="#orgb824bc8">2.3.1. Get</a></li>
|
||||
<li><a href="#orgf197bd8">2.3.2. Compute</a></li>
|
||||
<li><a href="#org3e73040">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga457deb">2.4. Electron-electron potential</a>
|
||||
<li><a href="#org2be98a5">2.4. Electron-electron potential</a>
|
||||
<ul>
|
||||
<li><a href="#orgdf6e7f8">2.4.1. Get</a></li>
|
||||
<li><a href="#orgb7e4ecc">2.4.2. Compute</a></li>
|
||||
<li><a href="#orge6f2dd5">2.4.3. Test</a></li>
|
||||
<li><a href="#orga827d99">2.4.1. Get</a></li>
|
||||
<li><a href="#orgefd3b12">2.4.2. Compute</a></li>
|
||||
<li><a href="#org1ab7ed4">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb8a0625">2.5. Electron-nucleus distances</a>
|
||||
<li><a href="#org28cc28c">2.5. Electron-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org358cd70">2.5.1. Get</a></li>
|
||||
<li><a href="#org92ae061">2.5.2. Compute</a></li>
|
||||
<li><a href="#org87770af">2.5.3. Test</a></li>
|
||||
<li><a href="#orgab1dd93">2.5.1. Get</a></li>
|
||||
<li><a href="#org230e540">2.5.2. Compute</a></li>
|
||||
<li><a href="#orgb7c3a6b">2.5.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc198d6a">2.6. Electron-nucleus rescaled distances</a>
|
||||
<li><a href="#orgacb1d25">2.6. Electron-nucleus rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgd607bd7">2.6.1. Get</a></li>
|
||||
<li><a href="#org71cbc96">2.6.2. Compute</a></li>
|
||||
<li><a href="#orge1f3889">2.6.3. Test</a></li>
|
||||
<li><a href="#org7044d2a">2.6.1. Get</a></li>
|
||||
<li><a href="#orgffa49b2">2.6.2. Compute</a></li>
|
||||
<li><a href="#org66026be">2.6.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org947327b">2.7. Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<li><a href="#org764fb18">2.7. Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<ul>
|
||||
<li><a href="#org58f2157">2.7.1. Get</a></li>
|
||||
<li><a href="#orgb2b00f6">2.7.2. Compute</a></li>
|
||||
<li><a href="#org14deb4e">2.7.3. Test</a></li>
|
||||
<li><a href="#org0b07655">2.7.1. Get</a></li>
|
||||
<li><a href="#orga3a167f">2.7.2. Compute</a></li>
|
||||
<li><a href="#org2fe50c5">2.7.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf7dfbc7">2.8. Electron-nucleus potential</a>
|
||||
<li><a href="#orgb36a8fa">2.8. Electron-nucleus potential</a>
|
||||
<ul>
|
||||
<li><a href="#org76a6bb9">2.8.1. Get</a></li>
|
||||
<li><a href="#orgda10ef6">2.8.2. Compute</a></li>
|
||||
<li><a href="#orga7417ea">2.8.3. Test</a></li>
|
||||
<li><a href="#org2a9fb2d">2.8.1. Get</a></li>
|
||||
<li><a href="#org48fdff3">2.8.2. Compute</a></li>
|
||||
<li><a href="#org9f5e728">2.8.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgde2cb77">2.9. Generate initial coordinates</a></li>
|
||||
<li><a href="#org31f48e9">2.9. Generate initial coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc921f70" class="outline-2">
|
||||
<h2 id="orgc921f70"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org6294c1f" class="outline-2">
|
||||
<h2 id="org6294c1f"><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:
|
||||
@ -615,8 +615,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org439b44b" class="outline-3">
|
||||
<h3 id="org439b44b"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org9943daa" class="outline-3">
|
||||
<h3 id="org9943daa"><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">
|
||||
@ -699,8 +699,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org74800a7" class="outline-3">
|
||||
<h3 id="org74800a7"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org61bfaef" class="outline-3">
|
||||
<h3 id="org61bfaef"><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
|
||||
@ -712,12 +712,12 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org80c27ab" class="outline-4">
|
||||
<h4 id="org80c27ab"><span class="section-number-4">1.2.1</span> Number of electrons</h4>
|
||||
<div id="outline-container-org47a658f" class="outline-4">
|
||||
<h4 id="org47a658f"><span class="section-number-4">1.2.1</span> Number of electrons</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org52a91a9" class="outline-4">
|
||||
<h4 id="org52a91a9"><span class="section-number-4">1.2.2</span> Number of walkers</h4>
|
||||
<div id="outline-container-org2d8829f" class="outline-4">
|
||||
<h4 id="org2d8829f"><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
|
||||
@ -726,12 +726,12 @@ the wave function. <code>walk_num</code> is the number of walkers.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd85410e" class="outline-4">
|
||||
<h4 id="orgd85410e"><span class="section-number-4">1.2.3</span> Scaling factors Kappa</h4>
|
||||
<div id="outline-container-org198264b" class="outline-4">
|
||||
<h4 id="org198264b"><span class="section-number-4">1.2.3</span> Scaling factors Kappa</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc632147" class="outline-4">
|
||||
<h4 id="orgc632147"><span class="section-number-4">1.2.4</span> Electron coordinates</h4>
|
||||
<div id="outline-container-org3e7bca7" class="outline-4">
|
||||
<h4 id="org3e7bca7"><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
|
||||
@ -781,8 +781,8 @@ current points.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbb246af" class="outline-3">
|
||||
<h3 id="orgbb246af"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org58d8985" class="outline-3">
|
||||
<h3 id="org58d8985"><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
|
||||
@ -862,8 +862,8 @@ in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9cab44d" class="outline-3">
|
||||
<h3 id="org9cab44d"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orgacc06dc" class="outline-3">
|
||||
<h3 id="orgacc06dc"><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>*/
|
||||
@ -968,8 +968,8 @@ rc = qmckl_get_electron_coord (context, <span style="color: #8b2252;">'N'</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc232a0d" class="outline-2">
|
||||
<h2 id="orgc232a0d"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org2e83dbf" class="outline-2">
|
||||
<h2 id="org2e83dbf"><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
|
||||
@ -982,12 +982,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org21db0ea" class="outline-3">
|
||||
<h3 id="org21db0ea"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-orgfa0ea5e" class="outline-3">
|
||||
<h3 id="orgfa0ea5e"><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-orgceca405" class="outline-4">
|
||||
<h4 id="orgceca405"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orgd2ca534" class="outline-4">
|
||||
<h4 id="orgd2ca534"><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>);
|
||||
@ -996,10 +996,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc342a8e" class="outline-4">
|
||||
<h4 id="orgc342a8e"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-orga80e18b" class="outline-4">
|
||||
<h4 id="orga80e18b"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org21f59a2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgae7bc7b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1104,8 +1104,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc9d81e6" class="outline-4">
|
||||
<h4 id="orgc9d81e6"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orgbca1917" class="outline-4">
|
||||
<h4 id="orgbca1917"><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>));
|
||||
@ -1139,8 +1139,8 @@ rc = qmckl_get_electron_ee_distance(context, ee_distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0a6d220" class="outline-3">
|
||||
<h3 id="org0a6d220"><span class="section-number-3">2.2</span> Electron-electron rescaled distances</h3>
|
||||
<div id="outline-container-org82d9f8f" class="outline-3">
|
||||
<h3 id="org82d9f8f"><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
|
||||
@ -1158,8 +1158,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge8e1406" class="outline-4">
|
||||
<h4 id="orge8e1406"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org72cc52c" class="outline-4">
|
||||
<h4 id="org72cc52c"><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>);
|
||||
@ -1168,10 +1168,10 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf4eac43" class="outline-4">
|
||||
<h4 id="orgf4eac43"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org7344149" class="outline-4">
|
||||
<h4 id="org7344149"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="org192a616" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8449f9b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1284,8 +1284,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8e2c419" class="outline-4">
|
||||
<h4 id="org8e2c419"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-orga5ec756" class="outline-4">
|
||||
<h4 id="orga5ec756"><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>));
|
||||
@ -1319,8 +1319,8 @@ rc = qmckl_get_electron_ee_distance_rescaled(context, ee_distance_rescaled);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org532d24d" class="outline-3">
|
||||
<h3 id="org532d24d"><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-org37989e9" class="outline-3">
|
||||
<h3 id="org37989e9"><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\)
|
||||
@ -1332,8 +1332,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org577513c" class="outline-4">
|
||||
<h4 id="org577513c"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-orgb824bc8" class="outline-4">
|
||||
<h4 id="orgb824bc8"><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>);
|
||||
@ -1342,10 +1342,10 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1220d0a" class="outline-4">
|
||||
<h4 id="org1220d0a"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-orgf197bd8" class="outline-4">
|
||||
<h4 id="orgf197bd8"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="orge4ebefd" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org21430a7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1458,8 +1458,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org199aa03" class="outline-4">
|
||||
<h4 id="org199aa03"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-org3e73040" class="outline-4">
|
||||
<h4 id="org3e73040"><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>));
|
||||
@ -1494,8 +1494,8 @@ rc = qmckl_get_electron_ee_distance_rescaled_deriv_e(context, ee_distance_rescal
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga457deb" class="outline-3">
|
||||
<h3 id="orga457deb"><span class="section-number-3">2.4</span> Electron-electron potential</h3>
|
||||
<div id="outline-container-org2be98a5" class="outline-3">
|
||||
<h3 id="org2be98a5"><span class="section-number-3">2.4</span> Electron-electron potential</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
<code>ee_potential</code> is given by
|
||||
@ -1513,8 +1513,8 @@ distance.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdf6e7f8" class="outline-4">
|
||||
<h4 id="orgdf6e7f8"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-orga827d99" class="outline-4">
|
||||
<h4 id="orga827d99"><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_potential</span>);
|
||||
@ -1523,10 +1523,10 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb7e4ecc" class="outline-4">
|
||||
<h4 id="orgb7e4ecc"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-orgefd3b12" class="outline-4">
|
||||
<h4 id="orgefd3b12"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="org8d4105c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc4d1e09" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1642,8 +1642,8 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge6f2dd5" class="outline-4">
|
||||
<h4 id="orge6f2dd5"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-org1ab7ed4" class="outline-4">
|
||||
<h4 id="org1ab7ed4"><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_potential</span>[walk_num];
|
||||
@ -1655,12 +1655,12 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgb8a0625" class="outline-3">
|
||||
<h3 id="orgb8a0625"><span class="section-number-3">2.5</span> Electron-nucleus distances</h3>
|
||||
<div id="outline-container-org28cc28c" class="outline-3">
|
||||
<h3 id="org28cc28c"><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-org358cd70" class="outline-4">
|
||||
<h4 id="org358cd70"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div id="outline-container-orgab1dd93" class="outline-4">
|
||||
<h4 id="orgab1dd93"><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>);
|
||||
@ -1669,10 +1669,10 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org92ae061" class="outline-4">
|
||||
<h4 id="org92ae061"><span class="section-number-4">2.5.2</span> Compute</h4>
|
||||
<div id="outline-container-org230e540" class="outline-4">
|
||||
<h4 id="org230e540"><span class="section-number-4">2.5.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-5-2">
|
||||
<table id="org9284f08" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf7442bd" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1797,8 +1797,8 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org87770af" class="outline-4">
|
||||
<h4 id="org87770af"><span class="section-number-4">2.5.3</span> Test</h4>
|
||||
<div id="outline-container-orgb7c3a6b" class="outline-4">
|
||||
<h4 id="orgb7c3a6b"><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">
|
||||
@ -1846,8 +1846,8 @@ rc = qmckl_get_electron_en_distance(context, &(en_distance[0][0][0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc198d6a" class="outline-3">
|
||||
<h3 id="orgc198d6a"><span class="section-number-3">2.6</span> Electron-nucleus rescaled distances</h3>
|
||||
<div id="outline-container-orgacb1d25" class="outline-3">
|
||||
<h3 id="orgacb1d25"><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
|
||||
@ -1865,8 +1865,8 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd607bd7" class="outline-4">
|
||||
<h4 id="orgd607bd7"><span class="section-number-4">2.6.1</span> Get</h4>
|
||||
<div id="outline-container-org7044d2a" class="outline-4">
|
||||
<h4 id="org7044d2a"><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>);
|
||||
@ -1876,10 +1876,10 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org71cbc96" class="outline-4">
|
||||
<h4 id="org71cbc96"><span class="section-number-4">2.6.2</span> Compute</h4>
|
||||
<div id="outline-container-orgffa49b2" class="outline-4">
|
||||
<h4 id="orgffa49b2"><span class="section-number-4">2.6.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-6-2">
|
||||
<table id="orgd74f598" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge30b949" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2019,8 +2019,8 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge1f3889" class="outline-4">
|
||||
<h4 id="orge1f3889"><span class="section-number-4">2.6.3</span> Test</h4>
|
||||
<div id="outline-container-org66026be" class="outline-4">
|
||||
<h4 id="org66026be"><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">
|
||||
@ -2058,8 +2058,8 @@ rc = qmckl_get_electron_en_distance_rescaled(context, &(en_distance_rescaled
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org947327b" class="outline-3">
|
||||
<h3 id="org947327b"><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-org764fb18" class="outline-3">
|
||||
<h3 id="org764fb18"><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\)
|
||||
@ -2071,8 +2071,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org58f2157" class="outline-4">
|
||||
<h4 id="org58f2157"><span class="section-number-4">2.7.1</span> Get</h4>
|
||||
<div id="outline-container-org0b07655" class="outline-4">
|
||||
<h4 id="org0b07655"><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>);
|
||||
@ -2081,10 +2081,10 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb2b00f6" class="outline-4">
|
||||
<h4 id="orgb2b00f6"><span class="section-number-4">2.7.2</span> Compute</h4>
|
||||
<div id="outline-container-orga3a167f" class="outline-4">
|
||||
<h4 id="orga3a167f"><span class="section-number-4">2.7.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-7-2">
|
||||
<table id="org0f83b25" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org18c92c6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2225,8 +2225,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org14deb4e" class="outline-4">
|
||||
<h4 id="org14deb4e"><span class="section-number-4">2.7.3</span> Test</h4>
|
||||
<div id="outline-container-org2fe50c5" class="outline-4">
|
||||
<h4 id="org2fe50c5"><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">
|
||||
@ -2269,8 +2269,8 @@ rc = qmckl_get_electron_en_distance_rescaled_deriv_e(context, &(en_distance_
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf7dfbc7" class="outline-3">
|
||||
<h3 id="orgf7dfbc7"><span class="section-number-3">2.8</span> Electron-nucleus potential</h3>
|
||||
<div id="outline-container-orgb36a8fa" class="outline-3">
|
||||
<h3 id="orgb36a8fa"><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
|
||||
@ -2288,8 +2288,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org76a6bb9" class="outline-4">
|
||||
<h4 id="org76a6bb9"><span class="section-number-4">2.8.1</span> Get</h4>
|
||||
<div id="outline-container-org2a9fb2d" class="outline-4">
|
||||
<h4 id="org2a9fb2d"><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_potential</span>);
|
||||
@ -2298,10 +2298,10 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgda10ef6" class="outline-4">
|
||||
<h4 id="orgda10ef6"><span class="section-number-4">2.8.2</span> Compute</h4>
|
||||
<div id="outline-container-org48fdff3" class="outline-4">
|
||||
<h4 id="org48fdff3"><span class="section-number-4">2.8.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-8-2">
|
||||
<table id="org5cad270" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgfb4a267" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2435,8 +2435,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga7417ea" class="outline-4">
|
||||
<h4 id="orga7417ea"><span class="section-number-4">2.8.3</span> Test</h4>
|
||||
<div id="outline-container-org9f5e728" class="outline-4">
|
||||
<h4 id="org9f5e728"><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_potential</span>[walk_num];
|
||||
@ -2449,14 +2449,14 @@ rc = qmckl_get_electron_en_potential(context, &(en_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgde2cb77" class="outline-3">
|
||||
<h3 id="orgde2cb77"><span class="section-number-3">2.9</span> Generate initial coordinates</h3>
|
||||
<div id="outline-container-org31f48e9" class="outline-3">
|
||||
<h3 id="org31f48e9"><span class="section-number-3">2.9</span> Generate initial coordinates</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-08-17 Wed 11:43</p>
|
||||
<p class="date">Created: 2022-08-18 Thu 14:17</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-08-17 Wed 11:43 -->
|
||||
<!-- 2022-08-18 Thu 14:17 -->
|
||||
<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,24 +311,24 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgb5d693c">-</a></li>
|
||||
<li><a href="#org482201b">1. Decoding errors</a></li>
|
||||
<li><a href="#org8edb8f0">2. Data structure in context</a></li>
|
||||
<li><a href="#orgd2110a9">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org82977cb">4. Get the error</a></li>
|
||||
<li><a href="#org465b897">5. Failing</a></li>
|
||||
<li><a href="#org0d94e72">6. Last error</a>
|
||||
<li><a href="#org984e61b">-</a></li>
|
||||
<li><a href="#org1ef83e3">1. Decoding errors</a></li>
|
||||
<li><a href="#org50274a4">2. Data structure in context</a></li>
|
||||
<li><a href="#orgc52654e">3. Updating errors in the context</a></li>
|
||||
<li><a href="#orge3dad3a">4. Get the error</a></li>
|
||||
<li><a href="#org3f41285">5. Failing</a></li>
|
||||
<li><a href="#org784b200">6. Last error</a>
|
||||
<ul>
|
||||
<li><a href="#orgbfaeedf">6.1. Fortran inteface</a></li>
|
||||
<li><a href="#orga0a6635">6.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb5d693c" class="outline-2">
|
||||
<h2 id="orgb5d693c">-</h2>
|
||||
<div class="outline-text-2" id="text-orgb5d693c">
|
||||
<div id="outline-container-org984e61b" class="outline-2">
|
||||
<h2 id="org984e61b">-</h2>
|
||||
<div class="outline-text-2" id="text-org984e61b">
|
||||
<p>
|
||||
The library should never make the calling programs abort, nor
|
||||
perform any input/output operations. This decision has to be taken
|
||||
@ -339,7 +339,7 @@ by the developer of the code calling the library.
|
||||
All the functions return with an exit code, defined as
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org0ebc9a3"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int32_t</span> <span style="color: #228b22;">qmckl_exit_code</span>;
|
||||
<pre class="src src-c" id="org5972aab"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int32_t</span> <span style="color: #228b22;">qmckl_exit_code</span>;
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -356,7 +356,7 @@ error code is returned to the program.
|
||||
Here is the complete list of exit codes.
|
||||
</p>
|
||||
|
||||
<table id="org02bc5eb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgaa3edc1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -564,8 +564,8 @@ string is assumed to be large enough to contain the error message
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org482201b" class="outline-2">
|
||||
<h2 id="org482201b"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-org1ef83e3" class="outline-2">
|
||||
<h2 id="org1ef83e3"><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
|
||||
@ -583,8 +583,8 @@ The text strings are extracted from the previous table.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org8edb8f0" class="outline-2">
|
||||
<h2 id="org8edb8f0"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-org50274a4" class="outline-2">
|
||||
<h2 id="org50274a4"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The strings are declared internally with a maximum fixed size to avoid
|
||||
@ -607,8 +607,8 @@ dynamic memory allocation.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd2110a9" class="outline-2">
|
||||
<h2 id="orgd2110a9"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div id="outline-container-orgc52654e" class="outline-2">
|
||||
<h2 id="orgc52654e"><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>.
|
||||
@ -627,8 +627,8 @@ explaining the error. The exit code can't be <code>QMCKL_SUCCESS</code>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org82977cb" class="outline-2">
|
||||
<h2 id="org82977cb"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div id="outline-container-orge3dad3a" class="outline-2">
|
||||
<h2 id="orge3dad3a"><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
|
||||
@ -647,8 +647,8 @@ function name and message is mandatory.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org465b897" class="outline-2">
|
||||
<h2 id="org465b897"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div id="outline-container-org3f41285" class="outline-2">
|
||||
<h2 id="org3f41285"><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
|
||||
@ -685,8 +685,8 @@ For example, this function can be used as
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0d94e72" class="outline-2">
|
||||
<h2 id="org0d94e72"><span class="section-number-2">6</span> Last error</h2>
|
||||
<div id="outline-container-org784b200" class="outline-2">
|
||||
<h2 id="org784b200"><span class="section-number-2">6</span> Last error</h2>
|
||||
<div class="outline-text-2" id="text-6">
|
||||
<p>
|
||||
Returns a string describing the last error, using <code>qmckl_get_error</code>.
|
||||
@ -698,14 +698,14 @@ Returns a string describing the last error, using <code>qmckl_get_error</code>.
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgbfaeedf" class="outline-3">
|
||||
<h3 id="orgbfaeedf"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-orga0a6635" class="outline-3">
|
||||
<h3 id="orga0a6635"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-08-17 Wed 11:43</p>
|
||||
<p class="date">Created: 2022-08-18 Thu 14:17</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-08-17 Wed 11:43 -->
|
||||
<!-- 2022-08-18 Thu 14:17 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Code examples</title>
|
||||
@ -333,27 +333,27 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org9a8059d">1. Python</a>
|
||||
<li><a href="#org652a47c">1. Python</a>
|
||||
<ul>
|
||||
<li><a href="#orgad0ce7a">1.1. Check numerically that MOs are orthonormal</a></li>
|
||||
<li><a href="#org6957f08">1.1. Check numerically that MOs are orthonormal</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd9c7386">2. Fortran</a>
|
||||
<li><a href="#org4a8b0ab">2. Fortran</a>
|
||||
<ul>
|
||||
<li><a href="#org9d3d30a">2.1. Checking errors</a></li>
|
||||
<li><a href="#org8875f5a">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
<li><a href="#orgd1bcf81">2.1. Checking errors</a></li>
|
||||
<li><a href="#orge380cdc">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9a8059d" class="outline-2">
|
||||
<h2 id="org9a8059d"><span class="section-number-2">1</span> Python</h2>
|
||||
<div id="outline-container-org652a47c" class="outline-2">
|
||||
<h2 id="org652a47c"><span class="section-number-2">1</span> Python</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-orgad0ce7a" class="outline-3">
|
||||
<h3 id="orgad0ce7a"><span class="section-number-3">1.1</span> Check numerically that MOs are orthonormal</h3>
|
||||
<div id="outline-container-org6957f08" class="outline-3">
|
||||
<h3 id="org6957f08"><span class="section-number-3">1.1</span> Check numerically that MOs are orthonormal</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
In this example, we will compute numerically the overlap
|
||||
@ -529,12 +529,12 @@ and finally we compute the overlap between all the MOs as
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd9c7386" class="outline-2">
|
||||
<h2 id="orgd9c7386"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div id="outline-container-org4a8b0ab" class="outline-2">
|
||||
<h2 id="org4a8b0ab"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org9d3d30a" class="outline-3">
|
||||
<h3 id="org9d3d30a"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div id="outline-container-orgd1bcf81" class="outline-3">
|
||||
<h3 id="orgd1bcf81"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
All QMCkl functions return an error code. A convenient way to handle
|
||||
@ -543,7 +543,7 @@ error in text format and exits the program.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90" id="orgd4e5fcf"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<pre class="src src-f90" id="org49036ae"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl</span>
|
||||
<span style="color: #a020f0;">implicit</span> <span style="color: #228b22;">none</span>
|
||||
<span style="color: #228b22;">integer</span>(qmckl_exit_code), <span style="color: #a020f0;">intent</span>(in) ::<span style="color: #a0522d;"> rc</span>
|
||||
@ -561,8 +561,8 @@ error in text format and exits the program.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8875f5a" class="outline-3">
|
||||
<h3 id="org8875f5a"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div id="outline-container-orge380cdc" class="outline-3">
|
||||
<h3 id="orge380cdc"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
The following program, in Fortran, computes the values of an atomic
|
||||
@ -781,7 +781,7 @@ We finally print the value and Laplacian of the AO:
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-08-17 Wed 11:43</p>
|
||||
<p class="date">Created: 2022-08-18 Thu 14:17</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-08-17 Wed 11:44 -->
|
||||
<!-- 2022-08-18 Thu 14:18 -->
|
||||
<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,105 +333,105 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org3afd88c">1. Introduction</a></li>
|
||||
<li><a href="#orge187fdf">2. Context</a>
|
||||
<li><a href="#orga610174">1. Introduction</a></li>
|
||||
<li><a href="#orgd9a5fde">2. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgf2e88b2">2.1. Data structure</a></li>
|
||||
<li><a href="#org4421665">2.2. Access functions</a></li>
|
||||
<li><a href="#org99b634a">2.3. Initialization functions</a></li>
|
||||
<li><a href="#org2ed9630">2.4. Test</a></li>
|
||||
<li><a href="#orga5d351f">2.1. Data structure</a></li>
|
||||
<li><a href="#orgc413cc4">2.2. Access functions</a></li>
|
||||
<li><a href="#org129d090">2.3. Initialization functions</a></li>
|
||||
<li><a href="#orgae5e612">2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7736ec5">3. Computation</a>
|
||||
<li><a href="#orgc39d8b3">3. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgfd671d4">3.1. Asymptotic component for \(J_{ee}\)</a>
|
||||
<li><a href="#org114e5f3">3.1. Asymptotic component for \(J_{ee}\)</a>
|
||||
<ul>
|
||||
<li><a href="#org3edfe94">3.1.1. Get</a></li>
|
||||
<li><a href="#org37a9168">3.1.2. Compute</a></li>
|
||||
<li><a href="#org2c4b87c">3.1.3. Test</a></li>
|
||||
<li><a href="#orga9d6459">3.1.1. Get</a></li>
|
||||
<li><a href="#orgbc65af3">3.1.2. Compute</a></li>
|
||||
<li><a href="#org43eb541">3.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3abd10e">3.2. Electron-electron component \(f_{ee}\)</a>
|
||||
<li><a href="#org5aa3fd5">3.2. Electron-electron component \(f_{ee}\)</a>
|
||||
<ul>
|
||||
<li><a href="#orgf106a61">3.2.1. Get</a></li>
|
||||
<li><a href="#org6914b0f">3.2.2. Compute</a></li>
|
||||
<li><a href="#orgbebc7c5">3.2.3. Test</a></li>
|
||||
<li><a href="#orga57e9f5">3.2.1. Get</a></li>
|
||||
<li><a href="#org6f9ebec">3.2.2. Compute</a></li>
|
||||
<li><a href="#org778031b">3.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org513c2f9">3.3. Electron-electron component derivative \(f'_{ee}\)</a>
|
||||
<li><a href="#orge25a40c">3.3. Electron-electron component derivative \(f'_{ee}\)</a>
|
||||
<ul>
|
||||
<li><a href="#orgd83e65b">3.3.1. Get</a></li>
|
||||
<li><a href="#org5379d75">3.3.2. Compute</a></li>
|
||||
<li><a href="#org9d46ccb">3.3.3. Test</a></li>
|
||||
<li><a href="#org0f6ec5b">3.3.1. Get</a></li>
|
||||
<li><a href="#orgd818b6d">3.3.2. Compute</a></li>
|
||||
<li><a href="#orge002f10">3.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org08670d6">3.4. Electron-nucleus component \(f_{en}\)</a>
|
||||
<li><a href="#orgbdf1484">3.4. Electron-nucleus component \(f_{en}\)</a>
|
||||
<ul>
|
||||
<li><a href="#orgd6aff7b">3.4.1. Get</a></li>
|
||||
<li><a href="#orge1dfa88">3.4.2. Compute</a></li>
|
||||
<li><a href="#org3b1f6f9">3.4.3. Test</a></li>
|
||||
<li><a href="#org035cf50">3.4.1. Get</a></li>
|
||||
<li><a href="#org41ea1cf">3.4.2. Compute</a></li>
|
||||
<li><a href="#org561c812">3.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org70afcca">3.5. Electron-nucleus component derivative \(f'_{en}\)</a>
|
||||
<li><a href="#org620641c">3.5. Electron-nucleus component derivative \(f'_{en}\)</a>
|
||||
<ul>
|
||||
<li><a href="#org87ccb6b">3.5.1. Get</a></li>
|
||||
<li><a href="#org17ad45c">3.5.2. Compute</a></li>
|
||||
<li><a href="#orgc456aea">3.5.3. Test</a></li>
|
||||
<li><a href="#org167b101">3.5.1. Get</a></li>
|
||||
<li><a href="#orgbff7e73">3.5.2. Compute</a></li>
|
||||
<li><a href="#org4d7a602">3.5.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbaf2c92">3.6. Electron-electron rescaled distances for each order</a>
|
||||
<li><a href="#org07805f9">3.6. Electron-electron rescaled distances for each order</a>
|
||||
<ul>
|
||||
<li><a href="#org44b4ac0">3.6.1. Get</a></li>
|
||||
<li><a href="#orgece93bd">3.6.2. Compute</a></li>
|
||||
<li><a href="#orgadb9fbc">3.6.3. Test</a></li>
|
||||
<li><a href="#orgd18b08b">3.6.1. Get</a></li>
|
||||
<li><a href="#org24439df">3.6.2. Compute</a></li>
|
||||
<li><a href="#org1c2d217">3.6.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org982d851">3.7. Electron-electron rescaled distances for each order and derivatives</a>
|
||||
<li><a href="#org18f62fb">3.7. Electron-electron rescaled distances for each order and derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#org0b571ac">3.7.1. Get</a></li>
|
||||
<li><a href="#org079e0d8">3.7.2. Compute</a></li>
|
||||
<li><a href="#orgf767459">3.7.3. Test</a></li>
|
||||
<li><a href="#org9d3b3ca">3.7.1. Get</a></li>
|
||||
<li><a href="#org79c4723">3.7.2. Compute</a></li>
|
||||
<li><a href="#orga87b22f">3.7.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2d7a0b3">3.8. Electron-nucleus rescaled distances for each order</a>
|
||||
<li><a href="#org2ea980b">3.8. Electron-nucleus rescaled distances for each order</a>
|
||||
<ul>
|
||||
<li><a href="#org8e59b10">3.8.1. Get</a></li>
|
||||
<li><a href="#org479d65a">3.8.2. Compute</a></li>
|
||||
<li><a href="#orgd3bd3f9">3.8.3. Test</a></li>
|
||||
<li><a href="#org564c993">3.8.1. Get</a></li>
|
||||
<li><a href="#orgd52268b">3.8.2. Compute</a></li>
|
||||
<li><a href="#org73bb9e0">3.8.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org18bd3a0">3.9. Electron-nucleus rescaled distances for each order and derivatives</a>
|
||||
<li><a href="#org06b0ada">3.9. Electron-nucleus rescaled distances for each order and derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#orgc4ad078">3.9.1. Get</a></li>
|
||||
<li><a href="#org4361d3b">3.9.2. Compute</a></li>
|
||||
<li><a href="#orgc91cb54">3.9.3. Test</a></li>
|
||||
<li><a href="#org0075a5c">3.9.1. Get</a></li>
|
||||
<li><a href="#org7586605">3.9.2. Compute</a></li>
|
||||
<li><a href="#org63982b1">3.9.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org38c0d6c">3.10. Prepare for electron-electron-nucleus Jastrow \(f_{een}\)</a>
|
||||
<li><a href="#org9e30d4a">3.10. Prepare for electron-electron-nucleus Jastrow \(f_{een}\)</a>
|
||||
<ul>
|
||||
<li><a href="#orgafb5fc7">3.10.1. Get</a></li>
|
||||
<li><a href="#org2f92629">3.10.2. Compute dim<sub>cord</sub><sub>vect</sub></a></li>
|
||||
<li><a href="#orgc549830">3.10.3. Compute cord<sub>vect</sub><sub>full</sub></a></li>
|
||||
<li><a href="#org21061e6">3.10.4. Compute lkpm<sub>combined</sub><sub>index</sub></a></li>
|
||||
<li><a href="#orgea62dad">3.10.5. Compute tmp<sub>c</sub></a></li>
|
||||
<li><a href="#org16f384f">3.10.6. Compute dtmp<sub>c</sub></a></li>
|
||||
<li><a href="#org6d3ab02">3.10.7. Test</a></li>
|
||||
<li><a href="#org5e96267">3.10.1. Get</a></li>
|
||||
<li><a href="#org7855584">3.10.2. Compute dim<sub>cord</sub><sub>vect</sub></a></li>
|
||||
<li><a href="#org14d6cbc">3.10.3. Compute cord<sub>vect</sub><sub>full</sub></a></li>
|
||||
<li><a href="#orga645536">3.10.4. Compute lkpm<sub>combined</sub><sub>index</sub></a></li>
|
||||
<li><a href="#orgcd6781f">3.10.5. Compute tmp<sub>c</sub></a></li>
|
||||
<li><a href="#orgd201878">3.10.6. Compute dtmp<sub>c</sub></a></li>
|
||||
<li><a href="#org7a398e4">3.10.7. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org96a9c18">3.11. Electron-electron-nucleus Jastrow \(f_{een}\)</a>
|
||||
<li><a href="#org1f36b89">3.11. Electron-electron-nucleus Jastrow \(f_{een}\)</a>
|
||||
<ul>
|
||||
<li><a href="#org0180d6c">3.11.1. Get</a></li>
|
||||
<li><a href="#org6c6d75c">3.11.2. Compute naive</a></li>
|
||||
<li><a href="#orgcf442f7">3.11.3. Compute</a></li>
|
||||
<li><a href="#org63f08c1">3.11.4. Test</a></li>
|
||||
<li><a href="#orgc67a685">3.11.1. Get</a></li>
|
||||
<li><a href="#orgd240d80">3.11.2. Compute naive</a></li>
|
||||
<li><a href="#orge75513b">3.11.3. Compute</a></li>
|
||||
<li><a href="#org3d7a4de">3.11.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org322ba20">3.12. Electron-electron-nucleus Jastrow \(f_{een}\) derivative</a>
|
||||
<li><a href="#orgb41712b">3.12. Electron-electron-nucleus Jastrow \(f_{een}\) derivative</a>
|
||||
<ul>
|
||||
<li><a href="#orgea9871d">3.12.1. Get</a></li>
|
||||
<li><a href="#org3564e43">3.12.2. Compute Naive</a></li>
|
||||
<li><a href="#org0c53c8a">3.12.3. Compute</a></li>
|
||||
<li><a href="#org0cf3fda">3.12.4. Test</a></li>
|
||||
<li><a href="#orgc9bb3ba">3.12.1. Get</a></li>
|
||||
<li><a href="#org205a3aa">3.12.2. Compute Naive</a></li>
|
||||
<li><a href="#orgb07260e">3.12.3. Compute</a></li>
|
||||
<li><a href="#orgdc86bc9">3.12.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -440,8 +440,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3afd88c" class="outline-2">
|
||||
<h2 id="org3afd88c"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div id="outline-container-orga610174" class="outline-2">
|
||||
<h2 id="orga610174"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The Jastrow factor depends on the electronic (\(\mathbf{r}\)) and
|
||||
@ -522,14 +522,14 @@ The terms \(J_{\text{ee}}^\infty\) and \(J_{\text{eN}}^\infty\) are shifts to en
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge187fdf" class="outline-2">
|
||||
<h2 id="orge187fdf"><span class="section-number-2">2</span> Context</h2>
|
||||
<div id="outline-container-orgd9a5fde" class="outline-2">
|
||||
<h2 id="orgd9a5fde"><span class="section-number-2">2</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The following data stored in the context:
|
||||
</p>
|
||||
|
||||
<table id="org1c584b2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org80338e1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -820,8 +820,8 @@ computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf2e88b2" class="outline-3">
|
||||
<h3 id="orgf2e88b2"><span class="section-number-3">2.1</span> Data structure</h3>
|
||||
<div id="outline-container-orga5d351f" class="outline-3">
|
||||
<h3 id="orga5d351f"><span class="section-number-3">2.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-2-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>{
|
||||
@ -912,8 +912,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4421665" class="outline-3">
|
||||
<h3 id="org4421665"><span class="section-number-3">2.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgc413cc4" class="outline-3">
|
||||
<h3 id="orgc413cc4"><span class="section-number-3">2.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
Along with these core functions, calculation of the jastrow factor
|
||||
@ -933,8 +933,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org99b634a" class="outline-3">
|
||||
<h3 id="org99b634a"><span class="section-number-3">2.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org129d090" class="outline-3">
|
||||
<h3 id="org129d090"><span class="section-number-3">2.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
To prepare for the Jastrow and its derivative, all the following functions need to be
|
||||
@ -959,8 +959,8 @@ are precontracted using BLAS LEVEL 3 operations for an optimal flop count.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2ed9630" class="outline-3">
|
||||
<h3 id="org2ed9630"><span class="section-number-3">2.4</span> Test</h3>
|
||||
<div id="outline-container-orgae5e612" class="outline-3">
|
||||
<h3 id="orgae5e612"><span class="section-number-3">2.4</span> Test</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -1092,8 +1092,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2, nucl_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7736ec5" class="outline-2">
|
||||
<h2 id="org7736ec5"><span class="section-number-2">3</span> Computation</h2>
|
||||
<div id="outline-container-orgc39d8b3" class="outline-2">
|
||||
<h2 id="orgc39d8b3"><span class="section-number-2">3</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
The computed data is stored in the context so that it can be reused
|
||||
@ -1106,8 +1106,8 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfd671d4" class="outline-3">
|
||||
<h3 id="orgfd671d4"><span class="section-number-3">3.1</span> Asymptotic component for \(J_{ee}\)</h3>
|
||||
<div id="outline-container-org114e5f3" class="outline-3">
|
||||
<h3 id="org114e5f3"><span class="section-number-3">3.1</span> Asymptotic component for \(J_{ee}\)</h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
Calculate the asymptotic component <code>asymp_jasb</code> to be substracted from the final
|
||||
@ -1122,8 +1122,8 @@ via the <code>bord_vector</code> and the electron-electron rescale factor <code>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3edfe94" class="outline-4">
|
||||
<h4 id="org3edfe94"><span class="section-number-4">3.1.1</span> Get</h4>
|
||||
<div id="outline-container-orga9d6459" class="outline-4">
|
||||
<h4 id="orga9d6459"><span class="section-number-4">3.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1135,10 +1135,10 @@ via the <code>bord_vector</code> and the electron-electron rescale factor <code>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org37a9168" class="outline-4">
|
||||
<h4 id="org37a9168"><span class="section-number-4">3.1.2</span> Compute</h4>
|
||||
<div id="outline-container-orgbc65af3" class="outline-4">
|
||||
<h4 id="orgbc65af3"><span class="section-number-4">3.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<table id="org7f332a4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org74d537a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1274,8 +1274,8 @@ via the <code>bord_vector</code> and the electron-electron rescale factor <code>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2c4b87c" class="outline-4">
|
||||
<h4 id="org2c4b87c"><span class="section-number-4">3.1.3</span> Test</h4>
|
||||
<div id="outline-container-org43eb541" class="outline-4">
|
||||
<h4 id="org43eb541"><span class="section-number-4">3.1.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-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>));
|
||||
@ -1326,8 +1326,8 @@ rc = qmckl_get_jastrow_asymp_jasb(context, asymp_jasb,2);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3abd10e" class="outline-3">
|
||||
<h3 id="org3abd10e"><span class="section-number-3">3.2</span> Electron-electron component \(f_{ee}\)</h3>
|
||||
<div id="outline-container-org5aa3fd5" class="outline-3">
|
||||
<h3 id="org5aa3fd5"><span class="section-number-3">3.2</span> Electron-electron component \(f_{ee}\)</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<p>
|
||||
Calculate the electron-electron jastrow component <code>factor_ee</code> using the <code>asymp_jasb</code>
|
||||
@ -1342,8 +1342,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-orgf106a61" class="outline-4">
|
||||
<h4 id="orgf106a61"><span class="section-number-4">3.2.1</span> Get</h4>
|
||||
<div id="outline-container-orga57e9f5" class="outline-4">
|
||||
<h4 id="orga57e9f5"><span class="section-number-4">3.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1355,10 +1355,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-org6914b0f" class="outline-4">
|
||||
<h4 id="org6914b0f"><span class="section-number-4">3.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org6f9ebec" class="outline-4">
|
||||
<h4 id="org6f9ebec"><span class="section-number-4">3.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-2-2">
|
||||
<table id="org75627d8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd8227c3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1585,8 +1585,8 @@ 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-orgbebc7c5" class="outline-4">
|
||||
<h4 id="orgbebc7c5"><span class="section-number-4">3.2.3</span> Test</h4>
|
||||
<div id="outline-container-org778031b" class="outline-4">
|
||||
<h4 id="org778031b"><span class="section-number-4">3.2.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -1604,8 +1604,8 @@ rc = qmckl_get_jastrow_factor_ee(context, factor_ee, walk_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org513c2f9" class="outline-3">
|
||||
<h3 id="org513c2f9"><span class="section-number-3">3.3</span> Electron-electron component derivative \(f'_{ee}\)</h3>
|
||||
<div id="outline-container-orge25a40c" class="outline-3">
|
||||
<h3 id="orge25a40c"><span class="section-number-3">3.3</span> Electron-electron component derivative \(f'_{ee}\)</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<p>
|
||||
Calculate the derivative of the <code>factor_ee</code> using the <code>ee_distance_rescaled</code> and
|
||||
@ -1620,8 +1620,8 @@ TODO: Add equation
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgd83e65b" class="outline-4">
|
||||
<h4 id="orgd83e65b"><span class="section-number-4">3.3.1</span> Get</h4>
|
||||
<div id="outline-container-org0f6ec5b" class="outline-4">
|
||||
<h4 id="org0f6ec5b"><span class="section-number-4">3.3.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1633,10 +1633,10 @@ TODO: Add equation
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5379d75" class="outline-4">
|
||||
<h4 id="org5379d75"><span class="section-number-4">3.3.2</span> Compute</h4>
|
||||
<div id="outline-container-orgd818b6d" class="outline-4">
|
||||
<h4 id="orgd818b6d"><span class="section-number-4">3.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-3-2">
|
||||
<table id="orgaf5f34f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge313f00" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1998,8 +1998,8 @@ TODO: Add equation
|
||||
|
||||
|
||||
|
||||
<div id="outline-container-org9d46ccb" class="outline-4">
|
||||
<h4 id="org9d46ccb"><span class="section-number-4">3.3.3</span> Test</h4>
|
||||
<div id="outline-container-orge002f10" class="outline-4">
|
||||
<h4 id="orge002f10"><span class="section-number-4">3.3.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-3-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -2020,8 +2020,8 @@ rc = qmckl_get_jastrow_factor_ee_deriv_e(context, &(factor_ee_deriv_e[0][0][
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org08670d6" class="outline-3">
|
||||
<h3 id="org08670d6"><span class="section-number-3">3.4</span> Electron-nucleus component \(f_{en}\)</h3>
|
||||
<div id="outline-container-orgbdf1484" class="outline-3">
|
||||
<h3 id="orgbdf1484"><span class="section-number-3">3.4</span> Electron-nucleus component \(f_{en}\)</h3>
|
||||
<div class="outline-text-3" id="text-3-4">
|
||||
<p>
|
||||
Calculate the electron-electron jastrow component <code>factor_en</code> using the <code>aord_vector</code>
|
||||
@ -2036,8 +2036,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-orgd6aff7b" class="outline-4">
|
||||
<h4 id="orgd6aff7b"><span class="section-number-4">3.4.1</span> Get</h4>
|
||||
<div id="outline-container-org035cf50" class="outline-4">
|
||||
<h4 id="org035cf50"><span class="section-number-4">3.4.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -2049,10 +2049,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-orge1dfa88" class="outline-4">
|
||||
<h4 id="orge1dfa88"><span class="section-number-4">3.4.2</span> Compute</h4>
|
||||
<div id="outline-container-org41ea1cf" class="outline-4">
|
||||
<h4 id="org41ea1cf"><span class="section-number-4">3.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-4-2">
|
||||
<table id="orgf16f6e2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgdc52b4d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2305,8 +2305,8 @@ 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-org3b1f6f9" class="outline-4">
|
||||
<h4 id="org3b1f6f9"><span class="section-number-4">3.4.3</span> Test</h4>
|
||||
<div id="outline-container-org561c812" class="outline-4">
|
||||
<h4 id="org561c812"><span class="section-number-4">3.4.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-4-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -2324,8 +2324,8 @@ rc = qmckl_get_jastrow_factor_en(context, factor_en,walk_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org70afcca" class="outline-3">
|
||||
<h3 id="org70afcca"><span class="section-number-3">3.5</span> Electron-nucleus component derivative \(f'_{en}\)</h3>
|
||||
<div id="outline-container-org620641c" class="outline-3">
|
||||
<h3 id="org620641c"><span class="section-number-3">3.5</span> Electron-nucleus component derivative \(f'_{en}\)</h3>
|
||||
<div class="outline-text-3" id="text-3-5">
|
||||
<p>
|
||||
Calculate the electron-electron jastrow component <code>factor_en_deriv_e</code> derivative
|
||||
@ -2338,8 +2338,8 @@ TODO: write equations.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org87ccb6b" class="outline-4">
|
||||
<h4 id="org87ccb6b"><span class="section-number-4">3.5.1</span> Get</h4>
|
||||
<div id="outline-container-org167b101" class="outline-4">
|
||||
<h4 id="org167b101"><span class="section-number-4">3.5.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-5-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -2351,10 +2351,10 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org17ad45c" class="outline-4">
|
||||
<h4 id="org17ad45c"><span class="section-number-4">3.5.2</span> Compute</h4>
|
||||
<div id="outline-container-orgbff7e73" class="outline-4">
|
||||
<h4 id="orgbff7e73"><span class="section-number-4">3.5.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-5-2">
|
||||
<table id="orge8201f9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8533fc3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2559,8 +2559,8 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc456aea" class="outline-4">
|
||||
<h4 id="orgc456aea"><span class="section-number-4">3.5.3</span> Test</h4>
|
||||
<div id="outline-container-org4d7a602" class="outline-4">
|
||||
<h4 id="org4d7a602"><span class="section-number-4">3.5.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-5-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -2582,8 +2582,8 @@ rc = qmckl_get_jastrow_factor_en_deriv_e(context, &(factor_en_deriv_e[0][0][
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbaf2c92" class="outline-3">
|
||||
<h3 id="orgbaf2c92"><span class="section-number-3">3.6</span> Electron-electron rescaled distances for each order</h3>
|
||||
<div id="outline-container-org07805f9" class="outline-3">
|
||||
<h3 id="org07805f9"><span class="section-number-3">3.6</span> Electron-electron rescaled distances for each order</h3>
|
||||
<div class="outline-text-3" id="text-3-6">
|
||||
<p>
|
||||
<code>een_rescaled_e</code> stores the table of the rescaled distances between all
|
||||
@ -2601,8 +2601,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org44b4ac0" class="outline-4">
|
||||
<h4 id="org44b4ac0"><span class="section-number-4">3.6.1</span> Get</h4>
|
||||
<div id="outline-container-orgd18b08b" class="outline-4">
|
||||
<h4 id="orgd18b08b"><span class="section-number-4">3.6.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-6-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -2614,10 +2614,10 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgece93bd" class="outline-4">
|
||||
<h4 id="orgece93bd"><span class="section-number-4">3.6.2</span> Compute</h4>
|
||||
<div id="outline-container-org24439df" class="outline-4">
|
||||
<h4 id="org24439df"><span class="section-number-4">3.6.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-6-2">
|
||||
<table id="orga2d810f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0dc78b6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2946,8 +2946,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgadb9fbc" class="outline-4">
|
||||
<h4 id="orgadb9fbc"><span class="section-number-4">3.6.3</span> Test</h4>
|
||||
<div id="outline-container-org1c2d217" class="outline-4">
|
||||
<h4 id="org1c2d217"><span class="section-number-4">3.6.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-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>));
|
||||
@ -2969,8 +2969,8 @@ rc = qmckl_get_jastrow_een_rescaled_e(context, &(een_rescaled_e[0][0][0][0])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org982d851" class="outline-3">
|
||||
<h3 id="org982d851"><span class="section-number-3">3.7</span> Electron-electron rescaled distances for each order and derivatives</h3>
|
||||
<div id="outline-container-org18f62fb" class="outline-3">
|
||||
<h3 id="org18f62fb"><span class="section-number-3">3.7</span> Electron-electron rescaled distances for each order and derivatives</h3>
|
||||
<div class="outline-text-3" id="text-3-7">
|
||||
<p>
|
||||
<code>een_rescaled_e_deriv_e</code> stores the table of the derivatives of the
|
||||
@ -2985,8 +2985,8 @@ TODO: write formulae
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org0b571ac" class="outline-4">
|
||||
<h4 id="org0b571ac"><span class="section-number-4">3.7.1</span> Get</h4>
|
||||
<div id="outline-container-org9d3b3ca" class="outline-4">
|
||||
<h4 id="org9d3b3ca"><span class="section-number-4">3.7.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-7-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -2998,10 +2998,10 @@ TODO: write formulae
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org079e0d8" class="outline-4">
|
||||
<h4 id="org079e0d8"><span class="section-number-4">3.7.2</span> Compute</h4>
|
||||
<div id="outline-container-org79c4723" class="outline-4">
|
||||
<h4 id="org79c4723"><span class="section-number-4">3.7.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-7-2">
|
||||
<table id="org255a3b6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgbf13e0a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3179,8 +3179,8 @@ TODO: write formulae
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf767459" class="outline-4">
|
||||
<h4 id="orgf767459"><span class="section-number-4">3.7.3</span> Test</h4>
|
||||
<div id="outline-container-orga87b22f" class="outline-4">
|
||||
<h4 id="orga87b22f"><span class="section-number-4">3.7.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-7-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">//<span style="color: #b22222;">assert(qmckl_electron_provided(context));</span>
|
||||
@ -3202,8 +3202,8 @@ rc = qmckl_get_jastrow_een_rescaled_e_deriv_e(context,
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2d7a0b3" class="outline-3">
|
||||
<h3 id="org2d7a0b3"><span class="section-number-3">3.8</span> Electron-nucleus rescaled distances for each order</h3>
|
||||
<div id="outline-container-org2ea980b" class="outline-3">
|
||||
<h3 id="org2ea980b"><span class="section-number-3">3.8</span> Electron-nucleus rescaled distances for each order</h3>
|
||||
<div class="outline-text-3" id="text-3-8">
|
||||
<p>
|
||||
<code>een_rescaled_n</code> stores the table of the rescaled distances between
|
||||
@ -3221,8 +3221,8 @@ where \(C_{ia}\) is the matrix of electron-nucleus distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8e59b10" class="outline-4">
|
||||
<h4 id="org8e59b10"><span class="section-number-4">3.8.1</span> Get</h4>
|
||||
<div id="outline-container-org564c993" class="outline-4">
|
||||
<h4 id="org564c993"><span class="section-number-4">3.8.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-8-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -3234,10 +3234,10 @@ where \(C_{ia}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org479d65a" class="outline-4">
|
||||
<h4 id="org479d65a"><span class="section-number-4">3.8.2</span> Compute</h4>
|
||||
<div id="outline-container-orgd52268b" class="outline-4">
|
||||
<h4 id="orgd52268b"><span class="section-number-4">3.8.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-8-2">
|
||||
<table id="orgda6d473" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd4c51f1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3454,8 +3454,8 @@ where \(C_{ia}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd3bd3f9" class="outline-4">
|
||||
<h4 id="orgd3bd3f9"><span class="section-number-4">3.8.3</span> Test</h4>
|
||||
<div id="outline-container-org73bb9e0" class="outline-4">
|
||||
<h4 id="org73bb9e0"><span class="section-number-4">3.8.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-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>));
|
||||
@ -3477,8 +3477,8 @@ rc = qmckl_get_jastrow_een_rescaled_n(context, &(een_rescaled_n[0][0][0][0])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org18bd3a0" class="outline-3">
|
||||
<h3 id="org18bd3a0"><span class="section-number-3">3.9</span> Electron-nucleus rescaled distances for each order and derivatives</h3>
|
||||
<div id="outline-container-org06b0ada" class="outline-3">
|
||||
<h3 id="org06b0ada"><span class="section-number-3">3.9</span> Electron-nucleus rescaled distances for each order and derivatives</h3>
|
||||
<div class="outline-text-3" id="text-3-9">
|
||||
<p>
|
||||
<code>een_rescaled_n_deriv_e</code> stores the table of the rescaled distances between
|
||||
@ -3487,8 +3487,8 @@ electrons and nucleii raised to the power \(p\) defined by <code>cord_num</code>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgc4ad078" class="outline-4">
|
||||
<h4 id="orgc4ad078"><span class="section-number-4">3.9.1</span> Get</h4>
|
||||
<div id="outline-container-org0075a5c" class="outline-4">
|
||||
<h4 id="org0075a5c"><span class="section-number-4">3.9.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-9-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -3500,10 +3500,10 @@ electrons and nucleii raised to the power \(p\) defined by <code>cord_num</code>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4361d3b" class="outline-4">
|
||||
<h4 id="org4361d3b"><span class="section-number-4">3.9.2</span> Compute</h4>
|
||||
<div id="outline-container-org7586605" class="outline-4">
|
||||
<h4 id="org7586605"><span class="section-number-4">3.9.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-9-2">
|
||||
<table id="org57c404f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgae59f3f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3703,8 +3703,8 @@ electrons and nucleii raised to the power \(p\) defined by <code>cord_num</code>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc91cb54" class="outline-4">
|
||||
<h4 id="orgc91cb54"><span class="section-number-4">3.9.3</span> Test</h4>
|
||||
<div id="outline-container-org63982b1" class="outline-4">
|
||||
<h4 id="org63982b1"><span class="section-number-4">3.9.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-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>));
|
||||
@ -3727,8 +3727,8 @@ rc = qmckl_get_jastrow_een_rescaled_n_deriv_e(context, &(een_rescaled_n_deri
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org38c0d6c" class="outline-3">
|
||||
<h3 id="org38c0d6c"><span class="section-number-3">3.10</span> Prepare for electron-electron-nucleus Jastrow \(f_{een}\)</h3>
|
||||
<div id="outline-container-org9e30d4a" class="outline-3">
|
||||
<h3 id="org9e30d4a"><span class="section-number-3">3.10</span> Prepare for electron-electron-nucleus Jastrow \(f_{een}\)</h3>
|
||||
<div class="outline-text-3" id="text-3-10">
|
||||
<p>
|
||||
Prepare <code>cord_vect_full</code> and <code>lkpm_combined_index</code> tables required for the
|
||||
@ -3737,8 +3737,8 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgafb5fc7" class="outline-4">
|
||||
<h4 id="orgafb5fc7"><span class="section-number-4">3.10.1</span> Get</h4>
|
||||
<div id="outline-container-org5e96267" class="outline-4">
|
||||
<h4 id="org5e96267"><span class="section-number-4">3.10.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-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>);
|
||||
@ -3751,10 +3751,10 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2f92629" class="outline-4">
|
||||
<h4 id="org2f92629"><span class="section-number-4">3.10.2</span> Compute dim<sub>cord</sub><sub>vect</sub></h4>
|
||||
<div id="outline-container-org7855584" class="outline-4">
|
||||
<h4 id="org7855584"><span class="section-number-4">3.10.2</span> Compute dim<sub>cord</sub><sub>vect</sub></h4>
|
||||
<div class="outline-text-4" id="text-3-10-2">
|
||||
<table id="org42f2917" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgaf7f612" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3882,10 +3882,10 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc549830" class="outline-4">
|
||||
<h4 id="orgc549830"><span class="section-number-4">3.10.3</span> Compute cord<sub>vect</sub><sub>full</sub></h4>
|
||||
<div id="outline-container-org14d6cbc" class="outline-4">
|
||||
<h4 id="org14d6cbc"><span class="section-number-4">3.10.3</span> Compute cord<sub>vect</sub><sub>full</sub></h4>
|
||||
<div class="outline-text-4" id="text-3-10-3">
|
||||
<table id="org8e34db9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4b062be" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4090,10 +4090,10 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
|
||||
|
||||
|
||||
<div id="outline-container-org21061e6" class="outline-4">
|
||||
<h4 id="org21061e6"><span class="section-number-4">3.10.4</span> Compute lkpm<sub>combined</sub><sub>index</sub></h4>
|
||||
<div id="outline-container-orga645536" class="outline-4">
|
||||
<h4 id="orga645536"><span class="section-number-4">3.10.4</span> Compute lkpm<sub>combined</sub><sub>index</sub></h4>
|
||||
<div class="outline-text-4" id="text-3-10-4">
|
||||
<table id="org0b95134" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5c9bcc1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4249,10 +4249,10 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgea62dad" class="outline-4">
|
||||
<h4 id="orgea62dad"><span class="section-number-4">3.10.5</span> Compute tmp<sub>c</sub></h4>
|
||||
<div id="outline-container-orgcd6781f" class="outline-4">
|
||||
<h4 id="orgcd6781f"><span class="section-number-4">3.10.5</span> Compute tmp<sub>c</sub></h4>
|
||||
<div class="outline-text-4" id="text-3-10-5">
|
||||
<table id="org08b6169" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7368a06" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4435,10 +4435,10 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org16f384f" class="outline-4">
|
||||
<h4 id="org16f384f"><span class="section-number-4">3.10.6</span> Compute dtmp<sub>c</sub></h4>
|
||||
<div id="outline-container-orgd201878" class="outline-4">
|
||||
<h4 id="orgd201878"><span class="section-number-4">3.10.6</span> Compute dtmp<sub>c</sub></h4>
|
||||
<div class="outline-text-4" id="text-3-10-6">
|
||||
<table id="org2043a10" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org997a00a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4611,8 +4611,8 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6d3ab02" class="outline-4">
|
||||
<h4 id="org6d3ab02"><span class="section-number-4">3.10.7</span> Test</h4>
|
||||
<div id="outline-container-org7a398e4" class="outline-4">
|
||||
<h4 id="org7a398e4"><span class="section-number-4">3.10.7</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-10-7">
|
||||
<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>));
|
||||
@ -4634,8 +4634,8 @@ printf(<span style="color: #8b2252;">"%e\n%e\n"</span>, tmp_c[0][1][0][0][0],0.2
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org96a9c18" class="outline-3">
|
||||
<h3 id="org96a9c18"><span class="section-number-3">3.11</span> Electron-electron-nucleus Jastrow \(f_{een}\)</h3>
|
||||
<div id="outline-container-org1f36b89" class="outline-3">
|
||||
<h3 id="org1f36b89"><span class="section-number-3">3.11</span> Electron-electron-nucleus Jastrow \(f_{een}\)</h3>
|
||||
<div class="outline-text-3" id="text-3-11">
|
||||
<p>
|
||||
Calculate the electron-electron-nuclear three-body jastrow component <code>factor_een</code>
|
||||
@ -4647,8 +4647,8 @@ TODO: write equations.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0180d6c" class="outline-4">
|
||||
<h4 id="org0180d6c"><span class="section-number-4">3.11.1</span> Get</h4>
|
||||
<div id="outline-container-orgc67a685" class="outline-4">
|
||||
<h4 id="orgc67a685"><span class="section-number-4">3.11.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-11-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -4660,10 +4660,10 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6c6d75c" class="outline-4">
|
||||
<h4 id="org6c6d75c"><span class="section-number-4">3.11.2</span> Compute naive</h4>
|
||||
<div id="outline-container-orgd240d80" class="outline-4">
|
||||
<h4 id="orgd240d80"><span class="section-number-4">3.11.2</span> Compute naive</h4>
|
||||
<div class="outline-text-4" id="text-3-11-2">
|
||||
<table id="orgb4e29bd" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgeb3e1a1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4844,10 +4844,10 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcf442f7" class="outline-4">
|
||||
<h4 id="orgcf442f7"><span class="section-number-4">3.11.3</span> Compute</h4>
|
||||
<div id="outline-container-orge75513b" class="outline-4">
|
||||
<h4 id="orge75513b"><span class="section-number-4">3.11.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-11-3">
|
||||
<table id="org2ff7c00" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6da28e6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -5021,8 +5021,8 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org63f08c1" class="outline-4">
|
||||
<h4 id="org63f08c1"><span class="section-number-4">3.11.4</span> Test</h4>
|
||||
<div id="outline-container-org3d7a4de" class="outline-4">
|
||||
<h4 id="org3d7a4de"><span class="section-number-4">3.11.4</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-11-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -5038,8 +5038,8 @@ rc = qmckl_get_jastrow_factor_een(context, &(factor_een[0]),walk_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org322ba20" class="outline-3">
|
||||
<h3 id="org322ba20"><span class="section-number-3">3.12</span> Electron-electron-nucleus Jastrow \(f_{een}\) derivative</h3>
|
||||
<div id="outline-container-orgb41712b" class="outline-3">
|
||||
<h3 id="orgb41712b"><span class="section-number-3">3.12</span> Electron-electron-nucleus Jastrow \(f_{een}\) derivative</h3>
|
||||
<div class="outline-text-3" id="text-3-12">
|
||||
<p>
|
||||
Calculate the electron-electron-nuclear three-body jastrow component <code>factor_een_deriv_e</code>
|
||||
@ -5051,8 +5051,8 @@ TODO: write equations.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgea9871d" class="outline-4">
|
||||
<h4 id="orgea9871d"><span class="section-number-4">3.12.1</span> Get</h4>
|
||||
<div id="outline-container-orgc9bb3ba" class="outline-4">
|
||||
<h4 id="orgc9bb3ba"><span class="section-number-4">3.12.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-3-12-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -5064,10 +5064,10 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3564e43" class="outline-4">
|
||||
<h4 id="org3564e43"><span class="section-number-4">3.12.2</span> Compute Naive</h4>
|
||||
<div id="outline-container-org205a3aa" class="outline-4">
|
||||
<h4 id="org205a3aa"><span class="section-number-4">3.12.2</span> Compute Naive</h4>
|
||||
<div class="outline-text-4" id="text-3-12-2">
|
||||
<table id="orge108f50" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6ade57c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -5281,10 +5281,10 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0c53c8a" class="outline-4">
|
||||
<h4 id="org0c53c8a"><span class="section-number-4">3.12.3</span> Compute</h4>
|
||||
<div id="outline-container-orgb07260e" class="outline-4">
|
||||
<h4 id="orgb07260e"><span class="section-number-4">3.12.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-3-12-3">
|
||||
<table id="orgb609269" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgddd3ddb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -5492,8 +5492,8 @@ TODO: write equations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0cf3fda" class="outline-4">
|
||||
<h4 id="org0cf3fda"><span class="section-number-4">3.12.4</span> Test</h4>
|
||||
<div id="outline-container-orgdc86bc9" class="outline-4">
|
||||
<h4 id="orgdc86bc9"><span class="section-number-4">3.12.4</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-12-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
|
||||
@ -5512,7 +5512,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-08-17 Wed 11:44</p>
|
||||
<p class="date">Created: 2022-08-18 Thu 14:18</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-08-17 Wed 11:43 -->
|
||||
<!-- 2022-08-18 Thu 14:17 -->
|
||||
<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="#orgc40d217">1. Context</a>
|
||||
<li><a href="#orgb6b4ab9">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org168da8e">1.1. Data structure</a></li>
|
||||
<li><a href="#orgbd09f88">1.1. Data structure</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5f2d6a8">2. Computation</a>
|
||||
<li><a href="#org39108d8">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org49568fc">2.1. Kinetic energy</a>
|
||||
<li><a href="#orgefecdee">2.1. Kinetic energy</a>
|
||||
<ul>
|
||||
<li><a href="#org1d04560">2.1.1. Get</a></li>
|
||||
<li><a href="#org6aed34e">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgcb71d3e">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#orgd67d188">2.1.4. Test</a></li>
|
||||
<li><a href="#orgba9cfb3">2.1.1. Get</a></li>
|
||||
<li><a href="#orgaac33ab">2.1.2. Provide</a></li>
|
||||
<li><a href="#org7835f17">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org359c98e">2.1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc61942d">2.2. Potential energy</a>
|
||||
<li><a href="#orgb9bc22f">2.2. Potential energy</a>
|
||||
<ul>
|
||||
<li><a href="#org0f0abbf">2.2.1. Get</a></li>
|
||||
<li><a href="#org40ee239">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgd5773bc">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#orgb7b009e">2.2.4. Test</a></li>
|
||||
<li><a href="#orgd419485">2.2.1. Get</a></li>
|
||||
<li><a href="#orgcffa67f">2.2.2. Provide</a></li>
|
||||
<li><a href="#orga7a6d98">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org0865984">2.2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1892942">2.3. Local energy</a>
|
||||
<li><a href="#orga4c6855">2.3. Local energy</a>
|
||||
<ul>
|
||||
<li><a href="#org68068d7">2.3.1. Get</a></li>
|
||||
<li><a href="#orgcbbe90e">2.3.2. Provide</a></li>
|
||||
<li><a href="#org8a24f45">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#org6e04c01">2.3.4. Test</a></li>
|
||||
<li><a href="#org17aee6d">2.3.1. Get</a></li>
|
||||
<li><a href="#org17fe544">2.3.2. Provide</a></li>
|
||||
<li><a href="#org036dda7">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#org7a29450">2.3.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf43c171">2.4. Drift vector</a>
|
||||
<li><a href="#orgd3aa12a">2.4. Drift vector</a>
|
||||
<ul>
|
||||
<li><a href="#org281cb9a">2.4.1. Get</a></li>
|
||||
<li><a href="#orged80172">2.4.2. Provide</a></li>
|
||||
<li><a href="#org896b5cc">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org1be5f31">2.4.4. Test</a></li>
|
||||
<li><a href="#orgc7f29d7">2.4.1. Get</a></li>
|
||||
<li><a href="#org5900fa5">2.4.2. Provide</a></li>
|
||||
<li><a href="#org89d1e52">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org9aa19f4">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-orgc40d217" class="outline-2">
|
||||
<h2 id="orgc40d217"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgb6b4ab9" class="outline-2">
|
||||
<h2 id="orgb6b4ab9"><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-org168da8e" class="outline-3">
|
||||
<h3 id="org168da8e"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgbd09f88" class="outline-3">
|
||||
<h3 id="orgbd09f88"><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-org5f2d6a8" class="outline-2">
|
||||
<h2 id="org5f2d6a8"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org39108d8" class="outline-2">
|
||||
<h2 id="org39108d8"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org49568fc" class="outline-3">
|
||||
<h3 id="org49568fc"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div id="outline-container-orgefecdee" class="outline-3">
|
||||
<h3 id="orgefecdee"><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-org1d04560" class="outline-4">
|
||||
<h4 id="org1d04560"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orgba9cfb3" class="outline-4">
|
||||
<h4 id="orgba9cfb3"><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-org6aed34e" class="outline-4">
|
||||
<h4 id="org6aed34e"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-orgaac33ab" class="outline-4">
|
||||
<h4 id="orgaac33ab"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcb71d3e" class="outline-4">
|
||||
<h4 id="orgcb71d3e"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
||||
<div id="outline-container-org7835f17" class="outline-4">
|
||||
<h4 id="org7835f17"><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="orgb6a3037" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org61afd77" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -763,12 +763,12 @@ case is given as follows:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd67d188" class="outline-4">
|
||||
<h4 id="orgd67d188"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
<div id="outline-container-org359c98e" class="outline-4">
|
||||
<h4 id="org359c98e"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgc61942d" class="outline-3">
|
||||
<h3 id="orgc61942d"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div id="outline-container-orgb9bc22f" class="outline-3">
|
||||
<h3 id="orgb9bc22f"><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
|
||||
@ -804,8 +804,8 @@ contributions.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0f0abbf" class="outline-4">
|
||||
<h4 id="org0f0abbf"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgd419485" class="outline-4">
|
||||
<h4 id="orgd419485"><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>);
|
||||
@ -814,14 +814,14 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org40ee239" class="outline-4">
|
||||
<h4 id="org40ee239"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-orgcffa67f" class="outline-4">
|
||||
<h4 id="orgcffa67f"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd5773bc" class="outline-4">
|
||||
<h4 id="orgd5773bc"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
||||
<div id="outline-container-orga7a6d98" class="outline-4">
|
||||
<h4 id="orga7a6d98"><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="org1b4623b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga89a904" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -948,12 +948,12 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb7b009e" class="outline-4">
|
||||
<h4 id="orgb7b009e"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
<div id="outline-container-org0865984" class="outline-4">
|
||||
<h4 id="org0865984"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org1892942" class="outline-3">
|
||||
<h3 id="org1892942"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div id="outline-container-orga4c6855" class="outline-3">
|
||||
<h3 id="orga4c6855"><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.
|
||||
@ -967,8 +967,8 @@ E_L = KE + PE
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org68068d7" class="outline-4">
|
||||
<h4 id="org68068d7"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org17aee6d" class="outline-4">
|
||||
<h4 id="org17aee6d"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_local_energy</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">local_energy</span>, <span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">size_max</span>);
|
||||
@ -977,14 +977,14 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcbbe90e" class="outline-4">
|
||||
<h4 id="orgcbbe90e"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-org17fe544" class="outline-4">
|
||||
<h4 id="org17fe544"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8a24f45" class="outline-4">
|
||||
<h4 id="org8a24f45"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
||||
<div id="outline-container-org036dda7" class="outline-4">
|
||||
<h4 id="org036dda7"><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="org66c456f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4707889" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1080,12 +1080,12 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6e04c01" class="outline-4">
|
||||
<h4 id="org6e04c01"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
<div id="outline-container-org7a29450" class="outline-4">
|
||||
<h4 id="org7a29450"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgf43c171" class="outline-3">
|
||||
<h3 id="orgf43c171"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div id="outline-container-orgd3aa12a" class="outline-3">
|
||||
<h3 id="orgd3aa12a"><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
|
||||
@ -1099,8 +1099,8 @@ with the determinant of the wavefunction.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org281cb9a" class="outline-4">
|
||||
<h4 id="org281cb9a"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-orgc7f29d7" class="outline-4">
|
||||
<h4 id="orgc7f29d7"><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>);
|
||||
@ -1109,14 +1109,14 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orged80172" class="outline-4">
|
||||
<h4 id="orged80172"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
<div id="outline-container-org5900fa5" class="outline-4">
|
||||
<h4 id="org5900fa5"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org896b5cc" class="outline-4">
|
||||
<h4 id="org896b5cc"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
||||
<div id="outline-container-org89d1e52" class="outline-4">
|
||||
<h4 id="org89d1e52"><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="orgbe28014" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org873de02" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1337,15 +1337,15 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1be5f31" class="outline-4">
|
||||
<h4 id="org1be5f31"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
<div id="outline-container-org9aa19f4" class="outline-4">
|
||||
<h4 id="org9aa19f4"><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-08-17 Wed 11:43</p>
|
||||
<p class="date">Created: 2022-08-18 Thu 14:17</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-08-17 Wed 11:43 -->
|
||||
<!-- 2022-08-18 Thu 14:17 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Memory management</title>
|
||||
@ -311,16 +311,16 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org04aca86">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#orgea104e1">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orge242a6b">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#org3b42fd7">4. Get the size of a memory block</a></li>
|
||||
<li><a href="#orgfe0a621">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org7718724">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orgc252d6f">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#org0c19880">4. Get the size of a memory block</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org04aca86" class="outline-2">
|
||||
<h2 id="org04aca86"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div id="outline-container-orgfe0a621" class="outline-2">
|
||||
<h2 id="orgfe0a621"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
Every time a new block of memory is allocated, the information
|
||||
@ -362,8 +362,8 @@ array, and the number of allocated blocks.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgea104e1" class="outline-2">
|
||||
<h2 id="orgea104e1"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div id="outline-container-org7718724" class="outline-2">
|
||||
<h2 id="org7718724"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
Passing information to the allocation routine should be done by
|
||||
@ -372,8 +372,8 @@ passing an instance of a <code>qmckl_memory_info_struct</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge242a6b" class="outline-2">
|
||||
<h2 id="orge242a6b"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-orgc252d6f" class="outline-2">
|
||||
<h2 id="orgc252d6f"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
Memory allocation inside the library should be done with
|
||||
@ -537,8 +537,8 @@ allocation and needs to be updated.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org3b42fd7" class="outline-2">
|
||||
<h2 id="org3b42fd7"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
||||
<div id="outline-container-org0c19880" class="outline-2">
|
||||
<h2 id="org0c19880"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
All the blocks allocated with <code>qmckl_malloc</code> keep track of how many
|
||||
@ -633,7 +633,7 @@ rc = qmckl_context_destroy(context);
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-08-17 Wed 11:43</p>
|
||||
<p class="date">Created: 2022-08-18 Thu 14:17</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
122
qmckl_mo.html
122
qmckl_mo.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-08-17 Wed 11:43 -->
|
||||
<!-- 2022-08-18 Thu 14:17 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Molecular Orbitals</title>
|
||||
@ -311,49 +311,49 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org78c993f">1. Context</a>
|
||||
<li><a href="#orgbdd74fc">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgfd5c6c2">1.1. Data structure</a></li>
|
||||
<li><a href="#orge33b1f5">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org72da543">1.3. Access functions</a>
|
||||
<li><a href="#orga04a8e9">1.1. Data structure</a></li>
|
||||
<li><a href="#org5d39ef0">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org7bd9600">1.3. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org939cd1d">1.3.1. Fortran interfaces</a></li>
|
||||
<li><a href="#org6d9798b">1.3.1. Fortran interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7690307">1.4. Update</a>
|
||||
<li><a href="#org381431f">1.4. Update</a>
|
||||
<ul>
|
||||
<li><a href="#org85b6fe0">1.4.1. Fortran interface</a></li>
|
||||
<li><a href="#orgaac0b6d">1.4.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8733bb0">2. Computation</a>
|
||||
<li><a href="#org0a99131">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org90aedcd">2.1. Computation of MOs: values only</a>
|
||||
<li><a href="#org52cac55">2.1. Computation of MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#org6e3da24">2.1.1. Get</a></li>
|
||||
<li><a href="#orgd928c3c">2.1.2. Provide</a></li>
|
||||
<li><a href="#org73c7c62">2.1.3. Compute</a></li>
|
||||
<li><a href="#org66b1eb8">2.1.4. HPC version</a></li>
|
||||
<li><a href="#org74dd4d0">2.1.1. Get</a></li>
|
||||
<li><a href="#org186b50a">2.1.2. Provide</a></li>
|
||||
<li><a href="#org604c589">2.1.3. Compute</a></li>
|
||||
<li><a href="#org9f99224">2.1.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org10b81a0">2.2. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<li><a href="#org07f8257">2.2. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#orgf43cd1d">2.2.1. Get</a></li>
|
||||
<li><a href="#org46ebd51">2.2.2. Provide</a></li>
|
||||
<li><a href="#org5ba553b">2.2.3. Compute</a></li>
|
||||
<li><a href="#org41cdc65">2.2.4. HPC version</a></li>
|
||||
<li><a href="#orga89aeec">2.2.1. Get</a></li>
|
||||
<li><a href="#org4e6515c">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgc9e9a73">2.2.3. Compute</a></li>
|
||||
<li><a href="#org4a9a367">2.2.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org02c6b67">2.3. Test</a></li>
|
||||
<li><a href="#orge2ba18d">2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org78c993f" class="outline-2">
|
||||
<h2 id="org78c993f"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgbdd74fc" class="outline-2">
|
||||
<h2 id="orgbdd74fc"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following arrays are stored in the context:
|
||||
@ -433,8 +433,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfd5c6c2" class="outline-3">
|
||||
<h3 id="orgfd5c6c2"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orga04a8e9" class="outline-3">
|
||||
<h3 id="orga04a8e9"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_mo_basis_struct</span> {
|
||||
@ -486,8 +486,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge33b1f5" class="outline-3">
|
||||
<h3 id="orge33b1f5"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-org5d39ef0" class="outline-3">
|
||||
<h3 id="org5d39ef0"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To set the basis set, all the following functions need to be
|
||||
@ -507,8 +507,8 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org72da543" class="outline-3">
|
||||
<h3 id="org72da543"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div id="outline-container-org7bd9600" class="outline-3">
|
||||
<h3 id="org7bd9600"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
When all the data for the AOs have been provided, the following
|
||||
@ -521,13 +521,13 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org939cd1d" class="outline-4">
|
||||
<h4 id="org939cd1d"><span class="section-number-4">1.3.1</span> Fortran interfaces</h4>
|
||||
<div id="outline-container-org6d9798b" class="outline-4">
|
||||
<h4 id="org6d9798b"><span class="section-number-4">1.3.1</span> Fortran interfaces</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7690307" class="outline-3">
|
||||
<h3 id="org7690307"><span class="section-number-3">1.4</span> Update</h3>
|
||||
<div id="outline-container-org381431f" class="outline-3">
|
||||
<h3 id="org381431f"><span class="section-number-3">1.4</span> Update</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
Useless MOs can be removed, for instance virtual MOs in a single
|
||||
@ -548,22 +548,22 @@ otherwise it is kept.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org85b6fe0" class="outline-4">
|
||||
<h4 id="org85b6fe0"><span class="section-number-4">1.4.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-orgaac0b6d" class="outline-4">
|
||||
<h4 id="orgaac0b6d"><span class="section-number-4">1.4.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8733bb0" class="outline-2">
|
||||
<h2 id="org8733bb0"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org0a99131" class="outline-2">
|
||||
<h2 id="org0a99131"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org90aedcd" class="outline-3">
|
||||
<h3 id="org90aedcd"><span class="section-number-3">2.1</span> Computation of MOs: values only</h3>
|
||||
<div id="outline-container-org52cac55" class="outline-3">
|
||||
<h3 id="org52cac55"><span class="section-number-3">2.1</span> Computation of MOs: values only</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
</div>
|
||||
<div id="outline-container-org6e3da24" class="outline-4">
|
||||
<h4 id="org6e3da24"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org74dd4d0" class="outline-4">
|
||||
<h4 id="org74dd4d0"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -587,8 +587,8 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd928c3c" class="outline-4">
|
||||
<h4 id="orgd928c3c"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org186b50a" class="outline-4">
|
||||
<h4 id="org186b50a"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_provide_mo_basis_mo_value</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>);
|
||||
@ -673,10 +673,10 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org73c7c62" class="outline-4">
|
||||
<h4 id="org73c7c62"><span class="section-number-4">2.1.3</span> Compute</h4>
|
||||
<div id="outline-container-org604c589" class="outline-4">
|
||||
<h4 id="org604c589"><span class="section-number-4">2.1.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="orgb6781d0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgeb186e4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -850,8 +850,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org66b1eb8" class="outline-4">
|
||||
<h4 id="org66b1eb8"><span class="section-number-4">2.1.4</span> HPC version</h4>
|
||||
<div id="outline-container-org9f99224" class="outline-4">
|
||||
<h4 id="org9f99224"><span class="section-number-4">2.1.4</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
@ -944,12 +944,12 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org10b81a0" class="outline-3">
|
||||
<h3 id="org10b81a0"><span class="section-number-3">2.2</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-org07f8257" class="outline-3">
|
||||
<h3 id="org07f8257"><span class="section-number-3">2.2</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
</div>
|
||||
<div id="outline-container-orgf43cd1d" class="outline-4">
|
||||
<h4 id="orgf43cd1d"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orga89aeec" class="outline-4">
|
||||
<h4 id="orga89aeec"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -973,8 +973,8 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org46ebd51" class="outline-4">
|
||||
<h4 id="org46ebd51"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org4e6515c" class="outline-4">
|
||||
<h4 id="org4e6515c"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_provide_mo_basis_mo_vgl</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>);
|
||||
@ -1058,10 +1058,10 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5ba553b" class="outline-4">
|
||||
<h4 id="org5ba553b"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div id="outline-container-orgc9e9a73" class="outline-4">
|
||||
<h4 id="orgc9e9a73"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="orgbcd2827" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8d70462" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1233,8 +1233,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org41cdc65" class="outline-4">
|
||||
<h4 id="org41cdc65"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
||||
<div id="outline-container-org4a9a367" class="outline-4">
|
||||
<h4 id="org4a9a367"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
@ -1380,14 +1380,14 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org02c6b67" class="outline-3">
|
||||
<h3 id="org02c6b67"><span class="section-number-3">2.3</span> Test</h3>
|
||||
<div id="outline-container-orge2ba18d" class="outline-3">
|
||||
<h3 id="orge2ba18d"><span class="section-number-3">2.3</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-08-17 Wed 11:43</p>
|
||||
<p class="date">Created: 2022-08-18 Thu 14:17</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-08-17 Wed 11:43 -->
|
||||
<!-- 2022-08-18 Thu 14:18 -->
|
||||
<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="#org0744f2f">1. Context</a>
|
||||
<li><a href="#org7598933">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org1975a3e">1.1. Data structure</a></li>
|
||||
<li><a href="#org3f18e1d">1.2. Access functions</a></li>
|
||||
<li><a href="#org799426c">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgbd177bd">1.4. Test</a></li>
|
||||
<li><a href="#orge36691a">1.1. Data structure</a></li>
|
||||
<li><a href="#org44f2707">1.2. Access functions</a></li>
|
||||
<li><a href="#orgdc3a4bc">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orga5d1679">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9bdbfea">2. Computation</a>
|
||||
<li><a href="#org71bf25a">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org4dde73b">2.1. Nucleus-nucleus distances</a>
|
||||
<li><a href="#org69edf1e">2.1. Nucleus-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgf9c374c">2.1.1. Get</a></li>
|
||||
<li><a href="#orgd57bf99">2.1.2. Compute</a></li>
|
||||
<li><a href="#org0ea3ca7">2.1.3. Test</a></li>
|
||||
<li><a href="#org3fca08d">2.1.1. Get</a></li>
|
||||
<li><a href="#org45ed4c1">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgcda4ea7">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org02b3aee">2.2. Nucleus-nucleus rescaled distances</a>
|
||||
<li><a href="#orgc335642">2.2. Nucleus-nucleus rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#orge75a556">2.2.1. Get</a></li>
|
||||
<li><a href="#org4e4513a">2.2.2. Compute</a></li>
|
||||
<li><a href="#org5858ca2">2.2.3. Test</a></li>
|
||||
<li><a href="#org38731bb">2.2.1. Get</a></li>
|
||||
<li><a href="#org77938b7">2.2.2. Compute</a></li>
|
||||
<li><a href="#org37399c1">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org37cc895">2.3. Nuclear repulsion energy</a>
|
||||
<li><a href="#orgec833c8">2.3. Nuclear repulsion energy</a>
|
||||
<ul>
|
||||
<li><a href="#org725d53a">2.3.1. Get</a></li>
|
||||
<li><a href="#org9610163">2.3.2. Compute</a></li>
|
||||
<li><a href="#org0956765">2.3.3. Test</a></li>
|
||||
<li><a href="#org0e0e861">2.3.1. Get</a></li>
|
||||
<li><a href="#org052a76a">2.3.2. Compute</a></li>
|
||||
<li><a href="#org4e066f0">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-org0744f2f" class="outline-2">
|
||||
<h2 id="org0744f2f"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org7598933" class="outline-2">
|
||||
<h2 id="org7598933"><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-org1975a3e" class="outline-3">
|
||||
<h3 id="org1975a3e"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orge36691a" class="outline-3">
|
||||
<h3 id="orge36691a"><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-org3f18e1d" class="outline-3">
|
||||
<h3 id="org3f18e1d"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org44f2707" class="outline-3">
|
||||
<h3 id="org44f2707"><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-org799426c" class="outline-3">
|
||||
<h3 id="org799426c"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgdc3a4bc" class="outline-3">
|
||||
<h3 id="orgdc3a4bc"><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
|
||||
@ -618,8 +618,8 @@ Sets the rescale parameter for the nuclear distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbd177bd" class="outline-3">
|
||||
<h3 id="orgbd177bd"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orga5d1679" class="outline-3">
|
||||
<h3 id="orga5d1679"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">nucl_charge</span> = chbrclf_charge;
|
||||
@ -702,8 +702,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2, chbrclf_nucl_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9bdbfea" class="outline-2">
|
||||
<h2 id="org9bdbfea"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org71bf25a" class="outline-2">
|
||||
<h2 id="org71bf25a"><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
|
||||
@ -716,12 +716,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4dde73b" class="outline-3">
|
||||
<h3 id="org4dde73b"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div id="outline-container-org69edf1e" class="outline-3">
|
||||
<h3 id="org69edf1e"><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-orgf9c374c" class="outline-4">
|
||||
<h4 id="orgf9c374c"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org3fca08d" class="outline-4">
|
||||
<h4 id="org3fca08d"><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>
|
||||
@ -733,10 +733,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd57bf99" class="outline-4">
|
||||
<h4 id="orgd57bf99"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org45ed4c1" class="outline-4">
|
||||
<h4 id="org45ed4c1"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org2903823" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc64efc3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -814,8 +814,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0ea3ca7" class="outline-4">
|
||||
<h4 id="org0ea3ca7"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orgcda4ea7" class="outline-4">
|
||||
<h4 id="orgcda4ea7"><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>*/
|
||||
@ -834,12 +834,12 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org02b3aee" class="outline-3">
|
||||
<h3 id="org02b3aee"><span class="section-number-3">2.2</span> Nucleus-nucleus rescaled distances</h3>
|
||||
<div id="outline-container-orgc335642" class="outline-3">
|
||||
<h3 id="orgc335642"><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-orge75a556" class="outline-4">
|
||||
<h4 id="orge75a556"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org38731bb" class="outline-4">
|
||||
<h4 id="org38731bb"><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>
|
||||
@ -851,10 +851,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4e4513a" class="outline-4">
|
||||
<h4 id="org4e4513a"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org77938b7" class="outline-4">
|
||||
<h4 id="org77938b7"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="org2cb6f3f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5196208" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -933,8 +933,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5858ca2" class="outline-4">
|
||||
<h4 id="org5858ca2"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org37399c1" class="outline-4">
|
||||
<h4 id="org37399c1"><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>*/
|
||||
@ -954,8 +954,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org37cc895" class="outline-3">
|
||||
<h3 id="org37cc895"><span class="section-number-3">2.3</span> Nuclear repulsion energy</h3>
|
||||
<div id="outline-container-orgec833c8" class="outline-3">
|
||||
<h3 id="orgec833c8"><span class="section-number-3">2.3</span> Nuclear repulsion energy</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
\[
|
||||
@ -964,8 +964,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org725d53a" class="outline-4">
|
||||
<h4 id="org725d53a"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org0e0e861" class="outline-4">
|
||||
<h4 id="org0e0e861"><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: #a020f0;">const</span> <span style="color: #a0522d;">energy</span>);
|
||||
@ -974,10 +974,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9610163" class="outline-4">
|
||||
<h4 id="org9610163"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-org052a76a" class="outline-4">
|
||||
<h4 id="org052a76a"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org0304875" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org76a8b13" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1067,8 +1067,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0956765" class="outline-4">
|
||||
<h4 id="org0956765"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-org4e066f0" class="outline-4">
|
||||
<h4 id="org4e066f0"><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>*/
|
||||
@ -1088,7 +1088,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-08-17 Wed 11:43</p>
|
||||
<p class="date">Created: 2022-08-18 Thu 14:18</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-08-17 Wed 11:43 -->
|
||||
<!-- 2022-08-18 Thu 14:17 -->
|
||||
<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="#orgd87e38d">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#orga0300bc">2. Precision</a></li>
|
||||
<li><a href="#org0f2f91b">3. Range</a></li>
|
||||
<li><a href="#org06e0694">4. Helper functions</a></li>
|
||||
<li><a href="#org9c38ca8">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org98a3fc7">2. Precision</a></li>
|
||||
<li><a href="#orgdd9b9d9">3. Range</a></li>
|
||||
<li><a href="#org8ada2eb">4. Helper functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd87e38d" class="outline-2">
|
||||
<h2 id="orgd87e38d"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-org9c38ca8" class="outline-2">
|
||||
<h2 id="org9c38ca8"><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="org8f032b6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org79da294" 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-orga0300bc" class="outline-2">
|
||||
<h2 id="orga0300bc"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-org98a3fc7" class="outline-2">
|
||||
<h2 id="org98a3fc7"><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-org0f2f91b" class="outline-2">
|
||||
<h2 id="org0f2f91b"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-orgdd9b9d9" class="outline-2">
|
||||
<h2 id="orgdd9b9d9"><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-org06e0694" class="outline-2">
|
||||
<h2 id="org06e0694"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-org8ada2eb" class="outline-2">
|
||||
<h2 id="org8ada2eb"><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-08-17 Wed 11:43</p>
|
||||
<p class="date">Created: 2022-08-18 Thu 14:17</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-08-17 Wed 11:43 -->
|
||||
<!-- 2022-08-18 Thu 14:17 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Point</title>
|
||||
@ -333,25 +333,25 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org9ed3ee3">1. Context</a>
|
||||
<li><a href="#orgd9f88c5">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org538a200">1.1. Data structure</a></li>
|
||||
<li><a href="#org9b28371">1.2. Access functions</a>
|
||||
<li><a href="#org862c081">1.1. Data structure</a></li>
|
||||
<li><a href="#org6c55691">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org4703a6f">1.2.1. Number of points</a></li>
|
||||
<li><a href="#org6994775">1.2.2. Point coordinates</a></li>
|
||||
<li><a href="#orgc090287">1.2.1. Number of points</a></li>
|
||||
<li><a href="#org50662f7">1.2.2. Point coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3b2f0c8">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgf976074">1.4. Test</a></li>
|
||||
<li><a href="#org3de5b0b">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org7fe14b4">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9ed3ee3" class="outline-2">
|
||||
<h2 id="org9ed3ee3"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgd9f88c5" class="outline-2">
|
||||
<h2 id="orgd9f88c5"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following data stored in the context:
|
||||
@ -401,8 +401,8 @@ corresponds to the 3 × <code>num</code> matrix.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org538a200" class="outline-3">
|
||||
<h3 id="org538a200"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org862c081" class="outline-3">
|
||||
<h3 id="org862c081"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_point_struct</span> {
|
||||
@ -438,8 +438,8 @@ corresponds to the 3 × <code>num</code> matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9b28371" class="outline-3">
|
||||
<h3 id="org9b28371"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org6c55691" class="outline-3">
|
||||
<h3 id="org6c55691"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
Access functions return <code>QMCKL_SUCCESS</code> when the data has been
|
||||
@ -450,8 +450,8 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4703a6f" class="outline-4">
|
||||
<h4 id="org4703a6f"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div id="outline-container-orgc090287" class="outline-4">
|
||||
<h4 id="orgc090287"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div class="outline-text-4" id="text-1-2-1">
|
||||
<p>
|
||||
Returns the number of points stored in the context.
|
||||
@ -473,8 +473,8 @@ Returns the number of points stored in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6994775" class="outline-4">
|
||||
<h4 id="org6994775"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div id="outline-container-org50662f7" class="outline-4">
|
||||
<h4 id="org50662f7"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-2-2">
|
||||
<p>
|
||||
Returns the point coordinates as sequences of (x,y,z).
|
||||
@ -502,8 +502,8 @@ The pointer is assumed to point on a memory block of size
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org3b2f0c8" class="outline-3">
|
||||
<h3 id="org3b2f0c8"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org3de5b0b" class="outline-3">
|
||||
<h3 id="org3de5b0b"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
When the data is set in the context, if the arrays are large
|
||||
@ -635,8 +635,8 @@ Copy a sequence of <code>num</code> points \((x,y,z)\) into the context.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgf976074" class="outline-3">
|
||||
<h3 id="orgf976074"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org7fe14b4" class="outline-3">
|
||||
<h3 id="org7fe14b4"><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>*/
|
||||
@ -695,7 +695,7 @@ rc = qmckl_get_point (context, <span style="color: #8b2252;">'N'</span>, coord3,
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-08-17 Wed 11:43</p>
|
||||
<p class="date">Created: 2022-08-18 Thu 14:17</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-08-17 Wed 11:43 -->
|
||||
<!-- 2022-08-18 Thu 14:17 -->
|
||||
<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="#org299b0ec">1. Headers</a></li>
|
||||
<li><a href="#org4be8bfd">2. Naïve Sherman-Morrison</a>
|
||||
<li><a href="#orgba2f639">1. Headers</a></li>
|
||||
<li><a href="#orgeb773dc">2. Naïve Sherman-Morrison</a>
|
||||
<ul>
|
||||
<li><a href="#org33ec0e9">2.1. <code>qmckl_sherman_morrison</code></a>
|
||||
<li><a href="#org9f194f6">2.1. <code>qmckl_sherman_morrison</code></a>
|
||||
<ul>
|
||||
<li><a href="#org394d9a7">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org5d9ba8d">2.1.2. C header</a></li>
|
||||
<li><a href="#org7d8a9cc">2.1.3. C source</a></li>
|
||||
<li><a href="#org05ee8e1">2.1.4. Performance</a></li>
|
||||
<li><a href="#orgcdbab89">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org6d6e247">2.1.2. C header</a></li>
|
||||
<li><a href="#org703a175">2.1.3. C source</a></li>
|
||||
<li><a href="#orgda9724c">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org72f6176">3. Woodbury 2x2</a>
|
||||
<li><a href="#org5662bee">3. Woodbury 2x2</a>
|
||||
<ul>
|
||||
<li><a href="#org67455ff">3.1. <code>qmckl_woodbury_2</code></a>
|
||||
<li><a href="#org1504f67">3.1. <code>qmckl_woodbury_2</code></a>
|
||||
<ul>
|
||||
<li><a href="#org1d8d978">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org267da89">3.1.2. C header</a></li>
|
||||
<li><a href="#org8fb9698">3.1.3. C source</a></li>
|
||||
<li><a href="#org5aa8fac">3.1.4. Performance</a></li>
|
||||
<li><a href="#orgebf531e">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org644a7d7">3.1.2. C header</a></li>
|
||||
<li><a href="#org1a00497">3.1.3. C source</a></li>
|
||||
<li><a href="#org1d77809">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org390f903">4. Woodbury 3x3</a>
|
||||
<li><a href="#org37533d4">4. Woodbury 3x3</a>
|
||||
<ul>
|
||||
<li><a href="#org204f9a1">4.1. <code>qmckl_woodbury_3</code></a>
|
||||
<li><a href="#orgd81351e">4.1. <code>qmckl_woodbury_3</code></a>
|
||||
<ul>
|
||||
<li><a href="#org85feb82">4.1.1. Requirements</a></li>
|
||||
<li><a href="#org9556880">4.1.2. C header</a></li>
|
||||
<li><a href="#org9d22651">4.1.3. C source</a></li>
|
||||
<li><a href="#orge697e5a">4.1.4. Performance…</a></li>
|
||||
<li><a href="#org97a19f9">4.1.1. Requirements</a></li>
|
||||
<li><a href="#orgc0a7560">4.1.2. C header</a></li>
|
||||
<li><a href="#orgbb4be3c">4.1.3. C source</a></li>
|
||||
<li><a href="#org9e4ffdb">4.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org247cf78">5. Sherman-Morrison with update splitting</a>
|
||||
<li><a href="#orgde1b9e5">5. Sherman-Morrison with update splitting</a>
|
||||
<ul>
|
||||
<li><a href="#org259b0bc">5.1. <code>qmckl_sherman_morrison_splitting</code></a>
|
||||
<li><a href="#org0c56921">5.1. <code>qmckl_sherman_morrison_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#org1d9ccea">5.1.1. Requirements</a></li>
|
||||
<li><a href="#org28b6004">5.1.2. C header</a></li>
|
||||
<li><a href="#orgd6874c4">5.1.3. C source</a></li>
|
||||
<li><a href="#orgf2b6c51">5.1.4. Performance…</a></li>
|
||||
<li><a href="#org4d9010b">5.1.1. Requirements</a></li>
|
||||
<li><a href="#org4c86549">5.1.2. C header</a></li>
|
||||
<li><a href="#org8db70a4">5.1.3. C source</a></li>
|
||||
<li><a href="#org98daf8f">5.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org84ddbaa">6. Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</a>
|
||||
<li><a href="#org5685227">6. Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</a>
|
||||
<ul>
|
||||
<li><a href="#org44f89f2">6.1. <code>qmckl_sherman_morrison_smw32s</code></a>
|
||||
<li><a href="#orgdb8c654">6.1. <code>qmckl_sherman_morrison_smw32s</code></a>
|
||||
<ul>
|
||||
<li><a href="#org960c907">6.1.1. Requirements</a></li>
|
||||
<li><a href="#org18ab279">6.1.2. C header</a></li>
|
||||
<li><a href="#org59e7dd8">6.1.3. C source</a></li>
|
||||
<li><a href="#orgda7d4f2">6.1.4. Performance…</a></li>
|
||||
<li><a href="#orgfbc57d6">6.1.1. Requirements</a></li>
|
||||
<li><a href="#orgef29256">6.1.2. C header</a></li>
|
||||
<li><a href="#org50234d0">6.1.3. C source</a></li>
|
||||
<li><a href="#org196c73a">6.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge8771c8">7. Helper Functions</a>
|
||||
<li><a href="#org39938e8">7. Helper Functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgfddace9">7.1. <code>qmckl_slagel_splitting</code></a>
|
||||
<li><a href="#org03a2320">7.1. <code>qmckl_slagel_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgedcea7a">7.1.1. Requirements</a></li>
|
||||
<li><a href="#org94c025a">7.1.2. C header</a></li>
|
||||
<li><a href="#org70a54db">7.1.3. C source</a></li>
|
||||
<li><a href="#org503d924">7.1.4. Performance</a></li>
|
||||
<li><a href="#org0bcddf2">7.1.1. Requirements</a></li>
|
||||
<li><a href="#org33b0108">7.1.2. C header</a></li>
|
||||
<li><a href="#org7db0477">7.1.3. C source</a></li>
|
||||
<li><a href="#org3b420b0">7.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8e65d2e">8. End of files</a></li>
|
||||
<li><a href="#org1f63d92">8. End of files</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org299b0ec" class="outline-2">
|
||||
<h2 id="org299b0ec"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div id="outline-container-orgba2f639" class="outline-2">
|
||||
<h2 id="orgba2f639"><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-org4be8bfd" class="outline-2">
|
||||
<h2 id="org4be8bfd"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
||||
<div id="outline-container-orgeb773dc" class="outline-2">
|
||||
<h2 id="orgeb773dc"><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-org33ec0e9" class="outline-3">
|
||||
<h3 id="org33ec0e9"><span class="section-number-3">2.1</span> <code>qmckl_sherman_morrison</code></h3>
|
||||
<div id="outline-container-org9f194f6" class="outline-3">
|
||||
<h3 id="org9f194f6"><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="org89ced85" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgfefb1dd" 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-org394d9a7" class="outline-4">
|
||||
<h4 id="org394d9a7"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgcdbab89" class="outline-4">
|
||||
<h4 id="orgcdbab89"><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-org5d9ba8d" class="outline-4">
|
||||
<h4 id="org5d9ba8d"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-org6d6e247" class="outline-4">
|
||||
<h4 id="org6d6e247"><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-org7d8a9cc" class="outline-4">
|
||||
<h4 id="org7d8a9cc"><span class="section-number-4">2.1.3</span> C source</h4>
|
||||
<div id="outline-container-org703a175" class="outline-4">
|
||||
<h4 id="org703a175"><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-org05ee8e1" class="outline-4">
|
||||
<h4 id="org05ee8e1"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgda9724c" class="outline-4">
|
||||
<h4 id="orgda9724c"><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-org72f6176" class="outline-2">
|
||||
<h2 id="org72f6176"><span class="section-number-2">3</span> Woodbury 2x2</h2>
|
||||
<div id="outline-container-org5662bee" class="outline-2">
|
||||
<h2 id="org5662bee"><span class="section-number-2">3</span> Woodbury 2x2</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org67455ff" class="outline-3">
|
||||
<h3 id="org67455ff"><span class="section-number-3">3.1</span> <code>qmckl_woodbury_2</code></h3>
|
||||
<div id="outline-container-org1504f67" class="outline-3">
|
||||
<h3 id="org1504f67"><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="org0a06dc8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb34825b" 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-org1d8d978" class="outline-4">
|
||||
<h4 id="org1d8d978"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgebf531e" class="outline-4">
|
||||
<h4 id="orgebf531e"><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-org267da89" class="outline-4">
|
||||
<h4 id="org267da89"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-org644a7d7" class="outline-4">
|
||||
<h4 id="org644a7d7"><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-org8fb9698" class="outline-4">
|
||||
<h4 id="org8fb9698"><span class="section-number-4">3.1.3</span> C source</h4>
|
||||
<div id="outline-container-org1a00497" class="outline-4">
|
||||
<h4 id="org1a00497"><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-org5aa8fac" class="outline-4">
|
||||
<h4 id="org5aa8fac"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org1d77809" class="outline-4">
|
||||
<h4 id="org1d77809"><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-org390f903" class="outline-2">
|
||||
<h2 id="org390f903"><span class="section-number-2">4</span> Woodbury 3x3</h2>
|
||||
<div id="outline-container-org37533d4" class="outline-2">
|
||||
<h2 id="org37533d4"><span class="section-number-2">4</span> Woodbury 3x3</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org204f9a1" class="outline-3">
|
||||
<h3 id="org204f9a1"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_3</code></h3>
|
||||
<div id="outline-container-orgd81351e" class="outline-3">
|
||||
<h3 id="orgd81351e"><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="org07d1e33" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4a30a08" 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-org85feb82" class="outline-4">
|
||||
<h4 id="org85feb82"><span class="section-number-4">4.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org97a19f9" class="outline-4">
|
||||
<h4 id="org97a19f9"><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-org9556880" class="outline-4">
|
||||
<h4 id="org9556880"><span class="section-number-4">4.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgc0a7560" class="outline-4">
|
||||
<h4 id="orgc0a7560"><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-org9d22651" class="outline-4">
|
||||
<h4 id="org9d22651"><span class="section-number-4">4.1.3</span> C source</h4>
|
||||
<div id="outline-container-orgbb4be3c" class="outline-4">
|
||||
<h4 id="orgbb4be3c"><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-orge697e5a" class="outline-4">
|
||||
<h4 id="orge697e5a"><span class="section-number-4">4.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org9e4ffdb" class="outline-4">
|
||||
<h4 id="org9e4ffdb"><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-org247cf78" class="outline-2">
|
||||
<h2 id="org247cf78"><span class="section-number-2">5</span> Sherman-Morrison with update splitting</h2>
|
||||
<div id="outline-container-orgde1b9e5" class="outline-2">
|
||||
<h2 id="orgde1b9e5"><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-org259b0bc" class="outline-3">
|
||||
<h3 id="org259b0bc"><span class="section-number-3">5.1</span> <code>qmckl_sherman_morrison_splitting</code></h3>
|
||||
<div id="outline-container-org0c56921" class="outline-3">
|
||||
<h3 id="org0c56921"><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="org9c07c3f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgfc8941d" 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-org1d9ccea" class="outline-4">
|
||||
<h4 id="org1d9ccea"><span class="section-number-4">5.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org4d9010b" class="outline-4">
|
||||
<h4 id="org4d9010b"><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-org28b6004" class="outline-4">
|
||||
<h4 id="org28b6004"><span class="section-number-4">5.1.2</span> C header</h4>
|
||||
<div id="outline-container-org4c86549" class="outline-4">
|
||||
<h4 id="org4c86549"><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-orgd6874c4" class="outline-4">
|
||||
<h4 id="orgd6874c4"><span class="section-number-4">5.1.3</span> C source</h4>
|
||||
<div id="outline-container-org8db70a4" class="outline-4">
|
||||
<h4 id="org8db70a4"><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-orgf2b6c51" class="outline-4">
|
||||
<h4 id="orgf2b6c51"><span class="section-number-4">5.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org98daf8f" class="outline-4">
|
||||
<h4 id="org98daf8f"><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-org84ddbaa" class="outline-2">
|
||||
<h2 id="org84ddbaa"><span class="section-number-2">6</span> Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</h2>
|
||||
<div id="outline-container-org5685227" class="outline-2">
|
||||
<h2 id="org5685227"><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-org44f89f2" class="outline-3">
|
||||
<h3 id="org44f89f2"><span class="section-number-3">6.1</span> <code>qmckl_sherman_morrison_smw32s</code></h3>
|
||||
<div id="outline-container-orgdb8c654" class="outline-3">
|
||||
<h3 id="orgdb8c654"><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="org5b8aff6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org132d0d4" 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-org960c907" class="outline-4">
|
||||
<h4 id="org960c907"><span class="section-number-4">6.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgfbc57d6" class="outline-4">
|
||||
<h4 id="orgfbc57d6"><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-org18ab279" class="outline-4">
|
||||
<h4 id="org18ab279"><span class="section-number-4">6.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgef29256" class="outline-4">
|
||||
<h4 id="orgef29256"><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-org59e7dd8" class="outline-4">
|
||||
<h4 id="org59e7dd8"><span class="section-number-4">6.1.3</span> C source</h4>
|
||||
<div id="outline-container-org50234d0" class="outline-4">
|
||||
<h4 id="org50234d0"><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-orgda7d4f2" class="outline-4">
|
||||
<h4 id="orgda7d4f2"><span class="section-number-4">6.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org196c73a" class="outline-4">
|
||||
<h4 id="org196c73a"><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-orge8771c8" class="outline-2">
|
||||
<h2 id="orge8771c8"><span class="section-number-2">7</span> Helper Functions</h2>
|
||||
<div id="outline-container-org39938e8" class="outline-2">
|
||||
<h2 id="org39938e8"><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-orgfddace9" class="outline-3">
|
||||
<h3 id="orgfddace9"><span class="section-number-3">7.1</span> <code>qmckl_slagel_splitting</code></h3>
|
||||
<div id="outline-container-org03a2320" class="outline-3">
|
||||
<h3 id="org03a2320"><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="org229b824" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgbcbaa29" 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-orgedcea7a" class="outline-4">
|
||||
<h4 id="orgedcea7a"><span class="section-number-4">7.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org0bcddf2" class="outline-4">
|
||||
<h4 id="org0bcddf2"><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-org94c025a" class="outline-4">
|
||||
<h4 id="org94c025a"><span class="section-number-4">7.1.2</span> C header</h4>
|
||||
<div id="outline-container-org33b0108" class="outline-4">
|
||||
<h4 id="org33b0108"><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-org70a54db" class="outline-4">
|
||||
<h4 id="org70a54db"><span class="section-number-4">7.1.3</span> C source</h4>
|
||||
<div id="outline-container-org7db0477" class="outline-4">
|
||||
<h4 id="org7db0477"><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-org503d924" class="outline-4">
|
||||
<h4 id="org503d924"><span class="section-number-4">7.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org3b420b0" class="outline-4">
|
||||
<h4 id="org3b420b0"><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-org8e65d2e" class="outline-2">
|
||||
<h2 id="org8e65d2e"><span class="section-number-2">8</span> End of files</h2>
|
||||
<div id="outline-container-org1f63d92" class="outline-2">
|
||||
<h2 id="org1f63d92"><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-08-17 Wed 11:43</p>
|
||||
<p class="date">Created: 2022-08-18 Thu 14:17</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-08-17 Wed 11:44 -->
|
||||
<!-- 2022-08-18 Thu 14:18 -->
|
||||
<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="#orgd4be42b">1. CHBrClF</a>
|
||||
<li><a href="#org46df9da">1. CHBrClF</a>
|
||||
<ul>
|
||||
<li><a href="#org4a370e7">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orge977ed4">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org4faf604">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org3442d3c">1.4. Electron coordinates</a></li>
|
||||
<li><a href="#orge07ade4">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org8700ea4">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org4c833da">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#orga5b054b">1.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2b0b5f1">2. N2</a>
|
||||
<li><a href="#orgab2b4ba">2. N2</a>
|
||||
<ul>
|
||||
<li><a href="#org99a28a3">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org5858dd7">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org1647a1d">2.3. Jastrow related data</a></li>
|
||||
<li><a href="#orgd63f622">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org537b811">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#orga344417">2.3. Jastrow related data</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd4be42b" class="outline-2">
|
||||
<h2 id="orgd4be42b"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div id="outline-container-org46df9da" class="outline-2">
|
||||
<h2 id="org46df9da"><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-org4a370e7" class="outline-3">
|
||||
<h3 id="org4a370e7"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-orge07ade4" class="outline-3">
|
||||
<h3 id="orge07ade4"><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-orge977ed4" class="outline-3">
|
||||
<h3 id="orge977ed4"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div id="outline-container-org8700ea4" class="outline-3">
|
||||
<h3 id="org8700ea4"><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-org4faf604" class="outline-3">
|
||||
<h3 id="org4faf604"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org4c833da" class="outline-3">
|
||||
<h3 id="org4c833da"><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-org3442d3c" class="outline-3">
|
||||
<h3 id="org3442d3c"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div id="outline-container-orga5b054b" class="outline-3">
|
||||
<h3 id="orga5b054b"><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-org2b0b5f1" class="outline-2">
|
||||
<h2 id="org2b0b5f1"><span class="section-number-2">2</span> N2</h2>
|
||||
<div id="outline-container-orgab2b4ba" class="outline-2">
|
||||
<h2 id="orgab2b4ba"><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-org99a28a3" class="outline-3">
|
||||
<h3 id="org99a28a3"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-orgd63f622" class="outline-3">
|
||||
<h3 id="orgd63f622"><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-org5858dd7" class="outline-3">
|
||||
<h3 id="org5858dd7"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org537b811" class="outline-3">
|
||||
<h3 id="org537b811"><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-org1647a1d" class="outline-3">
|
||||
<h3 id="org1647a1d"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div id="outline-container-orga344417" class="outline-3">
|
||||
<h3 id="orga344417"><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-08-17 Wed 11:44</p>
|
||||
<p class="date">Created: 2022-08-18 Thu 14:18</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-08-17 Wed 11:43 -->
|
||||
<!-- 2022-08-18 Thu 14:17 -->
|
||||
<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="#orgfeb9a84">1. Local functions</a>
|
||||
<li><a href="#org7c657b0">1. Local functions</a>
|
||||
<ul>
|
||||
<li><a href="#org23a505b">1.1. Open file</a></li>
|
||||
<li><a href="#orge8fc186">1.2. Electron</a></li>
|
||||
<li><a href="#org39643b7">1.3. Nucleus</a>
|
||||
<li><a href="#orgdb8b23e">1.1. Open file</a></li>
|
||||
<li><a href="#org671057c">1.2. Electron</a></li>
|
||||
<li><a href="#org79abe1a">1.3. Nucleus</a>
|
||||
<ul>
|
||||
<li><a href="#orgeffcaf4">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#org0dbce83">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org48f3aa3">1.3.3. Nuclear coordinates</a></li>
|
||||
<li><a href="#org49b4d12">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#orgd466a31">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org574dd18">1.3.3. Nuclear coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1b1f7fb">1.4. Basis set and AOs</a>
|
||||
<li><a href="#org6a61068">1.4. Basis set and AOs</a>
|
||||
<ul>
|
||||
<li><a href="#orgd230ec2">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#org953ba92">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org61b564a">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#orgb6484ef">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org90e9a4b">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org210e7a5">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#orgbecd532">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org8907983">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#org9a52227">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#org182b8c2">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#orgb61b3a8">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org15ba588">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#orgf78ea3f">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org1bfdb73">1.4.14. AO Normalization</a></li>
|
||||
<li><a href="#orga2a709c">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#org61a4a91">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org88659ad">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#orged72d31">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org4a7b9d6">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org4a3d8f6">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#org1fc8eec">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org16ee5dc">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#orgfd9fc81">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#orgaf634c9">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#orge32353c">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org11c4f55">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#org65e8b86">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org2568864">1.4.14. AO Normalization</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org39694ec">1.5. Molecular orbitals</a>
|
||||
<li><a href="#org713f0f5">1.5. Molecular orbitals</a>
|
||||
<ul>
|
||||
<li><a href="#org1ecddae">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#org44f54f6">1.5.2. MO coefficients</a></li>
|
||||
<li><a href="#org382b851">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#orgbba96c0">1.5.2. MO coefficients</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org32500f1">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
<li><a href="#orgc786a8f">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf08e41a">2. Read everything</a></li>
|
||||
<li><a href="#org5b331f6">3. Test</a>
|
||||
<li><a href="#org9d60b2d">2. Read everything</a></li>
|
||||
<li><a href="#org801b562">3. Test</a>
|
||||
<ul>
|
||||
<li>
|
||||
<ul>
|
||||
<li><a href="#orgba62c20">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org63146b8">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#org5b2694d">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#orge53e39f">3.0.4. MO Basis</a></li>
|
||||
<li><a href="#org839b246">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org5197678">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#orgdec0e32">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#orgccaa485">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-orgfeb9a84" class="outline-2">
|
||||
<h2 id="orgfeb9a84"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div id="outline-container-org7c657b0" class="outline-2">
|
||||
<h2 id="org7c657b0"><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-org23a505b" class="outline-3">
|
||||
<h3 id="org23a505b"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div id="outline-container-orgdb8b23e" class="outline-3">
|
||||
<h3 id="orgdb8b23e"><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-orge8fc186" class="outline-3">
|
||||
<h3 id="orge8fc186"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div id="outline-container-org671057c" class="outline-3">
|
||||
<h3 id="org671057c"><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-org39643b7" class="outline-3">
|
||||
<h3 id="org39643b7"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div id="outline-container-org79abe1a" class="outline-3">
|
||||
<h3 id="org79abe1a"><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-orgeffcaf4" class="outline-4">
|
||||
<h4 id="orgeffcaf4"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div id="outline-container-org49b4d12" class="outline-4">
|
||||
<h4 id="org49b4d12"><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-org0dbce83" class="outline-4">
|
||||
<h4 id="org0dbce83"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div id="outline-container-orgd466a31" class="outline-4">
|
||||
<h4 id="orgd466a31"><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">{
|
||||
@ -561,8 +561,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org48f3aa3" class="outline-4">
|
||||
<h4 id="org48f3aa3"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div id="outline-container-org574dd18" class="outline-4">
|
||||
<h4 id="org574dd18"><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
|
||||
@ -617,8 +617,8 @@ in the TREXIO file (<code>'N'</code>), so it will be automatically transposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1b1f7fb" class="outline-3">
|
||||
<h3 id="org1b1f7fb"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div id="outline-container-org6a61068" class="outline-3">
|
||||
<h3 id="org6a61068"><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.
|
||||
@ -644,8 +644,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd230ec2" class="outline-4">
|
||||
<h4 id="orgd230ec2"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div id="outline-container-orga2a709c" class="outline-4">
|
||||
<h4 id="orga2a709c"><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
|
||||
@ -676,8 +676,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org953ba92" class="outline-4">
|
||||
<h4 id="org953ba92"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div id="outline-container-org61a4a91" class="outline-4">
|
||||
<h4 id="org61a4a91"><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;
|
||||
@ -701,8 +701,8 @@ rc = qmckl_set_ao_basis_shell_num(context, shell_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org61b564a" class="outline-4">
|
||||
<h4 id="org61b564a"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div id="outline-container-org88659ad" class="outline-4">
|
||||
<h4 id="org88659ad"><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;
|
||||
@ -726,8 +726,8 @@ rc = qmckl_set_ao_basis_prim_num(context, prim_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb6484ef" class="outline-4">
|
||||
<h4 id="orgb6484ef"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div id="outline-container-orged72d31" class="outline-4">
|
||||
<h4 id="orged72d31"><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;
|
||||
@ -751,8 +751,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org90e9a4b" class="outline-4">
|
||||
<h4 id="org90e9a4b"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div id="outline-container-org4a7b9d6" class="outline-4">
|
||||
<h4 id="org4a7b9d6"><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">{
|
||||
@ -832,8 +832,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org210e7a5" class="outline-4">
|
||||
<h4 id="org210e7a5"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div id="outline-container-org4a3d8f6" class="outline-4">
|
||||
<h4 id="org4a3d8f6"><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">{
|
||||
@ -918,8 +918,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbecd532" class="outline-4">
|
||||
<h4 id="orgbecd532"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div id="outline-container-org1fc8eec" class="outline-4">
|
||||
<h4 id="org1fc8eec"><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">{
|
||||
@ -964,8 +964,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8907983" class="outline-4">
|
||||
<h4 id="org8907983"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
||||
<div id="outline-container-org16ee5dc" class="outline-4">
|
||||
<h4 id="org16ee5dc"><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">{
|
||||
@ -1049,8 +1049,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9a52227" class="outline-4">
|
||||
<h4 id="org9a52227"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
||||
<div id="outline-container-orgfd9fc81" class="outline-4">
|
||||
<h4 id="orgfd9fc81"><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">{
|
||||
@ -1130,8 +1130,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org182b8c2" class="outline-4">
|
||||
<h4 id="org182b8c2"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
||||
<div id="outline-container-orgaf634c9" class="outline-4">
|
||||
<h4 id="orgaf634c9"><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">{
|
||||
@ -1176,8 +1176,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb61b3a8" class="outline-4">
|
||||
<h4 id="orgb61b3a8"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||
<div id="outline-container-orge32353c" class="outline-4">
|
||||
<h4 id="orge32353c"><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">{
|
||||
@ -1222,8 +1222,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org15ba588" class="outline-4">
|
||||
<h4 id="org15ba588"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||
<div id="outline-container-org11c4f55" class="outline-4">
|
||||
<h4 id="org11c4f55"><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">{
|
||||
@ -1268,8 +1268,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf78ea3f" class="outline-4">
|
||||
<h4 id="orgf78ea3f"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
||||
<div id="outline-container-org65e8b86" class="outline-4">
|
||||
<h4 id="org65e8b86"><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">{
|
||||
@ -1314,8 +1314,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1bfdb73" class="outline-4">
|
||||
<h4 id="org1bfdb73"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||
<div id="outline-container-org2568864" class="outline-4">
|
||||
<h4 id="org2568864"><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">{
|
||||
@ -1370,8 +1370,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org39694ec" class="outline-3">
|
||||
<h3 id="org39694ec"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org713f0f5" class="outline-3">
|
||||
<h3 id="org713f0f5"><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.
|
||||
@ -1397,8 +1397,8 @@ In this section we read the MO coefficients.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1ecddae" class="outline-4">
|
||||
<h4 id="org1ecddae"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
||||
<div id="outline-container-org382b851" class="outline-4">
|
||||
<h4 id="org382b851"><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;
|
||||
@ -1421,8 +1421,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org44f54f6" class="outline-4">
|
||||
<h4 id="org44f54f6"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||
<div id="outline-container-orgbba96c0" class="outline-4">
|
||||
<h4 id="orgbba96c0"><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">{
|
||||
@ -1471,12 +1471,12 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org32500f1" class="outline-3">
|
||||
<h3 id="org32500f1"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
<div id="outline-container-orgc786a8f" class="outline-3">
|
||||
<h3 id="orgc786a8f"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgf08e41a" class="outline-2">
|
||||
<h2 id="orgf08e41a"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div id="outline-container-org9d60b2d" class="outline-2">
|
||||
<h2 id="org9d60b2d"><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>
|
||||
@ -1563,8 +1563,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5b331f6" class="outline-2">
|
||||
<h2 id="org5b331f6"><span class="section-number-2">3</span> Test</h2>
|
||||
<div id="outline-container-org801b562" class="outline-2">
|
||||
<h2 id="org801b562"><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, 255);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgba62c20" class="outline-4">
|
||||
<h4 id="orgba62c20"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||
<div id="outline-container-org839b246" class="outline-4">
|
||||
<h4 id="org839b246"><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-org63146b8" class="outline-4">
|
||||
<h4 id="org63146b8"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||
<div id="outline-container-org5197678" class="outline-4">
|
||||
<h4 id="org5197678"><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-org5b2694d" class="outline-4">
|
||||
<h4 id="org5b2694d"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||
<div id="outline-container-orgdec0e32" class="outline-4">
|
||||
<h4 id="orgdec0e32"><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-orge53e39f" class="outline-4">
|
||||
<h4 id="orge53e39f"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div id="outline-container-orgccaa485" class="outline-4">
|
||||
<h4 id="orgccaa485"><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-08-17 Wed 11:43</p>
|
||||
<p class="date">Created: 2022-08-18 Thu 14:17</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-08-17 Wed 11:43 -->
|
||||
<!-- 2022-08-18 Thu 14:17 -->
|
||||
<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="#orgd31faf1">1. Verificarlo probes</a>
|
||||
<li><a href="#orgf2b53f2">1. Verificarlo probes</a>
|
||||
<ul>
|
||||
<li><a href="#org8e97ace">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#orgf02fa43">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org1a51434">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#org114894e">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org38e4488">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#orgb668ca4">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org98a7b5b">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#orgf9d2864">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#orgc6b30e7">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org1fca7a2">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="#org40cb5a0">2. Fortran wrappers</a></li>
|
||||
<li><a href="#orgd7dad44">2. Fortran wrappers</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd31faf1" class="outline-2">
|
||||
<h2 id="orgd31faf1"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div id="outline-container-orgf2b53f2" class="outline-2">
|
||||
<h2 id="orgf2b53f2"><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-org8e97ace" class="outline-3">
|
||||
<h3 id="org8e97ace"><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-orgb668ca4" class="outline-3">
|
||||
<h3 id="orgb668ca4"><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-orgf02fa43" class="outline-3">
|
||||
<h3 id="orgf02fa43"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div id="outline-container-org98a7b5b" class="outline-3">
|
||||
<h3 id="org98a7b5b"><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-org1a51434" class="outline-3">
|
||||
<h3 id="org1a51434"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div id="outline-container-orgf9d2864" class="outline-3">
|
||||
<h3 id="orgf9d2864"><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-org114894e" class="outline-3">
|
||||
<h3 id="org114894e"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div id="outline-container-orgc6b30e7" class="outline-3">
|
||||
<h3 id="orgc6b30e7"><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-org38e4488" class="outline-3">
|
||||
<h3 id="org38e4488"><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-org1fca7a2" class="outline-3">
|
||||
<h3 id="org1fca7a2"><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-org40cb5a0" class="outline-2">
|
||||
<h2 id="org40cb5a0"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||
<div id="outline-container-orgd7dad44" class="outline-2">
|
||||
<h2 id="orgd7dad44"><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-08-17 Wed 11:43</p>
|
||||
<p class="date">Created: 2022-08-18 Thu 14:17</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