mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-11-03 20:54:09 +01:00
Deploying to gh-pages from @ TREX-CoE/qmckl@3db1765cdb 🚀
This commit is contained in:
parent
c289d85481
commit
98066e19dd
@ -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-09-12 Tue 15:51 -->
|
||||
<!-- 2023-09-13 Wed 11:24 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>QMCkl source code documentation</title>
|
||||
@ -375,7 +375,7 @@ and bug reports should be submitted at
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-09-12 Tue 15:51</p>
|
||||
<p class="date">Created: 2023-09-13 Wed 11:24</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
118
qmckl.html
118
qmckl.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-09-12 Tue 15:51 -->
|
||||
<!-- 2023-09-13 Wed 11:24 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Introduction</title>
|
||||
@ -346,36 +346,36 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgafe84dc">1. Installing QMCkl</a>
|
||||
<li><a href="#org028a824">1. Installing QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#org3b582bb">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#orga7b36e6">1.2. Installing from the source repository (for developers)</a></li>
|
||||
<li><a href="#org9511133">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org667829c">1.2. Installing from the source repository (for developers)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org73a1b58">2. Using QMCkl</a></li>
|
||||
<li><a href="#orge4d914a">3. Developing in QMCkl</a>
|
||||
<li><a href="#org7d6773d">2. Using QMCkl</a></li>
|
||||
<li><a href="#orgfe7bd8a">3. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#org9d1556c">3.1. Literate programming</a></li>
|
||||
<li><a href="#orge8ce283">3.2. Source code editing</a></li>
|
||||
<li><a href="#org5f48919">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#orga127a50">3.4. Coding rules</a></li>
|
||||
<li><a href="#orgcddab8b">3.5. Design of the library</a></li>
|
||||
<li><a href="#orge416c5b">3.6. Naming conventions</a></li>
|
||||
<li><a href="#org8a5297f">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org9ac219d">3.8. Global state</a></li>
|
||||
<li><a href="#org497367d">3.9. Headers</a></li>
|
||||
<li><a href="#org0ac8dfc">3.10. Low-level functions</a></li>
|
||||
<li><a href="#org34a719e">3.11. High-level functions</a></li>
|
||||
<li><a href="#orgfe3c3ea">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org4e95ed4">3.13. Algorithms</a></li>
|
||||
<li><a href="#orgeb288e5">3.1. Literate programming</a></li>
|
||||
<li><a href="#orgc98f8fc">3.2. Source code editing</a></li>
|
||||
<li><a href="#org90d8b85">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org74bb93e">3.4. Coding rules</a></li>
|
||||
<li><a href="#org87f1505">3.5. Design of the library</a></li>
|
||||
<li><a href="#org59a1b93">3.6. Naming conventions</a></li>
|
||||
<li><a href="#org0344f35">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org753f0cc">3.8. Global state</a></li>
|
||||
<li><a href="#orge74480e">3.9. Headers</a></li>
|
||||
<li><a href="#orga270b93">3.10. Low-level functions</a></li>
|
||||
<li><a href="#orga1c5eac">3.11. High-level functions</a></li>
|
||||
<li><a href="#org3cacd15">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org09a8b28">3.13. Algorithms</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgafe84dc" class="outline-2">
|
||||
<h2 id="orgafe84dc"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div id="outline-container-org028a824" class="outline-2">
|
||||
<h2 id="org028a824"><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-org3b582bb" class="outline-3">
|
||||
<h3 id="org3b582bb"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div id="outline-container-org9511133" class="outline-3">
|
||||
<h3 id="org9511133"><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-orga7b36e6" class="outline-3">
|
||||
<h3 id="orga7b36e6"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div id="outline-container-org667829c" class="outline-3">
|
||||
<h3 id="org667829c"><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-org73a1b58" class="outline-2">
|
||||
<h2 id="org73a1b58"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div id="outline-container-org7d6773d" class="outline-2">
|
||||
<h2 id="org7d6773d"><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-orge4d914a" class="outline-2">
|
||||
<h2 id="orge4d914a"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-orgfe7bd8a" class="outline-2">
|
||||
<h2 id="orgfe7bd8a"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org9d1556c" class="outline-3">
|
||||
<h3 id="org9d1556c"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div id="outline-container-orgeb288e5" class="outline-3">
|
||||
<h3 id="orgeb288e5"><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-orge8ce283" class="outline-3">
|
||||
<h3 id="orge8ce283"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div id="outline-container-orgc98f8fc" class="outline-3">
|
||||
<h3 id="orgc98f8fc"><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-org5f48919" class="outline-3">
|
||||
<h3 id="org5f48919"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-org90d8b85" class="outline-3">
|
||||
<h3 id="org90d8b85"><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-orga127a50" class="outline-3">
|
||||
<h3 id="orga127a50"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div id="outline-container-org74bb93e" class="outline-3">
|
||||
<h3 id="org74bb93e"><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-orgcddab8b" class="outline-3">
|
||||
<h3 id="orgcddab8b"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div id="outline-container-org87f1505" class="outline-3">
|
||||
<h3 id="org87f1505"><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-orge416c5b" class="outline-3">
|
||||
<h3 id="orge416c5b"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-org59a1b93" class="outline-3">
|
||||
<h3 id="org59a1b93"><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-org8a5297f" class="outline-3">
|
||||
<h3 id="org8a5297f"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-org0344f35" class="outline-3">
|
||||
<h3 id="org0344f35"><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-org9ac219d" class="outline-3">
|
||||
<h3 id="org9ac219d"><span class="section-number-3">3.8</span> Global state</h3>
|
||||
<div id="outline-container-org753f0cc" class="outline-3">
|
||||
<h3 id="org753f0cc"><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="org8dc5e3e">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="org43b3849">=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-org497367d" class="outline-3">
|
||||
<h3 id="org497367d"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div id="outline-container-orge74480e" class="outline-3">
|
||||
<h3 id="orge74480e"><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-org0ac8dfc" class="outline-3">
|
||||
<h3 id="org0ac8dfc"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-orga270b93" class="outline-3">
|
||||
<h3 id="orga270b93"><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="#org8dc5e3e"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#org43b3849"><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-org34a719e" class="outline-3">
|
||||
<h3 id="org34a719e"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div id="outline-container-orga1c5eac" class="outline-3">
|
||||
<h3 id="orga1c5eac"><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-orgfe3c3ea" class="outline-3">
|
||||
<h3 id="orgfe3c3ea"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-org3cacd15" class="outline-3">
|
||||
<h3 id="org3cacd15"><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="#org8dc5e3e"><code>context</code></a> variable.
|
||||
specified in the <a href="#org43b3849"><code>context</code></a> variable.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -909,8 +909,8 @@ following points :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4e95ed4" class="outline-3">
|
||||
<h3 id="org4e95ed4"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div id="outline-container-org09a8b28" class="outline-3">
|
||||
<h3 id="org09a8b28"><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-09-12 Tue 15:51</p>
|
||||
<p class="date">Created: 2023-09-13 Wed 11:24</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-09-12 Tue 15:52 -->
|
||||
<!-- 2023-09-13 Wed 11:24 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Atomic Orbitals</title>
|
||||
@ -346,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="#orgc512cea">1. Introduction</a></li>
|
||||
<li><a href="#orgccce1e2">2. Context</a>
|
||||
<li><a href="#org11736ab">1. Introduction</a></li>
|
||||
<li><a href="#org80f2299">2. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orge3a333d">2.1. Constant data</a>
|
||||
<li><a href="#org0c8b8c6">2.1. Constant data</a>
|
||||
<ul>
|
||||
<li><a href="#org469927e">2.1.1. Initialization functions</a>
|
||||
<li><a href="#org6d9bf38">2.1.1. Initialization functions</a>
|
||||
<ul>
|
||||
<li><a href="#org8599707">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org5969448">2.1.1.2. Fortran interface</a></li>
|
||||
<li><a href="#org9d10a7a">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#orgc7d87be">2.1.1.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb972124">2.1.2. Access functions</a>
|
||||
<li><a href="#org1dca952">2.1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgb16d832">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org0ded7b2">2.1.2.2. Fortran interface</a></li>
|
||||
<li><a href="#org63543d9">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org75fc5dc">2.1.2.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf5de08c">2.2. Computed data</a>
|
||||
<li><a href="#org6ebb4ba">2.2. Computed data</a>
|
||||
<ul>
|
||||
<li><a href="#org6fc49e8">2.2.1. After initialization</a></li>
|
||||
<li><a href="#org2a27ca8">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#org26410d9">2.2.3. Access functions</a></li>
|
||||
<li><a href="#org8281707">2.2.1. After initialization</a></li>
|
||||
<li><a href="#org8e86f36">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#orge1f6268">2.2.3. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org88411c1">3. Radial part</a>
|
||||
<li><a href="#org068410f">3. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#org4952448">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org5a4bb2a">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#orgf4403df">3.3. Computation of shells</a></li>
|
||||
<li><a href="#orgcb5f7a8">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org26e7e3e">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org24a55a7">3.3. Computation of shells</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4ba1cb2">4. Polynomial part</a>
|
||||
<li><a href="#org3424eb7">4. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#org382e1b1">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org5d5eb47">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
<li><a href="#orgdd28e3a">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org1f151b3">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9de7a98">5. Combining radial and polynomial parts</a>
|
||||
<li><a href="#org2aed523">5. Combining radial and polynomial parts</a>
|
||||
<ul>
|
||||
<li><a href="#org07b2280">5.1. Values only</a>
|
||||
<li><a href="#org4f24317">5.1. Values only</a>
|
||||
<ul>
|
||||
<li><a href="#org63d70c7">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#org3b8d2e7">5.1.2. HPC version</a></li>
|
||||
<li><a href="#org7a523fa">5.1.3. Interfaces</a></li>
|
||||
<li><a href="#org717e74d">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#org819dd87">5.1.2. HPC version</a></li>
|
||||
<li><a href="#org7fb53f2">5.1.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgdcdd1e5">5.2. Value, gradients, Laplacian</a>
|
||||
<li><a href="#orgf39dc8b">5.2. Value, gradients, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#orgb958263">5.2.1. Reference version</a></li>
|
||||
<li><a href="#org49d32fc">5.2.2. HPC version</a></li>
|
||||
<li><a href="#org3f14476">5.2.3. Interfaces</a></li>
|
||||
<li><a href="#org36297b1">5.2.1. Reference version</a></li>
|
||||
<li><a href="#org73ab93b">5.2.2. HPC version</a></li>
|
||||
<li><a href="#orga04d85c">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-orgc512cea" class="outline-2">
|
||||
<h2 id="orgc512cea"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div id="outline-container-org11736ab" class="outline-2">
|
||||
<h2 id="org11736ab"><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-orgccce1e2" class="outline-2">
|
||||
<h2 id="orgccce1e2"><span class="section-number-2">2</span> Context</h2>
|
||||
<div id="outline-container-org80f2299" class="outline-2">
|
||||
<h2 id="org80f2299"><span class="section-number-2">2</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orge3a333d" class="outline-3">
|
||||
<h3 id="orge3a333d"><span class="section-number-3">2.1</span> Constant data</h3>
|
||||
<div id="outline-container-org0c8b8c6" class="outline-3">
|
||||
<h3 id="org0c8b8c6"><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="org90f90a8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0003124" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -709,7 +709,7 @@ calling the functions:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="org6f4ebdc"><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="orgec5355b"><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>,
|
||||
@ -746,7 +746,7 @@ For array variables, use the rule:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="org3e0ecc2"><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="orgfa75ef4"><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>);
|
||||
|
||||
@ -784,17 +784,17 @@ For array variables, use the rule:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org469927e" class="outline-4">
|
||||
<h4 id="org469927e"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
||||
<div id="outline-container-org6d9bf38" class="outline-4">
|
||||
<h4 id="org6d9bf38"><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="#orgccce1e2">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org80f2299">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8599707" class="outline-5">
|
||||
<h5 id="org8599707"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div id="outline-container-org9d10a7a" class="outline-5">
|
||||
<h5 id="org9d10a7a"><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
|
||||
@ -918,8 +918,8 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5969448" class="outline-5">
|
||||
<h5 id="org5969448"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-orgc7d87be" class="outline-5">
|
||||
<h5 id="orgc7d87be"><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>
|
||||
@ -1102,17 +1102,17 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb972124" class="outline-4">
|
||||
<h4 id="orgb972124"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
||||
<div id="outline-container-org1dca952" class="outline-4">
|
||||
<h4 id="org1dca952"><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="#orgccce1e2">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org80f2299">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb16d832" class="outline-5">
|
||||
<h5 id="orgb16d832"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div id="outline-container-org63543d9" class="outline-5">
|
||||
<h5 id="org63543d9"><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>
|
||||
@ -1234,8 +1234,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0ded7b2" class="outline-5">
|
||||
<h5 id="org0ded7b2"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org75fc5dc" class="outline-5">
|
||||
<h5 id="org75fc5dc"><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>
|
||||
@ -1419,8 +1419,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf5de08c" class="outline-3">
|
||||
<h3 id="orgf5de08c"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div id="outline-container-org6ebb4ba" class="outline-3">
|
||||
<h3 id="org6ebb4ba"><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:
|
||||
@ -1495,8 +1495,8 @@ The following data is computed as described in the next sections:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6fc49e8" class="outline-4">
|
||||
<h4 id="org6fc49e8"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div id="outline-container-org8281707" class="outline-4">
|
||||
<h4 id="org8281707"><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
|
||||
@ -1510,8 +1510,8 @@ the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2a27ca8" class="outline-4">
|
||||
<h4 id="org2a27ca8"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
||||
<div id="outline-container-org8e86f36" class="outline-4">
|
||||
<h4 id="org8e86f36"><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:
|
||||
@ -1541,8 +1541,8 @@ which is a matrix-vector product.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org26410d9" class="outline-4">
|
||||
<h4 id="org26410d9"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||
<div id="outline-container-orge1f6268" class="outline-4">
|
||||
<h4 id="orge1f6268"><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>
|
||||
@ -1555,7 +1555,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="#org5a4bb2a">3.2</a>.
|
||||
See section <a href="#org26e7e3e">3.2</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1568,7 +1568,7 @@ See section <a href="#org5a4bb2a">3.2</a>.
|
||||
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of contracted shells
|
||||
evaluated at the current coordinates. See section <a href="#orgf4403df">3.3</a>.
|
||||
evaluated at the current coordinates. See section <a href="#org24a55a7">3.3</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1582,7 +1582,7 @@ evaluated at the current coordinates. See section <a href="#orgf4403df">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="#org9de7a98">5</a>.
|
||||
See section <a href="#org2aed523">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1607,7 +1607,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="#org9de7a98">5</a>.
|
||||
the current coordinates. See section <a href="#org2aed523">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1626,12 +1626,12 @@ Uses the given array to compute the value.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org88411c1" class="outline-2">
|
||||
<h2 id="org88411c1"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div id="outline-container-org068410f" class="outline-2">
|
||||
<h2 id="org068410f"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org4952448" class="outline-3">
|
||||
<h3 id="org4952448"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div id="outline-container-orgcb5f7a8" class="outline-3">
|
||||
<h3 id="orgcb5f7a8"><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
|
||||
@ -1802,10 +1802,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5a4bb2a" class="outline-3">
|
||||
<h3 id="org5a4bb2a"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div id="outline-container-org26e7e3e" class="outline-3">
|
||||
<h3 id="org26e7e3e"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<table id="org0afae20" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7fad66b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1964,10 +1964,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf4403df" class="outline-3">
|
||||
<h3 id="orgf4403df"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div id="outline-container-org24a55a7" class="outline-3">
|
||||
<h3 id="org24a55a7"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<table id="org2fc3835" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org846dfea" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2219,8 +2219,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4ba1cb2" class="outline-2">
|
||||
<h2 id="org4ba1cb2"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div id="outline-container-org3424eb7" class="outline-2">
|
||||
<h2 id="org3424eb7"><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
|
||||
@ -2240,8 +2240,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-org382e1b1" class="outline-3">
|
||||
<h3 id="org382e1b1"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-orgdd28e3a" class="outline-3">
|
||||
<h3 id="orgdd28e3a"><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>
|
||||
@ -2253,7 +2253,7 @@ the \(n\) points:
|
||||
\[ P_{ik} = X_i^k \]
|
||||
</p>
|
||||
|
||||
<table id="orgb3ccccd" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga5e112f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2391,8 +2391,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5d5eb47" class="outline-3">
|
||||
<h3 id="org5d5eb47"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-org1f151b3" class="outline-3">
|
||||
<h3 id="org1f151b3"><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\)
|
||||
@ -2437,7 +2437,7 @@ Laplacians at a given point in space, of all polynomials with an
|
||||
angular momentum up to <code>lmax</code>.
|
||||
</p>
|
||||
|
||||
<table id="orga0eed55" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8d167d7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3217,18 +3217,18 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9de7a98" class="outline-2">
|
||||
<h2 id="org9de7a98"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div id="outline-container-org2aed523" class="outline-2">
|
||||
<h2 id="org2aed523"><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-org07b2280" class="outline-3">
|
||||
<h3 id="org07b2280"><span class="section-number-3">5.1</span> Values only</h3>
|
||||
<div id="outline-container-org4f24317" class="outline-3">
|
||||
<h3 id="org4f24317"><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-org63d70c7" class="outline-4">
|
||||
<h4 id="org63d70c7"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-org717e74d" class="outline-4">
|
||||
<h4 id="org717e74d"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-1">
|
||||
<table id="orgbd297d5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgbcc290a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3465,10 +3465,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3b8d2e7" class="outline-4">
|
||||
<h4 id="org3b8d2e7"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div id="outline-container-org819dd87" class="outline-4">
|
||||
<h4 id="org819dd87"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-2">
|
||||
<table id="org0b9be25" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge0390e5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3626,8 +3626,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7a523fa" class="outline-4">
|
||||
<h4 id="org7a523fa"><span class="section-number-4">5.1.3</span> Interfaces</h4>
|
||||
<div id="outline-container-org7fb53f2" class="outline-4">
|
||||
<h4 id="org7fb53f2"><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> (
|
||||
@ -3676,14 +3676,14 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdcdd1e5" class="outline-3">
|
||||
<h3 id="orgdcdd1e5"><span class="section-number-3">5.2</span> Value, gradients, Laplacian</h3>
|
||||
<div id="outline-container-orgf39dc8b" class="outline-3">
|
||||
<h3 id="orgf39dc8b"><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-orgb958263" class="outline-4">
|
||||
<h4 id="orgb958263"><span class="section-number-4">5.2.1</span> Reference version</h4>
|
||||
<div id="outline-container-org36297b1" class="outline-4">
|
||||
<h4 id="org36297b1"><span class="section-number-4">5.2.1</span> Reference version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-1">
|
||||
<table id="orged19a34" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5bc794e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3949,10 +3949,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org49d32fc" class="outline-4">
|
||||
<h4 id="org49d32fc"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div id="outline-container-org73ab93b" class="outline-4">
|
||||
<h4 id="org73ab93b"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-2">
|
||||
<table id="org3fa6b16" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org42e9ce9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4111,8 +4111,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org3f14476" class="outline-4">
|
||||
<h4 id="org3f14476"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||
<div id="outline-container-orga04d85c" class="outline-4">
|
||||
<h4 id="orga04d85c"><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> (
|
||||
@ -4164,7 +4164,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-09-12 Tue 15:52</p>
|
||||
<p class="date">Created: 2023-09-13 Wed 11:24</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
184
qmckl_blas.html
184
qmckl_blas.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-09-12 Tue 15:51 -->
|
||||
<!-- 2023-09-13 Wed 11:24 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>BLAS functions</title>
|
||||
@ -346,56 +346,56 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgd013b03">-</a></li>
|
||||
<li><a href="#orgbcd8ac1">1. Data types</a>
|
||||
<li><a href="#orgf0c0f41">-</a></li>
|
||||
<li><a href="#orgafc8111">1. Data types</a>
|
||||
<ul>
|
||||
<li><a href="#orgf02c072">1.1. Vector</a></li>
|
||||
<li><a href="#orgbc4c6b2">1.2. Matrix</a></li>
|
||||
<li><a href="#orgbbd464a">1.3. Tensor</a></li>
|
||||
<li><a href="#orgd6f09be">1.4. Reshaping</a>
|
||||
<li><a href="#org791ab3f">1.1. Vector</a></li>
|
||||
<li><a href="#org71776d0">1.2. Matrix</a></li>
|
||||
<li><a href="#orgc1513fd">1.3. Tensor</a></li>
|
||||
<li><a href="#orgca3e385">1.4. Reshaping</a>
|
||||
<ul>
|
||||
<li><a href="#org5f35196">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#org69219b5">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#orgf85e6dd">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#org79bd898">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#org0a4039e">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#org3b93b10">1.4.6. Tensor -> Matrix</a></li>
|
||||
<li><a href="#org9ba662c">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#org84deb6e">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#orgd346a20">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#orgf6586a1">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#org3e8f476">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#org53e9bf9">1.4.6. Tensor -> Matrix</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7d18c92">1.5. Access macros</a></li>
|
||||
<li><a href="#orga7fe187">1.6. Set all elements</a>
|
||||
<li><a href="#orgdf7d91d">1.5. Access macros</a></li>
|
||||
<li><a href="#org8892a14">1.6. Set all elements</a>
|
||||
<ul>
|
||||
<li><a href="#org4966e1b">1.6.1. Vector</a></li>
|
||||
<li><a href="#orgbd42abd">1.6.2. Matrix</a></li>
|
||||
<li><a href="#org2340f01">1.6.3. Tensor</a></li>
|
||||
<li><a href="#org585eea6">1.6.1. Vector</a></li>
|
||||
<li><a href="#orgc0e4da8">1.6.2. Matrix</a></li>
|
||||
<li><a href="#org2a27a55">1.6.3. Tensor</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7864c61">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#org7c627a5">1.8. Allocate and copy to <code>double*</code></a></li>
|
||||
<li><a href="#org4cb900e">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#org38af7e5">1.8. Allocate and copy to <code>double*</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6307d1a">2. Matrix operations</a>
|
||||
<li><a href="#orga6986d9">2. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#orgf8cd160">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org17ef496">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#orgf556c49">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org76209d8">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#orgc17efd4">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<li><a href="#org9782ca8">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org157d403">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#org4aa12d6">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org6beab71">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#org307417d">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<ul>
|
||||
<li><a href="#org17b1c16">2.5.1. C interface</a></li>
|
||||
<li><a href="#org4fbb522">2.5.1. C interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga724b1e">2.6. <code>qmckl_transpose</code></a></li>
|
||||
<li><a href="#org1b7f2fb">2.6. <code>qmckl_transpose</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8653f30">3. Utilities</a></li>
|
||||
<li><a href="#org389e611">3. Utilities</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd013b03" class="outline-2">
|
||||
<h2 id="orgd013b03">-</h2>
|
||||
<div class="outline-text-2" id="text-orgd013b03">
|
||||
<div id="outline-container-orgf0c0f41" class="outline-2">
|
||||
<h2 id="orgf0c0f41">-</h2>
|
||||
<div class="outline-text-2" id="text-orgf0c0f41">
|
||||
<p>
|
||||
Basic linear algebra data types and operations are described in this file.
|
||||
The data types are private, so that HPC implementations can use
|
||||
@ -409,12 +409,12 @@ are not intended to be passed to external codes.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbcd8ac1" class="outline-2">
|
||||
<h2 id="orgbcd8ac1"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div id="outline-container-orgafc8111" class="outline-2">
|
||||
<h2 id="orgafc8111"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-orgf02c072" class="outline-3">
|
||||
<h3 id="orgf02c072"><span class="section-number-3">1.1</span> Vector</h3>
|
||||
<div id="outline-container-org791ab3f" class="outline-3">
|
||||
<h3 id="org791ab3f"><span class="section-number-3">1.1</span> Vector</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
@ -468,8 +468,8 @@ Allocates a new vector. If the allocation failed the size is zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbc4c6b2" class="outline-3">
|
||||
<h3 id="orgbc4c6b2"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||
<div id="outline-container-org71776d0" class="outline-3">
|
||||
<h3 id="org71776d0"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
@ -529,8 +529,8 @@ Allocates a new matrix. If the allocation failed the sizes are zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbbd464a" class="outline-3">
|
||||
<h3 id="orgbbd464a"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||
<div id="outline-container-orgc1513fd" class="outline-3">
|
||||
<h3 id="orgc1513fd"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
@ -597,16 +597,16 @@ is zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd6f09be" class="outline-3">
|
||||
<h3 id="orgd6f09be"><span class="section-number-3">1.4</span> Reshaping</h3>
|
||||
<div id="outline-container-orgca3e385" class="outline-3">
|
||||
<h3 id="orgca3e385"><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-org5f35196" class="outline-4">
|
||||
<h4 id="org5f35196"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||
<div id="outline-container-org9ba662c" class="outline-4">
|
||||
<h4 id="org9ba662c"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||
<div class="outline-text-4" id="text-1-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||
@ -622,8 +622,8 @@ Reshapes a vector into a matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org69219b5" class="outline-4">
|
||||
<h4 id="org69219b5"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||
<div id="outline-container-org84deb6e" class="outline-4">
|
||||
<h4 id="org84deb6e"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||
<div class="outline-text-4" id="text-1-4-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||
@ -639,8 +639,8 @@ Reshapes a vector into a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf85e6dd" class="outline-4">
|
||||
<h4 id="orgf85e6dd"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||
<div id="outline-container-orgd346a20" class="outline-4">
|
||||
<h4 id="orgd346a20"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||
<div class="outline-text-4" id="text-1-4-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||
@ -654,8 +654,8 @@ Reshapes a matrix into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org79bd898" class="outline-4">
|
||||
<h4 id="org79bd898"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||
<div id="outline-container-orgf6586a1" class="outline-4">
|
||||
<h4 id="orgf6586a1"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||
<div class="outline-text-4" id="text-1-4-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||
@ -671,8 +671,8 @@ Reshapes a matrix into a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0a4039e" class="outline-4">
|
||||
<h4 id="org0a4039e"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||
<div id="outline-container-org3e8f476" class="outline-4">
|
||||
<h4 id="org3e8f476"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||
<div class="outline-text-4" id="text-1-4-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||
@ -686,8 +686,8 @@ Reshapes a tensor into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3b93b10" class="outline-4">
|
||||
<h4 id="org3b93b10"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||
<div id="outline-container-org53e9bf9" class="outline-4">
|
||||
<h4 id="org53e9bf9"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||
<div class="outline-text-4" id="text-1-4-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||
@ -704,8 +704,8 @@ Reshapes a tensor into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7d18c92" class="outline-3">
|
||||
<h3 id="org7d18c92"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||
<div id="outline-container-orgdf7d91d" class="outline-3">
|
||||
<h3 id="orgdf7d91d"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
Macros are provided to ease the access to vectors, matrices and
|
||||
@ -730,12 +730,12 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga7fe187" class="outline-3">
|
||||
<h3 id="orga7fe187"><span class="section-number-3">1.6</span> Set all elements</h3>
|
||||
<div id="outline-container-org8892a14" class="outline-3">
|
||||
<h3 id="org8892a14"><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-org4966e1b" class="outline-4">
|
||||
<h4 id="org4966e1b"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||
<div id="outline-container-org585eea6" class="outline-4">
|
||||
<h4 id="org585eea6"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||
<div class="outline-text-4" id="text-1-6-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||
@ -745,8 +745,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbd42abd" class="outline-4">
|
||||
<h4 id="orgbd42abd"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||
<div id="outline-container-orgc0e4da8" class="outline-4">
|
||||
<h4 id="orgc0e4da8"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||
<div class="outline-text-4" id="text-1-6-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||
@ -756,8 +756,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2340f01" class="outline-4">
|
||||
<h4 id="org2340f01"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||
<div id="outline-container-org2a27a55" class="outline-4">
|
||||
<h4 id="org2a27a55"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||
<div class="outline-text-4" id="text-1-6-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||
@ -768,8 +768,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7864c61" class="outline-3">
|
||||
<h3 id="org7864c61"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||
<div id="outline-container-org4cb900e" class="outline-3">
|
||||
<h3 id="org4cb900e"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||
<div class="outline-text-3" id="text-1-7">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -851,8 +851,8 @@ Converts a <code>double*</code> to a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7c627a5" class="outline-3">
|
||||
<h3 id="org7c627a5"><span class="section-number-3">1.8</span> Allocate and copy to <code>double*</code></h3>
|
||||
<div id="outline-container-org38af7e5" class="outline-3">
|
||||
<h3 id="org38af7e5"><span class="section-number-3">1.8</span> Allocate and copy to <code>double*</code></h3>
|
||||
<div class="outline-text-3" id="text-1-8">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">double</span>* <span style="color: #0000ff;">qmckl_alloc_double_of_vector</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
@ -876,12 +876,12 @@ Converts a <code>double*</code> to a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6307d1a" class="outline-2">
|
||||
<h2 id="org6307d1a"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div id="outline-container-orga6986d9" class="outline-2">
|
||||
<h2 id="orga6986d9"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgf8cd160" class="outline-3">
|
||||
<h3 id="orgf8cd160"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div id="outline-container-org9782ca8" class="outline-3">
|
||||
<h3 id="org9782ca8"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
Matrix multiplication with a BLAS interface:
|
||||
@ -893,7 +893,7 @@ Matrix multiplication with a BLAS interface:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="orga5e96a6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb41760e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1052,8 +1052,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org17ef496" class="outline-3">
|
||||
<h3 id="org17ef496"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
||||
<div id="outline-container-org157d403" class="outline-3">
|
||||
<h3 id="org157d403"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
"Size-safe" proxy function with the same functionality as <code>qmckl_dgemm</code>
|
||||
@ -1062,7 +1062,7 @@ are required primarily for the Python API, where compatibility with
|
||||
NumPy arrays implies that sizes of the input and output arrays are provided.
|
||||
</p>
|
||||
|
||||
<table id="orgd1ceab0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6f799f9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1248,8 +1248,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf556c49" class="outline-3">
|
||||
<h3 id="orgf556c49"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
||||
<div id="outline-container-org4aa12d6" class="outline-3">
|
||||
<h3 id="org4aa12d6"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
@ -1261,7 +1261,7 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="orgd8b7de0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7031fb5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1355,8 +1355,8 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org76209d8" class="outline-3">
|
||||
<h3 id="org76209d8"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
||||
<div id="outline-container-org6beab71" class="outline-3">
|
||||
<h3 id="org6beab71"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
Given a matrix \(\mathbf{A}\), the adjugate matrix
|
||||
@ -1374,7 +1374,7 @@ of \(\mathbf{A}\).
|
||||
See also: <a href="https://en.wikipedia.org/wiki/Adjugate_matrix">https://en.wikipedia.org/wiki/Adjugate_matrix</a>
|
||||
</p>
|
||||
|
||||
<table id="org2c74676" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org439887c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1570,8 +1570,8 @@ determinant with the inverse:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc17efd4" class="outline-3">
|
||||
<h3 id="orgc17efd4"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
||||
<div id="outline-container-org307417d" class="outline-3">
|
||||
<h3 id="org307417d"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
<p>
|
||||
"Size-safe" proxy function with the same functionality as <code>qmckl_adjugate</code>
|
||||
@ -1581,7 +1581,7 @@ NumPy arrays implies that sizes of the input and output arrays are provided.
|
||||
</p>
|
||||
|
||||
|
||||
<table id="org8401c0d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org33e3080" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1703,13 +1703,13 @@ LAPACK library.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org17b1c16" class="outline-4">
|
||||
<h4 id="org17b1c16"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
<div id="outline-container-org4fbb522" class="outline-4">
|
||||
<h4 id="org4fbb522"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga724b1e" class="outline-3">
|
||||
<h3 id="orga724b1e"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
||||
<div id="outline-container-org1b7f2fb" class="outline-3">
|
||||
<h3 id="org1b7f2fb"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
||||
@ -1770,8 +1770,8 @@ Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8653f30" class="outline-2">
|
||||
<h2 id="org8653f30"><span class="section-number-2">3</span> Utilities</h2>
|
||||
<div id="outline-container-org389e611" class="outline-2">
|
||||
<h2 id="org389e611"><span class="section-number-2">3</span> Utilities</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
Trick to make MKL efficient on AMD
|
||||
@ -1789,7 +1789,7 @@ Trick to make MKL efficient on AMD
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-09-12 Tue 15:51</p>
|
||||
<p class="date">Created: 2023-09-13 Wed 11:24</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-09-12 Tue 15:52 -->
|
||||
<!-- 2023-09-13 Wed 11:24 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Context</title>
|
||||
@ -324,21 +324,21 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orge9735f7">1. Context handling</a>
|
||||
<li><a href="#org5cadfff">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#org79f5271">1.1. Data structure</a></li>
|
||||
<li><a href="#orge660a8f">1.2. Creation</a></li>
|
||||
<li><a href="#orgf7ac366">1.3. Locking</a></li>
|
||||
<li><a href="#org47b2b73">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org36d6c59">1.5. Destroy</a></li>
|
||||
<li><a href="#org368a0a0">1.1. Data structure</a></li>
|
||||
<li><a href="#org56aafbf">1.2. Creation</a></li>
|
||||
<li><a href="#org1d77e83">1.3. Locking</a></li>
|
||||
<li><a href="#orgd5210e3">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org9758dbd">1.5. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge9735f7" class="outline-2">
|
||||
<h2 id="orge9735f7"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-org5cadfff" class="outline-2">
|
||||
<h2 id="org5cadfff"><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="orge4ac79d"><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="org8a19bb6"><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-org79f5271" class="outline-3">
|
||||
<h3 id="org79f5271"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org368a0a0" class="outline-3">
|
||||
<h3 id="org368a0a0"><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="#orge660a8f"><code>qmckl_context_create</code></a> <a href="#org36d6c59"><code>qmckl_context_destroy</code></a> and <a href="#org47b2b73"><code>qmckl_context_copy</code></a>
|
||||
<a href="#org56aafbf"><code>qmckl_context_create</code></a> <a href="#org9758dbd"><code>qmckl_context_destroy</code></a> and <a href="#orgd5210e3"><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-orge660a8f" class="outline-3">
|
||||
<h3 id="orge660a8f"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-org56aafbf" class="outline-3">
|
||||
<h3 id="org56aafbf"><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-orgf7ac366" class="outline-3">
|
||||
<h3 id="orgf7ac366"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-org1d77e83" class="outline-3">
|
||||
<h3 id="org1d77e83"><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-org47b2b73" class="outline-3">
|
||||
<h3 id="org47b2b73"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div id="outline-container-orgd5210e3" class="outline-3">
|
||||
<h3 id="orgd5210e3"><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-org36d6c59" class="outline-3">
|
||||
<h3 id="org36d6c59"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-org9758dbd" class="outline-3">
|
||||
<h3 id="org9758dbd"><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-09-12 Tue 15:52</p>
|
||||
<p class="date">Created: 2023-09-13 Wed 11:24</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-09-12 Tue 15:52 -->
|
||||
<!-- 2023-09-13 Wed 11:24 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Slater Determinant</title>
|
||||
@ -324,32 +324,32 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgfbecc32">1. Context</a>
|
||||
<li><a href="#org8ed7ca9">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgbcf289c">1.1. Data structure</a></li>
|
||||
<li><a href="#org3be375c">1.2. Access functions</a></li>
|
||||
<li><a href="#orgfdf9352">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgb274261">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#org965da0d">1.5. Test</a></li>
|
||||
<li><a href="#org34c1330">1.1. Data structure</a></li>
|
||||
<li><a href="#org27c0c00">1.2. Access functions</a></li>
|
||||
<li><a href="#org1ce1c1b">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org93c846b">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#org6784f77">1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4996f26">2. Computation</a>
|
||||
<li><a href="#orgdd5b1ac">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org120bce5">2.1. Determinant matrix</a>
|
||||
<li><a href="#org7000771">2.1. Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#orgdb45a5c">2.1.1. Get</a></li>
|
||||
<li><a href="#org3988298">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgf37fcb9">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#org0817f07">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#org07211d3">2.1.5. Test</a></li>
|
||||
<li><a href="#org3e89dfc">2.1.1. Get</a></li>
|
||||
<li><a href="#org0be2949">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgd41477a">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#org4392a13">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#org93c37f5">2.1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8251e60">2.2. Inverse of Determinant matrix</a>
|
||||
<li><a href="#org7e4284a">2.2. Inverse of Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org437b86b">2.2.1. Get</a></li>
|
||||
<li><a href="#org085b179">2.2.2. Provide</a></li>
|
||||
<li><a href="#orge11b54a">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#org230ab4d">2.2.4. Compute beta</a></li>
|
||||
<li><a href="#org2bc5ea8">2.2.1. Get</a></li>
|
||||
<li><a href="#org2cc2d65">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgf392a6b">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#org25b27a4">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-orgfbecc32" class="outline-2">
|
||||
<h2 id="orgfbecc32"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org8ed7ca9" class="outline-2">
|
||||
<h2 id="org8ed7ca9"><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-orgbcf289c" class="outline-3">
|
||||
<h3 id="orgbcf289c"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org34c1330" class="outline-3">
|
||||
<h3 id="org34c1330"><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-org3be375c" class="outline-3">
|
||||
<h3 id="org3be375c"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org27c0c00" class="outline-3">
|
||||
<h3 id="org27c0c00"><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-orgfdf9352" class="outline-3">
|
||||
<h3 id="orgfdf9352"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org1ce1c1b" class="outline-3">
|
||||
<h3 id="org1ce1c1b"><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-orgb274261" class="outline-3">
|
||||
<h3 id="orgb274261"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
<div id="outline-container-org93c846b" class="outline-3">
|
||||
<h3 id="org93c846b"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
</div>
|
||||
<div id="outline-container-org965da0d" class="outline-3">
|
||||
<h3 id="org965da0d"><span class="section-number-3">1.5</span> Test</h3>
|
||||
<div id="outline-container-org6784f77" class="outline-3">
|
||||
<h3 id="org6784f77"><span class="section-number-3">1.5</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org4996f26" class="outline-2">
|
||||
<h2 id="org4996f26"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orgdd5b1ac" class="outline-2">
|
||||
<h2 id="orgdd5b1ac"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org120bce5" class="outline-3">
|
||||
<h3 id="org120bce5"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
||||
<div id="outline-container-org7000771" class="outline-3">
|
||||
<h3 id="org7000771"><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-orgdb45a5c" class="outline-4">
|
||||
<h4 id="orgdb45a5c"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org3e89dfc" class="outline-4">
|
||||
<h4 id="org3e89dfc"><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-org3988298" class="outline-4">
|
||||
<h4 id="org3988298"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org0be2949" class="outline-4">
|
||||
<h4 id="org0be2949"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf37fcb9" class="outline-4">
|
||||
<h4 id="orgf37fcb9"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-orgd41477a" class="outline-4">
|
||||
<h4 id="orgd41477a"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="org3c91944" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org76100cb" 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-org0817f07" class="outline-4">
|
||||
<h4 id="org0817f07"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org4392a13" class="outline-4">
|
||||
<h4 id="org4392a13"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<table id="org6a80ba5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org15c1f01" 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-org07211d3" class="outline-4">
|
||||
<h4 id="org07211d3"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
<div id="outline-container-org93c37f5" class="outline-4">
|
||||
<h4 id="org93c37f5"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8251e60" class="outline-3">
|
||||
<h3 id="org8251e60"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
||||
<div id="outline-container-org7e4284a" class="outline-3">
|
||||
<h3 id="org7e4284a"><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-org437b86b" class="outline-4">
|
||||
<h4 id="org437b86b"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org2bc5ea8" class="outline-4">
|
||||
<h4 id="org2bc5ea8"><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-org085b179" class="outline-4">
|
||||
<h4 id="org085b179"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org2cc2d65" class="outline-4">
|
||||
<h4 id="org2cc2d65"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge11b54a" class="outline-4">
|
||||
<h4 id="orge11b54a"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-orgf392a6b" class="outline-4">
|
||||
<h4 id="orgf392a6b"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org6cf7581" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1c19c9d" 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-org230ab4d" class="outline-4">
|
||||
<h4 id="org230ab4d"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org25b27a4" class="outline-4">
|
||||
<h4 id="org25b27a4"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<table id="org3cc3bfc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgced2578" 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-09-12 Tue 15:52</p>
|
||||
<p class="date">Created: 2023-09-13 Wed 11:24</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-09-12 Tue 15:52 -->
|
||||
<!-- 2023-09-13 Wed 11:24 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Inter-particle distances</title>
|
||||
@ -346,54 +346,54 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgd8b765a">1. Squared distance</a>
|
||||
<li><a href="#org39bd56c">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#org094b36a">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#org5997b46">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#org46fbe92">1.1.1. Performance</a></li>
|
||||
<li><a href="#orgbbc1500">1.1.1. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0cc064a">2. Distance</a>
|
||||
<li><a href="#orgb659d41">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#orgbfea35f">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#org636deba">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgc1e4eb6">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org140fec7">2.1.2. C header</a></li>
|
||||
<li><a href="#org7e1ae3d">2.1.3. Source</a></li>
|
||||
<li><a href="#orgb70ee66">2.1.4. Performance</a></li>
|
||||
<li><a href="#org0f2b526">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orgd2f5aa2">2.1.2. C header</a></li>
|
||||
<li><a href="#orgccb57a0">2.1.3. Source</a></li>
|
||||
<li><a href="#orgc9b5268">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0334803">3. Rescaled Distance</a>
|
||||
<li><a href="#org1894bbb">3. Rescaled Distance</a>
|
||||
<ul>
|
||||
<li><a href="#orgbc68821">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<li><a href="#orgaeffe00">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<ul>
|
||||
<li><a href="#org5b1830e">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orgbb8a61e">3.1.2. C header</a></li>
|
||||
<li><a href="#org1251817">3.1.3. Source</a></li>
|
||||
<li><a href="#org813e349">3.1.4. Performance</a></li>
|
||||
<li><a href="#org33ddcad">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orga355d9b">3.1.2. C header</a></li>
|
||||
<li><a href="#org1bf872b">3.1.3. Source</a></li>
|
||||
<li><a href="#orgd97aab6">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9b72497">4. Rescaled Distance Derivatives</a>
|
||||
<li><a href="#orgeb2ee80">4. Rescaled Distance Derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#orgef62c08">4.1. <code>qmckl_distance_rescaled_gl</code></a></li>
|
||||
<li><a href="#orgca332e1">4.1. <code>qmckl_distance_rescaled_gl</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd8b765a" class="outline-2">
|
||||
<h2 id="orgd8b765a"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-org39bd56c" class="outline-2">
|
||||
<h2 id="org39bd56c"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org094b36a" class="outline-3">
|
||||
<h3 id="org094b36a"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-org5997b46" class="outline-3">
|
||||
<h3 id="org5997b46"><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="org676de8e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5e2cd11" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -672,8 +672,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org46fbe92" class="outline-4">
|
||||
<h4 id="org46fbe92"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div id="outline-container-orgbbc1500" class="outline-4">
|
||||
<h4 id="orgbbc1500"><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-org0cc064a" class="outline-2">
|
||||
<h2 id="org0cc064a"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-orgb659d41" class="outline-2">
|
||||
<h2 id="orgb659d41"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgbfea35f" class="outline-3">
|
||||
<h3 id="orgbfea35f"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div id="outline-container-org636deba" class="outline-3">
|
||||
<h3 id="org636deba"><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="org2e03eee" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org33b178b" 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-orgc1e4eb6" class="outline-4">
|
||||
<h4 id="orgc1e4eb6"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org0f2b526" class="outline-4">
|
||||
<h4 id="org0f2b526"><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-org140fec7" class="outline-4">
|
||||
<h4 id="org140fec7"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgd2f5aa2" class="outline-4">
|
||||
<h4 id="orgd2f5aa2"><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-org7e1ae3d" class="outline-4">
|
||||
<h4 id="org7e1ae3d"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgccb57a0" class="outline-4">
|
||||
<h4 id="orgccb57a0"><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>
|
||||
@ -995,8 +995,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb70ee66" class="outline-4">
|
||||
<h4 id="orgb70ee66"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgc9b5268" class="outline-4">
|
||||
<h4 id="orgc9b5268"><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.
|
||||
@ -1006,12 +1006,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0334803" class="outline-2">
|
||||
<h2 id="org0334803"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div id="outline-container-org1894bbb" class="outline-2">
|
||||
<h2 id="org1894bbb"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orgbc68821" class="outline-3">
|
||||
<h3 id="orgbc68821"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div id="outline-container-orgaeffe00" class="outline-3">
|
||||
<h3 id="orgaeffe00"><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
|
||||
@ -1029,7 +1029,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="org2842c97" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org688e33f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1137,8 +1137,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5b1830e" class="outline-4">
|
||||
<h4 id="org5b1830e"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org33ddcad" class="outline-4">
|
||||
<h4 id="org33ddcad"><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>
|
||||
@ -1156,8 +1156,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbb8a61e" class="outline-4">
|
||||
<h4 id="orgbb8a61e"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-orga355d9b" class="outline-4">
|
||||
<h4 id="orga355d9b"><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> (
|
||||
@ -1178,8 +1178,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1251817" class="outline-4">
|
||||
<h4 id="org1251817"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-org1bf872b" class="outline-4">
|
||||
<h4 id="org1bf872b"><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>
|
||||
@ -1329,8 +1329,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org813e349" class="outline-4">
|
||||
<h4 id="org813e349"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgd97aab6" class="outline-4">
|
||||
<h4 id="orgd97aab6"><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.
|
||||
@ -1339,12 +1339,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org9b72497" class="outline-2">
|
||||
<h2 id="org9b72497"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div id="outline-container-orgeb2ee80" class="outline-2">
|
||||
<h2 id="orgeb2ee80"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-orgef62c08" class="outline-3">
|
||||
<h3 id="orgef62c08"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_gl</code></h3>
|
||||
<div id="outline-container-orgca332e1" class="outline-3">
|
||||
<h3 id="orgca332e1"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_gl</code></h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
<code>qmckl_distance_rescaled_gl</code> computes the matrix of the gradient and Laplacian of the
|
||||
@ -1399,7 +1399,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="orgd2855b5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1a21a8f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1731,7 +1731,7 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-09-12 Tue 15:52</p>
|
||||
<p class="date">Created: 2023-09-13 Wed 11:24</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-09-12 Tue 15:51 -->
|
||||
<!-- 2023-09-13 Wed 11:24 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Electrons</title>
|
||||
@ -346,59 +346,59 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgbda73cc">1. Context</a>
|
||||
<li><a href="#org3e93fa1">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgcad2eb1">1.1. Data structure</a></li>
|
||||
<li><a href="#org8d13e84">1.2. Initialization functions</a></li>
|
||||
<li><a href="#orge9e645e">1.3. Access functions</a>
|
||||
<li><a href="#orgc895d51">1.1. Data structure</a></li>
|
||||
<li><a href="#org4e8b1ca">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org7ed9ce7">1.3. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org9356381">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#org52d67a3">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#org9eb942c">1.3.3. Electron coordinates</a></li>
|
||||
<li><a href="#orgd404b2d">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#orga65e3b0">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#orgd6806ca">1.3.3. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3f899a6">1.4. Test</a></li>
|
||||
<li><a href="#orgec51cca">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org27c2e29">2. Computation</a>
|
||||
<li><a href="#org3a9f240">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org520cc99">2.1. Electron-electron distances</a>
|
||||
<li><a href="#orgcb37d97">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#org851faad">2.1.1. Get</a></li>
|
||||
<li><a href="#org9aa87f8">2.1.2. Compute</a></li>
|
||||
<li><a href="#org2ed4b7a">2.1.3. Test</a></li>
|
||||
<li><a href="#orgea26d00">2.1.1. Get</a></li>
|
||||
<li><a href="#org4819412">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgc12c553">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga260fb2">2.2. Electron-electron potential</a>
|
||||
<li><a href="#org6fa6753">2.2. Electron-electron potential</a>
|
||||
<ul>
|
||||
<li><a href="#org1cad526">2.2.1. Get</a></li>
|
||||
<li><a href="#orga1b9ffe">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgf308493">2.2.3. Test</a></li>
|
||||
<li><a href="#org830646d">2.2.1. Get</a></li>
|
||||
<li><a href="#org7aa7f6c">2.2.2. Compute</a></li>
|
||||
<li><a href="#org4b7cb93">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6ccbbf6">2.3. Electron-nucleus distances</a>
|
||||
<li><a href="#orgda764ef">2.3. Electron-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org0c8b18e">2.3.1. Get</a></li>
|
||||
<li><a href="#org39ff461">2.3.2. Compute</a></li>
|
||||
<li><a href="#orgd3ef60b">2.3.3. Test</a></li>
|
||||
<li><a href="#org06e5d86">2.3.1. Get</a></li>
|
||||
<li><a href="#org9b60561">2.3.2. Compute</a></li>
|
||||
<li><a href="#org95947e2">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc084162">2.4. Electron-nucleus potential</a>
|
||||
<li><a href="#org0863ba0">2.4. Electron-nucleus potential</a>
|
||||
<ul>
|
||||
<li><a href="#orgbe8504e">2.4.1. Get</a></li>
|
||||
<li><a href="#org3cab436">2.4.2. Compute</a></li>
|
||||
<li><a href="#orgb75ffd4">2.4.3. Test</a></li>
|
||||
<li><a href="#org65e9392">2.4.1. Get</a></li>
|
||||
<li><a href="#orga378b71">2.4.2. Compute</a></li>
|
||||
<li><a href="#org88dfadd">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc5f3688">2.5. Generate initial coordinates</a></li>
|
||||
<li><a href="#org5879d06">2.5. Generate initial coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbda73cc" class="outline-2">
|
||||
<h2 id="orgbda73cc"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org3e93fa1" class="outline-2">
|
||||
<h2 id="org3e93fa1"><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-orgcad2eb1" class="outline-3">
|
||||
<h3 id="orgcad2eb1"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgc895d51" class="outline-3">
|
||||
<h3 id="orgc895d51"><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-org8d13e84" class="outline-3">
|
||||
<h3 id="org8d13e84"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-org4e8b1ca" class="outline-3">
|
||||
<h3 id="org4e8b1ca"><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-orge9e645e" class="outline-3">
|
||||
<h3 id="orge9e645e"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div id="outline-container-org7ed9ce7" class="outline-3">
|
||||
<h3 id="org7ed9ce7"><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-org9356381" class="outline-4">
|
||||
<h4 id="org9356381"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
<div id="outline-container-orgd404b2d" class="outline-4">
|
||||
<h4 id="orgd404b2d"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org52d67a3" class="outline-4">
|
||||
<h4 id="org52d67a3"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
||||
<div id="outline-container-orga65e3b0" class="outline-4">
|
||||
<h4 id="orga65e3b0"><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-org9eb942c" class="outline-4">
|
||||
<h4 id="org9eb942c"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
||||
<div id="outline-container-orgd6806ca" class="outline-4">
|
||||
<h4 id="orgd6806ca"><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-org3f899a6" class="outline-3">
|
||||
<h3 id="org3f899a6"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orgec51cca" class="outline-3">
|
||||
<h3 id="orgec51cca"><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-org27c2e29" class="outline-2">
|
||||
<h2 id="org27c2e29"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org3a9f240" class="outline-2">
|
||||
<h2 id="org3a9f240"><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-org520cc99" class="outline-3">
|
||||
<h3 id="org520cc99"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-orgcb37d97" class="outline-3">
|
||||
<h3 id="orgcb37d97"><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-org851faad" class="outline-4">
|
||||
<h4 id="org851faad"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orgea26d00" class="outline-4">
|
||||
<h4 id="orgea26d00"><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-org9aa87f8" class="outline-4">
|
||||
<h4 id="org9aa87f8"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org4819412" class="outline-4">
|
||||
<h4 id="org4819412"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org2506c2d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5e691fc" 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-org2ed4b7a" class="outline-4">
|
||||
<h4 id="org2ed4b7a"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orgc12c553" class="outline-4">
|
||||
<h4 id="orgc12c553"><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-orga260fb2" class="outline-3">
|
||||
<h3 id="orga260fb2"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
||||
<div id="outline-container-org6fa6753" class="outline-3">
|
||||
<h3 id="org6fa6753"><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-org1cad526" class="outline-4">
|
||||
<h4 id="org1cad526"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org830646d" class="outline-4">
|
||||
<h4 id="org830646d"><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-orga1b9ffe" class="outline-4">
|
||||
<h4 id="orga1b9ffe"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org7aa7f6c" class="outline-4">
|
||||
<h4 id="org7aa7f6c"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="org36b26f1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7a6463a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1160,8 +1160,8 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf308493" class="outline-4">
|
||||
<h4 id="orgf308493"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org4b7cb93" class="outline-4">
|
||||
<h4 id="org4b7cb93"><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-org6ccbbf6" class="outline-3">
|
||||
<h3 id="org6ccbbf6"><span class="section-number-3">2.3</span> Electron-nucleus distances</h3>
|
||||
<div id="outline-container-orgda764ef" class="outline-3">
|
||||
<h3 id="orgda764ef"><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-org0c8b18e" class="outline-4">
|
||||
<h4 id="org0c8b18e"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org06e5d86" class="outline-4">
|
||||
<h4 id="org06e5d86"><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-org39ff461" class="outline-4">
|
||||
<h4 id="org39ff461"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-org9b60561" class="outline-4">
|
||||
<h4 id="org9b60561"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org5d9635c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5b4a5d2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1297,8 +1297,8 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd3ef60b" class="outline-4">
|
||||
<h4 id="orgd3ef60b"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-org95947e2" class="outline-4">
|
||||
<h4 id="org95947e2"><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">
|
||||
@ -1346,8 +1346,8 @@ rc = qmckl_get_electron_en_distance(context, &(en_distance[0][0][0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc084162" class="outline-3">
|
||||
<h3 id="orgc084162"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
||||
<div id="outline-container-org0863ba0" class="outline-3">
|
||||
<h3 id="org0863ba0"><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
|
||||
@ -1365,8 +1365,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbe8504e" class="outline-4">
|
||||
<h4 id="orgbe8504e"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org65e9392" class="outline-4">
|
||||
<h4 id="org65e9392"><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>);
|
||||
@ -1375,10 +1375,10 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3cab436" class="outline-4">
|
||||
<h4 id="org3cab436"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-orga378b71" class="outline-4">
|
||||
<h4 id="orga378b71"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="org9382031" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd63c5ea" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1512,8 +1512,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb75ffd4" class="outline-4">
|
||||
<h4 id="orgb75ffd4"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-org88dfadd" class="outline-4">
|
||||
<h4 id="org88dfadd"><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];
|
||||
@ -1526,14 +1526,14 @@ rc = qmckl_get_electron_en_potential(context, &(en_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc5f3688" class="outline-3">
|
||||
<h3 id="orgc5f3688"><span class="section-number-3">2.5</span> Generate initial coordinates</h3>
|
||||
<div id="outline-container-org5879d06" class="outline-3">
|
||||
<h3 id="org5879d06"><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-09-12 Tue 15:51</p>
|
||||
<p class="date">Created: 2023-09-13 Wed 11:24</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-09-12 Tue 15:52 -->
|
||||
<!-- 2023-09-13 Wed 11:24 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Error handling</title>
|
||||
@ -324,29 +324,29 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org9e48419">-</a></li>
|
||||
<li><a href="#orged1f3d9">1. Decoding errors</a></li>
|
||||
<li><a href="#orgffd854f">2. Data structure in context</a></li>
|
||||
<li><a href="#org4f33dc8">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org6296840">4. Get the error</a></li>
|
||||
<li><a href="#org2671861">5. Failing</a></li>
|
||||
<li><a href="#org8d5cb8b">6. Last error</a>
|
||||
<li><a href="#orgb37ed99">-</a></li>
|
||||
<li><a href="#orgc312ae7">1. Decoding errors</a></li>
|
||||
<li><a href="#orgadf7ec3">2. Data structure in context</a></li>
|
||||
<li><a href="#org13af430">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org753ba4e">4. Get the error</a></li>
|
||||
<li><a href="#orgcf1cccc">5. Failing</a></li>
|
||||
<li><a href="#org45a4494">6. Last error</a>
|
||||
<ul>
|
||||
<li><a href="#orgf20538a">6.1. Fortran inteface</a></li>
|
||||
<li><a href="#orgf8574af">6.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org568127c">7. Helper functions for debugging</a>
|
||||
<li><a href="#org68983dd">7. Helper functions for debugging</a>
|
||||
<ul>
|
||||
<li><a href="#org7148a9b">7.1. Fortran inteface</a></li>
|
||||
<li><a href="#org0e8c284">7.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9e48419" class="outline-2">
|
||||
<h2 id="org9e48419">-</h2>
|
||||
<div class="outline-text-2" id="text-org9e48419">
|
||||
<div id="outline-container-orgb37ed99" class="outline-2">
|
||||
<h2 id="orgb37ed99">-</h2>
|
||||
<div class="outline-text-2" id="text-orgb37ed99">
|
||||
<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="org82bc9f3"><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="org67de374"><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="orgfe45a20" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3eb8a6d" 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-orged1f3d9" class="outline-2">
|
||||
<h2 id="orged1f3d9"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-orgc312ae7" class="outline-2">
|
||||
<h2 id="orgc312ae7"><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-orgffd854f" class="outline-2">
|
||||
<h2 id="orgffd854f"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-orgadf7ec3" class="outline-2">
|
||||
<h2 id="orgadf7ec3"><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-org4f33dc8" class="outline-2">
|
||||
<h2 id="org4f33dc8"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div id="outline-container-org13af430" class="outline-2">
|
||||
<h2 id="org13af430"><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-org6296840" class="outline-2">
|
||||
<h2 id="org6296840"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div id="outline-container-org753ba4e" class="outline-2">
|
||||
<h2 id="org753ba4e"><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-org2671861" class="outline-2">
|
||||
<h2 id="org2671861"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div id="outline-container-orgcf1cccc" class="outline-2">
|
||||
<h2 id="orgcf1cccc"><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-org8d5cb8b" class="outline-2">
|
||||
<h2 id="org8d5cb8b"><span class="section-number-2">6</span> Last error</h2>
|
||||
<div id="outline-container-org45a4494" class="outline-2">
|
||||
<h2 id="org45a4494"><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-orgf20538a" class="outline-3">
|
||||
<h3 id="orgf20538a"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-orgf8574af" class="outline-3">
|
||||
<h3 id="orgf8574af"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org568127c" class="outline-2">
|
||||
<h2 id="org568127c"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
||||
<div id="outline-container-org68983dd" class="outline-2">
|
||||
<h2 id="org68983dd"><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-org7148a9b" class="outline-3">
|
||||
<h3 id="org7148a9b"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-org0e8c284" class="outline-3">
|
||||
<h3 id="org0e8c284"><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-09-12 Tue 15:52</p>
|
||||
<p class="date">Created: 2023-09-13 Wed 11:24</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-09-12 Tue 15:52 -->
|
||||
<!-- 2023-09-13 Wed 11:24 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Code examples</title>
|
||||
@ -346,25 +346,25 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org8762609">1. Overlap matrix in the MO basis</a>
|
||||
<li><a href="#org8d6e344">1. Overlap matrix in the MO basis</a>
|
||||
<ul>
|
||||
<li><a href="#org022796e">1.1. Python</a></li>
|
||||
<li><a href="#org590924a">1.2. C</a></li>
|
||||
<li><a href="#org2d9a2c7">1.3. Fortran</a></li>
|
||||
<li><a href="#orgeab0e41">1.1. Python</a></li>
|
||||
<li><a href="#org65673ab">1.2. C</a></li>
|
||||
<li><a href="#orgd6678a2">1.3. Fortran</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4f653aa">2. Fortran</a>
|
||||
<li><a href="#org1119a9a">2. Fortran</a>
|
||||
<ul>
|
||||
<li><a href="#org2c38363">2.1. Checking errors</a></li>
|
||||
<li><a href="#org1d10d1a">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
<li><a href="#orgc8c3597">2.1. Checking errors</a></li>
|
||||
<li><a href="#org27425d7">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8762609" class="outline-2">
|
||||
<h2 id="org8762609"><span class="section-number-2">1</span> Overlap matrix in the MO basis</h2>
|
||||
<div id="outline-container-org8d6e344" class="outline-2">
|
||||
<h2 id="org8d6e344"><span class="section-number-2">1</span> Overlap matrix in the MO basis</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The focal point of this example is the numerical evaluation of the overlap
|
||||
@ -417,8 +417,8 @@ code.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org022796e" class="outline-3">
|
||||
<h3 id="org022796e"><span class="section-number-3">1.1</span> Python</h3>
|
||||
<div id="outline-container-orgeab0e41" class="outline-3">
|
||||
<h3 id="orgeab0e41"><span class="section-number-3">1.1</span> Python</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
In this example, we will compute numerically the overlap
|
||||
@ -593,8 +593,8 @@ and finally we compute the overlap between all the MOs as
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org590924a" class="outline-3">
|
||||
<h3 id="org590924a"><span class="section-number-3">1.2</span> C</h3>
|
||||
<div id="outline-container-org65673ab" class="outline-3">
|
||||
<h3 id="org65673ab"><span class="section-number-3">1.2</span> C</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
In this example, electron-nucleus cusp fitting is added.
|
||||
@ -922,8 +922,8 @@ and finally we compute the overlap between all the MOs as
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org2d9a2c7" class="outline-3">
|
||||
<h3 id="org2d9a2c7"><span class="section-number-3">1.3</span> Fortran</h3>
|
||||
<div id="outline-container-orgd6678a2" class="outline-3">
|
||||
<h3 id="orgd6678a2"><span class="section-number-3">1.3</span> Fortran</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
Here is the same piece of code translated in Fortran
|
||||
@ -1099,12 +1099,12 @@ Here is the same piece of code translated in Fortran
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org4f653aa" class="outline-2">
|
||||
<h2 id="org4f653aa"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div id="outline-container-org1119a9a" class="outline-2">
|
||||
<h2 id="org1119a9a"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org2c38363" class="outline-3">
|
||||
<h3 id="org2c38363"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div id="outline-container-orgc8c3597" class="outline-3">
|
||||
<h3 id="orgc8c3597"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
All QMCkl functions return an error code. A convenient way to handle
|
||||
@ -1113,7 +1113,7 @@ error in text format and exits the program.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90" id="org69c7c35"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<pre class="src src-f90" id="org738a65a"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl</span>
|
||||
<span style="color: #a020f0;">implicit</span> <span style="color: #228b22;">none</span>
|
||||
<span style="color: #228b22;">integer</span>(qmckl_exit_code), <span style="color: #a020f0;">intent</span>(in) ::<span style="color: #a0522d;"> rc</span>
|
||||
@ -1131,8 +1131,8 @@ error in text format and exits the program.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1d10d1a" class="outline-3">
|
||||
<h3 id="org1d10d1a"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div id="outline-container-org27425d7" class="outline-3">
|
||||
<h3 id="org27425d7"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
The following program, in Fortran, computes the values of an atomic
|
||||
@ -1351,7 +1351,7 @@ We finally print the value and Laplacian of the AO:
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-09-12 Tue 15:52</p>
|
||||
<p class="date">Created: 2023-09-13 Wed 11:24</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-09-12 Tue 15:51 -->
|
||||
<!-- 2023-09-13 Wed 11:24 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Local Energy</title>
|
||||
@ -346,44 +346,44 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org700b414">1. Context</a>
|
||||
<li><a href="#org1b493c9">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org37330cd">1.1. Data structure</a></li>
|
||||
<li><a href="#orgf8edaab">1.2. Access functions</a></li>
|
||||
<li><a href="#org8fd2f53">1.1. Data structure</a></li>
|
||||
<li><a href="#orgd8f0314">1.2. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc9cdf0d">2. Computation</a>
|
||||
<li><a href="#org9cd0bff">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgd362d9f">2.1. Kinetic energy</a>
|
||||
<li><a href="#org113f189">2.1. Kinetic energy</a>
|
||||
<ul>
|
||||
<li><a href="#org3a5fa40">2.1.1. Get</a></li>
|
||||
<li><a href="#org9ade565">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgb066b35">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org64b508c">2.1.4. Test</a></li>
|
||||
<li><a href="#orga3e76c7">2.1.1. Get</a></li>
|
||||
<li><a href="#org836757a">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgbf7a68c">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org3c66620">2.1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbcc884c">2.2. Potential energy</a>
|
||||
<li><a href="#orgdf2cad3">2.2. Potential energy</a>
|
||||
<ul>
|
||||
<li><a href="#org8e50d32">2.2.1. Get</a></li>
|
||||
<li><a href="#org1de3de5">2.2.2. Provide</a></li>
|
||||
<li><a href="#org670fad3">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org1809752">2.2.4. Test</a></li>
|
||||
<li><a href="#org6e22d42">2.2.1. Get</a></li>
|
||||
<li><a href="#org6f079c4">2.2.2. Provide</a></li>
|
||||
<li><a href="#org3bc605e">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org0be2033">2.2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf275d2e">2.3. Local energy</a>
|
||||
<li><a href="#org9162659">2.3. Local energy</a>
|
||||
<ul>
|
||||
<li><a href="#org4b2a695">2.3.1. Get</a></li>
|
||||
<li><a href="#orgd0656e3">2.3.2. Provide</a></li>
|
||||
<li><a href="#orga13d9b8">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#orgb1aedf6">2.3.4. Test</a></li>
|
||||
<li><a href="#orga0b2d1d">2.3.1. Get</a></li>
|
||||
<li><a href="#orgb3ea7c8">2.3.2. Provide</a></li>
|
||||
<li><a href="#org4b6c97d">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#org8115f26">2.3.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org52b203f">2.4. Drift vector</a>
|
||||
<li><a href="#org7b87069">2.4. Drift vector</a>
|
||||
<ul>
|
||||
<li><a href="#org3d70a30">2.4.1. Get</a></li>
|
||||
<li><a href="#orgf4159d8">2.4.2. Provide</a></li>
|
||||
<li><a href="#org066dd06">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org51b219e">2.4.4. Test</a></li>
|
||||
<li><a href="#org8f4f2c7">2.4.1. Get</a></li>
|
||||
<li><a href="#orgff68a4b">2.4.2. Provide</a></li>
|
||||
<li><a href="#org0c262fe">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org75c8e4b">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-org700b414" class="outline-2">
|
||||
<h2 id="org700b414"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org1b493c9" class="outline-2">
|
||||
<h2 id="org1b493c9"><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-org37330cd" class="outline-3">
|
||||
<h3 id="org37330cd"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org8fd2f53" class="outline-3">
|
||||
<h3 id="org8fd2f53"><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-orgf8edaab" class="outline-3">
|
||||
<h3 id="orgf8edaab"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgd8f0314" class="outline-3">
|
||||
<h3 id="orgd8f0314"><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-orgc9cdf0d" class="outline-2">
|
||||
<h2 id="orgc9cdf0d"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org9cd0bff" class="outline-2">
|
||||
<h2 id="org9cd0bff"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgd362d9f" class="outline-3">
|
||||
<h3 id="orgd362d9f"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div id="outline-container-org113f189" class="outline-3">
|
||||
<h3 id="org113f189"><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-org3a5fa40" class="outline-4">
|
||||
<h4 id="org3a5fa40"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orga3e76c7" class="outline-4">
|
||||
<h4 id="orga3e76c7"><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-org9ade565" class="outline-4">
|
||||
<h4 id="org9ade565"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org836757a" class="outline-4">
|
||||
<h4 id="org836757a"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb066b35" class="outline-4">
|
||||
<h4 id="orgb066b35"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
||||
<div id="outline-container-orgbf7a68c" class="outline-4">
|
||||
<h4 id="orgbf7a68c"><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="org92cf133" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgfa00ef4" 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-org64b508c" class="outline-4">
|
||||
<h4 id="org64b508c"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
<div id="outline-container-org3c66620" class="outline-4">
|
||||
<h4 id="org3c66620"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgbcc884c" class="outline-3">
|
||||
<h3 id="orgbcc884c"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div id="outline-container-orgdf2cad3" class="outline-3">
|
||||
<h3 id="orgdf2cad3"><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-org8e50d32" class="outline-4">
|
||||
<h4 id="org8e50d32"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org6e22d42" class="outline-4">
|
||||
<h4 id="org6e22d42"><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-org1de3de5" class="outline-4">
|
||||
<h4 id="org1de3de5"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org6f079c4" class="outline-4">
|
||||
<h4 id="org6f079c4"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org670fad3" class="outline-4">
|
||||
<h4 id="org670fad3"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
||||
<div id="outline-container-org3bc605e" class="outline-4">
|
||||
<h4 id="org3bc605e"><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="org16621bc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc33174f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -977,12 +977,12 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1809752" class="outline-4">
|
||||
<h4 id="org1809752"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
<div id="outline-container-org0be2033" class="outline-4">
|
||||
<h4 id="org0be2033"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgf275d2e" class="outline-3">
|
||||
<h3 id="orgf275d2e"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div id="outline-container-org9162659" class="outline-3">
|
||||
<h3 id="org9162659"><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-org4b2a695" class="outline-4">
|
||||
<h4 id="org4b2a695"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-orga0b2d1d" class="outline-4">
|
||||
<h4 id="orga0b2d1d"><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-orgd0656e3" class="outline-4">
|
||||
<h4 id="orgd0656e3"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-orgb3ea7c8" class="outline-4">
|
||||
<h4 id="orgb3ea7c8"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga13d9b8" class="outline-4">
|
||||
<h4 id="orga13d9b8"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
||||
<div id="outline-container-org4b6c97d" class="outline-4">
|
||||
<h4 id="org4b6c97d"><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="org13b866e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6715c14" 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-orgb1aedf6" class="outline-4">
|
||||
<h4 id="orgb1aedf6"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
<div id="outline-container-org8115f26" class="outline-4">
|
||||
<h4 id="org8115f26"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org52b203f" class="outline-3">
|
||||
<h3 id="org52b203f"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div id="outline-container-org7b87069" class="outline-3">
|
||||
<h3 id="org7b87069"><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-org3d70a30" class="outline-4">
|
||||
<h4 id="org3d70a30"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org8f4f2c7" class="outline-4">
|
||||
<h4 id="org8f4f2c7"><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-orgf4159d8" class="outline-4">
|
||||
<h4 id="orgf4159d8"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
<div id="outline-container-orgff68a4b" class="outline-4">
|
||||
<h4 id="orgff68a4b"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org066dd06" class="outline-4">
|
||||
<h4 id="org066dd06"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
||||
<div id="outline-container-org0c262fe" class="outline-4">
|
||||
<h4 id="org0c262fe"><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="orge668bbe" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org76cf863" 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-org51b219e" class="outline-4">
|
||||
<h4 id="org51b219e"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
<div id="outline-container-org75c8e4b" class="outline-4">
|
||||
<h4 id="org75c8e4b"><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-09-12 Tue 15:51</p>
|
||||
<p class="date">Created: 2023-09-13 Wed 11:24</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-09-12 Tue 15:51 -->
|
||||
<!-- 2023-09-13 Wed 11:24 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Memory management</title>
|
||||
@ -324,16 +324,16 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgc2394df">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org3823b6f">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orgbb7fde6">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#orgb73c83a">4. Get the size of a memory block</a></li>
|
||||
<li><a href="#orgf0aa7b0">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org570251a">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orga7607a0">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#org477f8cf">4. Get the size of a memory block</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc2394df" class="outline-2">
|
||||
<h2 id="orgc2394df"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div id="outline-container-orgf0aa7b0" class="outline-2">
|
||||
<h2 id="orgf0aa7b0"><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-org3823b6f" class="outline-2">
|
||||
<h2 id="org3823b6f"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div id="outline-container-org570251a" class="outline-2">
|
||||
<h2 id="org570251a"><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-orgbb7fde6" class="outline-2">
|
||||
<h2 id="orgbb7fde6"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-orga7607a0" class="outline-2">
|
||||
<h2 id="orga7607a0"><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
|
||||
@ -646,8 +646,8 @@ successful deallocation of the memory block.</li>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgb73c83a" class="outline-2">
|
||||
<h2 id="orgb73c83a"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
||||
<div id="outline-container-org477f8cf" class="outline-2">
|
||||
<h2 id="org477f8cf"><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
|
||||
@ -742,7 +742,7 @@ rc = qmckl_context_destroy(context);
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-09-12 Tue 15:51</p>
|
||||
<p class="date">Created: 2023-09-13 Wed 11:24</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
186
qmckl_mo.html
186
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-09-12 Tue 15:51 -->
|
||||
<!-- 2023-09-13 Wed 11:24 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Molecular Orbitals</title>
|
||||
@ -346,68 +346,68 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org99df328">1. Context</a>
|
||||
<li><a href="#org68b20ed">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org0b2107d">1.1. Data structure</a></li>
|
||||
<li><a href="#org2e0359d">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org2864677">1.3. Cusp adjsutment functions</a></li>
|
||||
<li><a href="#org7367c8b">1.4. Access functions</a>
|
||||
<li><a href="#org809942a">1.1. Data structure</a></li>
|
||||
<li><a href="#org2e977ea">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org137aa0c">1.3. Cusp adjsutment functions</a></li>
|
||||
<li><a href="#orgb0e32e7">1.4. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org7c9579c">1.4.1. Fortran interfaces</a></li>
|
||||
<li><a href="#org84c1f48">1.4.1. Fortran interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6ce05d2">1.5. Update</a>
|
||||
<li><a href="#orgbf7c977">1.5. Update</a>
|
||||
<ul>
|
||||
<li><a href="#orgb2f0294">1.5.1. Fortran interface</a></li>
|
||||
<li><a href="#org78f6fd9">1.5.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org07be812">2. Computation</a>
|
||||
<li><a href="#orge5327e5">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org488c5e9">2.1. Parameters of the cusp-correction functions</a></li>
|
||||
<li><a href="#org52c104f">2.2. Computation of MOs: values only</a>
|
||||
<li><a href="#org4b60154">2.1. Parameters of the cusp-correction functions</a></li>
|
||||
<li><a href="#org1d02fbb">2.2. Computation of MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#orgfdcc977">2.2.1. Get</a></li>
|
||||
<li><a href="#org6f75a7f">2.2.2. Provide</a></li>
|
||||
<li><a href="#org4a00093">2.2.3. Compute</a></li>
|
||||
<li><a href="#org1df6031">2.2.4. HPC version</a></li>
|
||||
<li><a href="#orgdb080d8">2.2.1. Get</a></li>
|
||||
<li><a href="#org0fc8477">2.2.2. Provide</a></li>
|
||||
<li><a href="#org388b132">2.2.3. Compute</a></li>
|
||||
<li><a href="#orga2d0ef4">2.2.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb2936f0">2.3. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<li><a href="#orga52a9ed">2.3. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#orgc1ef1d5">2.3.1. Get</a></li>
|
||||
<li><a href="#orgfc0986e">2.3.2. Provide</a></li>
|
||||
<li><a href="#org5180d2e">2.3.3. Compute</a></li>
|
||||
<li><a href="#orgebfb36f">2.3.4. HPC version</a></li>
|
||||
<li><a href="#org3f1abe5">2.3.1. Get</a></li>
|
||||
<li><a href="#orgfffa979">2.3.2. Provide</a></li>
|
||||
<li><a href="#org85032bd">2.3.3. Compute</a></li>
|
||||
<li><a href="#org7118181">2.3.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga752dcd">2.4. Computation of cusp-corrected MOs: values only</a>
|
||||
<li><a href="#orgcfe44ba">2.4. Computation of cusp-corrected MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#orga09be41">2.4.1. Compute</a></li>
|
||||
<li><a href="#org61ecc00">2.4.2. HPC version</a></li>
|
||||
<li><a href="#org9a541b2">2.4.1. Compute</a></li>
|
||||
<li><a href="#org6c63ebb">2.4.2. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9c76bae">2.5. Computation of cusp-corrected MOs: values, gradient, Laplacian</a>
|
||||
<li><a href="#org446422d">2.5. Computation of cusp-corrected MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org89c199c">2.5.1. Compute</a></li>
|
||||
<li><a href="#org337f1eb">2.5.2. HPC version</a></li>
|
||||
<li><a href="#org3035b6b">2.5.1. Compute</a></li>
|
||||
<li><a href="#org6e16d11">2.5.2. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga28560a">2.6. Rescaling of MO coefficients</a>
|
||||
<li><a href="#org9667c7b">2.6. Rescaling of MO coefficients</a>
|
||||
<ul>
|
||||
<li><a href="#orgfac97e2">2.6.1. Fortran interface</a></li>
|
||||
<li><a href="#org40fc79b">2.6.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf879852">2.7. Test</a></li>
|
||||
<li><a href="#org7211d74">2.7. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org99df328" class="outline-2">
|
||||
<h2 id="org99df328"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org68b20ed" class="outline-2">
|
||||
<h2 id="org68b20ed"><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:
|
||||
@ -486,8 +486,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0b2107d" class="outline-3">
|
||||
<h3 id="org0b2107d"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org809942a" class="outline-3">
|
||||
<h3 id="org809942a"><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> {
|
||||
@ -544,8 +544,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2e0359d" class="outline-3">
|
||||
<h3 id="org2e0359d"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-org2e977ea" class="outline-3">
|
||||
<h3 id="org2e977ea"><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
|
||||
@ -566,8 +566,8 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2864677" class="outline-3">
|
||||
<h3 id="org2864677"><span class="section-number-3">1.3</span> Cusp adjsutment functions</h3>
|
||||
<div id="outline-container-org137aa0c" class="outline-3">
|
||||
<h3 id="org137aa0c"><span class="section-number-3">1.3</span> Cusp adjsutment functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To activate the cusp adjustment, the user must enter the radius of
|
||||
@ -582,8 +582,8 @@ of the non-\(s\) AOs at the center.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7367c8b" class="outline-3">
|
||||
<h3 id="org7367c8b"><span class="section-number-3">1.4</span> Access functions</h3>
|
||||
<div id="outline-container-orgb0e32e7" class="outline-3">
|
||||
<h3 id="orgb0e32e7"><span class="section-number-3">1.4</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
When all the data for the AOs have been provided, the following
|
||||
@ -596,13 +596,13 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7c9579c" class="outline-4">
|
||||
<h4 id="org7c9579c"><span class="section-number-4">1.4.1</span> Fortran interfaces</h4>
|
||||
<div id="outline-container-org84c1f48" class="outline-4">
|
||||
<h4 id="org84c1f48"><span class="section-number-4">1.4.1</span> Fortran interfaces</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6ce05d2" class="outline-3">
|
||||
<h3 id="org6ce05d2"><span class="section-number-3">1.5</span> Update</h3>
|
||||
<div id="outline-container-orgbf7c977" class="outline-3">
|
||||
<h3 id="orgbf7c977"><span class="section-number-3">1.5</span> Update</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
It may be desirable to remove certain molecular orbitals (MOs) that
|
||||
@ -629,25 +629,25 @@ calculation. If the integer is non-zero, the MO will be kept.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb2f0294" class="outline-4">
|
||||
<h4 id="orgb2f0294"><span class="section-number-4">1.5.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-org78f6fd9" class="outline-4">
|
||||
<h4 id="org78f6fd9"><span class="section-number-4">1.5.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org07be812" class="outline-2">
|
||||
<h2 id="org07be812"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orge5327e5" class="outline-2">
|
||||
<h2 id="orge5327e5"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org488c5e9" class="outline-3">
|
||||
<h3 id="org488c5e9"><span class="section-number-3">2.1</span> Parameters of the cusp-correction functions</h3>
|
||||
<div id="outline-container-org4b60154" class="outline-3">
|
||||
<h3 id="org4b60154"><span class="section-number-3">2.1</span> Parameters of the cusp-correction functions</h3>
|
||||
</div>
|
||||
<div id="outline-container-org52c104f" class="outline-3">
|
||||
<h3 id="org52c104f"><span class="section-number-3">2.2</span> Computation of MOs: values only</h3>
|
||||
<div id="outline-container-org1d02fbb" class="outline-3">
|
||||
<h3 id="org1d02fbb"><span class="section-number-3">2.2</span> Computation of MOs: values only</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
</div>
|
||||
<div id="outline-container-orgfdcc977" class="outline-4">
|
||||
<h4 id="orgfdcc977"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgdb080d8" class="outline-4">
|
||||
<h4 id="orgdb080d8"><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>
|
||||
@ -671,8 +671,8 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6f75a7f" class="outline-4">
|
||||
<h4 id="org6f75a7f"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org0fc8477" class="outline-4">
|
||||
<h4 id="org0fc8477"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_provide_mo_basis_mo_value</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>);
|
||||
@ -757,10 +757,10 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4a00093" class="outline-4">
|
||||
<h4 id="org4a00093"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div id="outline-container-org388b132" class="outline-4">
|
||||
<h4 id="org388b132"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org5cdd161" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org65ed178" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -915,8 +915,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1df6031" class="outline-4">
|
||||
<h4 id="org1df6031"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
||||
<div id="outline-container-orga2d0ef4" class="outline-4">
|
||||
<h4 id="orga2d0ef4"><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
|
||||
@ -1009,12 +1009,12 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb2936f0" class="outline-3">
|
||||
<h3 id="orgb2936f0"><span class="section-number-3">2.3</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-orga52a9ed" class="outline-3">
|
||||
<h3 id="orga52a9ed"><span class="section-number-3">2.3</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
</div>
|
||||
<div id="outline-container-orgc1ef1d5" class="outline-4">
|
||||
<h4 id="orgc1ef1d5"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org3f1abe5" class="outline-4">
|
||||
<h4 id="org3f1abe5"><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>
|
||||
@ -1038,8 +1038,8 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfc0986e" class="outline-4">
|
||||
<h4 id="orgfc0986e"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-orgfffa979" class="outline-4">
|
||||
<h4 id="orgfffa979"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_provide_mo_basis_mo_vgl</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>);
|
||||
@ -1123,10 +1123,10 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5180d2e" class="outline-4">
|
||||
<h4 id="org5180d2e"><span class="section-number-4">2.3.3</span> Compute</h4>
|
||||
<div id="outline-container-org85032bd" class="outline-4">
|
||||
<h4 id="org85032bd"><span class="section-number-4">2.3.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-3">
|
||||
<table id="org116cd00" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org672e33c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1299,8 +1299,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgebfb36f" class="outline-4">
|
||||
<h4 id="orgebfb36f"><span class="section-number-4">2.3.4</span> HPC version</h4>
|
||||
<div id="outline-container-org7118181" class="outline-4">
|
||||
<h4 id="org7118181"><span class="section-number-4">2.3.4</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-2-3-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
@ -1446,14 +1446,14 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga752dcd" class="outline-3">
|
||||
<h3 id="orga752dcd"><span class="section-number-3">2.4</span> Computation of cusp-corrected MOs: values only</h3>
|
||||
<div id="outline-container-orgcfe44ba" class="outline-3">
|
||||
<h3 id="orgcfe44ba"><span class="section-number-3">2.4</span> Computation of cusp-corrected MOs: values only</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
</div>
|
||||
<div id="outline-container-orga09be41" class="outline-4">
|
||||
<h4 id="orga09be41"><span class="section-number-4">2.4.1</span> Compute</h4>
|
||||
<div id="outline-container-org9a541b2" class="outline-4">
|
||||
<h4 id="org9a541b2"><span class="section-number-4">2.4.1</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<table id="org7e91366" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5d2e3e1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1692,8 +1692,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org61ecc00" class="outline-4">
|
||||
<h4 id="org61ecc00"><span class="section-number-4">2.4.2</span> HPC version</h4>
|
||||
<div id="outline-container-org6c63ebb" class="outline-4">
|
||||
<h4 id="org6c63ebb"><span class="section-number-4">2.4.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
@ -1818,14 +1818,14 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9c76bae" class="outline-3">
|
||||
<h3 id="org9c76bae"><span class="section-number-3">2.5</span> Computation of cusp-corrected MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-org446422d" class="outline-3">
|
||||
<h3 id="org446422d"><span class="section-number-3">2.5</span> Computation of cusp-corrected MOs: values, gradient, Laplacian</h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
</div>
|
||||
<div id="outline-container-org89c199c" class="outline-4">
|
||||
<h4 id="org89c199c"><span class="section-number-4">2.5.1</span> Compute</h4>
|
||||
<div id="outline-container-org3035b6b" class="outline-4">
|
||||
<h4 id="org3035b6b"><span class="section-number-4">2.5.1</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-5-1">
|
||||
<table id="orgd353f7a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org21c554e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2121,8 +2121,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org337f1eb" class="outline-4">
|
||||
<h4 id="org337f1eb"><span class="section-number-4">2.5.2</span> HPC version</h4>
|
||||
<div id="outline-container-org6e16d11" class="outline-4">
|
||||
<h4 id="org6e16d11"><span class="section-number-4">2.5.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-2-5-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
@ -2323,8 +2323,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga28560a" class="outline-3">
|
||||
<h3 id="orga28560a"><span class="section-number-3">2.6</span> Rescaling of MO coefficients</h3>
|
||||
<div id="outline-container-org9667c7b" class="outline-3">
|
||||
<h3 id="org9667c7b"><span class="section-number-3">2.6</span> Rescaling of MO coefficients</h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
When evaluating Slater determinants, the value of the determinants
|
||||
@ -2341,19 +2341,19 @@ correct range.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfac97e2" class="outline-4">
|
||||
<h4 id="orgfac97e2"><span class="section-number-4">2.6.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-org40fc79b" class="outline-4">
|
||||
<h4 id="org40fc79b"><span class="section-number-4">2.6.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf879852" class="outline-3">
|
||||
<h3 id="orgf879852"><span class="section-number-3">2.7</span> Test</h3>
|
||||
<div id="outline-container-org7211d74" class="outline-3">
|
||||
<h3 id="org7211d74"><span class="section-number-3">2.7</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-09-12 Tue 15:51</p>
|
||||
<p class="date">Created: 2023-09-13 Wed 11:24</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-09-12 Tue 15:52 -->
|
||||
<!-- 2023-09-13 Wed 11:24 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Nucleus</title>
|
||||
@ -346,28 +346,28 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgd43c695">1. Context</a>
|
||||
<li><a href="#orgec3aee1">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org5d6760d">1.1. Data structure</a></li>
|
||||
<li><a href="#org5906be6">1.2. Access functions</a></li>
|
||||
<li><a href="#org9f63f30">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org3229e50">1.4. Test</a></li>
|
||||
<li><a href="#orgd9ac4f2">1.1. Data structure</a></li>
|
||||
<li><a href="#orge4c0607">1.2. Access functions</a></li>
|
||||
<li><a href="#org560240f">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org341bb2e">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge900d26">2. Computation</a>
|
||||
<li><a href="#org4aa87bc">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org78c7ca8">2.1. Nucleus-nucleus distances</a>
|
||||
<li><a href="#orgf028723">2.1. Nucleus-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgea31ca0">2.1.1. Get</a></li>
|
||||
<li><a href="#org997147d">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgfddf97f">2.1.3. Test</a></li>
|
||||
<li><a href="#org8b9e9e0">2.1.1. Get</a></li>
|
||||
<li><a href="#orgdb5b397">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgaeda2f7">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgda75afc">2.2. Nuclear repulsion energy</a>
|
||||
<li><a href="#org8d01ad9">2.2. Nuclear repulsion energy</a>
|
||||
<ul>
|
||||
<li><a href="#org9f1357e">2.2.1. Get</a></li>
|
||||
<li><a href="#orgebd4e4f">2.2.2. Compute</a></li>
|
||||
<li><a href="#org6c90dce">2.2.3. Test</a></li>
|
||||
<li><a href="#org023a831">2.2.1. Get</a></li>
|
||||
<li><a href="#org5035a8b">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgf6daa7b">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-orgd43c695" class="outline-2">
|
||||
<h2 id="orgd43c695"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgec3aee1" class="outline-2">
|
||||
<h2 id="orgec3aee1"><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-org5d6760d" class="outline-3">
|
||||
<h3 id="org5d6760d"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgd9ac4f2" class="outline-3">
|
||||
<h3 id="orgd9ac4f2"><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-org5906be6" class="outline-3">
|
||||
<h3 id="org5906be6"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orge4c0607" class="outline-3">
|
||||
<h3 id="orge4c0607"><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-org9f63f30" class="outline-3">
|
||||
<h3 id="org9f63f30"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org560240f" class="outline-3">
|
||||
<h3 id="org560240f"><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-org3229e50" class="outline-3">
|
||||
<h3 id="org3229e50"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org341bb2e" class="outline-3">
|
||||
<h3 id="org341bb2e"><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-orge900d26" class="outline-2">
|
||||
<h2 id="orge900d26"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org4aa87bc" class="outline-2">
|
||||
<h2 id="org4aa87bc"><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-org78c7ca8" class="outline-3">
|
||||
<h3 id="org78c7ca8"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div id="outline-container-orgf028723" class="outline-3">
|
||||
<h3 id="orgf028723"><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-orgea31ca0" class="outline-4">
|
||||
<h4 id="orgea31ca0"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org8b9e9e0" class="outline-4">
|
||||
<h4 id="org8b9e9e0"><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-org997147d" class="outline-4">
|
||||
<h4 id="org997147d"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-orgdb5b397" class="outline-4">
|
||||
<h4 id="orgdb5b397"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org1d8a753" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgbd942c4" 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-orgfddf97f" class="outline-4">
|
||||
<h4 id="orgfddf97f"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orgaeda2f7" class="outline-4">
|
||||
<h4 id="orgaeda2f7"><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-orgda75afc" class="outline-3">
|
||||
<h3 id="orgda75afc"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
||||
<div id="outline-container-org8d01ad9" class="outline-3">
|
||||
<h3 id="org8d01ad9"><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-org9f1357e" class="outline-4">
|
||||
<h4 id="org9f1357e"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org023a831" class="outline-4">
|
||||
<h4 id="org023a831"><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-orgebd4e4f" class="outline-4">
|
||||
<h4 id="orgebd4e4f"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org5035a8b" class="outline-4">
|
||||
<h4 id="org5035a8b"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orgf093bbd" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgdfa5642" 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-org6c90dce" class="outline-4">
|
||||
<h4 id="org6c90dce"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-orgf6daa7b" class="outline-4">
|
||||
<h4 id="orgf6daa7b"><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-09-12 Tue 15:52</p>
|
||||
<p class="date">Created: 2023-09-13 Wed 11:24</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-09-12 Tue 15:52 -->
|
||||
<!-- 2023-09-13 Wed 11:24 -->
|
||||
<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="#org094369b">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org8b50966">2. Precision</a></li>
|
||||
<li><a href="#org2a60a43">3. Range</a></li>
|
||||
<li><a href="#orgd9e73c6">4. Helper functions</a></li>
|
||||
<li><a href="#org7aded4f">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org17d1d3d">2. Precision</a></li>
|
||||
<li><a href="#org8872278">3. Range</a></li>
|
||||
<li><a href="#org068b2b1">4. Helper functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org094369b" class="outline-2">
|
||||
<h2 id="org094369b"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-org7aded4f" class="outline-2">
|
||||
<h2 id="org7aded4f"><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="orgda2c2d8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org76e990a" 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-org8b50966" class="outline-2">
|
||||
<h2 id="org8b50966"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-org17d1d3d" class="outline-2">
|
||||
<h2 id="org17d1d3d"><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-org2a60a43" class="outline-2">
|
||||
<h2 id="org2a60a43"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-org8872278" class="outline-2">
|
||||
<h2 id="org8872278"><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-orgd9e73c6" class="outline-2">
|
||||
<h2 id="orgd9e73c6"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-org068b2b1" class="outline-2">
|
||||
<h2 id="org068b2b1"><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-09-12 Tue 15:52</p>
|
||||
<p class="date">Created: 2023-09-13 Wed 11:24</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-09-12 Tue 15:52 -->
|
||||
<!-- 2023-09-13 Wed 11:24 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Point</title>
|
||||
@ -346,25 +346,25 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgdd00751">1. Context</a>
|
||||
<li><a href="#org844a6f1">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgbe1c3fc">1.1. Data structure</a></li>
|
||||
<li><a href="#orgba333d2">1.2. Access functions</a>
|
||||
<li><a href="#org14fea28">1.1. Data structure</a></li>
|
||||
<li><a href="#org86a8063">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org6e94114">1.2.1. Number of points</a></li>
|
||||
<li><a href="#orgc2726ec">1.2.2. Point coordinates</a></li>
|
||||
<li><a href="#orgb1745ab">1.2.1. Number of points</a></li>
|
||||
<li><a href="#org93877fe">1.2.2. Point coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org294f33d">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org3c2f51e">1.4. Test</a></li>
|
||||
<li><a href="#org98f43a3">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org92f5c27">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdd00751" class="outline-2">
|
||||
<h2 id="orgdd00751"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org844a6f1" class="outline-2">
|
||||
<h2 id="org844a6f1"><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-orgbe1c3fc" class="outline-3">
|
||||
<h3 id="orgbe1c3fc"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org14fea28" class="outline-3">
|
||||
<h3 id="org14fea28"><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-orgba333d2" class="outline-3">
|
||||
<h3 id="orgba333d2"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org86a8063" class="outline-3">
|
||||
<h3 id="org86a8063"><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-org6e94114" class="outline-4">
|
||||
<h4 id="org6e94114"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div id="outline-container-orgb1745ab" class="outline-4">
|
||||
<h4 id="orgb1745ab"><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-orgc2726ec" class="outline-4">
|
||||
<h4 id="orgc2726ec"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div id="outline-container-org93877fe" class="outline-4">
|
||||
<h4 id="org93877fe"><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-org294f33d" class="outline-3">
|
||||
<h3 id="org294f33d"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org98f43a3" class="outline-3">
|
||||
<h3 id="org98f43a3"><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-org3c2f51e" class="outline-3">
|
||||
<h3 id="org3c2f51e"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org92f5c27" class="outline-3">
|
||||
<h3 id="org92f5c27"><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-09-12 Tue 15:52</p>
|
||||
<p class="date">Created: 2023-09-13 Wed 11:24</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-09-12 Tue 15:52 -->
|
||||
<!-- 2023-09-13 Wed 11:24 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Sherman-Morrison-Woodbury</title>
|
||||
@ -346,118 +346,118 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org6566808">1. Headers</a></li>
|
||||
<li><a href="#org2c4f0db">2. Naïve Sherman-Morrison</a>
|
||||
<li><a href="#orgc6cbcb2">1. Headers</a></li>
|
||||
<li><a href="#orge227262">2. Naïve Sherman-Morrison</a>
|
||||
<ul>
|
||||
<li><a href="#orgf39b6c0">2.1. <code>qmckl_sm_naive</code></a>
|
||||
<li><a href="#orgadde2b2">2.1. <code>qmckl_sm_naive</code></a>
|
||||
<ul>
|
||||
<li><a href="#org2918ee0">2.1.1. Introduction</a></li>
|
||||
<li><a href="#orgc953c6e">2.1.2. API</a></li>
|
||||
<li><a href="#org936e3f5">2.1.3. Requirements</a></li>
|
||||
<li><a href="#org3422f34">2.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org49e3cc7">2.1.1. Introduction</a></li>
|
||||
<li><a href="#orga3f8831">2.1.2. API</a></li>
|
||||
<li><a href="#orgf8b6cf4">2.1.3. Requirements</a></li>
|
||||
<li><a href="#org473fa72">2.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#org2b690df">2.1.4.1. C interface (not directly exposed)</a></li>
|
||||
<li><a href="#orgb3c0bf2">2.1.4.1. C interface (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6a5d800">2.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org244963b">2.1.6. C sources</a></li>
|
||||
<li><a href="#org6e37c15">2.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgda67c3e">2.1.8. Performance</a></li>
|
||||
<li><a href="#org623f695">2.1.9. Tests</a></li>
|
||||
<li><a href="#org569b3cf">2.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orgf2e0aab">2.1.6. C sources</a></li>
|
||||
<li><a href="#orgf2b69c7">2.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgbb69735">2.1.8. Performance</a></li>
|
||||
<li><a href="#org5f98468">2.1.9. Tests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf2e5276">3. Sherman-Morrison with Slagel Splitting (core)</a>
|
||||
<li><a href="#org5e00947">3. Sherman-Morrison with Slagel Splitting (core)</a>
|
||||
<ul>
|
||||
<li><a href="#org7189ef6">3.1. <code>qmckl_sm_splitting_core</code></a>
|
||||
<li><a href="#org2eaa5b6">3.1. <code>qmckl_sm_splitting_core</code></a>
|
||||
<ul>
|
||||
<li><a href="#org6aa11a5">3.1.1. Introduction</a></li>
|
||||
<li><a href="#org4895e24">3.1.2. API</a></li>
|
||||
<li><a href="#orgdcd18c4">3.1.3. Requirements</a></li>
|
||||
<li><a href="#orgbddb9fc">3.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#orge8c7b8a">3.1.1. Introduction</a></li>
|
||||
<li><a href="#org55f90bb">3.1.2. API</a></li>
|
||||
<li><a href="#org4221b89">3.1.3. Requirements</a></li>
|
||||
<li><a href="#org6747399">3.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#org2c74f36">3.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
<li><a href="#org7354c55">3.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc4cdcee">3.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orgc7cf0af">3.1.6. C sources</a></li>
|
||||
<li><a href="#org56fb168">3.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgfff8a67">3.1.8. Performance</a></li>
|
||||
<li><a href="#org59dde34">3.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org64d7ec9">3.1.6. C sources</a></li>
|
||||
<li><a href="#org68b954b">3.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgb8931d2">3.1.8. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge2e4abe">4. Woodbury 2x2</a>
|
||||
<li><a href="#orgba1a52a">4. Woodbury 2x2</a>
|
||||
<ul>
|
||||
<li><a href="#org148bbf2">4.1. <code>qmckl_woodbury_2x2</code></a>
|
||||
<li><a href="#org07ecda2">4.1. <code>qmckl_woodbury_2x2</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgb78a606">4.1.1. Introduction</a></li>
|
||||
<li><a href="#org8e13912">4.1.2. API</a></li>
|
||||
<li><a href="#org1dff0e7">4.1.3. Requirements</a></li>
|
||||
<li><a href="#org37b3345">4.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org9c98670">4.1.1. Introduction</a></li>
|
||||
<li><a href="#org697719a">4.1.2. API</a></li>
|
||||
<li><a href="#orgf162228">4.1.3. Requirements</a></li>
|
||||
<li><a href="#orgf40bb7a">4.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#org48c2761">4.1.4.1. C interface (not directly exposed)</a></li>
|
||||
<li><a href="#org38fc472">4.1.4.1. C interface (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgaf63200">4.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orgb3265df">4.1.6. C sources</a></li>
|
||||
<li><a href="#org271269c">4.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org2c3defc">4.1.8. Performance</a></li>
|
||||
<li><a href="#org4ef10e3">4.1.9. Tests</a></li>
|
||||
<li><a href="#org01a395b">4.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orge486d54">4.1.6. C sources</a></li>
|
||||
<li><a href="#org752f206">4.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org6bf59a5">4.1.8. Performance</a></li>
|
||||
<li><a href="#orga83caf1">4.1.9. Tests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9318233">5. Woodbury 3x3</a>
|
||||
<li><a href="#orgc107db5">5. Woodbury 3x3</a>
|
||||
<ul>
|
||||
<li><a href="#org85e131f">5.1. <code>qmckl_woodbury_3x3</code></a>
|
||||
<li><a href="#org3b86e1e">5.1. <code>qmckl_woodbury_3x3</code></a>
|
||||
<ul>
|
||||
<li><a href="#org6cbc8a8">5.1.1. Introduction</a></li>
|
||||
<li><a href="#orgbc09176">5.1.2. API</a></li>
|
||||
<li><a href="#org14a6848">5.1.3. Requirements</a></li>
|
||||
<li><a href="#orgb48bad4">5.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org12b5de1">5.1.1. Introduction</a></li>
|
||||
<li><a href="#org4bdaa23">5.1.2. API</a></li>
|
||||
<li><a href="#org1c76589">5.1.3. Requirements</a></li>
|
||||
<li><a href="#orgeed53ca">5.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#org7a771f3">5.1.4.1. C interface (not directly exposed)</a></li>
|
||||
<li><a href="#org05aa151">5.1.4.1. C interface (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2a1cbb7">5.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orgbd228ba">5.1.6. C sources</a></li>
|
||||
<li><a href="#org8fff586">5.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orge354956">5.1.8. Performance</a></li>
|
||||
<li><a href="#orgf980689">5.1.9. Tests</a></li>
|
||||
<li><a href="#orgd2e7535">5.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org84afe4a">5.1.6. C sources</a></li>
|
||||
<li><a href="#orgaa01858">5.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org65a50e1">5.1.8. Performance</a></li>
|
||||
<li><a href="#orgaff160f">5.1.9. Tests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc6aac47">6. Sherman-Morrison with Slagel Splitting</a>
|
||||
<li><a href="#orgdbefaa7">6. Sherman-Morrison with Slagel Splitting</a>
|
||||
<ul>
|
||||
<li><a href="#org417ea5f">6.1. <code>qmckl_sm_splitting</code></a>
|
||||
<li><a href="#org389b60e">6.1. <code>qmckl_sm_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgdfad929">6.1.1. Introduction</a></li>
|
||||
<li><a href="#org2433926">6.1.2. API</a></li>
|
||||
<li><a href="#orgfd3a242">6.1.3. Requirements</a></li>
|
||||
<li><a href="#org1e0d641">6.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#orgdc65d2b">6.1.1. Introduction</a></li>
|
||||
<li><a href="#orgf3502aa">6.1.2. API</a></li>
|
||||
<li><a href="#orgdccfef7">6.1.3. Requirements</a></li>
|
||||
<li><a href="#org81c8636">6.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#orgc776181">6.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
<li><a href="#org25f8988">6.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb19673a">6.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org8697525">6.1.6. C source</a></li>
|
||||
<li><a href="#org285add5">6.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgec1b017">6.1.8. Performance…</a></li>
|
||||
<li><a href="#org427aa79">6.1.9. Test</a></li>
|
||||
<li><a href="#org2c41bc1">6.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orga8ff588">6.1.6. C source</a></li>
|
||||
<li><a href="#orgd96f4af">6.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgbb6c68b">6.1.8. Performance…</a></li>
|
||||
<li><a href="#org0d25fc8">6.1.9. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org35e87bd">7. End of files</a></li>
|
||||
<li><a href="#org598de9f">7. End of files</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6566808" class="outline-2">
|
||||
<h2 id="org6566808"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div id="outline-container-orgc6cbcb2" class="outline-2">
|
||||
<h2 id="orgc6cbcb2"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;">"qmckl.h"</span>
|
||||
@ -479,17 +479,17 @@ This is the range that determines the how many high performance kernel instantce
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org2c4f0db" class="outline-2">
|
||||
<h2 id="org2c4f0db"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
||||
<div id="outline-container-orge227262" class="outline-2">
|
||||
<h2 id="orge227262"><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-orgf39b6c0" class="outline-3">
|
||||
<h3 id="orgf39b6c0"><span class="section-number-3">2.1</span> <code>qmckl_sm_naive</code></h3>
|
||||
<div id="outline-container-orgadde2b2" class="outline-3">
|
||||
<h3 id="orgadde2b2"><span class="section-number-3">2.1</span> <code>qmckl_sm_naive</code></h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2918ee0" class="outline-4">
|
||||
<h4 id="org2918ee0"><span class="section-number-4">2.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org49e3cc7" class="outline-4">
|
||||
<h4 id="org49e3cc7"><span class="section-number-4">2.1.1</span> Introduction</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<p>
|
||||
This is the simplest of the available Sherman-Morrison-Woodbury kernels. It applies rank-1 updates one by one in
|
||||
@ -539,10 +539,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc953c6e" class="outline-4">
|
||||
<h4 id="orgc953c6e"><span class="section-number-4">2.1.2</span> API</h4>
|
||||
<div id="outline-container-orga3f8831" class="outline-4">
|
||||
<h4 id="orga3f8831"><span class="section-number-4">2.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org19282e7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1e4e786" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -630,8 +630,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org936e3f5" class="outline-4">
|
||||
<h4 id="org936e3f5"><span class="section-number-4">2.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-orgf8b6cf4" class="outline-4">
|
||||
<h4 id="orgf8b6cf4"><span class="section-number-4">2.1.3</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -647,8 +647,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3422f34" class="outline-4">
|
||||
<h4 id="org3422f34"><span class="section-number-4">2.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-org473fa72" class="outline-4">
|
||||
<h4 id="org473fa72"><span class="section-number-4">2.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<p>
|
||||
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
||||
@ -742,8 +742,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2b690df" class="outline-5">
|
||||
<h5 id="org2b690df"><span class="section-number-5">2.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div id="outline-container-orgb3c0bf2" class="outline-5">
|
||||
<h5 id="orgb3c0bf2"><span class="section-number-5">2.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div class="outline-text-5" id="text-2-1-4-1">
|
||||
<p>
|
||||
The following Fortran function <code>qmckl_sm_naive_doc</code> makes sure
|
||||
@ -755,8 +755,8 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6a5d800" class="outline-4">
|
||||
<h4 id="org6a5d800"><span class="section-number-4">2.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org569b3cf" class="outline-4">
|
||||
<h4 id="org569b3cf"><span class="section-number-4">2.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div class="outline-text-4" id="text-2-1-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_naive</span> (
|
||||
@ -802,8 +802,8 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org244963b" class="outline-4">
|
||||
<h4 id="org244963b"><span class="section-number-4">2.1.6</span> C sources</h4>
|
||||
<div id="outline-container-orgf2e0aab" class="outline-4">
|
||||
<h4 id="orgf2e0aab"><span class="section-number-4">2.1.6</span> C sources</h4>
|
||||
<div class="outline-text-4" id="text-2-1-6">
|
||||
<p>
|
||||
Common includes and macros used by all the Sherman-Morrison-Woodbury kernels.
|
||||
@ -921,7 +921,7 @@ multiple of <code>SIMD_LENGTH</code>.
|
||||
<code>qmckl_exit_code qmckl_sm_naive_{Dim}</code> is a C function-template that is used to genereate instances of C fucntions based on the range given above. The advantage of this method is that for each of these instances all the dimensions and loop-bounds are known at compile time, allowing the compiler to optimize more aggressively.
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="orgd30f542"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_sm_naive_</span>{Dim}(
|
||||
<pre class="src src-c" id="orgf851ea2"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_sm_naive_</span>{Dim}(
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span> <span style="color: #a0522d;">N_updates</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
||||
@ -997,7 +997,7 @@ multiple of <code>SIMD_LENGTH</code>.
|
||||
This is the kernel generator written in Python. It uses the kernel generator range and templates defined above to generate the C kernel instances.
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python" id="org26dff3a"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="orgd615a8f"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<span style="color: #8b2252;">static inline qmckl_exit_code qmckl_sm_naive_{Dim}(</span>
|
||||
<span style="color: #8b2252;"> const qmckl_context context,</span>
|
||||
<span style="color: #8b2252;"> const uint64_t N_updates,</span>
|
||||
@ -1081,7 +1081,7 @@ This is the kernel generator written in Python. It uses the kernel generator ran
|
||||
Python script that generated C switch cases that call individual kernel instances.
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python" id="orgc2fa77c"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org6b0f369"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<span style="color: #8b2252;">case {Dim}: </span>
|
||||
<span style="color: #8b2252;"> return qmckl_sm_naive_{Dim}(context,</span>
|
||||
<span style="color: #8b2252;"> N_updates,</span>
|
||||
@ -2721,14 +2721,14 @@ Python script that generated C switch cases that call individual kernel instance
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6e37c15" class="outline-4">
|
||||
<h4 id="org6e37c15"><span class="section-number-4">2.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-orgf2b69c7" class="outline-4">
|
||||
<h4 id="orgf2b69c7"><span class="section-number-4">2.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div class="outline-text-4" id="text-2-1-7">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgda67c3e" class="outline-4">
|
||||
<h4 id="orgda67c3e"><span class="section-number-4">2.1.8</span> Performance</h4>
|
||||
<div id="outline-container-orgbb69735" class="outline-4">
|
||||
<h4 id="orgbb69735"><span class="section-number-4">2.1.8</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-2-1-8">
|
||||
<p>
|
||||
This function performs best when there is only 1 rank-1 update in the update cycle. It is
|
||||
@ -2737,8 +2737,8 @@ can never resolve a situation where applying the update causes singular behaviou
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org623f695" class="outline-4">
|
||||
<h4 id="org623f695"><span class="section-number-4">2.1.9</span> Tests</h4>
|
||||
<div id="outline-container-org5f98468" class="outline-4">
|
||||
<h4 id="org5f98468"><span class="section-number-4">2.1.9</span> Tests</h4>
|
||||
<div class="outline-text-4" id="text-2-1-9">
|
||||
<p>
|
||||
The tests for the kernels are executed on datasets that are extracted from a run of
|
||||
@ -2806,17 +2806,17 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgf2e5276" class="outline-2">
|
||||
<h2 id="orgf2e5276"><span class="section-number-2">3</span> Sherman-Morrison with Slagel Splitting (core)</h2>
|
||||
<div id="outline-container-org5e00947" class="outline-2">
|
||||
<h2 id="org5e00947"><span class="section-number-2">3</span> Sherman-Morrison with Slagel Splitting (core)</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org7189ef6" class="outline-3">
|
||||
<h3 id="org7189ef6"><span class="section-number-3">3.1</span> <code>qmckl_sm_splitting_core</code></h3>
|
||||
<div id="outline-container-org2eaa5b6" class="outline-3">
|
||||
<h3 id="org2eaa5b6"><span class="section-number-3">3.1</span> <code>qmckl_sm_splitting_core</code></h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6aa11a5" class="outline-4">
|
||||
<h4 id="org6aa11a5"><span class="section-number-4">3.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-orge8c7b8a" class="outline-4">
|
||||
<h4 id="orge8c7b8a"><span class="section-number-4">3.1.1</span> Introduction</h4>
|
||||
<div class="outline-text-4" id="text-3-1-1">
|
||||
<p>
|
||||
<code>qmckl_sm_splitting_core</code> is the inner core part of 'Sherman-Morrison with update splitting' in the next section.
|
||||
@ -2844,10 +2844,10 @@ If the determinant is passed it will only be partially updated if there were any
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4895e24" class="outline-4">
|
||||
<h4 id="org4895e24"><span class="section-number-4">3.1.2</span> API</h4>
|
||||
<div id="outline-container-org55f90bb" class="outline-4">
|
||||
<h4 id="org55f90bb"><span class="section-number-4">3.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<table id="orge101d6c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0ff644e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2956,8 +2956,8 @@ If the determinant is passed it will only be partially updated if there were any
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdcd18c4" class="outline-4">
|
||||
<h4 id="orgdcd18c4"><span class="section-number-4">3.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-org4221b89" class="outline-4">
|
||||
<h4 id="org4221b89"><span class="section-number-4">3.1.3</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-3-1-3">
|
||||
<ul class="org-ul">
|
||||
<li><code>LDS >= 2</code></li>
|
||||
@ -2974,8 +2974,8 @@ If the determinant is passed it will only be partially updated if there were any
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbddb9fc" class="outline-4">
|
||||
<h4 id="orgbddb9fc"><span class="section-number-4">3.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-org6747399" class="outline-4">
|
||||
<h4 id="org6747399"><span class="section-number-4">3.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div class="outline-text-4" id="text-3-1-4">
|
||||
<p>
|
||||
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
||||
@ -3091,8 +3091,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2c74f36" class="outline-5">
|
||||
<h5 id="org2c74f36"><span class="section-number-5">3.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div id="outline-container-org7354c55" class="outline-5">
|
||||
<h5 id="org7354c55"><span class="section-number-5">3.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div class="outline-text-5" id="text-3-1-4-1">
|
||||
<p>
|
||||
The function <code>qmckl_sm_splitting_core_doc</code> makes sure that
|
||||
@ -3105,8 +3105,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc4cdcee" class="outline-4">
|
||||
<h4 id="orgc4cdcee"><span class="section-number-4">3.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org59dde34" class="outline-4">
|
||||
<h4 id="org59dde34"><span class="section-number-4">3.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div class="outline-text-4" id="text-3-1-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_splitting_core</span> (
|
||||
@ -3161,8 +3161,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc7cf0af" class="outline-4">
|
||||
<h4 id="orgc7cf0af"><span class="section-number-4">3.1.6</span> C sources</h4>
|
||||
<div id="outline-container-org64d7ec9" class="outline-4">
|
||||
<h4 id="org64d7ec9"><span class="section-number-4">3.1.6</span> C sources</h4>
|
||||
<div class="outline-text-4" id="text-3-1-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_splitting_core_hpc</span>(
|
||||
@ -3251,7 +3251,7 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="orga325928"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_sm_splitting_core_</span>{Dim}(
|
||||
<pre class="src src-c" id="org2f61fd8"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_sm_splitting_core_</span>{Dim}(
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #228b22;">uint64_t</span> <span style="color: #a0522d;">N_updates</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
||||
@ -3335,7 +3335,7 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python" id="org6ddb9c4"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org08dc976"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<span style="color: #8b2252;">static inline qmckl_exit_code qmckl_sm_splitting_core_{Dim}(</span>
|
||||
<span style="color: #8b2252;"> const qmckl_context context,</span>
|
||||
<span style="color: #8b2252;"> uint64_t N_updates,</span>
|
||||
@ -3427,7 +3427,7 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python" id="orgd566d77"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="orgb1962ed"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<span style="color: #8b2252;">case {Dim}: {</span>
|
||||
<span style="color: #8b2252;"> return qmckl_sm_splitting_core_{Dim}(</span>
|
||||
<span style="color: #8b2252;"> context,</span>
|
||||
@ -5416,14 +5416,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org56fb168" class="outline-4">
|
||||
<h4 id="org56fb168"><span class="section-number-4">3.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-org68b954b" class="outline-4">
|
||||
<h4 id="org68b954b"><span class="section-number-4">3.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div class="outline-text-4" id="text-3-1-7">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfff8a67" class="outline-4">
|
||||
<h4 id="orgfff8a67"><span class="section-number-4">3.1.8</span> Performance</h4>
|
||||
<div id="outline-container-orgb8931d2" class="outline-4">
|
||||
<h4 id="orgb8931d2"><span class="section-number-4">3.1.8</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-3-1-8">
|
||||
<p>
|
||||
This function cannot be used by itself and is used in Sherman-Morrison with update splitting and Woodbury 3x3 and 2x2
|
||||
@ -5435,17 +5435,17 @@ with Sherman-Morrison and update splitting. Please look at the performance recco
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orge2e4abe" class="outline-2">
|
||||
<h2 id="orge2e4abe"><span class="section-number-2">4</span> Woodbury 2x2</h2>
|
||||
<div id="outline-container-orgba1a52a" class="outline-2">
|
||||
<h2 id="orgba1a52a"><span class="section-number-2">4</span> Woodbury 2x2</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org148bbf2" class="outline-3">
|
||||
<h3 id="org148bbf2"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_2x2</code></h3>
|
||||
<div id="outline-container-org07ecda2" class="outline-3">
|
||||
<h3 id="org07ecda2"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_2x2</code></h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb78a606" class="outline-4">
|
||||
<h4 id="orgb78a606"><span class="section-number-4">4.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org9c98670" class="outline-4">
|
||||
<h4 id="org9c98670"><span class="section-number-4">4.1.1</span> Introduction</h4>
|
||||
<div class="outline-text-4" id="text-4-1-1">
|
||||
<p>
|
||||
The Woodbury 2x2 kernel. It is used to apply two rank-1 updates at once. The formula used in
|
||||
@ -5469,10 +5469,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8e13912" class="outline-4">
|
||||
<h4 id="org8e13912"><span class="section-number-4">4.1.2</span> API</h4>
|
||||
<div id="outline-container-org697719a" class="outline-4">
|
||||
<h4 id="org697719a"><span class="section-number-4">4.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-4-1-2">
|
||||
<table id="orge1015a7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2435b93" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -5553,8 +5553,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1dff0e7" class="outline-4">
|
||||
<h4 id="org1dff0e7"><span class="section-number-4">4.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-orgf162228" class="outline-4">
|
||||
<h4 id="orgf162228"><span class="section-number-4">4.1.3</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-4-1-3">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>qmckl_null_context</code></li>
|
||||
@ -5568,8 +5568,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org37b3345" class="outline-4">
|
||||
<h4 id="org37b3345"><span class="section-number-4">4.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-orgf40bb7a" class="outline-4">
|
||||
<h4 id="orgf40bb7a"><span class="section-number-4">4.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div class="outline-text-4" id="text-4-1-4">
|
||||
<p>
|
||||
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
||||
@ -5705,8 +5705,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org48c2761" class="outline-5">
|
||||
<h5 id="org48c2761"><span class="section-number-5">4.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div id="outline-container-org38fc472" class="outline-5">
|
||||
<h5 id="org38fc472"><span class="section-number-5">4.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div class="outline-text-5" id="text-4-1-4-1">
|
||||
<p>
|
||||
The function <code>qmckl_sm_splitting_core_doc</code> makes sure that
|
||||
@ -5719,8 +5719,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaf63200" class="outline-4">
|
||||
<h4 id="orgaf63200"><span class="section-number-4">4.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org01a395b" class="outline-4">
|
||||
<h4 id="org01a395b"><span class="section-number-4">4.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div class="outline-text-4" id="text-4-1-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_2x2</span> (
|
||||
@ -5763,8 +5763,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb3265df" class="outline-4">
|
||||
<h4 id="orgb3265df"><span class="section-number-4">4.1.6</span> C sources</h4>
|
||||
<div id="outline-container-orge486d54" class="outline-4">
|
||||
<h4 id="orge486d54"><span class="section-number-4">4.1.6</span> C sources</h4>
|
||||
<div class="outline-text-4" id="text-4-1-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_2x2_hpc</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
@ -5854,7 +5854,7 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="orgb068dce"><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="org7cc3062"><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,
|
||||
@ -7804,14 +7804,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org271269c" class="outline-4">
|
||||
<h4 id="org271269c"><span class="section-number-4">4.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-org752f206" class="outline-4">
|
||||
<h4 id="org752f206"><span class="section-number-4">4.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div class="outline-text-4" id="text-4-1-7">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2c3defc" class="outline-4">
|
||||
<h4 id="org2c3defc"><span class="section-number-4">4.1.8</span> Performance</h4>
|
||||
<div id="outline-container-org6bf59a5" class="outline-4">
|
||||
<h4 id="org6bf59a5"><span class="section-number-4">4.1.8</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-4-1-8">
|
||||
<p>
|
||||
This function is most efficient when used in cases where there are only 2 rank-1 updates and
|
||||
@ -7820,8 +7820,8 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4ef10e3" class="outline-4">
|
||||
<h4 id="org4ef10e3"><span class="section-number-4">4.1.9</span> Tests</h4>
|
||||
<div id="outline-container-orga83caf1" class="outline-4">
|
||||
<h4 id="orga83caf1"><span class="section-number-4">4.1.9</span> Tests</h4>
|
||||
<div class="outline-text-4" id="text-4-1-9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(Updates2 != <span style="color: #008b8b;">NULL</span>);
|
||||
@ -7858,17 +7858,17 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org9318233" class="outline-2">
|
||||
<h2 id="org9318233"><span class="section-number-2">5</span> Woodbury 3x3</h2>
|
||||
<div id="outline-container-orgc107db5" class="outline-2">
|
||||
<h2 id="orgc107db5"><span class="section-number-2">5</span> Woodbury 3x3</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
</div>
|
||||
<div id="outline-container-org85e131f" class="outline-3">
|
||||
<h3 id="org85e131f"><span class="section-number-3">5.1</span> <code>qmckl_woodbury_3x3</code></h3>
|
||||
<div id="outline-container-org3b86e1e" class="outline-3">
|
||||
<h3 id="org3b86e1e"><span class="section-number-3">5.1</span> <code>qmckl_woodbury_3x3</code></h3>
|
||||
<div class="outline-text-3" id="text-5-1">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6cbc8a8" class="outline-4">
|
||||
<h4 id="org6cbc8a8"><span class="section-number-4">5.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org12b5de1" class="outline-4">
|
||||
<h4 id="org12b5de1"><span class="section-number-4">5.1.1</span> Introduction</h4>
|
||||
<div class="outline-text-4" id="text-5-1-1">
|
||||
<p>
|
||||
The Woodbury 3x3 kernel. It is used to apply two rank-1 updates at once. The formula used in
|
||||
@ -7892,10 +7892,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbc09176" class="outline-4">
|
||||
<h4 id="orgbc09176"><span class="section-number-4">5.1.2</span> API</h4>
|
||||
<div id="outline-container-org4bdaa23" class="outline-4">
|
||||
<h4 id="org4bdaa23"><span class="section-number-4">5.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-5-1-2">
|
||||
<table id="orgd1eced6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org19ddcb4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -7976,8 +7976,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org14a6848" class="outline-4">
|
||||
<h4 id="org14a6848"><span class="section-number-4">5.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-org1c76589" class="outline-4">
|
||||
<h4 id="org1c76589"><span class="section-number-4">5.1.3</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-5-1-3">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>qmckl_null_context</code></li>
|
||||
@ -7991,8 +7991,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb48bad4" class="outline-4">
|
||||
<h4 id="orgb48bad4"><span class="section-number-4">5.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-orgeed53ca" class="outline-4">
|
||||
<h4 id="orgeed53ca"><span class="section-number-4">5.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div class="outline-text-4" id="text-5-1-4">
|
||||
<p>
|
||||
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
||||
@ -8137,8 +8137,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7a771f3" class="outline-5">
|
||||
<h5 id="org7a771f3"><span class="section-number-5">5.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div id="outline-container-org05aa151" class="outline-5">
|
||||
<h5 id="org05aa151"><span class="section-number-5">5.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div class="outline-text-5" id="text-5-1-4-1">
|
||||
<p>
|
||||
The function <code>qmckl_sm_splitting_core_doc</code> makes sure that
|
||||
@ -8151,8 +8151,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2a1cbb7" class="outline-4">
|
||||
<h4 id="org2a1cbb7"><span class="section-number-4">5.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-orgd2e7535" class="outline-4">
|
||||
<h4 id="orgd2e7535"><span class="section-number-4">5.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div class="outline-text-4" id="text-5-1-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_3x3</span> (
|
||||
@ -8195,8 +8195,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbd228ba" class="outline-4">
|
||||
<h4 id="orgbd228ba"><span class="section-number-4">5.1.6</span> C sources</h4>
|
||||
<div id="outline-container-org84afe4a" class="outline-4">
|
||||
<h4 id="org84afe4a"><span class="section-number-4">5.1.6</span> C sources</h4>
|
||||
<div class="outline-text-4" id="text-5-1-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_3x3_hpc</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
@ -8306,7 +8306,7 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="orga3eaf2e"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_woodbury_3x3_</span>{Dim}(
|
||||
<pre class="src src-c" id="org7ce881f"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_woodbury_3x3_</span>{Dim}(
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #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,
|
||||
@ -10676,14 +10676,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8fff586" class="outline-4">
|
||||
<h4 id="org8fff586"><span class="section-number-4">5.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-orgaa01858" class="outline-4">
|
||||
<h4 id="orgaa01858"><span class="section-number-4">5.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div class="outline-text-4" id="text-5-1-7">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge354956" class="outline-4">
|
||||
<h4 id="orge354956"><span class="section-number-4">5.1.8</span> Performance</h4>
|
||||
<div id="outline-container-org65a50e1" class="outline-4">
|
||||
<h4 id="org65a50e1"><span class="section-number-4">5.1.8</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-5-1-8">
|
||||
<p>
|
||||
This function is most efficient when used in cases where there are only 3 rank-1 updates and
|
||||
@ -10692,8 +10692,8 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf980689" class="outline-4">
|
||||
<h4 id="orgf980689"><span class="section-number-4">5.1.9</span> Tests</h4>
|
||||
<div id="outline-container-orgaff160f" class="outline-4">
|
||||
<h4 id="orgaff160f"><span class="section-number-4">5.1.9</span> Tests</h4>
|
||||
<div class="outline-text-4" id="text-5-1-9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(Updates3 != <span style="color: #008b8b;">NULL</span>);
|
||||
@ -10730,17 +10730,17 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgc6aac47" class="outline-2">
|
||||
<h2 id="orgc6aac47"><span class="section-number-2">6</span> Sherman-Morrison with Slagel Splitting</h2>
|
||||
<div id="outline-container-orgdbefaa7" class="outline-2">
|
||||
<h2 id="orgdbefaa7"><span class="section-number-2">6</span> Sherman-Morrison with Slagel Splitting</h2>
|
||||
<div class="outline-text-2" id="text-6">
|
||||
</div>
|
||||
<div id="outline-container-org417ea5f" class="outline-3">
|
||||
<h3 id="org417ea5f"><span class="section-number-3">6.1</span> <code>qmckl_sm_splitting</code></h3>
|
||||
<div id="outline-container-org389b60e" class="outline-3">
|
||||
<h3 id="org389b60e"><span class="section-number-3">6.1</span> <code>qmckl_sm_splitting</code></h3>
|
||||
<div class="outline-text-3" id="text-6-1">
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdfad929" class="outline-4">
|
||||
<h4 id="orgdfad929"><span class="section-number-4">6.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-orgdc65d2b" class="outline-4">
|
||||
<h4 id="orgdc65d2b"><span class="section-number-4">6.1.1</span> Introduction</h4>
|
||||
<div class="outline-text-4" id="text-6-1-1">
|
||||
<p>
|
||||
This is a variation on the 'Naive' Sherman-Morrison kernel. Whenever the denominator \(1+v_j^T S^{-1} u_j\) in
|
||||
@ -10764,10 +10764,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2433926" class="outline-4">
|
||||
<h4 id="org2433926"><span class="section-number-4">6.1.2</span> API</h4>
|
||||
<div id="outline-container-orgf3502aa" class="outline-4">
|
||||
<h4 id="orgf3502aa"><span class="section-number-4">6.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-6-1-2">
|
||||
<table id="orgdd511dc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1afeee0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -10855,8 +10855,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfd3a242" class="outline-4">
|
||||
<h4 id="orgfd3a242"><span class="section-number-4">6.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-orgdccfef7" class="outline-4">
|
||||
<h4 id="orgdccfef7"><span class="section-number-4">6.1.3</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-6-1-3">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -10871,8 +10871,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1e0d641" class="outline-4">
|
||||
<h4 id="org1e0d641"><span class="section-number-4">6.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-org81c8636" class="outline-4">
|
||||
<h4 id="org81c8636"><span class="section-number-4">6.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div class="outline-text-4" id="text-6-1-4">
|
||||
<p>
|
||||
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
||||
@ -10951,8 +10951,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc776181" class="outline-5">
|
||||
<h5 id="orgc776181"><span class="section-number-5">6.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div id="outline-container-org25f8988" class="outline-5">
|
||||
<h5 id="org25f8988"><span class="section-number-5">6.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div class="outline-text-5" id="text-6-1-4-1">
|
||||
<p>
|
||||
The following Fortran function <code>qmckl_sm_splitting_core_doc</code> makes sure
|
||||
@ -10965,8 +10965,8 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb19673a" class="outline-4">
|
||||
<h4 id="orgb19673a"><span class="section-number-4">6.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org2c41bc1" class="outline-4">
|
||||
<h4 id="org2c41bc1"><span class="section-number-4">6.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div class="outline-text-4" id="text-6-1-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_splitting</span> (
|
||||
@ -11012,11 +11012,11 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8697525" class="outline-4">
|
||||
<h4 id="org8697525"><span class="section-number-4">6.1.6</span> C source</h4>
|
||||
<div id="outline-container-orga8ff588" class="outline-4">
|
||||
<h4 id="orga8ff588"><span class="section-number-4">6.1.6</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-6-1-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python" id="orgb606e04"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org3e5050f"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<span style="color: #8b2252;">case {Dim}: {</span>
|
||||
<span style="color: #8b2252;"> rc = qmckl_sm_splitting_core_{Dim}(</span>
|
||||
<span style="color: #8b2252;"> context,</span>
|
||||
@ -11420,14 +11420,14 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org285add5" class="outline-4">
|
||||
<h4 id="org285add5"><span class="section-number-4">6.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-orgd96f4af" class="outline-4">
|
||||
<h4 id="orgd96f4af"><span class="section-number-4">6.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div class="outline-text-4" id="text-6-1-7">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgec1b017" class="outline-4">
|
||||
<h4 id="orgec1b017"><span class="section-number-4">6.1.8</span> Performance…</h4>
|
||||
<div id="outline-container-orgbb6c68b" class="outline-4">
|
||||
<h4 id="orgbb6c68b"><span class="section-number-4">6.1.8</span> Performance…</h4>
|
||||
<div class="outline-text-4" id="text-6-1-8">
|
||||
<p>
|
||||
This kernel performs best when there are 2 or more rank-1 update cycles and fail-rate is high.
|
||||
@ -11435,8 +11435,8 @@ This kernel performs best when there are 2 or more rank-1 update cycles and fail
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org427aa79" class="outline-4">
|
||||
<h4 id="org427aa79"><span class="section-number-4">6.1.9</span> Test</h4>
|
||||
<div id="outline-container-org0d25fc8" class="outline-4">
|
||||
<h4 id="org0d25fc8"><span class="section-number-4">6.1.9</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-6-1-9">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(Updates3 != <span style="color: #008b8b;">NULL</span>);
|
||||
@ -11474,8 +11474,8 @@ rc = QMCKL_SUCCESS;
|
||||
|
||||
|
||||
|
||||
<div id="outline-container-org35e87bd" class="outline-2">
|
||||
<h2 id="org35e87bd"><span class="section-number-2">7</span> End of files</h2>
|
||||
<div id="outline-container-org598de9f" class="outline-2">
|
||||
<h2 id="org598de9f"><span class="section-number-2">7</span> End of files</h2>
|
||||
<div class="outline-text-2" id="text-7">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span> (<span style="color: #228b22;">qmckl_context_destroy</span>(<span style="color: #a0522d;">context</span>) == QMCKL_SUCCESS);
|
||||
@ -11489,7 +11489,7 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2023-09-12 Tue 15:52</p>
|
||||
<p class="date">Created: 2023-09-13 Wed 11:24</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-09-12 Tue 15:52 -->
|
||||
<!-- 2023-09-13 Wed 11:24 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Data for Tests</title>
|
||||
@ -246,27 +246,27 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgef6969c">1. CHBrClF</a>
|
||||
<li><a href="#org14ff19e">1. CHBrClF</a>
|
||||
<ul>
|
||||
<li><a href="#org6084d8d">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org8386d84">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org38833c4">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org3f231b3">1.4. Electron coordinates</a></li>
|
||||
<li><a href="#orgde5ca26">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org755fd74">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org7dd4714">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org3ee5598">1.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6c77fe4">2. N2</a>
|
||||
<li><a href="#orgbc41584">2. N2</a>
|
||||
<ul>
|
||||
<li><a href="#orgd5f1c80">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org034847b">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#orgaf6ad75">2.3. Jastrow related data</a></li>
|
||||
<li><a href="#orgb2d6932">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org63ba5d2">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org8e94ef9">2.3. Jastrow related data</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgef6969c" class="outline-2">
|
||||
<h2 id="orgef6969c"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div id="outline-container-org14ff19e" class="outline-2">
|
||||
<h2 id="org14ff19e"><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-org6084d8d" class="outline-3">
|
||||
<h3 id="org6084d8d"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-orgde5ca26" class="outline-3">
|
||||
<h3 id="orgde5ca26"><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-org8386d84" class="outline-3">
|
||||
<h3 id="org8386d84"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div id="outline-container-org755fd74" class="outline-3">
|
||||
<h3 id="org755fd74"><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-org38833c4" class="outline-3">
|
||||
<h3 id="org38833c4"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org7dd4714" class="outline-3">
|
||||
<h3 id="org7dd4714"><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-org3f231b3" class="outline-3">
|
||||
<h3 id="org3f231b3"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org3ee5598" class="outline-3">
|
||||
<h3 id="org3ee5598"><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-org6c77fe4" class="outline-2">
|
||||
<h2 id="org6c77fe4"><span class="section-number-2">2</span> N2</h2>
|
||||
<div id="outline-container-orgbc41584" class="outline-2">
|
||||
<h2 id="orgbc41584"><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-orgd5f1c80" class="outline-3">
|
||||
<h3 id="orgd5f1c80"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-orgb2d6932" class="outline-3">
|
||||
<h3 id="orgb2d6932"><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-org034847b" class="outline-3">
|
||||
<h3 id="org034847b"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org63ba5d2" class="outline-3">
|
||||
<h3 id="org63ba5d2"><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-orgaf6ad75" class="outline-3">
|
||||
<h3 id="orgaf6ad75"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div id="outline-container-org8e94ef9" class="outline-3">
|
||||
<h3 id="org8e94ef9"><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-09-12 Tue 15:52</p>
|
||||
<p class="date">Created: 2023-09-13 Wed 11:24</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-09-12 Tue 15:51 -->
|
||||
<!-- 2023-09-13 Wed 11:24 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>TREXIO I/O library</title>
|
||||
@ -324,53 +324,53 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org7e6cae7">1. Local functions</a>
|
||||
<li><a href="#orgdb7eeeb">1. Local functions</a>
|
||||
<ul>
|
||||
<li><a href="#org1cd721f">1.1. Open file</a></li>
|
||||
<li><a href="#orgd091716">1.2. Electron</a></li>
|
||||
<li><a href="#orgb9f865a">1.3. Nucleus</a>
|
||||
<li><a href="#orgc69dc2a">1.1. Open file</a></li>
|
||||
<li><a href="#orgd30f57c">1.2. Electron</a></li>
|
||||
<li><a href="#org0a528c3">1.3. Nucleus</a>
|
||||
<ul>
|
||||
<li><a href="#org706cbac">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#org9b46473">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org5805188">1.3.3. Nuclear coordinates</a></li>
|
||||
<li><a href="#org432f0ff">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#orgde12564">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org0017417">1.3.3. Nuclear coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7075a07">1.4. Basis set and AOs</a>
|
||||
<li><a href="#org5aede8c">1.4. Basis set and AOs</a>
|
||||
<ul>
|
||||
<li><a href="#org579c29e">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#orgee7ec11">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org25c98d5">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#orgc50def3">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org8cbae4f">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org08a00d8">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#org1863adc">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org709c941">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#orgf202feb">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#org9eda590">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org087a581">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org4a92728">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#org25302e4">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org50d39aa">1.4.14. AO Normalization</a></li>
|
||||
<li><a href="#orgd0ed8a1">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#org61fd33b">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#orgc006b7b">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#org5c857be">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org0a9aece">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org77ed14a">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#org27b0447">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#orgc72f6fd">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#org401282f">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#org7e53aaf">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org31e4d7c">1.4.11. Exponents</a></li>
|
||||
<li><a href="#orgdf7d2f9">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#orge04c016">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#orgc576302">1.4.14. AO Normalization</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc237a71">1.5. Molecular orbitals</a>
|
||||
<li><a href="#orgb202e88">1.5. Molecular orbitals</a>
|
||||
<ul>
|
||||
<li><a href="#orgc7bd7f3">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#org34fa8b5">1.5.2. MO coefficients</a></li>
|
||||
<li><a href="#org4bef50f">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#org7cc0703">1.5.2. MO coefficients</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5cc4ae1">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
<li><a href="#orgbb06a5c">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0796665">2. Read everything</a></li>
|
||||
<li><a href="#orge66f5c4">3. Test</a>
|
||||
<li><a href="#orgd621375">2. Read everything</a></li>
|
||||
<li><a href="#org7913238">3. Test</a>
|
||||
<ul>
|
||||
<li>
|
||||
<ul>
|
||||
<li><a href="#org13b60cb">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org1e093ef">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#org02bb4e6">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org067d1f2">3.0.4. MO Basis</a></li>
|
||||
<li><a href="#orgfaa3c0f">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org3c98e8c">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#org17d1b0b">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org9211729">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-org7e6cae7" class="outline-2">
|
||||
<h2 id="org7e6cae7"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div id="outline-container-orgdb7eeeb" class="outline-2">
|
||||
<h2 id="orgdb7eeeb"><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-org1cd721f" class="outline-3">
|
||||
<h3 id="org1cd721f"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div id="outline-container-orgc69dc2a" class="outline-3">
|
||||
<h3 id="orgc69dc2a"><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-orgd091716" class="outline-3">
|
||||
<h3 id="orgd091716"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div id="outline-container-orgd30f57c" class="outline-3">
|
||||
<h3 id="orgd30f57c"><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-orgb9f865a" class="outline-3">
|
||||
<h3 id="orgb9f865a"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div id="outline-container-org0a528c3" class="outline-3">
|
||||
<h3 id="org0a528c3"><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-org706cbac" class="outline-4">
|
||||
<h4 id="org706cbac"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div id="outline-container-org432f0ff" class="outline-4">
|
||||
<h4 id="org432f0ff"><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-org9b46473" class="outline-4">
|
||||
<h4 id="org9b46473"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div id="outline-container-orgde12564" class="outline-4">
|
||||
<h4 id="orgde12564"><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-org5805188" class="outline-4">
|
||||
<h4 id="org5805188"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div id="outline-container-org0017417" class="outline-4">
|
||||
<h4 id="org0017417"><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-org7075a07" class="outline-3">
|
||||
<h3 id="org7075a07"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div id="outline-container-org5aede8c" class="outline-3">
|
||||
<h3 id="org5aede8c"><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-org579c29e" class="outline-4">
|
||||
<h4 id="org579c29e"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div id="outline-container-orgd0ed8a1" class="outline-4">
|
||||
<h4 id="orgd0ed8a1"><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-orgee7ec11" class="outline-4">
|
||||
<h4 id="orgee7ec11"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div id="outline-container-org61fd33b" class="outline-4">
|
||||
<h4 id="org61fd33b"><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-org25c98d5" class="outline-4">
|
||||
<h4 id="org25c98d5"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div id="outline-container-orgc006b7b" class="outline-4">
|
||||
<h4 id="orgc006b7b"><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-orgc50def3" class="outline-4">
|
||||
<h4 id="orgc50def3"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div id="outline-container-org5c857be" class="outline-4">
|
||||
<h4 id="org5c857be"><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-org8cbae4f" class="outline-4">
|
||||
<h4 id="org8cbae4f"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div id="outline-container-org0a9aece" class="outline-4">
|
||||
<h4 id="org0a9aece"><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-org08a00d8" class="outline-4">
|
||||
<h4 id="org08a00d8"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div id="outline-container-org77ed14a" class="outline-4">
|
||||
<h4 id="org77ed14a"><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-org1863adc" class="outline-4">
|
||||
<h4 id="org1863adc"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div id="outline-container-org27b0447" class="outline-4">
|
||||
<h4 id="org27b0447"><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-org709c941" class="outline-4">
|
||||
<h4 id="org709c941"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
||||
<div id="outline-container-orgc72f6fd" class="outline-4">
|
||||
<h4 id="orgc72f6fd"><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-orgf202feb" class="outline-4">
|
||||
<h4 id="orgf202feb"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
||||
<div id="outline-container-org401282f" class="outline-4">
|
||||
<h4 id="org401282f"><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-org9eda590" class="outline-4">
|
||||
<h4 id="org9eda590"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
||||
<div id="outline-container-org7e53aaf" class="outline-4">
|
||||
<h4 id="org7e53aaf"><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-org087a581" class="outline-4">
|
||||
<h4 id="org087a581"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||
<div id="outline-container-org31e4d7c" class="outline-4">
|
||||
<h4 id="org31e4d7c"><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-org4a92728" class="outline-4">
|
||||
<h4 id="org4a92728"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||
<div id="outline-container-orgdf7d2f9" class="outline-4">
|
||||
<h4 id="orgdf7d2f9"><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-org25302e4" class="outline-4">
|
||||
<h4 id="org25302e4"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
||||
<div id="outline-container-orge04c016" class="outline-4">
|
||||
<h4 id="orge04c016"><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-org50d39aa" class="outline-4">
|
||||
<h4 id="org50d39aa"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||
<div id="outline-container-orgc576302" class="outline-4">
|
||||
<h4 id="orgc576302"><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-orgc237a71" class="outline-3">
|
||||
<h3 id="orgc237a71"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-orgb202e88" class="outline-3">
|
||||
<h3 id="orgb202e88"><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-orgc7bd7f3" class="outline-4">
|
||||
<h4 id="orgc7bd7f3"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
||||
<div id="outline-container-org4bef50f" class="outline-4">
|
||||
<h4 id="org4bef50f"><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-org34fa8b5" class="outline-4">
|
||||
<h4 id="org34fa8b5"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||
<div id="outline-container-org7cc0703" class="outline-4">
|
||||
<h4 id="org7cc0703"><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-org5cc4ae1" class="outline-3">
|
||||
<h3 id="org5cc4ae1"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
<div id="outline-container-orgbb06a5c" class="outline-3">
|
||||
<h3 id="orgbb06a5c"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org0796665" class="outline-2">
|
||||
<h2 id="org0796665"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div id="outline-container-orgd621375" class="outline-2">
|
||||
<h2 id="orgd621375"><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-orge66f5c4" class="outline-2">
|
||||
<h2 id="orge66f5c4"><span class="section-number-2">3</span> Test</h2>
|
||||
<div id="outline-container-org7913238" class="outline-2">
|
||||
<h2 id="org7913238"><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-org13b60cb" class="outline-4">
|
||||
<h4 id="org13b60cb"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||
<div id="outline-container-orgfaa3c0f" class="outline-4">
|
||||
<h4 id="orgfaa3c0f"><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-org1e093ef" class="outline-4">
|
||||
<h4 id="org1e093ef"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||
<div id="outline-container-org3c98e8c" class="outline-4">
|
||||
<h4 id="org3c98e8c"><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-org02bb4e6" class="outline-4">
|
||||
<h4 id="org02bb4e6"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||
<div id="outline-container-org17d1b0b" class="outline-4">
|
||||
<h4 id="org17d1b0b"><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-org067d1f2" class="outline-4">
|
||||
<h4 id="org067d1f2"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div id="outline-container-org9211729" class="outline-4">
|
||||
<h4 id="org9211729"><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-09-12 Tue 15:51</p>
|
||||
<p class="date">Created: 2023-09-13 Wed 11:24</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2023-09-12 Tue 15:51 -->
|
||||
<!-- 2023-09-13 Wed 11:24 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Verificarlo CI</title>
|
||||
@ -324,22 +324,22 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org8eed455">1. Verificarlo probes</a>
|
||||
<li><a href="#org515ca06">1. Verificarlo probes</a>
|
||||
<ul>
|
||||
<li><a href="#org4ca3d3f">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org45bf6d1">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#orgc79ba32">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#org92e09de">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org618fb7c">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org8feff76">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org619416f">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#orgdfa63e9">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#org27669d7">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org40ed2c1">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="#org37daf27">2. Fortran wrappers</a></li>
|
||||
<li><a href="#org07a4221">2. Fortran wrappers</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8eed455" class="outline-2">
|
||||
<h2 id="org8eed455"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div id="outline-container-org515ca06" class="outline-2">
|
||||
<h2 id="org515ca06"><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-org4ca3d3f" class="outline-3">
|
||||
<h3 id="org4ca3d3f"><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-org8feff76" class="outline-3">
|
||||
<h3 id="org8feff76"><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-org45bf6d1" class="outline-3">
|
||||
<h3 id="org45bf6d1"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div id="outline-container-org619416f" class="outline-3">
|
||||
<h3 id="org619416f"><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-orgc79ba32" class="outline-3">
|
||||
<h3 id="orgc79ba32"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div id="outline-container-orgdfa63e9" class="outline-3">
|
||||
<h3 id="orgdfa63e9"><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-org92e09de" class="outline-3">
|
||||
<h3 id="org92e09de"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div id="outline-container-org27669d7" class="outline-3">
|
||||
<h3 id="org27669d7"><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-org618fb7c" class="outline-3">
|
||||
<h3 id="org618fb7c"><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-org40ed2c1" class="outline-3">
|
||||
<h3 id="org40ed2c1"><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-org37daf27" class="outline-2">
|
||||
<h2 id="org37daf27"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||
<div id="outline-container-org07a4221" class="outline-2">
|
||||
<h2 id="org07a4221"><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-09-12 Tue 15:51</p>
|
||||
<p class="date">Created: 2023-09-13 Wed 11:24</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user