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@6a637c394e 🚀
This commit is contained in:
parent
534757a7ff
commit
90e92da1be
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-02-14 Tue 12:35 -->
|
||||
<!-- 2023-02-14 Tue 12:48 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>QMCkl source code documentation</title>
|
||||
@ -375,7 +375,7 @@ and bug reports should be submitted at
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:35</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:48</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
118
qmckl.html
118
qmckl.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-02-14 Tue 12:34 -->
|
||||
<!-- 2023-02-14 Tue 12:47 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Introduction</title>
|
||||
@ -346,36 +346,36 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgc942ff7">1. Installing QMCkl</a>
|
||||
<li><a href="#org278a966">1. Installing QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#orgc271530">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org34e15e7">1.2. Installing from the source repository (for developers)</a></li>
|
||||
<li><a href="#org1d8b333">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org6c2b7ac">1.2. Installing from the source repository (for developers)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6121bba">2. Using QMCkl</a></li>
|
||||
<li><a href="#orgd217640">3. Developing in QMCkl</a>
|
||||
<li><a href="#org9ef26fc">2. Using QMCkl</a></li>
|
||||
<li><a href="#org8378a08">3. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#org2a8da2f">3.1. Literate programming</a></li>
|
||||
<li><a href="#org07bab16">3.2. Source code editing</a></li>
|
||||
<li><a href="#orgf188162">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org71f2cf6">3.4. Coding rules</a></li>
|
||||
<li><a href="#org8a39a90">3.5. Design of the library</a></li>
|
||||
<li><a href="#org6f5d9a6">3.6. Naming conventions</a></li>
|
||||
<li><a href="#orgd89abc1">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org81d4aea">3.8. Global state</a></li>
|
||||
<li><a href="#orge526c51">3.9. Headers</a></li>
|
||||
<li><a href="#orgc970aa1">3.10. Low-level functions</a></li>
|
||||
<li><a href="#orgc706767">3.11. High-level functions</a></li>
|
||||
<li><a href="#org116a3d3">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org66157a7">3.13. Algorithms</a></li>
|
||||
<li><a href="#orge5d0ec2">3.1. Literate programming</a></li>
|
||||
<li><a href="#org821d0b1">3.2. Source code editing</a></li>
|
||||
<li><a href="#org0e3f164">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#orgfd03356">3.4. Coding rules</a></li>
|
||||
<li><a href="#org1c57958">3.5. Design of the library</a></li>
|
||||
<li><a href="#org45c5eca">3.6. Naming conventions</a></li>
|
||||
<li><a href="#org7765252">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org72f9aa6">3.8. Global state</a></li>
|
||||
<li><a href="#org8047eca">3.9. Headers</a></li>
|
||||
<li><a href="#org4120f22">3.10. Low-level functions</a></li>
|
||||
<li><a href="#orgeda813c">3.11. High-level functions</a></li>
|
||||
<li><a href="#org2edc675">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org5cdcf18">3.13. Algorithms</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc942ff7" class="outline-2">
|
||||
<h2 id="orgc942ff7"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div id="outline-container-org278a966" class="outline-2">
|
||||
<h2 id="org278a966"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The latest version fo QMCkl can be downloaded
|
||||
@ -384,8 +384,8 @@ The latest version fo QMCkl can be downloaded
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc271530" class="outline-3">
|
||||
<h3 id="orgc271530"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div id="outline-container-org1d8b333" class="outline-3">
|
||||
<h3 id="org1d8b333"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
QMCkl is built with GNU Autotools, so the usual
|
||||
@ -400,8 +400,8 @@ options are defined using <code>CFLAGS</code> and <code>FCFLAGS</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org34e15e7" class="outline-3">
|
||||
<h3 id="org34e15e7"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div id="outline-container-org6c2b7ac" class="outline-3">
|
||||
<h3 id="org6c2b7ac"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To compile from the source repository, additional dependencies are
|
||||
@ -422,8 +422,8 @@ to be executed first.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6121bba" class="outline-2">
|
||||
<h2 id="org6121bba"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div id="outline-container-org9ef26fc" class="outline-2">
|
||||
<h2 id="org9ef26fc"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The <code>qmckl.h</code> header file installed in the <code>${prefix}/include</code> directory
|
||||
@ -452,12 +452,12 @@ Both files are located in the <code>include/</code> directory.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd217640" class="outline-2">
|
||||
<h2 id="orgd217640"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-org8378a08" class="outline-2">
|
||||
<h2 id="org8378a08"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org2a8da2f" class="outline-3">
|
||||
<h3 id="org2a8da2f"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div id="outline-container-orge5d0ec2" class="outline-3">
|
||||
<h3 id="orge5d0ec2"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
In a traditional source code, most of the lines of source files of a program
|
||||
@ -507,8 +507,8 @@ tarball contains the generated source code.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org07bab16" class="outline-3">
|
||||
<h3 id="org07bab16"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div id="outline-container-org821d0b1" class="outline-3">
|
||||
<h3 id="org821d0b1"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<p>
|
||||
For a tutorial on literate programming with org-mode, follow <a href="http://www.howardism.org/Technical/Emacs/literate-programming-tutorial.html">this link</a>.
|
||||
@ -539,8 +539,8 @@ org-mode.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf188162" class="outline-3">
|
||||
<h3 id="orgf188162"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-org0e3f164" class="outline-3">
|
||||
<h3 id="org0e3f164"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<p>
|
||||
Most of the codes of the <a href="https://trex-coe.eu">TREX CoE</a> are written in Fortran with some
|
||||
@ -604,8 +604,8 @@ For more guidelines on using Fortran to generate a C interface, see
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org71f2cf6" class="outline-3">
|
||||
<h3 id="org71f2cf6"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div id="outline-container-orgfd03356" class="outline-3">
|
||||
<h3 id="orgfd03356"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div class="outline-text-3" id="text-3-4">
|
||||
<p>
|
||||
The authors should follow the recommendations of the C99
|
||||
@ -625,8 +625,8 @@ make cppcheck ; cat cppcheck.out
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8a39a90" class="outline-3">
|
||||
<h3 id="org8a39a90"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div id="outline-container-org1c57958" class="outline-3">
|
||||
<h3 id="org1c57958"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div class="outline-text-3" id="text-3-5">
|
||||
<p>
|
||||
The proposed API should allow the library to: deal with memory transfers
|
||||
@ -637,8 +637,8 @@ functions (see below).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6f5d9a6" class="outline-3">
|
||||
<h3 id="org6f5d9a6"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-org45c5eca" class="outline-3">
|
||||
<h3 id="org45c5eca"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div class="outline-text-3" id="text-3-6">
|
||||
<p>
|
||||
To avoid namespace collisions, we use <code>qmckl_</code> as a prefix for all exported
|
||||
@ -659,8 +659,8 @@ form is allowed.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd89abc1" class="outline-3">
|
||||
<h3 id="orgd89abc1"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-org7765252" class="outline-3">
|
||||
<h3 id="org7765252"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div class="outline-text-3" id="text-3-7">
|
||||
<p>
|
||||
In the C language, the number of bits used by the integer types can change
|
||||
@ -692,15 +692,15 @@ bindings in other languages in other repositories.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org81d4aea" class="outline-3">
|
||||
<h3 id="org81d4aea"><span class="section-number-3">3.8</span> Global state</h3>
|
||||
<div id="outline-container-org72f9aa6" class="outline-3">
|
||||
<h3 id="org72f9aa6"><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="org0d1fe5f">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="org1626c86">=context=</a> contains the global
|
||||
state of the library, and is used as the first argument of many
|
||||
QMCkl functions.
|
||||
</p>
|
||||
@ -714,8 +714,8 @@ the state is done by setters and getters, prefixed by
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge526c51" class="outline-3">
|
||||
<h3 id="orge526c51"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div id="outline-container-org8047eca" class="outline-3">
|
||||
<h3 id="org8047eca"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div class="outline-text-3" id="text-3-9">
|
||||
<p>
|
||||
A single <code>qmckl.h</code> header to be distributed by the library
|
||||
@ -803,8 +803,8 @@ and the types definitions should be written in the <code>*fh_type.f90</code> fil
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc970aa1" class="outline-3">
|
||||
<h3 id="orgc970aa1"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-org4120f22" class="outline-3">
|
||||
<h3 id="org4120f22"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div class="outline-text-3" id="text-3-10">
|
||||
<p>
|
||||
Low-level functions are very simple functions which are leaves of
|
||||
@ -813,14 +813,14 @@ the function call tree (they don't call any other QMCkl function).
|
||||
|
||||
<p>
|
||||
These functions are <i>pure</i>, and unaware of the QMCkl
|
||||
<a href="#org0d1fe5f"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#org1626c86"><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-orgc706767" class="outline-3">
|
||||
<h3 id="orgc706767"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div id="outline-container-orgeda813c" class="outline-3">
|
||||
<h3 id="orgeda813c"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div class="outline-text-3" id="text-3-11">
|
||||
<p>
|
||||
High-level functions are at the top of the function call tree.
|
||||
@ -832,8 +832,8 @@ temporary storage, to simplify the use of accelerators.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org116a3d3" class="outline-3">
|
||||
<h3 id="org116a3d3"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-org2edc675" class="outline-3">
|
||||
<h3 id="org2edc675"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div class="outline-text-3" id="text-3-12">
|
||||
<p>
|
||||
The minimal number of bits of precision required for a function
|
||||
@ -841,7 +841,7 @@ should be given as an input of low-level computational
|
||||
functions. This input will be used to define the values of the
|
||||
different thresholds that might be used to avoid computing
|
||||
unnecessary noise. High-level functions will use the precision
|
||||
specified in the <a href="#org0d1fe5f"><code>context</code></a> variable.
|
||||
specified in the <a href="#org1626c86"><code>context</code></a> variable.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -909,8 +909,8 @@ following points :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org66157a7" class="outline-3">
|
||||
<h3 id="org66157a7"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div id="outline-container-org5cdcf18" class="outline-3">
|
||||
<h3 id="org5cdcf18"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div class="outline-text-3" id="text-3-13">
|
||||
<p>
|
||||
Reducing the scaling of an algorithm usually implies also reducing
|
||||
@ -926,7 +926,7 @@ implemented adapted to different problem sizes.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:34</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:47</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
212
qmckl_ao.html
212
qmckl_ao.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-02-14 Tue 12:35 -->
|
||||
<!-- 2023-02-14 Tue 12:48 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Atomic Orbitals</title>
|
||||
@ -346,61 +346,61 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org58acc27">1. Introduction</a></li>
|
||||
<li><a href="#org4e6dc93">2. Context</a>
|
||||
<li><a href="#orgf77848d">1. Introduction</a></li>
|
||||
<li><a href="#org69a6d01">2. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org7b9cb0d">2.1. Constant data</a>
|
||||
<li><a href="#org2902a1a">2.1. Constant data</a>
|
||||
<ul>
|
||||
<li><a href="#org8a9bbe9">2.1.1. Initialization functions</a>
|
||||
<li><a href="#org477df79">2.1.1. Initialization functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgbfb0c9d">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org4e9d7ea">2.1.1.2. Fortran interface</a></li>
|
||||
<li><a href="#orgc59b015">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#orge6f612b">2.1.1.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge973f59">2.1.2. Access functions</a>
|
||||
<li><a href="#org36bdc0f">2.1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgf175efb">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#orgaa33d4f">2.1.2.2. Fortran interface</a></li>
|
||||
<li><a href="#orgd59bec3">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#orgb5dca43">2.1.2.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org62f1c62">2.2. Computed data</a>
|
||||
<li><a href="#orgc234f2e">2.2. Computed data</a>
|
||||
<ul>
|
||||
<li><a href="#orgc70e46c">2.2.1. After initialization</a></li>
|
||||
<li><a href="#orgd1e7b62">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#org63f8d84">2.2.3. Access functions</a></li>
|
||||
<li><a href="#orgef681f4">2.2.1. After initialization</a></li>
|
||||
<li><a href="#orga9da0af">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#orgdd15e6d">2.2.3. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0524700">3. Radial part</a>
|
||||
<li><a href="#org68b7686">3. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#org4807a86">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org5c6461e">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#orge8b36ce">3.3. Computation of shells</a></li>
|
||||
<li><a href="#orgcfaaeac">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org2a1f302">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#orgffcfddc">3.3. Computation of shells</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2951d3a">4. Polynomial part</a>
|
||||
<li><a href="#org792ccbd">4. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#orgfc9361f">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org850eae6">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
<li><a href="#org28cafe7">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#orgd0a56c4">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org63a6ae8">5. Combining radial and polynomial parts</a>
|
||||
<li><a href="#org1a5d356">5. Combining radial and polynomial parts</a>
|
||||
<ul>
|
||||
<li><a href="#org2910125">5.1. Values only</a>
|
||||
<li><a href="#orgfc2fb20">5.1. Values only</a>
|
||||
<ul>
|
||||
<li><a href="#org76d2a3c">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#orge2742e9">5.1.2. HPC version</a></li>
|
||||
<li><a href="#org88f257c">5.1.3. Interfaces</a></li>
|
||||
<li><a href="#org203f321">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#orgcf0a448">5.1.2. HPC version</a></li>
|
||||
<li><a href="#org4649e10">5.1.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge2f64cc">5.2. Value, gradients, Laplacian</a>
|
||||
<li><a href="#orge3d7889">5.2. Value, gradients, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#orgf78ba86">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#org3e1be0f">5.2.2. HPC version</a></li>
|
||||
<li><a href="#org7b9a978">5.2.3. Interfaces</a></li>
|
||||
<li><a href="#orga792bf4">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#orgb717ee8">5.2.2. HPC version</a></li>
|
||||
<li><a href="#org389aae5">5.2.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -409,8 +409,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org58acc27" class="outline-2">
|
||||
<h2 id="org58acc27"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div id="outline-container-orgf77848d" class="outline-2">
|
||||
<h2 id="orgf77848d"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The atomic basis set is defined as a list of shells. Each shell \(s\) is
|
||||
@ -463,19 +463,19 @@ gradients and Laplacian of the atomic basis functions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4e6dc93" class="outline-2">
|
||||
<h2 id="org4e6dc93"><span class="section-number-2">2</span> Context</h2>
|
||||
<div id="outline-container-org69a6d01" class="outline-2">
|
||||
<h2 id="org69a6d01"><span class="section-number-2">2</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org7b9cb0d" class="outline-3">
|
||||
<h3 id="org7b9cb0d"><span class="section-number-3">2.1</span> Constant data</h3>
|
||||
<div id="outline-container-org2902a1a" class="outline-3">
|
||||
<h3 id="org2902a1a"><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="org3b467e5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc84d7c9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -649,7 +649,7 @@ calling the functions:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="orga188006"><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="org6dda2f4"><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>,
|
||||
@ -686,7 +686,7 @@ For array variables, use the rule:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="org7de328a"><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="org6cb8e56"><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>);
|
||||
|
||||
@ -724,17 +724,17 @@ For array variables, use the rule:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8a9bbe9" class="outline-4">
|
||||
<h4 id="org8a9bbe9"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
||||
<div id="outline-container-org477df79" class="outline-4">
|
||||
<h4 id="org477df79"><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="#org4e6dc93">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org69a6d01">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbfb0c9d" class="outline-5">
|
||||
<h5 id="orgbfb0c9d"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div id="outline-container-orgc59b015" class="outline-5">
|
||||
<h5 id="orgc59b015"><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
|
||||
@ -858,8 +858,8 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4e9d7ea" class="outline-5">
|
||||
<h5 id="org4e9d7ea"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-orge6f612b" class="outline-5">
|
||||
<h5 id="orge6f612b"><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>
|
||||
@ -1042,17 +1042,17 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge973f59" class="outline-4">
|
||||
<h4 id="orge973f59"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
||||
<div id="outline-container-org36bdc0f" class="outline-4">
|
||||
<h4 id="org36bdc0f"><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="#org4e6dc93">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org69a6d01">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf175efb" class="outline-5">
|
||||
<h5 id="orgf175efb"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div id="outline-container-orgd59bec3" class="outline-5">
|
||||
<h5 id="orgd59bec3"><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>
|
||||
@ -1174,8 +1174,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaa33d4f" class="outline-5">
|
||||
<h5 id="orgaa33d4f"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-orgb5dca43" class="outline-5">
|
||||
<h5 id="orgb5dca43"><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>
|
||||
@ -1359,8 +1359,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org62f1c62" class="outline-3">
|
||||
<h3 id="org62f1c62"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div id="outline-container-orgc234f2e" class="outline-3">
|
||||
<h3 id="orgc234f2e"><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:
|
||||
@ -1435,8 +1435,8 @@ The following data is computed as described in the next sections:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc70e46c" class="outline-4">
|
||||
<h4 id="orgc70e46c"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div id="outline-container-orgef681f4" class="outline-4">
|
||||
<h4 id="orgef681f4"><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
|
||||
@ -1450,8 +1450,8 @@ the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd1e7b62" class="outline-4">
|
||||
<h4 id="orgd1e7b62"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
||||
<div id="outline-container-orga9da0af" class="outline-4">
|
||||
<h4 id="orga9da0af"><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:
|
||||
@ -1481,8 +1481,8 @@ which is a matrix-vector product.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org63f8d84" class="outline-4">
|
||||
<h4 id="org63f8d84"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||
<div id="outline-container-orgdd15e6d" class="outline-4">
|
||||
<h4 id="orgdd15e6d"><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>
|
||||
@ -1495,7 +1495,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="#org5c6461e">3.2</a>.
|
||||
See section <a href="#org2a1f302">3.2</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1508,7 +1508,7 @@ See section <a href="#org5c6461e">3.2</a>.
|
||||
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of contracted shells
|
||||
evaluated at the current coordinates. See section <a href="#orge8b36ce">3.3</a>.
|
||||
evaluated at the current coordinates. See section <a href="#orgffcfddc">3.3</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1522,7 +1522,7 @@ evaluated at the current coordinates. See section <a href="#orge8b36ce">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="#org63a6ae8">5</a>.
|
||||
See section <a href="#org1a5d356">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1547,7 +1547,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="#org63a6ae8">5</a>.
|
||||
the current coordinates. See section <a href="#org1a5d356">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1566,12 +1566,12 @@ Uses the given array to compute the value.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0524700" class="outline-2">
|
||||
<h2 id="org0524700"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div id="outline-container-org68b7686" class="outline-2">
|
||||
<h2 id="org68b7686"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org4807a86" class="outline-3">
|
||||
<h3 id="org4807a86"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div id="outline-container-orgcfaaeac" class="outline-3">
|
||||
<h3 id="orgcfaaeac"><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
|
||||
@ -1742,10 +1742,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5c6461e" class="outline-3">
|
||||
<h3 id="org5c6461e"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div id="outline-container-org2a1f302" class="outline-3">
|
||||
<h3 id="org2a1f302"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<table id="org83e9afd" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org20119ae" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1904,10 +1904,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge8b36ce" class="outline-3">
|
||||
<h3 id="orge8b36ce"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div id="outline-container-orgffcfddc" class="outline-3">
|
||||
<h3 id="orgffcfddc"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<table id="org1ceabef" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb924e0f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2159,8 +2159,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2951d3a" class="outline-2">
|
||||
<h2 id="org2951d3a"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div id="outline-container-org792ccbd" class="outline-2">
|
||||
<h2 id="org792ccbd"><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
|
||||
@ -2180,8 +2180,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-orgfc9361f" class="outline-3">
|
||||
<h3 id="orgfc9361f"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-org28cafe7" class="outline-3">
|
||||
<h3 id="org28cafe7"><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>
|
||||
@ -2193,7 +2193,7 @@ the \(n\) points:
|
||||
\[ P_{ik} = X_i^k \]
|
||||
</p>
|
||||
|
||||
<table id="org3737830" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org963fea3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2331,8 +2331,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org850eae6" class="outline-3">
|
||||
<h3 id="org850eae6"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-orgd0a56c4" class="outline-3">
|
||||
<h3 id="orgd0a56c4"><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\)
|
||||
@ -2377,7 +2377,7 @@ Laplacians at a given point in space, of all polynomials with an
|
||||
angular momentum up to <code>lmax</code>.
|
||||
</p>
|
||||
|
||||
<table id="org0c3387c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga37aaf2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3156,18 +3156,18 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org63a6ae8" class="outline-2">
|
||||
<h2 id="org63a6ae8"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div id="outline-container-org1a5d356" class="outline-2">
|
||||
<h2 id="org1a5d356"><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-org2910125" class="outline-3">
|
||||
<h3 id="org2910125"><span class="section-number-3">5.1</span> Values only</h3>
|
||||
<div id="outline-container-orgfc2fb20" class="outline-3">
|
||||
<h3 id="orgfc2fb20"><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-org76d2a3c" class="outline-4">
|
||||
<h4 id="org76d2a3c"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-org203f321" class="outline-4">
|
||||
<h4 id="org203f321"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-1">
|
||||
<table id="orga201a70" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc42c773" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3403,10 +3403,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge2742e9" class="outline-4">
|
||||
<h4 id="orge2742e9"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div id="outline-container-orgcf0a448" class="outline-4">
|
||||
<h4 id="orgcf0a448"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-2">
|
||||
<table id="org4affdb1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8419f1a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3564,8 +3564,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org88f257c" class="outline-4">
|
||||
<h4 id="org88f257c"><span class="section-number-4">5.1.3</span> Interfaces</h4>
|
||||
<div id="outline-container-org4649e10" class="outline-4">
|
||||
<h4 id="org4649e10"><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> (
|
||||
@ -3614,14 +3614,14 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge2f64cc" class="outline-3">
|
||||
<h3 id="orge2f64cc"><span class="section-number-3">5.2</span> Value, gradients, Laplacian</h3>
|
||||
<div id="outline-container-orge3d7889" class="outline-3">
|
||||
<h3 id="orge3d7889"><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-orgf78ba86" class="outline-4">
|
||||
<h4 id="orgf78ba86"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-orga792bf4" class="outline-4">
|
||||
<h4 id="orga792bf4"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-1">
|
||||
<table id="org375dbfd" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1af6a7d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3886,10 +3886,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3e1be0f" class="outline-4">
|
||||
<h4 id="org3e1be0f"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div id="outline-container-orgb717ee8" class="outline-4">
|
||||
<h4 id="orgb717ee8"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-2">
|
||||
<table id="org1cf8ad4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org63f53cc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4048,8 +4048,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org7b9a978" class="outline-4">
|
||||
<h4 id="org7b9a978"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||
<div id="outline-container-org389aae5" class="outline-4">
|
||||
<h4 id="org389aae5"><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> (
|
||||
@ -4101,7 +4101,7 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:35</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:48</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
172
qmckl_blas.html
172
qmckl_blas.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-02-14 Tue 12:35 -->
|
||||
<!-- 2023-02-14 Tue 12:47 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>BLAS functions</title>
|
||||
@ -346,54 +346,54 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org742ba81">-</a></li>
|
||||
<li><a href="#orgc5f8405">1. Data types</a>
|
||||
<li><a href="#org6dd01b3">-</a></li>
|
||||
<li><a href="#org2215e07">1. Data types</a>
|
||||
<ul>
|
||||
<li><a href="#orgc4904e1">1.1. Vector</a></li>
|
||||
<li><a href="#org483358b">1.2. Matrix</a></li>
|
||||
<li><a href="#orgdad6daf">1.3. Tensor</a></li>
|
||||
<li><a href="#orgeeb3739">1.4. Reshaping</a>
|
||||
<li><a href="#org9563743">1.1. Vector</a></li>
|
||||
<li><a href="#org3eb0ced">1.2. Matrix</a></li>
|
||||
<li><a href="#org9a52cc9">1.3. Tensor</a></li>
|
||||
<li><a href="#orgae57f60">1.4. Reshaping</a>
|
||||
<ul>
|
||||
<li><a href="#orgbfc0702">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#orge7d7a27">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#org62b8128">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#orgfb8cd88">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#org47a2b31">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#orgabd1568">1.4.6. Tensor -> Matrix</a></li>
|
||||
<li><a href="#org66a297e">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#orgb159cfc">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#org7b37efe">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#orgce04a76">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#orgc916e3b">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#org068fd75">1.4.6. Tensor -> Matrix</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3775f08">1.5. Access macros</a></li>
|
||||
<li><a href="#org3ea8dd6">1.6. Set all elements</a>
|
||||
<li><a href="#org215522d">1.5. Access macros</a></li>
|
||||
<li><a href="#org9e1697e">1.6. Set all elements</a>
|
||||
<ul>
|
||||
<li><a href="#orgbf37ac0">1.6.1. Vector</a></li>
|
||||
<li><a href="#orge314a61">1.6.2. Matrix</a></li>
|
||||
<li><a href="#org4b6ce56">1.6.3. Tensor</a></li>
|
||||
<li><a href="#org05085d6">1.6.1. Vector</a></li>
|
||||
<li><a href="#orgd8faab6">1.6.2. Matrix</a></li>
|
||||
<li><a href="#org3a6a346">1.6.3. Tensor</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge77c863">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#orgcfc6388">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8fbef81">2. Matrix operations</a>
|
||||
<li><a href="#org7f3d591">2. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#org6b8ce25">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#orgb96104a">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#org45cd825">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#orgf3b6348">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#org59edbac">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<li><a href="#org48a631c">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org09602d9">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#orgfbe02bb">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org3e53d14">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#org41a7379">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<ul>
|
||||
<li><a href="#org3e79e07">2.5.1. C interface</a></li>
|
||||
<li><a href="#org968e5ef">2.5.1. C interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org61982a8">2.6. <code>qmckl_transpose</code></a></li>
|
||||
<li><a href="#orgfdbd8fa">2.6. <code>qmckl_transpose</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org742ba81" class="outline-2">
|
||||
<h2 id="org742ba81">-</h2>
|
||||
<div class="outline-text-2" id="text-org742ba81">
|
||||
<div id="outline-container-org6dd01b3" class="outline-2">
|
||||
<h2 id="org6dd01b3">-</h2>
|
||||
<div class="outline-text-2" id="text-org6dd01b3">
|
||||
<p>
|
||||
Basic linear algebra data types and operations are described in this file.
|
||||
The data types are private, so that HPC implementations can use
|
||||
@ -407,12 +407,12 @@ are not intended to be passed to external codes.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc5f8405" class="outline-2">
|
||||
<h2 id="orgc5f8405"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div id="outline-container-org2215e07" class="outline-2">
|
||||
<h2 id="org2215e07"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-orgc4904e1" class="outline-3">
|
||||
<h3 id="orgc4904e1"><span class="section-number-3">1.1</span> Vector</h3>
|
||||
<div id="outline-container-org9563743" class="outline-3">
|
||||
<h3 id="org9563743"><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">
|
||||
|
||||
@ -466,8 +466,8 @@ Allocates a new vector. If the allocation failed the size is zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org483358b" class="outline-3">
|
||||
<h3 id="org483358b"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||
<div id="outline-container-org3eb0ced" class="outline-3">
|
||||
<h3 id="org3eb0ced"><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">
|
||||
|
||||
@ -527,8 +527,8 @@ Allocates a new matrix. If the allocation failed the sizes are zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdad6daf" class="outline-3">
|
||||
<h3 id="orgdad6daf"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||
<div id="outline-container-org9a52cc9" class="outline-3">
|
||||
<h3 id="org9a52cc9"><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">
|
||||
|
||||
@ -595,16 +595,16 @@ is zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeeb3739" class="outline-3">
|
||||
<h3 id="orgeeb3739"><span class="section-number-3">1.4</span> Reshaping</h3>
|
||||
<div id="outline-container-orgae57f60" class="outline-3">
|
||||
<h3 id="orgae57f60"><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-orgbfc0702" class="outline-4">
|
||||
<h4 id="orgbfc0702"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||
<div id="outline-container-org66a297e" class="outline-4">
|
||||
<h4 id="org66a297e"><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>
|
||||
@ -620,8 +620,8 @@ Reshapes a vector into a matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge7d7a27" class="outline-4">
|
||||
<h4 id="orge7d7a27"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||
<div id="outline-container-orgb159cfc" class="outline-4">
|
||||
<h4 id="orgb159cfc"><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>
|
||||
@ -637,8 +637,8 @@ Reshapes a vector into a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org62b8128" class="outline-4">
|
||||
<h4 id="org62b8128"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||
<div id="outline-container-org7b37efe" class="outline-4">
|
||||
<h4 id="org7b37efe"><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>
|
||||
@ -652,8 +652,8 @@ Reshapes a matrix into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfb8cd88" class="outline-4">
|
||||
<h4 id="orgfb8cd88"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||
<div id="outline-container-orgce04a76" class="outline-4">
|
||||
<h4 id="orgce04a76"><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>
|
||||
@ -669,8 +669,8 @@ Reshapes a matrix into a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org47a2b31" class="outline-4">
|
||||
<h4 id="org47a2b31"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||
<div id="outline-container-orgc916e3b" class="outline-4">
|
||||
<h4 id="orgc916e3b"><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>
|
||||
@ -684,8 +684,8 @@ Reshapes a tensor into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgabd1568" class="outline-4">
|
||||
<h4 id="orgabd1568"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||
<div id="outline-container-org068fd75" class="outline-4">
|
||||
<h4 id="org068fd75"><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>
|
||||
@ -702,8 +702,8 @@ Reshapes a tensor into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3775f08" class="outline-3">
|
||||
<h3 id="org3775f08"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||
<div id="outline-container-org215522d" class="outline-3">
|
||||
<h3 id="org215522d"><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
|
||||
@ -727,12 +727,12 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3ea8dd6" class="outline-3">
|
||||
<h3 id="org3ea8dd6"><span class="section-number-3">1.6</span> Set all elements</h3>
|
||||
<div id="outline-container-org9e1697e" class="outline-3">
|
||||
<h3 id="org9e1697e"><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-orgbf37ac0" class="outline-4">
|
||||
<h4 id="orgbf37ac0"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||
<div id="outline-container-org05085d6" class="outline-4">
|
||||
<h4 id="org05085d6"><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>
|
||||
@ -742,8 +742,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge314a61" class="outline-4">
|
||||
<h4 id="orge314a61"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||
<div id="outline-container-orgd8faab6" class="outline-4">
|
||||
<h4 id="orgd8faab6"><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>
|
||||
@ -753,8 +753,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4b6ce56" class="outline-4">
|
||||
<h4 id="org4b6ce56"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||
<div id="outline-container-org3a6a346" class="outline-4">
|
||||
<h4 id="org3a6a346"><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>
|
||||
@ -765,8 +765,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge77c863" class="outline-3">
|
||||
<h3 id="orge77c863"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||
<div id="outline-container-orgcfc6388" class="outline-3">
|
||||
<h3 id="orgcfc6388"><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>
|
||||
@ -849,12 +849,12 @@ Converts a <code>double*</code> to a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8fbef81" class="outline-2">
|
||||
<h2 id="org8fbef81"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div id="outline-container-org7f3d591" class="outline-2">
|
||||
<h2 id="org7f3d591"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org6b8ce25" class="outline-3">
|
||||
<h3 id="org6b8ce25"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div id="outline-container-org48a631c" class="outline-3">
|
||||
<h3 id="org48a631c"><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:
|
||||
@ -866,7 +866,7 @@ Matrix multiplication with a BLAS interface:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="org763e155" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgefb4373" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1025,8 +1025,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb96104a" class="outline-3">
|
||||
<h3 id="orgb96104a"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
||||
<div id="outline-container-org09602d9" class="outline-3">
|
||||
<h3 id="org09602d9"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
"Size-safe" proxy function with the same functionality as <code>qmckl_dgemm</code>
|
||||
@ -1035,7 +1035,7 @@ are required primarily for the Python API, where compatibility with
|
||||
NumPy arrays implies that sizes of the input and output arrays are provided.
|
||||
</p>
|
||||
|
||||
<table id="org2661608" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8b3af74" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1221,8 +1221,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org45cd825" class="outline-3">
|
||||
<h3 id="org45cd825"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
||||
<div id="outline-container-orgfbe02bb" class="outline-3">
|
||||
<h3 id="orgfbe02bb"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
@ -1234,7 +1234,7 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="orgab8696b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2a430f5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1328,8 +1328,8 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf3b6348" class="outline-3">
|
||||
<h3 id="orgf3b6348"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
||||
<div id="outline-container-org3e53d14" class="outline-3">
|
||||
<h3 id="org3e53d14"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
Given a matrix \(\mathbf{A}\), the adjugate matrix
|
||||
@ -1347,7 +1347,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="orge1ad91f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgef5cf6d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1543,8 +1543,8 @@ determinant with the inverse:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org59edbac" class="outline-3">
|
||||
<h3 id="org59edbac"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
||||
<div id="outline-container-org41a7379" class="outline-3">
|
||||
<h3 id="org41a7379"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
<p>
|
||||
"Size-safe" proxy function with the same functionality as <code>qmckl_adjugate</code>
|
||||
@ -1554,7 +1554,7 @@ NumPy arrays implies that sizes of the input and output arrays are provided.
|
||||
</p>
|
||||
|
||||
|
||||
<table id="orgb7f0e99" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org70066be" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1676,13 +1676,13 @@ LAPACK library.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3e79e07" class="outline-4">
|
||||
<h4 id="org3e79e07"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
<div id="outline-container-org968e5ef" class="outline-4">
|
||||
<h4 id="org968e5ef"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org61982a8" class="outline-3">
|
||||
<h3 id="org61982a8"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
||||
<div id="outline-container-orgfdbd8fa" class="outline-3">
|
||||
<h3 id="orgfdbd8fa"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
||||
@ -1745,7 +1745,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: 2023-02-14 Tue 12:35</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:47</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-02-14 Tue 12:34 -->
|
||||
<!-- 2023-02-14 Tue 12:47 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Context</title>
|
||||
@ -324,21 +324,21 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org6683d5f">1. Context handling</a>
|
||||
<li><a href="#org4bc2e68">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#org17ad9d0">1.1. Data structure</a></li>
|
||||
<li><a href="#org9ef06c0">1.2. Creation</a></li>
|
||||
<li><a href="#org27a8921">1.3. Locking</a></li>
|
||||
<li><a href="#org83e86b2">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org3be713c">1.5. Destroy</a></li>
|
||||
<li><a href="#org5de305a">1.1. Data structure</a></li>
|
||||
<li><a href="#org86199d8">1.2. Creation</a></li>
|
||||
<li><a href="#org6198d5c">1.3. Locking</a></li>
|
||||
<li><a href="#org319c935">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org441763c">1.5. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6683d5f" class="outline-2">
|
||||
<h2 id="org6683d5f"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-org4bc2e68" class="outline-2">
|
||||
<h2 id="org4bc2e68"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The context variable is a handle for the state of the library,
|
||||
@ -351,7 +351,7 @@ A value of <code>QMCKL_NULL_CONTEXT</code> for the context is equivalent to a
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org25a6640"><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="org9a01f4b"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int64_t</span> <span style="color: #228b22;">qmckl_context</span> ;
|
||||
<span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">QMCKL_NULL_CONTEXT</span> (qmckl_context) 0
|
||||
</pre>
|
||||
</div>
|
||||
@ -369,8 +369,8 @@ and <code>ctx</code> is a <code>qmckl_context_struct*</code> pointer.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org17ad9d0" class="outline-3">
|
||||
<h3 id="org17ad9d0"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org5de305a" class="outline-3">
|
||||
<h3 id="org5de305a"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
The qmckl<sub>extra</sub> pointer lets the other implementation of the library
|
||||
@ -406,7 +406,7 @@ to be recomputed. The date is incremented when the context is touched.
|
||||
|
||||
<p>
|
||||
When a new element is added to the context, the functions
|
||||
<a href="#org9ef06c0"><code>qmckl_context_create</code></a> <a href="#org3be713c"><code>qmckl_context_destroy</code></a> and <a href="#org83e86b2"><code>qmckl_context_copy</code></a>
|
||||
<a href="#org86199d8"><code>qmckl_context_create</code></a> <a href="#org441763c"><code>qmckl_context_destroy</code></a> and <a href="#org319c935"><code>qmckl_context_copy</code></a>
|
||||
should be updated in order to make deep copies.
|
||||
</p>
|
||||
|
||||
@ -427,8 +427,8 @@ This has the effect to increment the date of the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9ef06c0" class="outline-3">
|
||||
<h3 id="org9ef06c0"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-org86199d8" class="outline-3">
|
||||
<h3 id="org86199d8"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
@ -445,8 +445,8 @@ To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org27a8921" class="outline-3">
|
||||
<h3 id="org27a8921"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-org6198d5c" class="outline-3">
|
||||
<h3 id="org6198d5c"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
For thread safety, the context may be locked/unlocked. The lock is
|
||||
@ -462,8 +462,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org83e86b2" class="outline-3">
|
||||
<h3 id="org83e86b2"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div id="outline-container-org319c935" class="outline-3">
|
||||
<h3 id="org319c935"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
<code>qmckl_context_copy</code> makes a deep copy of a context. It returns
|
||||
@ -471,8 +471,8 @@ number of times the thread has locked it is saved in the
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org3be713c" class="outline-3">
|
||||
<h3 id="org3be713c"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-org441763c" class="outline-3">
|
||||
<h3 id="org441763c"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
The context is destroyed with <code>qmckl_context_destroy</code>, leaving the ancestors untouched.
|
||||
@ -490,7 +490,7 @@ It frees the context, and returns the previous context.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:34</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:47</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-02-14 Tue 12:34 -->
|
||||
<!-- 2023-02-14 Tue 12:47 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Slater Determinant</title>
|
||||
@ -324,32 +324,32 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org65a9dcb">1. Context</a>
|
||||
<li><a href="#org9f77566">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org2b3481f">1.1. Data structure</a></li>
|
||||
<li><a href="#org7b4979c">1.2. Access functions</a></li>
|
||||
<li><a href="#org8959d2c">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgae74484">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#orgdc11beb">1.5. Test</a></li>
|
||||
<li><a href="#org7f00a7d">1.1. Data structure</a></li>
|
||||
<li><a href="#orgc61a0fb">1.2. Access functions</a></li>
|
||||
<li><a href="#orgffc66eb">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgd632209">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#org588aac9">1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge4932fd">2. Computation</a>
|
||||
<li><a href="#org88d7691">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org7d1d5c3">2.1. Determinant matrix</a>
|
||||
<li><a href="#orgc770720">2.1. Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org0ca7644">2.1.1. Get</a></li>
|
||||
<li><a href="#orgb2d560b">2.1.2. Provide</a></li>
|
||||
<li><a href="#org8107769">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#orgf7f7922">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#org5ed2f2e">2.1.5. Test</a></li>
|
||||
<li><a href="#org38c3eff">2.1.1. Get</a></li>
|
||||
<li><a href="#org081a8af">2.1.2. Provide</a></li>
|
||||
<li><a href="#org302c303">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#org13dca38">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#org3747083">2.1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgab6de67">2.2. Inverse of Determinant matrix</a>
|
||||
<li><a href="#org7c34be9">2.2. Inverse of Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org4536eab">2.2.1. Get</a></li>
|
||||
<li><a href="#orgc838379">2.2.2. Provide</a></li>
|
||||
<li><a href="#org5085241">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#org8ab5e4b">2.2.4. Compute beta</a></li>
|
||||
<li><a href="#org367dda1">2.2.1. Get</a></li>
|
||||
<li><a href="#orgf71b7e7">2.2.2. Provide</a></li>
|
||||
<li><a href="#org7605877">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#org9daa0d7">2.2.4. Compute beta</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -358,8 +358,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org65a9dcb" class="outline-2">
|
||||
<h2 id="org65a9dcb"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org9f77566" class="outline-2">
|
||||
<h2 id="org9f77566"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following arrays are stored in the context:
|
||||
@ -535,8 +535,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2b3481f" class="outline-3">
|
||||
<h3 id="org2b3481f"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org7f00a7d" class="outline-3">
|
||||
<h3 id="org7f00a7d"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_determinant_struct</span> {
|
||||
@ -604,8 +604,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7b4979c" class="outline-3">
|
||||
<h3 id="org7b4979c"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgc61a0fb" class="outline-3">
|
||||
<h3 id="orgc61a0fb"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
When all the data for the slater determinants have been provided, the following
|
||||
@ -619,8 +619,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8959d2c" class="outline-3">
|
||||
<h3 id="org8959d2c"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgffc66eb" class="outline-3">
|
||||
<h3 id="orgffc66eb"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To set the basis set, all the following functions need to be
|
||||
@ -643,24 +643,24 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgae74484" class="outline-3">
|
||||
<h3 id="orgae74484"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
<div id="outline-container-orgd632209" class="outline-3">
|
||||
<h3 id="orgd632209"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
</div>
|
||||
<div id="outline-container-orgdc11beb" class="outline-3">
|
||||
<h3 id="orgdc11beb"><span class="section-number-3">1.5</span> Test</h3>
|
||||
<div id="outline-container-org588aac9" class="outline-3">
|
||||
<h3 id="org588aac9"><span class="section-number-3">1.5</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orge4932fd" class="outline-2">
|
||||
<h2 id="orge4932fd"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org88d7691" class="outline-2">
|
||||
<h2 id="org88d7691"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org7d1d5c3" class="outline-3">
|
||||
<h3 id="org7d1d5c3"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
||||
<div id="outline-container-orgc770720" class="outline-3">
|
||||
<h3 id="orgc770720"><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-org0ca7644" class="outline-4">
|
||||
<h4 id="org0ca7644"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org38c3eff" class="outline-4">
|
||||
<h4 id="org38c3eff"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_det_vgl_alpha</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">det_vgl_alpha</span>);
|
||||
@ -670,14 +670,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb2d560b" class="outline-4">
|
||||
<h4 id="orgb2d560b"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org081a8af" class="outline-4">
|
||||
<h4 id="org081a8af"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8107769" class="outline-4">
|
||||
<h4 id="org8107769"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org302c303" class="outline-4">
|
||||
<h4 id="org302c303"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="org1c4dd8f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0536c60" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -851,10 +851,10 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf7f7922" class="outline-4">
|
||||
<h4 id="orgf7f7922"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org13dca38" class="outline-4">
|
||||
<h4 id="org13dca38"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<table id="org85d9693" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org055bd50" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1028,18 +1028,18 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5ed2f2e" class="outline-4">
|
||||
<h4 id="org5ed2f2e"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
<div id="outline-container-org3747083" class="outline-4">
|
||||
<h4 id="org3747083"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgab6de67" class="outline-3">
|
||||
<h3 id="orgab6de67"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
||||
<div id="outline-container-org7c34be9" class="outline-3">
|
||||
<h3 id="org7c34be9"><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-org4536eab" class="outline-4">
|
||||
<h4 id="org4536eab"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org367dda1" class="outline-4">
|
||||
<h4 id="org367dda1"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_det_inv_matrix_alpha</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">det_inv_matrix_alpha</span>);
|
||||
@ -1053,14 +1053,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc838379" class="outline-4">
|
||||
<h4 id="orgc838379"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-orgf71b7e7" class="outline-4">
|
||||
<h4 id="orgf71b7e7"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5085241" class="outline-4">
|
||||
<h4 id="org5085241"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org7605877" class="outline-4">
|
||||
<h4 id="org7605877"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org6b5d4eb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge3c8a35" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1222,10 +1222,10 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8ab5e4b" class="outline-4">
|
||||
<h4 id="org8ab5e4b"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org9daa0d7" class="outline-4">
|
||||
<h4 id="org9daa0d7"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<table id="orgbca2550" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2afcae1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1392,7 +1392,7 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:34</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:47</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-02-14 Tue 12:35 -->
|
||||
<!-- 2023-02-14 Tue 12:48 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Inter-particle distances</title>
|
||||
@ -346,54 +346,54 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org79192b6">1. Squared distance</a>
|
||||
<li><a href="#org96f60aa">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#org0bae82c">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#org980ca3d">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgcd7ee68">1.1.1. Performance</a></li>
|
||||
<li><a href="#orge2fbbe9">1.1.1. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc6f5c3b">2. Distance</a>
|
||||
<li><a href="#orgb35ebd1">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#orgd93f6c9">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#org3c428d7">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgb7f5204">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orge621134">2.1.2. C header</a></li>
|
||||
<li><a href="#orga64cc80">2.1.3. Source</a></li>
|
||||
<li><a href="#orge22f680">2.1.4. Performance</a></li>
|
||||
<li><a href="#orgdfbeb90">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org752b911">2.1.2. C header</a></li>
|
||||
<li><a href="#orga4594f2">2.1.3. Source</a></li>
|
||||
<li><a href="#orgdf9afdf">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1d37309">3. Rescaled Distance</a>
|
||||
<li><a href="#org998c40b">3. Rescaled Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org198f11f">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<li><a href="#orgb022a03">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<ul>
|
||||
<li><a href="#org71b267f">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org24df8c3">3.1.2. C header</a></li>
|
||||
<li><a href="#org886cbce">3.1.3. Source</a></li>
|
||||
<li><a href="#org28a7e05">3.1.4. Performance</a></li>
|
||||
<li><a href="#org77d0f78">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org04206e2">3.1.2. C header</a></li>
|
||||
<li><a href="#orgdee7d2d">3.1.3. Source</a></li>
|
||||
<li><a href="#orgca69598">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgca2f2f1">4. Rescaled Distance Derivatives</a>
|
||||
<li><a href="#org3f52c20">4. Rescaled Distance Derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#orgb1c19fe">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a></li>
|
||||
<li><a href="#org8b6384d">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org79192b6" class="outline-2">
|
||||
<h2 id="org79192b6"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-org96f60aa" class="outline-2">
|
||||
<h2 id="org96f60aa"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org0bae82c" class="outline-3">
|
||||
<h3 id="org0bae82c"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-org980ca3d" class="outline-3">
|
||||
<h3 id="org980ca3d"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
<code>qmckl_distance_sq</code> computes the matrix of the squared distances
|
||||
@ -406,7 +406,7 @@ between all pairs of points in two sets, one point within each set:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="org5b06299" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8ad337b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -672,8 +672,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcd7ee68" class="outline-4">
|
||||
<h4 id="orgcd7ee68"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div id="outline-container-orge2fbbe9" class="outline-4">
|
||||
<h4 id="orge2fbbe9"><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
|
||||
@ -683,12 +683,12 @@ transposed.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgc6f5c3b" class="outline-2">
|
||||
<h2 id="orgc6f5c3b"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-orgb35ebd1" class="outline-2">
|
||||
<h2 id="orgb35ebd1"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgd93f6c9" class="outline-3">
|
||||
<h3 id="orgd93f6c9"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div id="outline-container-org3c428d7" class="outline-3">
|
||||
<h3 id="org3c428d7"><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
|
||||
@ -706,7 +706,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="org88d851c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5a9d7c0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -807,8 +807,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb7f5204" class="outline-4">
|
||||
<h4 id="orgb7f5204"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgdfbeb90" class="outline-4">
|
||||
<h4 id="orgdfbeb90"><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>
|
||||
@ -826,8 +826,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge621134" class="outline-4">
|
||||
<h4 id="orge621134"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-org752b911" class="outline-4">
|
||||
<h4 id="org752b911"><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> (
|
||||
@ -847,8 +847,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga64cc80" class="outline-4">
|
||||
<h4 id="orga64cc80"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-orga4594f2" class="outline-4">
|
||||
<h4 id="orga4594f2"><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>
|
||||
@ -1015,8 +1015,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge22f680" class="outline-4">
|
||||
<h4 id="orge22f680"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgdf9afdf" class="outline-4">
|
||||
<h4 id="orgdf9afdf"><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.
|
||||
@ -1026,12 +1026,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1d37309" class="outline-2">
|
||||
<h2 id="org1d37309"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div id="outline-container-org998c40b" class="outline-2">
|
||||
<h2 id="org998c40b"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org198f11f" class="outline-3">
|
||||
<h3 id="org198f11f"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div id="outline-container-orgb022a03" class="outline-3">
|
||||
<h3 id="orgb022a03"><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
|
||||
@ -1049,7 +1049,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="org89ae28c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgfe25cd7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1157,8 +1157,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org71b267f" class="outline-4">
|
||||
<h4 id="org71b267f"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org77d0f78" class="outline-4">
|
||||
<h4 id="org77d0f78"><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>
|
||||
@ -1176,8 +1176,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org24df8c3" class="outline-4">
|
||||
<h4 id="org24df8c3"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-org04206e2" class="outline-4">
|
||||
<h4 id="org04206e2"><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> (
|
||||
@ -1198,8 +1198,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org886cbce" class="outline-4">
|
||||
<h4 id="org886cbce"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgdee7d2d" class="outline-4">
|
||||
<h4 id="orgdee7d2d"><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>
|
||||
@ -1369,8 +1369,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org28a7e05" class="outline-4">
|
||||
<h4 id="org28a7e05"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgca69598" class="outline-4">
|
||||
<h4 id="orgca69598"><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.
|
||||
@ -1379,12 +1379,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgca2f2f1" class="outline-2">
|
||||
<h2 id="orgca2f2f1"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div id="outline-container-org3f52c20" class="outline-2">
|
||||
<h2 id="org3f52c20"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-orgb1c19fe" class="outline-3">
|
||||
<h3 id="orgb1c19fe"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_deriv_e</code></h3>
|
||||
<div id="outline-container-org8b6384d" class="outline-3">
|
||||
<h3 id="org8b6384d"><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
|
||||
@ -1451,7 +1451,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="org3a4f60a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb6b79b2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1789,7 +1789,7 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:35</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:48</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-02-14 Tue 12:35 -->
|
||||
<!-- 2023-02-14 Tue 12:48 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Electrons</title>
|
||||
@ -346,59 +346,59 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgf7dbdf1">1. Context</a>
|
||||
<li><a href="#orge1a1d0f">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org4c4877c">1.1. Data structure</a></li>
|
||||
<li><a href="#orga2126e8">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org00addbc">1.3. Access functions</a>
|
||||
<li><a href="#orgee8e7ae">1.1. Data structure</a></li>
|
||||
<li><a href="#orga350ef4">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org6107d3d">1.3. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org57c2bd8">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#orgc2a81c4">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#org81acfb1">1.3.3. Electron coordinates</a></li>
|
||||
<li><a href="#org6c9d715">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#orgfa5237c">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#orgc22f6b1">1.3.3. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc62ca8c">1.4. Test</a></li>
|
||||
<li><a href="#org0dfec66">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4381733">2. Computation</a>
|
||||
<li><a href="#org7ce97ec">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgeaab38f">2.1. Electron-electron distances</a>
|
||||
<li><a href="#org065b0e8">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#org23dcd67">2.1.1. Get</a></li>
|
||||
<li><a href="#org94eaef5">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgc127e74">2.1.3. Test</a></li>
|
||||
<li><a href="#org33cbb9c">2.1.1. Get</a></li>
|
||||
<li><a href="#orgc39e9c6">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgf81f864">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgaa2b59e">2.2. Electron-electron potential</a>
|
||||
<li><a href="#org6f29d99">2.2. Electron-electron potential</a>
|
||||
<ul>
|
||||
<li><a href="#orgc40221d">2.2.1. Get</a></li>
|
||||
<li><a href="#orge57b971">2.2.2. Compute</a></li>
|
||||
<li><a href="#org47975f5">2.2.3. Test</a></li>
|
||||
<li><a href="#org4b8de51">2.2.1. Get</a></li>
|
||||
<li><a href="#orga0c6848">2.2.2. Compute</a></li>
|
||||
<li><a href="#org1b8475b">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgaf5d302">2.3. Electron-nucleus distances</a>
|
||||
<li><a href="#orgfab6863">2.3. Electron-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#orga872d67">2.3.1. Get</a></li>
|
||||
<li><a href="#org224682c">2.3.2. Compute</a></li>
|
||||
<li><a href="#org9cee332">2.3.3. Test</a></li>
|
||||
<li><a href="#org5b8a95c">2.3.1. Get</a></li>
|
||||
<li><a href="#org6d27ce1">2.3.2. Compute</a></li>
|
||||
<li><a href="#orgc46d246">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9a7111c">2.4. Electron-nucleus potential</a>
|
||||
<li><a href="#orgf0ef0d8">2.4. Electron-nucleus potential</a>
|
||||
<ul>
|
||||
<li><a href="#org8b97d0b">2.4.1. Get</a></li>
|
||||
<li><a href="#org280b533">2.4.2. Compute</a></li>
|
||||
<li><a href="#orge03b976">2.4.3. Test</a></li>
|
||||
<li><a href="#orgf6dfd8e">2.4.1. Get</a></li>
|
||||
<li><a href="#org3ac4070">2.4.2. Compute</a></li>
|
||||
<li><a href="#orgc387aeb">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2567fa1">2.5. Generate initial coordinates</a></li>
|
||||
<li><a href="#org17e75bd">2.5. Generate initial coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf7dbdf1" class="outline-2">
|
||||
<h2 id="orgf7dbdf1"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orge1a1d0f" class="outline-2">
|
||||
<h2 id="orge1a1d0f"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following data stored in the context:
|
||||
@ -539,8 +539,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4c4877c" class="outline-3">
|
||||
<h3 id="org4c4877c"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgee8e7ae" class="outline-3">
|
||||
<h3 id="orgee8e7ae"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">
|
||||
@ -609,8 +609,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga2126e8" class="outline-3">
|
||||
<h3 id="orga2126e8"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-orga350ef4" class="outline-3">
|
||||
<h3 id="orga350ef4"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To set the data relative to the electrons in the context, the
|
||||
@ -683,8 +683,8 @@ in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org00addbc" class="outline-3">
|
||||
<h3 id="org00addbc"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div id="outline-container-org6107d3d" class="outline-3">
|
||||
<h3 id="org6107d3d"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
Access functions return <code>QMCKL_SUCCESS</code> when the data has been
|
||||
@ -696,12 +696,12 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org57c2bd8" class="outline-4">
|
||||
<h4 id="org57c2bd8"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
<div id="outline-container-org6c9d715" class="outline-4">
|
||||
<h4 id="org6c9d715"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc2a81c4" class="outline-4">
|
||||
<h4 id="orgc2a81c4"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
||||
<div id="outline-container-orgfa5237c" class="outline-4">
|
||||
<h4 id="orgfa5237c"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
||||
<div class="outline-text-4" id="text-1-3-2">
|
||||
<p>
|
||||
A walker is a set of electron coordinates that are arguments of
|
||||
@ -710,8 +710,8 @@ the wave function. <code>walk_num</code> is the number of walkers.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org81acfb1" class="outline-4">
|
||||
<h4 id="org81acfb1"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
||||
<div id="outline-container-orgc22f6b1" class="outline-4">
|
||||
<h4 id="orgc22f6b1"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-3-3">
|
||||
<p>
|
||||
Returns the current electron coordinates. The pointer is assumed
|
||||
@ -761,8 +761,8 @@ current points.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc62ca8c" class="outline-3">
|
||||
<h3 id="orgc62ca8c"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org0dfec66" class="outline-3">
|
||||
<h3 id="org0dfec66"><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> */
|
||||
@ -841,8 +841,8 @@ rc = qmckl_get_electron_coord (context, <span style="color: #8b2252;">'N'</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4381733" class="outline-2">
|
||||
<h2 id="org4381733"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org7ce97ec" class="outline-2">
|
||||
<h2 id="org7ce97ec"><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
|
||||
@ -855,12 +855,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeaab38f" class="outline-3">
|
||||
<h3 id="orgeaab38f"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-org065b0e8" class="outline-3">
|
||||
<h3 id="org065b0e8"><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-org23dcd67" class="outline-4">
|
||||
<h4 id="org23dcd67"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org33cbb9c" class="outline-4">
|
||||
<h4 id="org33cbb9c"><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>);
|
||||
@ -869,10 +869,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org94eaef5" class="outline-4">
|
||||
<h4 id="org94eaef5"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-orgc39e9c6" class="outline-4">
|
||||
<h4 id="orgc39e9c6"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org7f8f99d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgcc893c5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -977,8 +977,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc127e74" class="outline-4">
|
||||
<h4 id="orgc127e74"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orgf81f864" class="outline-4">
|
||||
<h4 id="orgf81f864"><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>));
|
||||
@ -1012,8 +1012,8 @@ rc = qmckl_get_electron_ee_distance(context, ee_distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaa2b59e" class="outline-3">
|
||||
<h3 id="orgaa2b59e"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
||||
<div id="outline-container-org6f29d99" class="outline-3">
|
||||
<h3 id="org6f29d99"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
<code>ee_potential</code> is given by
|
||||
@ -1031,8 +1031,8 @@ distance.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc40221d" class="outline-4">
|
||||
<h4 id="orgc40221d"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org4b8de51" class="outline-4">
|
||||
<h4 id="org4b8de51"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_ee_potential</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">ee_potential</span>);
|
||||
@ -1041,10 +1041,10 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge57b971" class="outline-4">
|
||||
<h4 id="orge57b971"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-orga0c6848" class="outline-4">
|
||||
<h4 id="orga0c6848"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orgcf2b813" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5924208" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1160,8 +1160,8 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org47975f5" class="outline-4">
|
||||
<h4 id="org47975f5"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org1b8475b" class="outline-4">
|
||||
<h4 id="org1b8475b"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">double</span> <span style="color: #a0522d;">ee_potential</span>[walk_num];
|
||||
@ -1173,12 +1173,12 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgaf5d302" class="outline-3">
|
||||
<h3 id="orgaf5d302"><span class="section-number-3">2.3</span> Electron-nucleus distances</h3>
|
||||
<div id="outline-container-orgfab6863" class="outline-3">
|
||||
<h3 id="orgfab6863"><span class="section-number-3">2.3</span> Electron-nucleus distances</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
</div>
|
||||
<div id="outline-container-orga872d67" class="outline-4">
|
||||
<h4 id="orga872d67"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org5b8a95c" class="outline-4">
|
||||
<h4 id="org5b8a95c"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_distance</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">distance</span>);
|
||||
@ -1187,10 +1187,10 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org224682c" class="outline-4">
|
||||
<h4 id="org224682c"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-org6d27ce1" class="outline-4">
|
||||
<h4 id="org6d27ce1"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="orgac77a72" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgae1a9f8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1315,8 +1315,8 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9cee332" class="outline-4">
|
||||
<h4 id="org9cee332"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-orgc46d246" class="outline-4">
|
||||
<h4 id="orgc46d246"><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">
|
||||
@ -1364,8 +1364,8 @@ rc = qmckl_get_electron_en_distance(context, &(en_distance[0][0][0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9a7111c" class="outline-3">
|
||||
<h3 id="org9a7111c"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
||||
<div id="outline-container-orgf0ef0d8" class="outline-3">
|
||||
<h3 id="orgf0ef0d8"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
<code>en_potential</code> stores the <code>en</code> potential energy
|
||||
@ -1383,8 +1383,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8b97d0b" class="outline-4">
|
||||
<h4 id="org8b97d0b"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-orgf6dfd8e" class="outline-4">
|
||||
<h4 id="orgf6dfd8e"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_potential</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">en_potential</span>);
|
||||
@ -1393,10 +1393,10 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org280b533" class="outline-4">
|
||||
<h4 id="org280b533"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-org3ac4070" class="outline-4">
|
||||
<h4 id="org3ac4070"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="org0d5ba5a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org64b631c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1530,8 +1530,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge03b976" class="outline-4">
|
||||
<h4 id="orge03b976"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-orgc387aeb" class="outline-4">
|
||||
<h4 id="orgc387aeb"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-4-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">double</span> <span style="color: #a0522d;">en_potential</span>[walk_num];
|
||||
@ -1544,14 +1544,14 @@ rc = qmckl_get_electron_en_potential(context, &(en_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2567fa1" class="outline-3">
|
||||
<h3 id="org2567fa1"><span class="section-number-3">2.5</span> Generate initial coordinates</h3>
|
||||
<div id="outline-container-org17e75bd" class="outline-3">
|
||||
<h3 id="org17e75bd"><span class="section-number-3">2.5</span> Generate initial coordinates</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:35</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:48</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-02-14 Tue 12:34 -->
|
||||
<!-- 2023-02-14 Tue 12:47 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Error handling</title>
|
||||
@ -324,29 +324,29 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgf042bb1">-</a></li>
|
||||
<li><a href="#org48e1b25">1. Decoding errors</a></li>
|
||||
<li><a href="#orga4f43ca">2. Data structure in context</a></li>
|
||||
<li><a href="#orgddf4afc">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org856bc23">4. Get the error</a></li>
|
||||
<li><a href="#orga2f29b3">5. Failing</a></li>
|
||||
<li><a href="#org371e8d5">6. Last error</a>
|
||||
<li><a href="#orgde43b32">-</a></li>
|
||||
<li><a href="#org342ab9c">1. Decoding errors</a></li>
|
||||
<li><a href="#orgbf5bb72">2. Data structure in context</a></li>
|
||||
<li><a href="#org33f4c6f">3. Updating errors in the context</a></li>
|
||||
<li><a href="#orgf7efe36">4. Get the error</a></li>
|
||||
<li><a href="#org288cd79">5. Failing</a></li>
|
||||
<li><a href="#org3a03c34">6. Last error</a>
|
||||
<ul>
|
||||
<li><a href="#orgfeda7c5">6.1. Fortran inteface</a></li>
|
||||
<li><a href="#org27a4f60">6.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd4f9bd7">7. Helper functions for debugging</a>
|
||||
<li><a href="#org8dab672">7. Helper functions for debugging</a>
|
||||
<ul>
|
||||
<li><a href="#orgb398272">7.1. Fortran inteface</a></li>
|
||||
<li><a href="#orgbde0286">7.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf042bb1" class="outline-2">
|
||||
<h2 id="orgf042bb1">-</h2>
|
||||
<div class="outline-text-2" id="text-orgf042bb1">
|
||||
<div id="outline-container-orgde43b32" class="outline-2">
|
||||
<h2 id="orgde43b32">-</h2>
|
||||
<div class="outline-text-2" id="text-orgde43b32">
|
||||
<p>
|
||||
The library should never make the calling programs abort, nor
|
||||
perform any input/output operations. This decision has to be taken
|
||||
@ -357,7 +357,7 @@ by the developer of the code calling the library.
|
||||
All the functions return with an exit code, defined as
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org1f0ea0b"><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="org353d5e1"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int32_t</span> <span style="color: #228b22;">qmckl_exit_code</span>;
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -374,7 +374,7 @@ error code is returned to the program.
|
||||
Here is the complete list of exit codes.
|
||||
</p>
|
||||
|
||||
<table id="orge1909d2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd26e5f3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -582,8 +582,8 @@ string is assumed to be large enough to contain the error message
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org48e1b25" class="outline-2">
|
||||
<h2 id="org48e1b25"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-org342ab9c" class="outline-2">
|
||||
<h2 id="org342ab9c"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
To decode the error messages, <code>qmckl_string_of_error</code> converts an
|
||||
@ -601,8 +601,8 @@ The text strings are extracted from the previous table.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orga4f43ca" class="outline-2">
|
||||
<h2 id="orga4f43ca"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-orgbf5bb72" class="outline-2">
|
||||
<h2 id="orgbf5bb72"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The strings are declared internally with a maximum fixed size to avoid
|
||||
@ -625,8 +625,8 @@ dynamic memory allocation.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgddf4afc" class="outline-2">
|
||||
<h2 id="orgddf4afc"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div id="outline-container-org33f4c6f" class="outline-2">
|
||||
<h2 id="org33f4c6f"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
The error is updated in the context using <code>qmckl_set_error</code>.
|
||||
@ -645,8 +645,8 @@ explaining the error. The exit code can't be <code>QMCKL_SUCCESS</code>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org856bc23" class="outline-2">
|
||||
<h2 id="org856bc23"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div id="outline-container-orgf7efe36" class="outline-2">
|
||||
<h2 id="orgf7efe36"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
Upon error, the error type and message can be obtained from the
|
||||
@ -665,8 +665,8 @@ function name and message is mandatory.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orga2f29b3" class="outline-2">
|
||||
<h2 id="orga2f29b3"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div id="outline-container-org288cd79" class="outline-2">
|
||||
<h2 id="org288cd79"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
<p>
|
||||
To make a function fail, the <code>qmckl_failwith</code> function should be
|
||||
@ -703,8 +703,8 @@ For example, this function can be used as
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org371e8d5" class="outline-2">
|
||||
<h2 id="org371e8d5"><span class="section-number-2">6</span> Last error</h2>
|
||||
<div id="outline-container-org3a03c34" class="outline-2">
|
||||
<h2 id="org3a03c34"><span class="section-number-2">6</span> Last error</h2>
|
||||
<div class="outline-text-2" id="text-6">
|
||||
<p>
|
||||
Returns a string describing the last error, using <code>qmckl_get_error</code>.
|
||||
@ -716,13 +716,13 @@ Returns a string describing the last error, using <code>qmckl_get_error</code>.
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgfeda7c5" class="outline-3">
|
||||
<h3 id="orgfeda7c5"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-org27a4f60" class="outline-3">
|
||||
<h3 id="org27a4f60"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd4f9bd7" class="outline-2">
|
||||
<h2 id="orgd4f9bd7"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
||||
<div id="outline-container-org8dab672" class="outline-2">
|
||||
<h2 id="org8dab672"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
||||
<div class="outline-text-2" id="text-7">
|
||||
<p>
|
||||
The following function prints to <code>stderr</code> an error message is the return code is
|
||||
@ -748,14 +748,14 @@ It should be used as:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb398272" class="outline-3">
|
||||
<h3 id="orgb398272"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-orgbde0286" class="outline-3">
|
||||
<h3 id="orgbde0286"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:34</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:47</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-02-14 Tue 12:34 -->
|
||||
<!-- 2023-02-14 Tue 12:47 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Code examples</title>
|
||||
@ -346,27 +346,27 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org6d24cf9">1. Python</a>
|
||||
<li><a href="#orgb2cde5a">1. Python</a>
|
||||
<ul>
|
||||
<li><a href="#org2276672">1.1. Check numerically that MOs are orthonormal</a></li>
|
||||
<li><a href="#org7bb7eea">1.1. Check numerically that MOs are orthonormal</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9785ea1">2. Fortran</a>
|
||||
<li><a href="#org15ad98e">2. Fortran</a>
|
||||
<ul>
|
||||
<li><a href="#org3b4e136">2.1. Checking errors</a></li>
|
||||
<li><a href="#org01454cc">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
<li><a href="#org25497dc">2.1. Checking errors</a></li>
|
||||
<li><a href="#orgb9a7559">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6d24cf9" class="outline-2">
|
||||
<h2 id="org6d24cf9"><span class="section-number-2">1</span> Python</h2>
|
||||
<div id="outline-container-orgb2cde5a" class="outline-2">
|
||||
<h2 id="orgb2cde5a"><span class="section-number-2">1</span> Python</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org2276672" class="outline-3">
|
||||
<h3 id="org2276672"><span class="section-number-3">1.1</span> Check numerically that MOs are orthonormal</h3>
|
||||
<div id="outline-container-org7bb7eea" class="outline-3">
|
||||
<h3 id="org7bb7eea"><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
|
||||
@ -542,12 +542,12 @@ and finally we compute the overlap between all the MOs as
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9785ea1" class="outline-2">
|
||||
<h2 id="org9785ea1"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div id="outline-container-org15ad98e" class="outline-2">
|
||||
<h2 id="org15ad98e"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org3b4e136" class="outline-3">
|
||||
<h3 id="org3b4e136"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div id="outline-container-org25497dc" class="outline-3">
|
||||
<h3 id="org25497dc"><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
|
||||
@ -556,7 +556,7 @@ error in text format and exits the program.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90" id="org40951c6"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<pre class="src src-f90" id="org8361e1e"><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>
|
||||
@ -574,8 +574,8 @@ error in text format and exits the program.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org01454cc" class="outline-3">
|
||||
<h3 id="org01454cc"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div id="outline-container-orgb9a7559" class="outline-3">
|
||||
<h3 id="orgb9a7559"><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
|
||||
@ -794,7 +794,7 @@ We finally print the value and Laplacian of the AO:
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:34</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:47</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-02-14 Tue 12:34 -->
|
||||
<!-- 2023-02-14 Tue 12:47 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Local Energy</title>
|
||||
@ -346,44 +346,44 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org634a9be">1. Context</a>
|
||||
<li><a href="#org97a102c">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org593a71a">1.1. Data structure</a></li>
|
||||
<li><a href="#org5d80cd8">1.2. Access functions</a></li>
|
||||
<li><a href="#orgfa4d0c1">1.1. Data structure</a></li>
|
||||
<li><a href="#orgcf78d9c">1.2. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgee73e06">2. Computation</a>
|
||||
<li><a href="#org566bcd9">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org6e092d6">2.1. Kinetic energy</a>
|
||||
<li><a href="#orgce7e0a5">2.1. Kinetic energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgf889ecc">2.1.1. Get</a></li>
|
||||
<li><a href="#org2ca1c6b">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgfaaae25">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org7b13ef4">2.1.4. Test</a></li>
|
||||
<li><a href="#org634b032">2.1.1. Get</a></li>
|
||||
<li><a href="#orgb76e29c">2.1.2. Provide</a></li>
|
||||
<li><a href="#org5059180">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org5f239c2">2.1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb71e2b8">2.2. Potential energy</a>
|
||||
<li><a href="#org56461ec">2.2. Potential energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgccc2985">2.2.1. Get</a></li>
|
||||
<li><a href="#orgd1c6797">2.2.2. Provide</a></li>
|
||||
<li><a href="#org7759950">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org580d2d4">2.2.4. Test</a></li>
|
||||
<li><a href="#orgcae1d53">2.2.1. Get</a></li>
|
||||
<li><a href="#orgff29afc">2.2.2. Provide</a></li>
|
||||
<li><a href="#org779ef8f">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#orga400609">2.2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7083be2">2.3. Local energy</a>
|
||||
<li><a href="#org1fef8a4">2.3. Local energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgc9cdc40">2.3.1. Get</a></li>
|
||||
<li><a href="#org826a1e2">2.3.2. Provide</a></li>
|
||||
<li><a href="#org45d84e4">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#org018c649">2.3.4. Test</a></li>
|
||||
<li><a href="#org817ae9a">2.3.1. Get</a></li>
|
||||
<li><a href="#org01bfa49">2.3.2. Provide</a></li>
|
||||
<li><a href="#orgc7979cd">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#orgfad781b">2.3.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc8146db">2.4. Drift vector</a>
|
||||
<li><a href="#orgd679551">2.4. Drift vector</a>
|
||||
<ul>
|
||||
<li><a href="#org769165c">2.4.1. Get</a></li>
|
||||
<li><a href="#org1fd6871">2.4.2. Provide</a></li>
|
||||
<li><a href="#org2a300db">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org2759616">2.4.4. Test</a></li>
|
||||
<li><a href="#org8f956f3">2.4.1. Get</a></li>
|
||||
<li><a href="#org5f0a762">2.4.2. Provide</a></li>
|
||||
<li><a href="#orgb663be2">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org3b13e6d">2.4.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -392,8 +392,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org634a9be" class="outline-2">
|
||||
<h2 id="org634a9be"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org97a102c" class="outline-2">
|
||||
<h2 id="org97a102c"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following arrays are stored in the context:
|
||||
@ -466,8 +466,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org593a71a" class="outline-3">
|
||||
<h3 id="org593a71a"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgfa4d0c1" class="outline-3">
|
||||
<h3 id="orgfa4d0c1"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_local_energy_struct</span> {
|
||||
@ -501,8 +501,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5d80cd8" class="outline-3">
|
||||
<h3 id="org5d80cd8"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgcf78d9c" class="outline-3">
|
||||
<h3 id="orgcf78d9c"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
When all the data for the local energy have been provided, the following
|
||||
@ -517,12 +517,12 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgee73e06" class="outline-2">
|
||||
<h2 id="orgee73e06"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org566bcd9" class="outline-2">
|
||||
<h2 id="org566bcd9"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org6e092d6" class="outline-3">
|
||||
<h3 id="org6e092d6"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div id="outline-container-orgce7e0a5" class="outline-3">
|
||||
<h3 id="orgce7e0a5"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
Where the kinetic energy is given as:
|
||||
@ -546,8 +546,8 @@ case is given as follows:
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf889ecc" class="outline-4">
|
||||
<h4 id="orgf889ecc"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org634b032" class="outline-4">
|
||||
<h4 id="org634b032"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_kinetic_energy</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">kinetic_energy</span>);
|
||||
@ -556,14 +556,14 @@ case is given as follows:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2ca1c6b" class="outline-4">
|
||||
<h4 id="org2ca1c6b"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-orgb76e29c" class="outline-4">
|
||||
<h4 id="orgb76e29c"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfaaae25" class="outline-4">
|
||||
<h4 id="orgfaaae25"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
||||
<div id="outline-container-org5059180" class="outline-4">
|
||||
<h4 id="org5059180"><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="orgebf80f1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga6fdd4f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -792,12 +792,12 @@ case is given as follows:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7b13ef4" class="outline-4">
|
||||
<h4 id="org7b13ef4"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
<div id="outline-container-org5f239c2" class="outline-4">
|
||||
<h4 id="org5f239c2"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgb71e2b8" class="outline-3">
|
||||
<h3 id="orgb71e2b8"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div id="outline-container-org56461ec" class="outline-3">
|
||||
<h3 id="org56461ec"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
The potential energy is the sum of all the following terms
|
||||
@ -833,8 +833,8 @@ contributions.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgccc2985" class="outline-4">
|
||||
<h4 id="orgccc2985"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgcae1d53" class="outline-4">
|
||||
<h4 id="orgcae1d53"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_potential_energy</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">potential_energy</span>);
|
||||
@ -843,14 +843,14 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd1c6797" class="outline-4">
|
||||
<h4 id="orgd1c6797"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-orgff29afc" class="outline-4">
|
||||
<h4 id="orgff29afc"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7759950" class="outline-4">
|
||||
<h4 id="org7759950"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
||||
<div id="outline-container-org779ef8f" class="outline-4">
|
||||
<h4 id="org779ef8f"><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="org130a669" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org03732ed" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -977,12 +977,12 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org580d2d4" class="outline-4">
|
||||
<h4 id="org580d2d4"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
<div id="outline-container-orga400609" class="outline-4">
|
||||
<h4 id="orga400609"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org7083be2" class="outline-3">
|
||||
<h3 id="org7083be2"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div id="outline-container-org1fef8a4" class="outline-3">
|
||||
<h3 id="org1fef8a4"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
The local energy is the sum of kinetic and potential energies.
|
||||
@ -996,8 +996,8 @@ E_L = KE + PE
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgc9cdc40" class="outline-4">
|
||||
<h4 id="orgc9cdc40"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org817ae9a" class="outline-4">
|
||||
<h4 id="org817ae9a"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_local_energy</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">local_energy</span>, <span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">size_max</span>);
|
||||
@ -1006,14 +1006,14 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org826a1e2" class="outline-4">
|
||||
<h4 id="org826a1e2"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-org01bfa49" class="outline-4">
|
||||
<h4 id="org01bfa49"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org45d84e4" class="outline-4">
|
||||
<h4 id="org45d84e4"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
||||
<div id="outline-container-orgc7979cd" class="outline-4">
|
||||
<h4 id="orgc7979cd"><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="org8bea453" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge53c1d4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1109,12 +1109,12 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org018c649" class="outline-4">
|
||||
<h4 id="org018c649"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
<div id="outline-container-orgfad781b" class="outline-4">
|
||||
<h4 id="orgfad781b"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgc8146db" class="outline-3">
|
||||
<h3 id="orgc8146db"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div id="outline-container-orgd679551" class="outline-3">
|
||||
<h3 id="orgd679551"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
The drift vector is calculated as the ration of the gradient
|
||||
@ -1128,8 +1128,8 @@ with the determinant of the wavefunction.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org769165c" class="outline-4">
|
||||
<h4 id="org769165c"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org8f956f3" class="outline-4">
|
||||
<h4 id="org8f956f3"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_drift_vector</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">drift_vector</span>);
|
||||
@ -1138,14 +1138,14 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1fd6871" class="outline-4">
|
||||
<h4 id="org1fd6871"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
<div id="outline-container-org5f0a762" class="outline-4">
|
||||
<h4 id="org5f0a762"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2a300db" class="outline-4">
|
||||
<h4 id="org2a300db"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
||||
<div id="outline-container-orgb663be2" class="outline-4">
|
||||
<h4 id="orgb663be2"><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="orga8b9752" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf917070" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1366,15 +1366,15 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2759616" class="outline-4">
|
||||
<h4 id="org2759616"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
<div id="outline-container-org3b13e6d" class="outline-4">
|
||||
<h4 id="org3b13e6d"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:34</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:47</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-02-14 Tue 12:35 -->
|
||||
<!-- 2023-02-14 Tue 12:48 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Memory management</title>
|
||||
@ -324,16 +324,16 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org1dc6090">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org3fcd4a4">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#org0c99c4a">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#org7df6eed">4. Get the size of a memory block</a></li>
|
||||
<li><a href="#org7f84ae7">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#orgb07ac2d">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#org9ed9c07">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#orgbbaf034">4. Get the size of a memory block</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1dc6090" class="outline-2">
|
||||
<h2 id="org1dc6090"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div id="outline-container-org7f84ae7" class="outline-2">
|
||||
<h2 id="org7f84ae7"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
Every time a new block of memory is allocated, the information
|
||||
@ -375,8 +375,8 @@ array, and the number of allocated blocks.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3fcd4a4" class="outline-2">
|
||||
<h2 id="org3fcd4a4"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div id="outline-container-orgb07ac2d" class="outline-2">
|
||||
<h2 id="orgb07ac2d"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
Passing information to the allocation routine should be done by
|
||||
@ -385,8 +385,8 @@ passing an instance of a <code>qmckl_memory_info_struct</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0c99c4a" class="outline-2">
|
||||
<h2 id="org0c99c4a"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-org9ed9c07" class="outline-2">
|
||||
<h2 id="org9ed9c07"><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
|
||||
@ -550,8 +550,8 @@ allocation and needs to be updated.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org7df6eed" class="outline-2">
|
||||
<h2 id="org7df6eed"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
||||
<div id="outline-container-orgbbaf034" class="outline-2">
|
||||
<h2 id="orgbbaf034"><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
|
||||
@ -646,7 +646,7 @@ rc = qmckl_context_destroy(context);
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:35</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:48</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
134
qmckl_mo.html
134
qmckl_mo.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-02-14 Tue 12:34 -->
|
||||
<!-- 2023-02-14 Tue 12:47 -->
|
||||
<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>
|
||||
@ -324,54 +324,54 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org237117b">1. Context</a>
|
||||
<li><a href="#org0baadc4">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org47106be">1.1. Data structure</a></li>
|
||||
<li><a href="#orgec97197">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org601ec27">1.3. Access functions</a>
|
||||
<li><a href="#org46b6bbf">1.1. Data structure</a></li>
|
||||
<li><a href="#org8b09cee">1.2. Initialization functions</a></li>
|
||||
<li><a href="#orge22480c">1.3. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgfd9835a">1.3.1. Fortran interfaces</a></li>
|
||||
<li><a href="#org8907ddb">1.3.1. Fortran interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1ce3459">1.4. Update</a>
|
||||
<li><a href="#orgdd151c6">1.4. Update</a>
|
||||
<ul>
|
||||
<li><a href="#orgdbb7c41">1.4.1. Fortran interface</a></li>
|
||||
<li><a href="#orgfa05534">1.4.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9443a9a">2. Computation</a>
|
||||
<li><a href="#orgaa634d8">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orga8640fd">2.1. Computation of MOs: values only</a>
|
||||
<li><a href="#org958e4d6">2.1. Computation of MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#orgfdb49cf">2.1.1. Get</a></li>
|
||||
<li><a href="#org45e932b">2.1.2. Provide</a></li>
|
||||
<li><a href="#org1584846">2.1.3. Compute</a></li>
|
||||
<li><a href="#orgc0315cb">2.1.4. HPC version</a></li>
|
||||
<li><a href="#orgf92c676">2.1.1. Get</a></li>
|
||||
<li><a href="#orged16680">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgf9da955">2.1.3. Compute</a></li>
|
||||
<li><a href="#org9dc1748">2.1.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org324a59b">2.2. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<li><a href="#org9dab669">2.2. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org601274f">2.2.1. Get</a></li>
|
||||
<li><a href="#orge14d2ef">2.2.2. Provide</a></li>
|
||||
<li><a href="#org721f666">2.2.3. Compute</a></li>
|
||||
<li><a href="#org8928cc6">2.2.4. HPC version</a></li>
|
||||
<li><a href="#org8539af5">2.2.1. Get</a></li>
|
||||
<li><a href="#org484f7a9">2.2.2. Provide</a></li>
|
||||
<li><a href="#org42d36c1">2.2.3. Compute</a></li>
|
||||
<li><a href="#org0a4362b">2.2.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7811562">2.3. Rescaling of MO coefficients</a>
|
||||
<li><a href="#org7a1c6af">2.3. Rescaling of MO coefficients</a>
|
||||
<ul>
|
||||
<li><a href="#orgf2ac55f">2.3.1. Fortran interface</a></li>
|
||||
<li><a href="#org54e58a6">2.3.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd9f609a">2.4. Test</a></li>
|
||||
<li><a href="#org827d7c7">2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org237117b" class="outline-2">
|
||||
<h2 id="org237117b"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org0baadc4" class="outline-2">
|
||||
<h2 id="org0baadc4"><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:
|
||||
@ -451,8 +451,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org47106be" class="outline-3">
|
||||
<h3 id="org47106be"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org46b6bbf" class="outline-3">
|
||||
<h3 id="org46b6bbf"><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> {
|
||||
@ -504,8 +504,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgec97197" class="outline-3">
|
||||
<h3 id="orgec97197"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-org8b09cee" class="outline-3">
|
||||
<h3 id="org8b09cee"><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
|
||||
@ -525,8 +525,8 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org601ec27" class="outline-3">
|
||||
<h3 id="org601ec27"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div id="outline-container-orge22480c" class="outline-3">
|
||||
<h3 id="orge22480c"><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
|
||||
@ -539,13 +539,13 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfd9835a" class="outline-4">
|
||||
<h4 id="orgfd9835a"><span class="section-number-4">1.3.1</span> Fortran interfaces</h4>
|
||||
<div id="outline-container-org8907ddb" class="outline-4">
|
||||
<h4 id="org8907ddb"><span class="section-number-4">1.3.1</span> Fortran interfaces</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1ce3459" class="outline-3">
|
||||
<h3 id="org1ce3459"><span class="section-number-3">1.4</span> Update</h3>
|
||||
<div id="outline-container-orgdd151c6" class="outline-3">
|
||||
<h3 id="orgdd151c6"><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
|
||||
@ -566,22 +566,22 @@ otherwise it is kept.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdbb7c41" class="outline-4">
|
||||
<h4 id="orgdbb7c41"><span class="section-number-4">1.4.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-orgfa05534" class="outline-4">
|
||||
<h4 id="orgfa05534"><span class="section-number-4">1.4.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9443a9a" class="outline-2">
|
||||
<h2 id="org9443a9a"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orgaa634d8" class="outline-2">
|
||||
<h2 id="orgaa634d8"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orga8640fd" class="outline-3">
|
||||
<h3 id="orga8640fd"><span class="section-number-3">2.1</span> Computation of MOs: values only</h3>
|
||||
<div id="outline-container-org958e4d6" class="outline-3">
|
||||
<h3 id="org958e4d6"><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-orgfdb49cf" class="outline-4">
|
||||
<h4 id="orgfdb49cf"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orgf92c676" class="outline-4">
|
||||
<h4 id="orgf92c676"><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>
|
||||
@ -605,8 +605,8 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org45e932b" class="outline-4">
|
||||
<h4 id="org45e932b"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-orged16680" class="outline-4">
|
||||
<h4 id="orged16680"><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>);
|
||||
@ -691,10 +691,10 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1584846" class="outline-4">
|
||||
<h4 id="org1584846"><span class="section-number-4">2.1.3</span> Compute</h4>
|
||||
<div id="outline-container-orgf9da955" class="outline-4">
|
||||
<h4 id="orgf9da955"><span class="section-number-4">2.1.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="org673d3da" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0797ea8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -868,8 +868,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc0315cb" class="outline-4">
|
||||
<h4 id="orgc0315cb"><span class="section-number-4">2.1.4</span> HPC version</h4>
|
||||
<div id="outline-container-org9dc1748" class="outline-4">
|
||||
<h4 id="org9dc1748"><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
|
||||
@ -962,12 +962,12 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org324a59b" class="outline-3">
|
||||
<h3 id="org324a59b"><span class="section-number-3">2.2</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-org9dab669" class="outline-3">
|
||||
<h3 id="org9dab669"><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-org601274f" class="outline-4">
|
||||
<h4 id="org601274f"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org8539af5" class="outline-4">
|
||||
<h4 id="org8539af5"><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>
|
||||
@ -991,8 +991,8 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge14d2ef" class="outline-4">
|
||||
<h4 id="orge14d2ef"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org484f7a9" class="outline-4">
|
||||
<h4 id="org484f7a9"><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>);
|
||||
@ -1076,10 +1076,10 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org721f666" class="outline-4">
|
||||
<h4 id="org721f666"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div id="outline-container-org42d36c1" class="outline-4">
|
||||
<h4 id="org42d36c1"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="orgfd98597" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd572da6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1251,8 +1251,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8928cc6" class="outline-4">
|
||||
<h4 id="org8928cc6"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
||||
<div id="outline-container-org0a4362b" class="outline-4">
|
||||
<h4 id="org0a4362b"><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
|
||||
@ -1398,8 +1398,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7811562" class="outline-3">
|
||||
<h3 id="org7811562"><span class="section-number-3">2.3</span> Rescaling of MO coefficients</h3>
|
||||
<div id="outline-container-org7a1c6af" class="outline-3">
|
||||
<h3 id="org7a1c6af"><span class="section-number-3">2.3</span> Rescaling of MO coefficients</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
When evaluating Slater determinants, the value of the determinants
|
||||
@ -1416,19 +1416,19 @@ correct range.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf2ac55f" class="outline-4">
|
||||
<h4 id="orgf2ac55f"><span class="section-number-4">2.3.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-org54e58a6" class="outline-4">
|
||||
<h4 id="org54e58a6"><span class="section-number-4">2.3.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd9f609a" class="outline-3">
|
||||
<h3 id="orgd9f609a"><span class="section-number-3">2.4</span> Test</h3>
|
||||
<div id="outline-container-org827d7c7" class="outline-3">
|
||||
<h3 id="org827d7c7"><span class="section-number-3">2.4</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:34</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:47</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-02-14 Tue 12:34 -->
|
||||
<!-- 2023-02-14 Tue 12:47 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Nucleus</title>
|
||||
@ -346,28 +346,28 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgcb15dd2">1. Context</a>
|
||||
<li><a href="#org0cca3a0">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org0515f1f">1.1. Data structure</a></li>
|
||||
<li><a href="#orgeee8aa8">1.2. Access functions</a></li>
|
||||
<li><a href="#org8af97cd">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgde81ff2">1.4. Test</a></li>
|
||||
<li><a href="#org470b5d6">1.1. Data structure</a></li>
|
||||
<li><a href="#org1404082">1.2. Access functions</a></li>
|
||||
<li><a href="#orga520d81">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org089db93">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1cd9125">2. Computation</a>
|
||||
<li><a href="#org17f7f3e">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgacd7402">2.1. Nucleus-nucleus distances</a>
|
||||
<li><a href="#orgd983e63">2.1. Nucleus-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#orged1fbb5">2.1.1. Get</a></li>
|
||||
<li><a href="#orgdcc9af3">2.1.2. Compute</a></li>
|
||||
<li><a href="#org07afe70">2.1.3. Test</a></li>
|
||||
<li><a href="#org62c085c">2.1.1. Get</a></li>
|
||||
<li><a href="#orgfbb42b6">2.1.2. Compute</a></li>
|
||||
<li><a href="#org7b859a3">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5487766">2.2. Nuclear repulsion energy</a>
|
||||
<li><a href="#orgeb8ed24">2.2. Nuclear repulsion energy</a>
|
||||
<ul>
|
||||
<li><a href="#org511cfad">2.2.1. Get</a></li>
|
||||
<li><a href="#orgc812df2">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgfb7a66e">2.2.3. Test</a></li>
|
||||
<li><a href="#org7edea9c">2.2.1. Get</a></li>
|
||||
<li><a href="#org28c4e98">2.2.2. Compute</a></li>
|
||||
<li><a href="#org36bd0f1">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -376,8 +376,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcb15dd2" class="outline-2">
|
||||
<h2 id="orgcb15dd2"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org0cca3a0" class="outline-2">
|
||||
<h2 id="org0cca3a0"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following data stored in the context:
|
||||
@ -474,8 +474,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0515f1f" class="outline-3">
|
||||
<h3 id="org0515f1f"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org470b5d6" class="outline-3">
|
||||
<h3 id="org470b5d6"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_nucleus_struct</span> {
|
||||
@ -529,8 +529,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeee8aa8" class="outline-3">
|
||||
<h3 id="orgeee8aa8"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org1404082" class="outline-3">
|
||||
<h3 id="org1404082"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
When all the data relative to nuclei have been set, the following
|
||||
@ -544,8 +544,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8af97cd" class="outline-3">
|
||||
<h3 id="org8af97cd"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orga520d81" class="outline-3">
|
||||
<h3 id="orga520d81"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To set the data relative to the nuclei in the context, the
|
||||
@ -591,8 +591,8 @@ are be given in atomic units.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgde81ff2" class="outline-3">
|
||||
<h3 id="orgde81ff2"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org089db93" class="outline-3">
|
||||
<h3 id="org089db93"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">nucl_charge</span> = chbrclf_charge;
|
||||
@ -661,8 +661,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2, chbrclf_nucl_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1cd9125" class="outline-2">
|
||||
<h2 id="org1cd9125"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org17f7f3e" class="outline-2">
|
||||
<h2 id="org17f7f3e"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The computed data is stored in the context so that it can be reused
|
||||
@ -675,12 +675,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgacd7402" class="outline-3">
|
||||
<h3 id="orgacd7402"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div id="outline-container-orgd983e63" class="outline-3">
|
||||
<h3 id="orgd983e63"><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-orged1fbb5" class="outline-4">
|
||||
<h4 id="orged1fbb5"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org62c085c" class="outline-4">
|
||||
<h4 id="org62c085c"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -692,10 +692,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdcc9af3" class="outline-4">
|
||||
<h4 id="orgdcc9af3"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-orgfbb42b6" class="outline-4">
|
||||
<h4 id="orgfbb42b6"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orgc9665f8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd85abce" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -773,8 +773,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org07afe70" class="outline-4">
|
||||
<h4 id="org07afe70"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org7b859a3" class="outline-4">
|
||||
<h4 id="org7b859a3"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data</span> */
|
||||
@ -793,8 +793,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5487766" class="outline-3">
|
||||
<h3 id="org5487766"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
||||
<div id="outline-container-orgeb8ed24" class="outline-3">
|
||||
<h3 id="orgeb8ed24"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
\[
|
||||
@ -803,8 +803,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org511cfad" class="outline-4">
|
||||
<h4 id="org511cfad"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org7edea9c" class="outline-4">
|
||||
<h4 id="org7edea9c"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_nucleus_repulsion</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">energy</span>);
|
||||
@ -813,10 +813,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc812df2" class="outline-4">
|
||||
<h4 id="orgc812df2"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org28c4e98" class="outline-4">
|
||||
<h4 id="org28c4e98"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="org26cc0be" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1c9c29b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -906,8 +906,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfb7a66e" class="outline-4">
|
||||
<h4 id="orgfb7a66e"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org36bd0f1" class="outline-4">
|
||||
<h4 id="org36bd0f1"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data</span> */
|
||||
@ -927,7 +927,7 @@ rc = qmckl_get_nucleus_repulsion(context, &rep);
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:34</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:47</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-02-14 Tue 12:34 -->
|
||||
<!-- 2023-02-14 Tue 12:47 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Numerical precision</title>
|
||||
@ -346,16 +346,16 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org938dda5">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org0a1053f">2. Precision</a></li>
|
||||
<li><a href="#org5390e5f">3. Range</a></li>
|
||||
<li><a href="#org29d8e37">4. Helper functions</a></li>
|
||||
<li><a href="#orgac11084">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#orgb2d7f7c">2. Precision</a></li>
|
||||
<li><a href="#org36e3b2c">3. Range</a></li>
|
||||
<li><a href="#orgb5ff5f7">4. Helper functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org938dda5" class="outline-2">
|
||||
<h2 id="org938dda5"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-orgac11084" class="outline-2">
|
||||
<h2 id="orgac11084"><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
|
||||
@ -366,7 +366,7 @@ Arithmetic (IEEE 754),
|
||||
refers to the number of exponent bits.
|
||||
</p>
|
||||
|
||||
<table id="orgf47ded7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd70171b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -410,8 +410,8 @@ integer. The update functions return <code>QMCKL_SUCCESS</code> or
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0a1053f" class="outline-2">
|
||||
<h2 id="org0a1053f"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-orgb2d7f7c" class="outline-2">
|
||||
<h2 id="orgb2d7f7c"><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
|
||||
@ -498,8 +498,8 @@ numerical precision in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5390e5f" class="outline-2">
|
||||
<h2 id="org5390e5f"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-org36e3b2c" class="outline-2">
|
||||
<h2 id="org36e3b2c"><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
|
||||
@ -574,8 +574,8 @@ range in a given context.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org29d8e37" class="outline-2">
|
||||
<h2 id="org29d8e37"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-orgb5ff5f7" class="outline-2">
|
||||
<h2 id="orgb5ff5f7"><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.
|
||||
@ -594,7 +594,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: 2023-02-14 Tue 12:34</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:47</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-02-14 Tue 12:34 -->
|
||||
<!-- 2023-02-14 Tue 12:47 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Point</title>
|
||||
@ -346,25 +346,25 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orga5f1bcf">1. Context</a>
|
||||
<li><a href="#orgfb407c9">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgdd8cf35">1.1. Data structure</a></li>
|
||||
<li><a href="#org51346ca">1.2. Access functions</a>
|
||||
<li><a href="#org7ae9e0a">1.1. Data structure</a></li>
|
||||
<li><a href="#orgc52d7c0">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org1356a1f">1.2.1. Number of points</a></li>
|
||||
<li><a href="#orgc7a0dd7">1.2.2. Point coordinates</a></li>
|
||||
<li><a href="#orge3fefdd">1.2.1. Number of points</a></li>
|
||||
<li><a href="#org83c7f4f">1.2.2. Point coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org87547bd">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org6d3c531">1.4. Test</a></li>
|
||||
<li><a href="#org5e30bf7">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orga5e32f5">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga5f1bcf" class="outline-2">
|
||||
<h2 id="orga5f1bcf"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgfb407c9" class="outline-2">
|
||||
<h2 id="orgfb407c9"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following data stored in the context:
|
||||
@ -414,8 +414,8 @@ corresponds to the 3 × <code>num</code> matrix.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdd8cf35" class="outline-3">
|
||||
<h3 id="orgdd8cf35"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org7ae9e0a" class="outline-3">
|
||||
<h3 id="org7ae9e0a"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_point_struct</span> {
|
||||
@ -451,8 +451,8 @@ corresponds to the 3 × <code>num</code> matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org51346ca" class="outline-3">
|
||||
<h3 id="org51346ca"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgc52d7c0" class="outline-3">
|
||||
<h3 id="orgc52d7c0"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
Access functions return <code>QMCKL_SUCCESS</code> when the data has been
|
||||
@ -463,8 +463,8 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1356a1f" class="outline-4">
|
||||
<h4 id="org1356a1f"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div id="outline-container-orge3fefdd" class="outline-4">
|
||||
<h4 id="orge3fefdd"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div class="outline-text-4" id="text-1-2-1">
|
||||
<p>
|
||||
Returns the number of points stored in the context.
|
||||
@ -486,8 +486,8 @@ Returns the number of points stored in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc7a0dd7" class="outline-4">
|
||||
<h4 id="orgc7a0dd7"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div id="outline-container-org83c7f4f" class="outline-4">
|
||||
<h4 id="org83c7f4f"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-2-2">
|
||||
<p>
|
||||
Returns the point coordinates as sequences of (x,y,z).
|
||||
@ -515,8 +515,8 @@ The pointer is assumed to point on a memory block of size
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org87547bd" class="outline-3">
|
||||
<h3 id="org87547bd"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org5e30bf7" class="outline-3">
|
||||
<h3 id="org5e30bf7"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
When the data is set in the context, if the arrays are large
|
||||
@ -655,8 +655,8 @@ Copy a sequence of <code>num</code> points \((x,y,z)\) into the context.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org6d3c531" class="outline-3">
|
||||
<h3 id="org6d3c531"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orga5e32f5" class="outline-3">
|
||||
<h3 id="orga5e32f5"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data</span> */
|
||||
@ -715,7 +715,7 @@ rc = qmckl_get_point (context, <span style="color: #8b2252;">'N'</span>, coord3,
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:34</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:47</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-02-14 Tue 12:35 -->
|
||||
<!-- 2023-02-14 Tue 12:48 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Sherman-Morrison-Woodbury</title>
|
||||
@ -346,85 +346,85 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org4acc4e8">1. Headers</a></li>
|
||||
<li><a href="#org48acf0b">2. Naïve Sherman-Morrison</a>
|
||||
<li><a href="#org1a849bc">1. Headers</a></li>
|
||||
<li><a href="#org34afdae">2. Naïve Sherman-Morrison</a>
|
||||
<ul>
|
||||
<li><a href="#org3be8ad6">2.1. <code>qmckl_sherman_morrison_naive</code></a>
|
||||
<li><a href="#org1a81cd6">2.1. <code>qmckl_sherman_morrison_naive</code></a>
|
||||
<ul>
|
||||
<li><a href="#org1e7c2fb">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org03add53">2.1.2. C header</a></li>
|
||||
<li><a href="#orgd3ba045">2.1.3. Performance</a></li>
|
||||
<li><a href="#orga72b9ef">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org8d84376">2.1.2. C header</a></li>
|
||||
<li><a href="#orgc396bd3">2.1.3. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org90ecc0a">3. Woodbury 2x2</a>
|
||||
<li><a href="#org0106a3b">3. Woodbury 2x2</a>
|
||||
<ul>
|
||||
<li><a href="#org3941fc2">3.1. <code>qmckl_woodbury_2x2</code></a>
|
||||
<li><a href="#org8bdaa85">3.1. <code>qmckl_woodbury_2x2</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgf630e48">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org8e6d252">3.1.2. C header</a></li>
|
||||
<li><a href="#org7c7e324">3.1.3. C source</a></li>
|
||||
<li><a href="#org7bb60b6">3.1.4. Performance</a></li>
|
||||
<li><a href="#org220322a">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org4d467af">3.1.2. C header</a></li>
|
||||
<li><a href="#orge74bbf7">3.1.3. C source</a></li>
|
||||
<li><a href="#org515ed27">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org30fa431">4. Woodbury 3x3</a>
|
||||
<li><a href="#org63d3ed5">4. Woodbury 3x3</a>
|
||||
<ul>
|
||||
<li><a href="#org651ef38">4.1. <code>qmckl_woodbury_3x3</code></a>
|
||||
<li><a href="#org51cd838">4.1. <code>qmckl_woodbury_3x3</code></a>
|
||||
<ul>
|
||||
<li><a href="#org6dd14e5">4.1.1. Requirements</a></li>
|
||||
<li><a href="#org23c0058">4.1.2. C header</a></li>
|
||||
<li><a href="#org2c0a917">4.1.3. C source</a></li>
|
||||
<li><a href="#orgb9b802e">4.1.4. Performance…</a></li>
|
||||
<li><a href="#orgfd25f7a">4.1.1. Requirements</a></li>
|
||||
<li><a href="#org4c3ba31">4.1.2. C header</a></li>
|
||||
<li><a href="#org6de7aa5">4.1.3. C source</a></li>
|
||||
<li><a href="#org66ee4ac">4.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgcab48ae">5. Sherman-Morrison with update splitting</a>
|
||||
<li><a href="#orgc9d96b0">5. Sherman-Morrison with update splitting</a>
|
||||
<ul>
|
||||
<li><a href="#org8b56fa0">5.1. <code>qmckl_sherman_morrison_splitting</code></a>
|
||||
<li><a href="#org0dc39f9">5.1. <code>qmckl_sherman_morrison_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#org497be13">5.1.1. Requirements</a></li>
|
||||
<li><a href="#orgf7014af">5.1.2. C header</a></li>
|
||||
<li><a href="#orgb2e07aa">5.1.3. C source</a></li>
|
||||
<li><a href="#org06e3e4f">5.1.4. Performance…</a></li>
|
||||
<li><a href="#orgc000306">5.1.1. Requirements</a></li>
|
||||
<li><a href="#orga834b4e">5.1.2. C header</a></li>
|
||||
<li><a href="#orgff9bb7f">5.1.3. C source</a></li>
|
||||
<li><a href="#org84d8d35">5.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4ae3319">6. Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</a>
|
||||
<li><a href="#org0558708">6. Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</a>
|
||||
<ul>
|
||||
<li><a href="#org74035f3">6.1. <code>qmckl_sherman_morrison_smw32s</code></a>
|
||||
<li><a href="#orga7831bc">6.1. <code>qmckl_sherman_morrison_smw32s</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgf4a0dec">6.1.1. Requirements</a></li>
|
||||
<li><a href="#org3ea8837">6.1.2. C header</a></li>
|
||||
<li><a href="#org89b8220">6.1.3. C source</a></li>
|
||||
<li><a href="#orgba7b003">6.1.4. Performance…</a></li>
|
||||
<li><a href="#org7667a22">6.1.1. Requirements</a></li>
|
||||
<li><a href="#org012794a">6.1.2. C header</a></li>
|
||||
<li><a href="#org4417091">6.1.3. C source</a></li>
|
||||
<li><a href="#org4edabb0">6.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1bf2a57">7. Helper Functions</a>
|
||||
<li><a href="#org14d3462">7. Helper Functions</a>
|
||||
<ul>
|
||||
<li><a href="#org199a6ae">7.1. <code>qmckl_slagel_splitting</code></a>
|
||||
<li><a href="#orge8d635f">7.1. <code>qmckl_slagel_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#org43dc581">7.1.1. Requirements</a></li>
|
||||
<li><a href="#orgc4613cf">7.1.2. C header</a></li>
|
||||
<li><a href="#org48b08bd">7.1.3. C source</a></li>
|
||||
<li><a href="#org02dd595">7.1.4. Performance</a></li>
|
||||
<li><a href="#org2161ae6">7.1.1. Requirements</a></li>
|
||||
<li><a href="#orgfee5a4b">7.1.2. C header</a></li>
|
||||
<li><a href="#orgb2fe44b">7.1.3. C source</a></li>
|
||||
<li><a href="#org389faa5">7.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgaac1d31">8. End of files</a></li>
|
||||
<li><a href="#org211da00">8. End of files</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4acc4e8" class="outline-2">
|
||||
<h2 id="org4acc4e8"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div id="outline-container-org1a849bc" class="outline-2">
|
||||
<h2 id="org1a849bc"><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>
|
||||
@ -443,12 +443,12 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org48acf0b" class="outline-2">
|
||||
<h2 id="org48acf0b"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
||||
<div id="outline-container-org34afdae" class="outline-2">
|
||||
<h2 id="org34afdae"><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-org3be8ad6" class="outline-3">
|
||||
<h3 id="org3be8ad6"><span class="section-number-3">2.1</span> <code>qmckl_sherman_morrison_naive</code></h3>
|
||||
<div id="outline-container-org1a81cd6" class="outline-3">
|
||||
<h3 id="org1a81cd6"><span class="section-number-3">2.1</span> <code>qmckl_sherman_morrison_naive</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
|
||||
@ -490,7 +490,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="org71ec673" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4b3e904" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -569,8 +569,8 @@ from applying the updates to the original matrix.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1e7c2fb" class="outline-4">
|
||||
<h4 id="org1e7c2fb"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orga72b9ef" class="outline-4">
|
||||
<h4 id="orga72b9ef"><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>
|
||||
@ -585,8 +585,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org03add53" class="outline-4">
|
||||
<h4 id="org03add53"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-org8d84376" class="outline-4">
|
||||
<h4 id="org8d84376"><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_naive</span> (
|
||||
@ -704,7 +704,7 @@ from applying the updates to the original matrix.
|
||||
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org49148ce"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_sherman_morrison_naive_</span>{Dim}(
|
||||
<pre class="src src-c" id="orgb0596ec"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_sherman_morrison_naive_</span>{Dim}(
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span> <span style="color: #a0522d;">N_updates</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
||||
@ -2443,8 +2443,8 @@ from applying the updates to the original matrix.
|
||||
|
||||
|
||||
|
||||
<div id="outline-container-orgd3ba045" class="outline-4">
|
||||
<h4 id="orgd3ba045"><span class="section-number-4">2.1.3</span> Performance</h4>
|
||||
<div id="outline-container-orgc396bd3" class="outline-4">
|
||||
<h4 id="orgc396bd3"><span class="section-number-4">2.1.3</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<p>
|
||||
This function performs best when there is only 1 rank-1 update in the update cycle. It is not useful to
|
||||
@ -2456,12 +2456,12 @@ where applying the update causes singular behaviour.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org90ecc0a" class="outline-2">
|
||||
<h2 id="org90ecc0a"><span class="section-number-2">3</span> Woodbury 2x2</h2>
|
||||
<div id="outline-container-org0106a3b" class="outline-2">
|
||||
<h2 id="org0106a3b"><span class="section-number-2">3</span> Woodbury 2x2</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org3941fc2" class="outline-3">
|
||||
<h3 id="org3941fc2"><span class="section-number-3">3.1</span> <code>qmckl_woodbury_2x2</code></h3>
|
||||
<div id="outline-container-org8bdaa85" class="outline-3">
|
||||
<h3 id="org8bdaa85"><span class="section-number-3">3.1</span> <code>qmckl_woodbury_2x2</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
|
||||
@ -2485,7 +2485,7 @@ from applying the updates to the original matrix.
|
||||
|
||||
|
||||
|
||||
<table id="orgab2e2a2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6db3d9e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2557,8 +2557,8 @@ from applying the updates to the original matrix.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf630e48" class="outline-4">
|
||||
<h4 id="orgf630e48"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org220322a" class="outline-4">
|
||||
<h4 id="org220322a"><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>
|
||||
@ -2572,8 +2572,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8e6d252" class="outline-4">
|
||||
<h4 id="org8e6d252"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-org4d467af" class="outline-4">
|
||||
<h4 id="org4d467af"><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_2x2</span> (
|
||||
@ -2590,8 +2590,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7c7e324" class="outline-4">
|
||||
<h4 id="org7c7e324"><span class="section-number-4">3.1.3</span> C source</h4>
|
||||
<div id="outline-container-orge74bbf7" class="outline-4">
|
||||
<h4 id="orge74bbf7"><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: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_2x2_hpc</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
@ -2685,7 +2685,7 @@ from applying the updates to the original matrix.
|
||||
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="orgf70602e"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_woodbury_2x2_</span>{Dim}(
|
||||
<pre class="src src-c" id="org1e0b83d"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_woodbury_2x2_</span>{Dim}(
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span>* <span style="color: #a0522d;">__restrict</span> Updates_index,
|
||||
@ -4673,8 +4673,8 @@ from applying the updates to the original matrix.
|
||||
|
||||
|
||||
|
||||
<div id="outline-container-org7bb60b6" class="outline-4">
|
||||
<h4 id="org7bb60b6"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org515ed27" class="outline-4">
|
||||
<h4 id="org515ed27"><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
|
||||
@ -4685,12 +4685,12 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org30fa431" class="outline-2">
|
||||
<h2 id="org30fa431"><span class="section-number-2">4</span> Woodbury 3x3</h2>
|
||||
<div id="outline-container-org63d3ed5" class="outline-2">
|
||||
<h2 id="org63d3ed5"><span class="section-number-2">4</span> Woodbury 3x3</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org651ef38" class="outline-3">
|
||||
<h3 id="org651ef38"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_3x3</code></h3>
|
||||
<div id="outline-container-org51cd838" class="outline-3">
|
||||
<h3 id="org51cd838"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_3x3</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
|
||||
@ -4711,7 +4711,7 @@ from applying the updates to the original matrix.
|
||||
#pragma vector aligned
|
||||
</p>
|
||||
|
||||
<table id="org15a40c5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5564ef5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4783,8 +4783,8 @@ from applying the updates to the original matrix.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6dd14e5" class="outline-4">
|
||||
<h4 id="org6dd14e5"><span class="section-number-4">4.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgfd25f7a" class="outline-4">
|
||||
<h4 id="orgfd25f7a"><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>
|
||||
@ -4798,8 +4798,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org23c0058" class="outline-4">
|
||||
<h4 id="org23c0058"><span class="section-number-4">4.1.2</span> C header</h4>
|
||||
<div id="outline-container-org4c3ba31" class="outline-4">
|
||||
<h4 id="org4c3ba31"><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_3x3</span> (
|
||||
@ -4816,8 +4816,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2c0a917" class="outline-4">
|
||||
<h4 id="org2c0a917"><span class="section-number-4">4.1.3</span> C source</h4>
|
||||
<div id="outline-container-org6de7aa5" class="outline-4">
|
||||
<h4 id="org6de7aa5"><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: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_3x3_hpc</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
@ -4928,7 +4928,7 @@ from applying the updates to the original matrix.
|
||||
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org2e13b76"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_woodbury_3x3_</span>{Dim}(
|
||||
<pre class="src src-c" id="orgf089164"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_woodbury_3x3_</span>{Dim}(
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span>* <span style="color: #a0522d;">__restrict</span> Updates_index,
|
||||
@ -7333,8 +7333,8 @@ from applying the updates to the original matrix.
|
||||
|
||||
|
||||
|
||||
<div id="outline-container-orgb9b802e" class="outline-4">
|
||||
<h4 id="orgb9b802e"><span class="section-number-4">4.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org66ee4ac" class="outline-4">
|
||||
<h4 id="org66ee4ac"><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
|
||||
@ -7345,12 +7345,12 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcab48ae" class="outline-2">
|
||||
<h2 id="orgcab48ae"><span class="section-number-2">5</span> Sherman-Morrison with update splitting</h2>
|
||||
<div id="outline-container-orgc9d96b0" class="outline-2">
|
||||
<h2 id="orgc9d96b0"><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-org8b56fa0" class="outline-3">
|
||||
<h3 id="org8b56fa0"><span class="section-number-3">5.1</span> <code>qmckl_sherman_morrison_splitting</code></h3>
|
||||
<div id="outline-container-org0dc39f9" class="outline-3">
|
||||
<h3 id="org0dc39f9"><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
|
||||
@ -7372,7 +7372,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="orgf9e9c92" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5d97a0b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -7456,8 +7456,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org497be13" class="outline-4">
|
||||
<h4 id="org497be13"><span class="section-number-4">5.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgc000306" class="outline-4">
|
||||
<h4 id="orgc000306"><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>
|
||||
@ -7472,8 +7472,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf7014af" class="outline-4">
|
||||
<h4 id="orgf7014af"><span class="section-number-4">5.1.2</span> C header</h4>
|
||||
<div id="outline-container-orga834b4e" class="outline-4">
|
||||
<h4 id="orga834b4e"><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> (
|
||||
@ -7491,8 +7491,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb2e07aa" class="outline-4">
|
||||
<h4 id="orgb2e07aa"><span class="section-number-4">5.1.3</span> C source</h4>
|
||||
<div id="outline-container-orgff9bb7f" class="outline-4">
|
||||
<h4 id="orgff9bb7f"><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: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sherman_morrison_splitting</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
@ -7536,8 +7536,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org06e3e4f" class="outline-4">
|
||||
<h4 id="org06e3e4f"><span class="section-number-4">5.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org84d8d35" class="outline-4">
|
||||
<h4 id="org84d8d35"><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.
|
||||
@ -7547,12 +7547,12 @@ This kernel performs best when there are 2 or more rank-1 update cycles and fail
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4ae3319" class="outline-2">
|
||||
<h2 id="org4ae3319"><span class="section-number-2">6</span> Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</h2>
|
||||
<div id="outline-container-org0558708" class="outline-2">
|
||||
<h2 id="org0558708"><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-org74035f3" class="outline-3">
|
||||
<h3 id="org74035f3"><span class="section-number-3">6.1</span> <code>qmckl_sherman_morrison_smw32s</code></h3>
|
||||
<div id="outline-container-orga7831bc" class="outline-3">
|
||||
<h3 id="orga7831bc"><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,
|
||||
@ -7567,7 +7567,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="orgfe263fe" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge68a897" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -7647,8 +7647,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgf4a0dec" class="outline-4">
|
||||
<h4 id="orgf4a0dec"><span class="section-number-4">6.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org7667a22" class="outline-4">
|
||||
<h4 id="org7667a22"><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>
|
||||
@ -7663,8 +7663,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3ea8837" class="outline-4">
|
||||
<h4 id="org3ea8837"><span class="section-number-4">6.1.2</span> C header</h4>
|
||||
<div id="outline-container-org012794a" class="outline-4">
|
||||
<h4 id="org012794a"><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> (
|
||||
@ -7682,8 +7682,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org89b8220" class="outline-4">
|
||||
<h4 id="org89b8220"><span class="section-number-4">6.1.3</span> C source</h4>
|
||||
<div id="outline-container-org4417091" class="outline-4">
|
||||
<h4 id="org4417091"><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: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sherman_morrison_smw32s</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
@ -7809,8 +7809,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgba7b003" class="outline-4">
|
||||
<h4 id="orgba7b003"><span class="section-number-4">6.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org4edabb0" class="outline-4">
|
||||
<h4 id="org4edabb0"><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.
|
||||
@ -7820,8 +7820,8 @@ This kernel performs best for update cycles with 2 or more rank-1 updates and th
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1bf2a57" class="outline-2">
|
||||
<h2 id="org1bf2a57"><span class="section-number-2">7</span> Helper Functions</h2>
|
||||
<div id="outline-container-org14d3462" class="outline-2">
|
||||
<h2 id="org14d3462"><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.
|
||||
@ -7829,8 +7829,8 @@ These functions can only be used internally by the kernels in this module.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org199a6ae" class="outline-3">
|
||||
<h3 id="org199a6ae"><span class="section-number-3">7.1</span> <code>qmckl_slagel_splitting</code></h3>
|
||||
<div id="outline-container-orge8d635f" class="outline-3">
|
||||
<h3 id="orge8d635f"><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.
|
||||
@ -7850,7 +7850,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="org84035e5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge501e7c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -7944,8 +7944,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org43dc581" class="outline-4">
|
||||
<h4 id="org43dc581"><span class="section-number-4">7.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org2161ae6" class="outline-4">
|
||||
<h4 id="org2161ae6"><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>
|
||||
@ -7962,8 +7962,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc4613cf" class="outline-4">
|
||||
<h4 id="orgc4613cf"><span class="section-number-4">7.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgfee5a4b" class="outline-4">
|
||||
<h4 id="orgfee5a4b"><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> (
|
||||
@ -7983,8 +7983,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org48b08bd" class="outline-4">
|
||||
<h4 id="org48b08bd"><span class="section-number-4">7.1.3</span> C source</h4>
|
||||
<div id="outline-container-orgb2fe44b" class="outline-4">
|
||||
<h4 id="orgb2fe44b"><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: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_slagel_splitting_hpc</span>(
|
||||
@ -8065,7 +8065,7 @@ from applying the updates to the original matrix.
|
||||
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org93bc812"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_slagel_splitting_</span>{Dim}(
|
||||
<pre class="src src-c" id="org43b0d94"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_slagel_splitting_</span>{Dim}(
|
||||
<span style="color: #228b22;">uint64_t</span> <span style="color: #a0522d;">N_updates</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span>* <span style="color: #a0522d;">__restrict</span> Updates_index,
|
||||
@ -9898,8 +9898,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org02dd595" class="outline-4">
|
||||
<h4 id="org02dd595"><span class="section-number-4">7.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org389faa5" class="outline-4">
|
||||
<h4 id="org389faa5"><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
|
||||
@ -9910,8 +9910,8 @@ with Sherman-Morrison and update splitting. Please look at the performance recco
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaac1d31" class="outline-2">
|
||||
<h2 id="orgaac1d31"><span class="section-number-2">8</span> End of files</h2>
|
||||
<div id="outline-container-org211da00" class="outline-2">
|
||||
<h2 id="org211da00"><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);
|
||||
@ -9925,7 +9925,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: 2023-02-14 Tue 12:35</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:48</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-02-14 Tue 12:35 -->
|
||||
<!-- 2023-02-14 Tue 12:48 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Data for Tests</title>
|
||||
@ -246,27 +246,27 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org6e060f8">1. CHBrClF</a>
|
||||
<li><a href="#org67f7099">1. CHBrClF</a>
|
||||
<ul>
|
||||
<li><a href="#orgab10b0e">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orgc5eb28d">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#orgb431efa">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org04389c1">1.4. Electron coordinates</a></li>
|
||||
<li><a href="#org05a7d6c">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org202eaa8">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org28530b8">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org7b1bc3c">1.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6cecdb9">2. N2</a>
|
||||
<li><a href="#orga3eec2b">2. N2</a>
|
||||
<ul>
|
||||
<li><a href="#orgc25f4e3">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orgd9affa4">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#orgc4c9151">2.3. Jastrow related data</a></li>
|
||||
<li><a href="#org292eb8d">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orgd97e29c">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#orge54fc18">2.3. Jastrow related data</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6e060f8" class="outline-2">
|
||||
<h2 id="org6e060f8"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div id="outline-container-org67f7099" class="outline-2">
|
||||
<h2 id="org67f7099"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
This test is the all-electron Hartree-Fock wave function of CHClBr,
|
||||
@ -350,8 +350,8 @@ and with a high maximum angular momentum.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgab10b0e" class="outline-3">
|
||||
<h3 id="orgab10b0e"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org05a7d6c" class="outline-3">
|
||||
<h3 id="org05a7d6c"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<pre class="example">
|
||||
5
|
||||
@ -381,8 +381,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc5eb28d" class="outline-3">
|
||||
<h3 id="orgc5eb28d"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div id="outline-container-org202eaa8" class="outline-3">
|
||||
<h3 id="org202eaa8"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<pre class="example">
|
||||
HYDROGEN
|
||||
@ -1301,8 +1301,8 @@ F 1
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb431efa" class="outline-3">
|
||||
<h3 id="orgb431efa"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org28530b8" class="outline-3">
|
||||
<h3 id="org28530b8"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">chbrclf_mo_num</span> ((<span style="color: #228b22;">int64_t</span>) 224)
|
||||
@ -60226,8 +60226,8 @@ F 1
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org04389c1" class="outline-3">
|
||||
<h3 id="org04389c1"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org7b1bc3c" class="outline-3">
|
||||
<h3 id="org7b1bc3c"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
Electron coordinates are stored in atomic units in normal format.
|
||||
@ -60386,8 +60386,8 @@ Electron coordinates are stored in atomic units in normal format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6cecdb9" class="outline-2">
|
||||
<h2 id="org6cecdb9"><span class="section-number-2">2</span> N2</h2>
|
||||
<div id="outline-container-orga3eec2b" class="outline-2">
|
||||
<h2 id="orga3eec2b"><span class="section-number-2">2</span> N2</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
This test is mainly for the Jastrow factor and was supplied by
|
||||
@ -60428,8 +60428,8 @@ treated by pseudopotentials thus excluded from the actual calculation.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc25f4e3" class="outline-3">
|
||||
<h3 id="orgc25f4e3"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org292eb8d" class="outline-3">
|
||||
<h3 id="org292eb8d"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<pre class="example">
|
||||
2
|
||||
@ -60456,8 +60456,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd9affa4" class="outline-3">
|
||||
<h3 id="orgd9affa4"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div id="outline-container-orgd97e29c" class="outline-3">
|
||||
<h3 id="orgd97e29c"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
Electron coordinates are stored in atomic units in normal format.
|
||||
@ -60486,8 +60486,8 @@ Electron coordinates are stored in atomic units in normal format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc4c9151" class="outline-3">
|
||||
<h3 id="orgc4c9151"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div id="outline-container-orge54fc18" class="outline-3">
|
||||
<h3 id="orge54fc18"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
This test is mainly for the Jastrow factor and was supplied by
|
||||
@ -60586,7 +60586,7 @@ Ramon Panades Baruetta.
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="date">Created: 2023-02-14 Tue 12:35</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:48</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-02-14 Tue 12:34 -->
|
||||
<!-- 2023-02-14 Tue 12:47 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>TREXIO I/O library</title>
|
||||
@ -324,53 +324,53 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org46f3c8e">1. Local functions</a>
|
||||
<li><a href="#orgb625de3">1. Local functions</a>
|
||||
<ul>
|
||||
<li><a href="#org6d014a5">1.1. Open file</a></li>
|
||||
<li><a href="#orga012b81">1.2. Electron</a></li>
|
||||
<li><a href="#org4e69cff">1.3. Nucleus</a>
|
||||
<li><a href="#orgf39eb4f">1.1. Open file</a></li>
|
||||
<li><a href="#org7fa674c">1.2. Electron</a></li>
|
||||
<li><a href="#orgc43de23">1.3. Nucleus</a>
|
||||
<ul>
|
||||
<li><a href="#org333dd35">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#orgc2572c6">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org7b602fb">1.3.3. Nuclear coordinates</a></li>
|
||||
<li><a href="#org4bb3084">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#org19ce843">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org9f70522">1.3.3. Nuclear coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd38599e">1.4. Basis set and AOs</a>
|
||||
<li><a href="#org9908cc9">1.4. Basis set and AOs</a>
|
||||
<ul>
|
||||
<li><a href="#org186e972">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#org81778e9">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org1073602">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#orga0e9b09">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org72d4c20">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org0c887f6">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#org4ee9526">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#orga59a3dc">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#orgaffbf3c">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#org71826db">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#orgd44bd51">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org6cfe419">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#orgd769d38">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#orgb68499d">1.4.14. AO Normalization</a></li>
|
||||
<li><a href="#org6ac3431">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#org84c7c42">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#orgc9660d5">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#orge14d431">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org434aec5">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org88002f6">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#org735d3fc">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org9f59ed6">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#org3677ee1">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#org92ac910">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#orgfa4a42d">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org00adff7">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#org63e060e">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org209c875">1.4.14. AO Normalization</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf80a3b9">1.5. Molecular orbitals</a>
|
||||
<li><a href="#org5c06b14">1.5. Molecular orbitals</a>
|
||||
<ul>
|
||||
<li><a href="#orgbe544a7">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#orge0e6ee8">1.5.2. MO coefficients</a></li>
|
||||
<li><a href="#orgf5fcc21">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#org58a5794">1.5.2. MO coefficients</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3b9b535">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
<li><a href="#org9e01d37">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga285aac">2. Read everything</a></li>
|
||||
<li><a href="#orgedfee12">3. Test</a>
|
||||
<li><a href="#org3c40573">2. Read everything</a></li>
|
||||
<li><a href="#org37cf34a">3. Test</a>
|
||||
<ul>
|
||||
<li>
|
||||
<ul>
|
||||
<li><a href="#org8b36d5b">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org40e5058">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#org9efcdcf">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org14b2129">3.0.4. MO Basis</a></li>
|
||||
<li><a href="#orgcaa7984">3.0.1. Electrons</a></li>
|
||||
<li><a href="#orgbe195ca">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#orgd99984e">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org951f06f">3.0.4. MO Basis</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -379,8 +379,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org46f3c8e" class="outline-2">
|
||||
<h2 id="org46f3c8e"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div id="outline-container-orgb625de3" class="outline-2">
|
||||
<h2 id="orgb625de3"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
Functions defined in this section are all local: they should not be
|
||||
@ -403,8 +403,8 @@ In the functions defined in this section, we use as local variables
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6d014a5" class="outline-3">
|
||||
<h3 id="org6d014a5"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div id="outline-container-orgf39eb4f" class="outline-3">
|
||||
<h3 id="orgf39eb4f"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
We first define a helper function to open a file by first trying to
|
||||
@ -442,8 +442,8 @@ groups of data by passing the <code>trexio_t</code> handle.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga012b81" class="outline-3">
|
||||
<h3 id="orga012b81"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div id="outline-container-org7fa674c" class="outline-3">
|
||||
<h3 id="org7fa674c"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
In this section we read all the data into the electron data structure.
|
||||
@ -494,8 +494,8 @@ We read the number of up-spin and down-spin electrons.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4e69cff" class="outline-3">
|
||||
<h3 id="org4e69cff"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div id="outline-container-orgc43de23" class="outline-3">
|
||||
<h3 id="orgc43de23"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
In this section we read the number of nuclei, the molecular geometry and nuclear charges.
|
||||
@ -515,8 +515,8 @@ In this section we read the number of nuclei, the molecular geometry and nuclear
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org333dd35" class="outline-4">
|
||||
<h4 id="org333dd35"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div id="outline-container-org4bb3084" class="outline-4">
|
||||
<h4 id="org4bb3084"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div class="outline-text-4" id="text-1-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">nucleus_num</span> = 0L;
|
||||
@ -539,8 +539,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc2572c6" class="outline-4">
|
||||
<h4 id="orgc2572c6"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div id="outline-container-org19ce843" class="outline-4">
|
||||
<h4 id="org19ce843"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div class="outline-text-4" id="text-1-3-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -580,8 +580,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7b602fb" class="outline-4">
|
||||
<h4 id="org7b602fb"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div id="outline-container-org9f70522" class="outline-4">
|
||||
<h4 id="org9f70522"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-3-3">
|
||||
<p>
|
||||
Now, we read the molecular geometry. It is stored in normal format
|
||||
@ -636,8 +636,8 @@ in the TREXIO file (<code>'N'</code>), so it will be automatically transposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd38599e" class="outline-3">
|
||||
<h3 id="orgd38599e"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div id="outline-container-org9908cc9" class="outline-3">
|
||||
<h3 id="org9908cc9"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
In this section we read the atomic basis set and atomic orbitals.
|
||||
@ -663,8 +663,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org186e972" class="outline-4">
|
||||
<h4 id="org186e972"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div id="outline-container-org6ac3431" class="outline-4">
|
||||
<h4 id="org6ac3431"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div class="outline-text-4" id="text-1-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">MAX_STR_LEN</span> 1024
|
||||
@ -695,8 +695,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org81778e9" class="outline-4">
|
||||
<h4 id="org81778e9"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div id="outline-container-org84c7c42" class="outline-4">
|
||||
<h4 id="org84c7c42"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div class="outline-text-4" id="text-1-4-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">shell_num</span> = 0L;
|
||||
@ -720,8 +720,8 @@ rc = qmckl_set_ao_basis_shell_num(context, shell_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1073602" class="outline-4">
|
||||
<h4 id="org1073602"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div id="outline-container-orgc9660d5" class="outline-4">
|
||||
<h4 id="orgc9660d5"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div class="outline-text-4" id="text-1-4-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">prim_num</span> = 0L;
|
||||
@ -745,8 +745,8 @@ rc = qmckl_set_ao_basis_prim_num(context, prim_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga0e9b09" class="outline-4">
|
||||
<h4 id="orga0e9b09"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div id="outline-container-orge14d431" class="outline-4">
|
||||
<h4 id="orge14d431"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div class="outline-text-4" id="text-1-4-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">ao_num</span> = 0LL;
|
||||
@ -770,8 +770,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org72d4c20" class="outline-4">
|
||||
<h4 id="org72d4c20"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div id="outline-container-org434aec5" class="outline-4">
|
||||
<h4 id="org434aec5"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div class="outline-text-4" id="text-1-4-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -851,8 +851,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0c887f6" class="outline-4">
|
||||
<h4 id="org0c887f6"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div id="outline-container-org88002f6" class="outline-4">
|
||||
<h4 id="org88002f6"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div class="outline-text-4" id="text-1-4-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -937,8 +937,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4ee9526" class="outline-4">
|
||||
<h4 id="org4ee9526"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div id="outline-container-org735d3fc" class="outline-4">
|
||||
<h4 id="org735d3fc"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div class="outline-text-4" id="text-1-4-7">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">{
|
||||
@ -983,8 +983,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga59a3dc" class="outline-4">
|
||||
<h4 id="orga59a3dc"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
||||
<div id="outline-container-org9f59ed6" class="outline-4">
|
||||
<h4 id="org9f59ed6"><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">{
|
||||
@ -1068,8 +1068,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaffbf3c" class="outline-4">
|
||||
<h4 id="orgaffbf3c"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
||||
<div id="outline-container-org3677ee1" class="outline-4">
|
||||
<h4 id="org3677ee1"><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">{
|
||||
@ -1149,8 +1149,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org71826db" class="outline-4">
|
||||
<h4 id="org71826db"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
||||
<div id="outline-container-org92ac910" class="outline-4">
|
||||
<h4 id="org92ac910"><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">{
|
||||
@ -1195,8 +1195,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd44bd51" class="outline-4">
|
||||
<h4 id="orgd44bd51"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||
<div id="outline-container-orgfa4a42d" class="outline-4">
|
||||
<h4 id="orgfa4a42d"><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">{
|
||||
@ -1241,8 +1241,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6cfe419" class="outline-4">
|
||||
<h4 id="org6cfe419"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||
<div id="outline-container-org00adff7" class="outline-4">
|
||||
<h4 id="org00adff7"><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">{
|
||||
@ -1287,8 +1287,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd769d38" class="outline-4">
|
||||
<h4 id="orgd769d38"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
||||
<div id="outline-container-org63e060e" class="outline-4">
|
||||
<h4 id="org63e060e"><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">{
|
||||
@ -1333,8 +1333,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb68499d" class="outline-4">
|
||||
<h4 id="orgb68499d"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||
<div id="outline-container-org209c875" class="outline-4">
|
||||
<h4 id="org209c875"><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">{
|
||||
@ -1389,8 +1389,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgf80a3b9" class="outline-3">
|
||||
<h3 id="orgf80a3b9"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org5c06b14" class="outline-3">
|
||||
<h3 id="org5c06b14"><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.
|
||||
@ -1416,8 +1416,8 @@ In this section we read the MO coefficients.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbe544a7" class="outline-4">
|
||||
<h4 id="orgbe544a7"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
||||
<div id="outline-container-orgf5fcc21" class="outline-4">
|
||||
<h4 id="orgf5fcc21"><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;
|
||||
@ -1440,8 +1440,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge0e6ee8" class="outline-4">
|
||||
<h4 id="orge0e6ee8"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||
<div id="outline-container-org58a5794" class="outline-4">
|
||||
<h4 id="org58a5794"><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">{
|
||||
@ -1490,12 +1490,12 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3b9b535" class="outline-3">
|
||||
<h3 id="org3b9b535"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
<div id="outline-container-org9e01d37" class="outline-3">
|
||||
<h3 id="org9e01d37"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orga285aac" class="outline-2">
|
||||
<h2 id="orga285aac"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div id="outline-container-org3c40573" class="outline-2">
|
||||
<h2 id="org3c40573"><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>
|
||||
@ -1570,8 +1570,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgedfee12" class="outline-2">
|
||||
<h2 id="orgedfee12"><span class="section-number-2">3</span> Test</h2>
|
||||
<div id="outline-container-org37cf34a" class="outline-2">
|
||||
<h2 id="org37cf34a"><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
|
||||
@ -1595,8 +1595,8 @@ rc = qmckl_trexio_read(context, filename, 255);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8b36d5b" class="outline-4">
|
||||
<h4 id="org8b36d5b"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||
<div id="outline-container-orgcaa7984" class="outline-4">
|
||||
<h4 id="orgcaa7984"><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>);
|
||||
@ -1614,8 +1614,8 @@ rc = qmckl_get_electron_down_num(context, &dn_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org40e5058" class="outline-4">
|
||||
<h4 id="org40e5058"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||
<div id="outline-container-orgbe195ca" class="outline-4">
|
||||
<h4 id="orgbe195ca"><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>);
|
||||
@ -1655,8 +1655,8 @@ coord = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9efcdcf" class="outline-4">
|
||||
<h4 id="org9efcdcf"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||
<div id="outline-container-orgd99984e" class="outline-4">
|
||||
<h4 id="orgd99984e"><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>);
|
||||
@ -1764,8 +1764,8 @@ prim_factor = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org14b2129" class="outline-4">
|
||||
<h4 id="org14b2129"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div id="outline-container-org951f06f" class="outline-4">
|
||||
<h4 id="org951f06f"><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: 2023-02-14 Tue 12:34</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:47</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-02-14 Tue 12:34 -->
|
||||
<!-- 2023-02-14 Tue 12:47 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Verificarlo CI</title>
|
||||
@ -324,22 +324,22 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org3633510">1. Verificarlo probes</a>
|
||||
<li><a href="#org83ffbed">1. Verificarlo probes</a>
|
||||
<ul>
|
||||
<li><a href="#orgf3bbed0">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org8c467ef">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org654991e">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#orge5be79e">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#orgc7b1747">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org0c753e5">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org49cf72c">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org88a74b4">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#org4bcaee0">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#orgff77449">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="#org57fa22e">2. Fortran wrappers</a></li>
|
||||
<li><a href="#orgfbbb833">2. Fortran wrappers</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3633510" class="outline-2">
|
||||
<h2 id="org3633510"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div id="outline-container-org83ffbed" class="outline-2">
|
||||
<h2 id="org83ffbed"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
This file contains utility functions to enable the Verificarlo
|
||||
@ -390,8 +390,8 @@ To learn more about Verificarlo CI :
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgf3bbed0" class="outline-3">
|
||||
<h3 id="orgf3bbed0"><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-org0c753e5" class="outline-3">
|
||||
<h3 id="org0c753e5"><span class="section-number-3">1.1</span> Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">void</span> <span style="color: #0000ff;">qmckl_init_probes</span>();
|
||||
@ -409,8 +409,8 @@ To learn more about Verificarlo CI :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8c467ef" class="outline-3">
|
||||
<h3 id="org8c467ef"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div id="outline-container-org49cf72c" class="outline-3">
|
||||
<h3 id="org49cf72c"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<ul class="org-ul">
|
||||
<li>if <code>VFC_CI</code> is defined, place a standard probe</li>
|
||||
@ -445,8 +445,8 @@ if <code>VFC_CI</code> is undefined, return <code>false</code> (no error)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org654991e" class="outline-3">
|
||||
<h3 id="org654991e"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div id="outline-container-org88a74b4" class="outline-3">
|
||||
<h3 id="org88a74b4"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<ul class="org-ul">
|
||||
<li>if <code>VFC_CI</code> is defined, place a probe with an absolute check</li>
|
||||
@ -486,8 +486,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge5be79e" class="outline-3">
|
||||
<h3 id="orge5be79e"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div id="outline-container-org4bcaee0" class="outline-3">
|
||||
<h3 id="org4bcaee0"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<ul class="org-ul">
|
||||
<li>if <code>VFC_CI</code> is defined, place a probe with a relative check</li>
|
||||
@ -527,8 +527,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc7b1747" class="outline-3">
|
||||
<h3 id="orgc7b1747"><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-orgff77449" class="outline-3">
|
||||
<h3 id="orgff77449"><span class="section-number-3">1.5</span> Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">void</span> <span style="color: #0000ff;">qmckl_dump_probes</span>();
|
||||
@ -547,8 +547,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org57fa22e" class="outline-2">
|
||||
<h2 id="org57fa22e"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||
<div id="outline-container-orgfbbb833" class="outline-2">
|
||||
<h2 id="orgfbbb833"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">bool</span> <span style="color: #0000ff;">qmckl_probe_f</span>(
|
||||
@ -672,7 +672,7 @@ and accuracy
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:34</p>
|
||||
<p class="date">Created: 2023-02-14 Tue 12:47</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