mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2025-01-08 04:19:15 +01:00
Deploying to gh-pages from @ TREX-CoE/qmckl@2228ab23c5 🚀
This commit is contained in:
parent
3e8c396d01
commit
3dbb454229
@ -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>
|
||||
<!-- 2024-02-13 Tue 16:22 -->
|
||||
<!-- 2024-02-14 Wed 10:00 -->
|
||||
<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: 2024-02-13 Tue 16:22</p>
|
||||
<p class="date">Created: 2024-02-14 Wed 10:00</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>
|
||||
<!-- 2024-02-13 Tue 16:22 -->
|
||||
<!-- 2024-02-14 Wed 10:00 -->
|
||||
<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="#orge0cf8ee">1. Installing QMCkl</a>
|
||||
<li><a href="#org284a53c">1. Installing QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#org811b4fc">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org7dbd081">1.2. Installing from the source repository (for developers)</a></li>
|
||||
<li><a href="#org7c88dde">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#orgfca16e1">1.2. Installing from the source repository (for developers)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org685a72b">2. Using QMCkl</a></li>
|
||||
<li><a href="#org9594a11">3. Developing in QMCkl</a>
|
||||
<li><a href="#org13e32f6">2. Using QMCkl</a></li>
|
||||
<li><a href="#org208e576">3. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#org62e663e">3.1. Literate programming</a></li>
|
||||
<li><a href="#org913bd97">3.2. Source code editing</a></li>
|
||||
<li><a href="#org05ee2d5">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org37a0d8d">3.4. Coding rules</a></li>
|
||||
<li><a href="#org658b2bf">3.5. Design of the library</a></li>
|
||||
<li><a href="#org82672a1">3.6. Naming conventions</a></li>
|
||||
<li><a href="#orgf538856">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org4fe8d21">3.8. Global state</a></li>
|
||||
<li><a href="#orge6ca38c">3.9. Headers</a></li>
|
||||
<li><a href="#org8a4cf83">3.10. Low-level functions</a></li>
|
||||
<li><a href="#org40c32b5">3.11. High-level functions</a></li>
|
||||
<li><a href="#org5d492a0">3.12. Numerical precision</a></li>
|
||||
<li><a href="#orge16e9aa">3.13. Algorithms</a></li>
|
||||
<li><a href="#orga46f407">3.1. Literate programming</a></li>
|
||||
<li><a href="#orgcf828f7">3.2. Source code editing</a></li>
|
||||
<li><a href="#org2e3f962">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org0cee9b5">3.4. Coding rules</a></li>
|
||||
<li><a href="#org6c6b573">3.5. Design of the library</a></li>
|
||||
<li><a href="#orgdbbc11f">3.6. Naming conventions</a></li>
|
||||
<li><a href="#orgbdc266e">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org50b426a">3.8. Global state</a></li>
|
||||
<li><a href="#org3e7a1cc">3.9. Headers</a></li>
|
||||
<li><a href="#orgb31ba26">3.10. Low-level functions</a></li>
|
||||
<li><a href="#org5b48308">3.11. High-level functions</a></li>
|
||||
<li><a href="#org78bc714">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org8c7bd77">3.13. Algorithms</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge0cf8ee" class="outline-2">
|
||||
<h2 id="orge0cf8ee"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div id="outline-container-org284a53c" class="outline-2">
|
||||
<h2 id="org284a53c"><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-org811b4fc" class="outline-3">
|
||||
<h3 id="org811b4fc"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div id="outline-container-org7c88dde" class="outline-3">
|
||||
<h3 id="org7c88dde"><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-org7dbd081" class="outline-3">
|
||||
<h3 id="org7dbd081"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div id="outline-container-orgfca16e1" class="outline-3">
|
||||
<h3 id="orgfca16e1"><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-org685a72b" class="outline-2">
|
||||
<h2 id="org685a72b"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div id="outline-container-org13e32f6" class="outline-2">
|
||||
<h2 id="org13e32f6"><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-org9594a11" class="outline-2">
|
||||
<h2 id="org9594a11"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-org208e576" class="outline-2">
|
||||
<h2 id="org208e576"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org62e663e" class="outline-3">
|
||||
<h3 id="org62e663e"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div id="outline-container-orga46f407" class="outline-3">
|
||||
<h3 id="orga46f407"><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-org913bd97" class="outline-3">
|
||||
<h3 id="org913bd97"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div id="outline-container-orgcf828f7" class="outline-3">
|
||||
<h3 id="orgcf828f7"><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-org05ee2d5" class="outline-3">
|
||||
<h3 id="org05ee2d5"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-org2e3f962" class="outline-3">
|
||||
<h3 id="org2e3f962"><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-org37a0d8d" class="outline-3">
|
||||
<h3 id="org37a0d8d"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div id="outline-container-org0cee9b5" class="outline-3">
|
||||
<h3 id="org0cee9b5"><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-org658b2bf" class="outline-3">
|
||||
<h3 id="org658b2bf"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div id="outline-container-org6c6b573" class="outline-3">
|
||||
<h3 id="org6c6b573"><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-org82672a1" class="outline-3">
|
||||
<h3 id="org82672a1"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-orgdbbc11f" class="outline-3">
|
||||
<h3 id="orgdbbc11f"><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-orgf538856" class="outline-3">
|
||||
<h3 id="orgf538856"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-orgbdc266e" class="outline-3">
|
||||
<h3 id="orgbdc266e"><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-org4fe8d21" class="outline-3">
|
||||
<h3 id="org4fe8d21"><span class="section-number-3">3.8</span> Global state</h3>
|
||||
<div id="outline-container-org50b426a" class="outline-3">
|
||||
<h3 id="org50b426a"><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="org3848ca8">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="orgc1ffdd5">=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-orge6ca38c" class="outline-3">
|
||||
<h3 id="orge6ca38c"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div id="outline-container-org3e7a1cc" class="outline-3">
|
||||
<h3 id="org3e7a1cc"><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-org8a4cf83" class="outline-3">
|
||||
<h3 id="org8a4cf83"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-orgb31ba26" class="outline-3">
|
||||
<h3 id="orgb31ba26"><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="#org3848ca8"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#orgc1ffdd5"><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-org40c32b5" class="outline-3">
|
||||
<h3 id="org40c32b5"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div id="outline-container-org5b48308" class="outline-3">
|
||||
<h3 id="org5b48308"><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-org5d492a0" class="outline-3">
|
||||
<h3 id="org5d492a0"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-org78bc714" class="outline-3">
|
||||
<h3 id="org78bc714"><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="#org3848ca8"><code>context</code></a> variable.
|
||||
specified in the <a href="#orgc1ffdd5"><code>context</code></a> variable.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -909,8 +909,8 @@ following points :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge16e9aa" class="outline-3">
|
||||
<h3 id="orge16e9aa"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div id="outline-container-org8c7bd77" class="outline-3">
|
||||
<h3 id="org8c7bd77"><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: 2024-02-13 Tue 16:22</p>
|
||||
<p class="date">Created: 2024-02-14 Wed 10:00</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
218
qmckl_ao.html
218
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>
|
||||
<!-- 2024-02-13 Tue 16:23 -->
|
||||
<!-- 2024-02-14 Wed 10:00 -->
|
||||
<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,62 +346,62 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org9fc80e7">1. Introduction</a></li>
|
||||
<li><a href="#org4653d5d">2. Context</a>
|
||||
<li><a href="#orgcf46cb6">1. Introduction</a></li>
|
||||
<li><a href="#org35d2bfb">2. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org253e602">2.1. Constant data</a>
|
||||
<li><a href="#org8a34fdb">2.1. Constant data</a>
|
||||
<ul>
|
||||
<li><a href="#org5484360">2.1.1. Initialization functions</a>
|
||||
<li><a href="#org47085a7">2.1.1. Initialization functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgf227034">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#orgd95ddd2">2.1.1.2. Fortran interface</a></li>
|
||||
<li><a href="#orgc74c57f">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org6b25bb7">2.1.1.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org198c778">2.1.2. Access functions</a>
|
||||
<li><a href="#orgc2d63e3">2.1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgc1b2bb7">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org587a650">2.1.2.2. Fortran interface</a></li>
|
||||
<li><a href="#org4e45bd8">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org2c98638">2.1.2.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org10592cd">2.2. Computed data</a>
|
||||
<li><a href="#org8fd0443">2.2. Computed data</a>
|
||||
<ul>
|
||||
<li><a href="#org91bee5a">2.2.1. After initialization</a></li>
|
||||
<li><a href="#orga73b103">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#org096e16a">2.2.3. Access functions</a></li>
|
||||
<li><a href="#orgcc1e399">2.2.1. After initialization</a></li>
|
||||
<li><a href="#org2a21885">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#org4ee8cb3">2.2.3. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4898c1e">3. Radial part</a>
|
||||
<li><a href="#org138c414">3. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#org475c838">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org4004314">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org5ae668b">3.3. Computation of shells</a></li>
|
||||
<li><a href="#orge9b7ff1">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#orgd9b6a14">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org3392a92">3.3. Computation of shells</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd8d0ad0">4. Polynomial part</a>
|
||||
<li><a href="#org0eabe8f">4. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#orgf73427c">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#orgf2497bc">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
<li><a href="#org6277545">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org0fdd26e">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge18f9a2">5. Combining radial and polynomial parts</a>
|
||||
<li><a href="#orged9c526">5. Combining radial and polynomial parts</a>
|
||||
<ul>
|
||||
<li><a href="#org515ff11">5.1. Determination of nucleus ranges</a></li>
|
||||
<li><a href="#orgbe9be92">5.2. Values only</a>
|
||||
<li><a href="#orgce52b87">5.1. Determination of nucleus ranges</a></li>
|
||||
<li><a href="#orgd97c7f8">5.2. Values only</a>
|
||||
<ul>
|
||||
<li><a href="#orgf57dec5">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#orgeec4ad6">5.2.2. HPC version</a></li>
|
||||
<li><a href="#orgd2e303b">5.2.3. Interfaces</a></li>
|
||||
<li><a href="#org3bae860">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#org337c6c7">5.2.2. HPC version</a></li>
|
||||
<li><a href="#org2b7fb72">5.2.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1bdc9eb">5.3. Value, gradients, Laplacian</a>
|
||||
<li><a href="#orgdbccc61">5.3. Value, gradients, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#orgc6110f1">5.3.1. Reference version</a></li>
|
||||
<li><a href="#orgc61a6b9">5.3.2. HPC version</a></li>
|
||||
<li><a href="#org90526cf">5.3.3. Interfaces</a></li>
|
||||
<li><a href="#orge87c1ff">5.3.1. Reference version</a></li>
|
||||
<li><a href="#orgfc4a837">5.3.2. HPC version</a></li>
|
||||
<li><a href="#org510ae0e">5.3.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -410,8 +410,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9fc80e7" class="outline-2">
|
||||
<h2 id="org9fc80e7"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div id="outline-container-orgcf46cb6" class="outline-2">
|
||||
<h2 id="orgcf46cb6"><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
|
||||
@ -464,19 +464,19 @@ gradients and Laplacian of the atomic basis functions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4653d5d" class="outline-2">
|
||||
<h2 id="org4653d5d"><span class="section-number-2">2</span> Context</h2>
|
||||
<div id="outline-container-org35d2bfb" class="outline-2">
|
||||
<h2 id="org35d2bfb"><span class="section-number-2">2</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org253e602" class="outline-3">
|
||||
<h3 id="org253e602"><span class="section-number-3">2.1</span> Constant data</h3>
|
||||
<div id="outline-container-org8a34fdb" class="outline-3">
|
||||
<h3 id="org8a34fdb"><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="org3b89c9d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc6f7299" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -710,7 +710,7 @@ calling the functions:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="orge5ecf70"><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="orgbb8487a"><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>,
|
||||
@ -747,7 +747,7 @@ For array variables, use the rule:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="orgffda076"><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="orgabdb78a"><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>);
|
||||
|
||||
@ -785,17 +785,17 @@ For array variables, use the rule:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5484360" class="outline-4">
|
||||
<h4 id="org5484360"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
||||
<div id="outline-container-org47085a7" class="outline-4">
|
||||
<h4 id="org47085a7"><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="#org4653d5d">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org35d2bfb">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf227034" class="outline-5">
|
||||
<h5 id="orgf227034"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div id="outline-container-orgc74c57f" class="outline-5">
|
||||
<h5 id="orgc74c57f"><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
|
||||
@ -919,8 +919,8 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd95ddd2" class="outline-5">
|
||||
<h5 id="orgd95ddd2"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org6b25bb7" class="outline-5">
|
||||
<h5 id="org6b25bb7"><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>
|
||||
@ -1103,17 +1103,17 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org198c778" class="outline-4">
|
||||
<h4 id="org198c778"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
||||
<div id="outline-container-orgc2d63e3" class="outline-4">
|
||||
<h4 id="orgc2d63e3"><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="#org4653d5d">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#org35d2bfb">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc1b2bb7" class="outline-5">
|
||||
<h5 id="orgc1b2bb7"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div id="outline-container-org4e45bd8" class="outline-5">
|
||||
<h5 id="org4e45bd8"><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>
|
||||
@ -1235,8 +1235,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org587a650" class="outline-5">
|
||||
<h5 id="org587a650"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org2c98638" class="outline-5">
|
||||
<h5 id="org2c98638"><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>
|
||||
@ -1420,8 +1420,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org10592cd" class="outline-3">
|
||||
<h3 id="org10592cd"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div id="outline-container-org8fd0443" class="outline-3">
|
||||
<h3 id="org8fd0443"><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:
|
||||
@ -1496,8 +1496,8 @@ The following data is computed as described in the next sections:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org91bee5a" class="outline-4">
|
||||
<h4 id="org91bee5a"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div id="outline-container-orgcc1e399" class="outline-4">
|
||||
<h4 id="orgcc1e399"><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
|
||||
@ -1511,8 +1511,8 @@ the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga73b103" class="outline-4">
|
||||
<h4 id="orga73b103"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
||||
<div id="outline-container-org2a21885" class="outline-4">
|
||||
<h4 id="org2a21885"><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:
|
||||
@ -1542,8 +1542,8 @@ which is a matrix-vector product.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org096e16a" class="outline-4">
|
||||
<h4 id="org096e16a"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||
<div id="outline-container-org4ee8cb3" class="outline-4">
|
||||
<h4 id="org4ee8cb3"><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>
|
||||
@ -1556,7 +1556,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="#org4004314">3.2</a>.
|
||||
See section <a href="#orgd9b6a14">3.2</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1569,7 +1569,7 @@ See section <a href="#org4004314">3.2</a>.
|
||||
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of contracted shells
|
||||
evaluated at the current coordinates. See section <a href="#org5ae668b">3.3</a>.
|
||||
evaluated at the current coordinates. See section <a href="#org3392a92">3.3</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1583,7 +1583,7 @@ evaluated at the current coordinates. See section <a href="#org5ae668b">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="#orge18f9a2">5</a>.
|
||||
See section <a href="#orged9c526">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1608,7 +1608,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="#orge18f9a2">5</a>.
|
||||
the current coordinates. See section <a href="#orged9c526">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1627,12 +1627,12 @@ Uses the given array to compute the value.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4898c1e" class="outline-2">
|
||||
<h2 id="org4898c1e"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div id="outline-container-org138c414" class="outline-2">
|
||||
<h2 id="org138c414"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org475c838" class="outline-3">
|
||||
<h3 id="org475c838"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div id="outline-container-orge9b7ff1" class="outline-3">
|
||||
<h3 id="orge9b7ff1"><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
|
||||
@ -1806,10 +1806,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4004314" class="outline-3">
|
||||
<h3 id="org4004314"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div id="outline-container-orgd9b6a14" class="outline-3">
|
||||
<h3 id="orgd9b6a14"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<table id="orgbe37b73" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd07a4f8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1972,10 +1972,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5ae668b" class="outline-3">
|
||||
<h3 id="org5ae668b"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div id="outline-container-org3392a92" class="outline-3">
|
||||
<h3 id="org3392a92"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<table id="org795dd23" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org22c2597" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2232,8 +2232,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd8d0ad0" class="outline-2">
|
||||
<h2 id="orgd8d0ad0"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div id="outline-container-org0eabe8f" class="outline-2">
|
||||
<h2 id="org0eabe8f"><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
|
||||
@ -2253,8 +2253,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-orgf73427c" class="outline-3">
|
||||
<h3 id="orgf73427c"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-org6277545" class="outline-3">
|
||||
<h3 id="org6277545"><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>
|
||||
@ -2266,7 +2266,7 @@ the \(n\) points:
|
||||
\[ P_{ik} = X_i^k \]
|
||||
</p>
|
||||
|
||||
<table id="orgc95cc0a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org32fdebf" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2409,8 +2409,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf2497bc" class="outline-3">
|
||||
<h3 id="orgf2497bc"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-org0fdd26e" class="outline-3">
|
||||
<h3 id="org0fdd26e"><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\)
|
||||
@ -2455,7 +2455,7 @@ Laplacians at a given point in space, of all polynomials with an
|
||||
angular momentum up to <code>lmax</code>.
|
||||
</p>
|
||||
|
||||
<table id="orgef94944" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org05d3a3d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3250,12 +3250,12 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge18f9a2" class="outline-2">
|
||||
<h2 id="orge18f9a2"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div id="outline-container-orged9c526" class="outline-2">
|
||||
<h2 id="orged9c526"><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-org515ff11" class="outline-3">
|
||||
<h3 id="org515ff11"><span class="section-number-3">5.1</span> Determination of nucleus ranges</h3>
|
||||
<div id="outline-container-orgce52b87" class="outline-3">
|
||||
<h3 id="orgce52b87"><span class="section-number-3">5.1</span> Determination of nucleus ranges</h3>
|
||||
<div class="outline-text-3" id="text-5-1">
|
||||
<p>
|
||||
The range of a nucleus is defined as the distance beyond which all
|
||||
@ -3422,14 +3422,14 @@ of bits of precision (1-53), a range is given.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbe9be92" class="outline-3">
|
||||
<h3 id="orgbe9be92"><span class="section-number-3">5.2</span> Values only</h3>
|
||||
<div id="outline-container-orgd97c7f8" class="outline-3">
|
||||
<h3 id="orgd97c7f8"><span class="section-number-3">5.2</span> Values only</h3>
|
||||
<div class="outline-text-3" id="text-5-2">
|
||||
</div>
|
||||
<div id="outline-container-orgf57dec5" class="outline-4">
|
||||
<h4 id="orgf57dec5"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-org3bae860" class="outline-4">
|
||||
<h4 id="org3bae860"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-1">
|
||||
<table id="orgc01e731" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org385e5c8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3670,10 +3670,10 @@ of bits of precision (1-53), a range is given.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeec4ad6" class="outline-4">
|
||||
<h4 id="orgeec4ad6"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div id="outline-container-org337c6c7" class="outline-4">
|
||||
<h4 id="org337c6c7"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-2">
|
||||
<table id="org239f446" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2bc6946" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3831,8 +3831,8 @@ of bits of precision (1-53), a range is given.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd2e303b" class="outline-4">
|
||||
<h4 id="orgd2e303b"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||
<div id="outline-container-org2b7fb72" class="outline-4">
|
||||
<h4 id="org2b7fb72"><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_value_doc</span> (
|
||||
@ -3881,14 +3881,14 @@ of bits of precision (1-53), a range is given.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1bdc9eb" class="outline-3">
|
||||
<h3 id="org1bdc9eb"><span class="section-number-3">5.3</span> Value, gradients, Laplacian</h3>
|
||||
<div id="outline-container-orgdbccc61" class="outline-3">
|
||||
<h3 id="orgdbccc61"><span class="section-number-3">5.3</span> Value, gradients, Laplacian</h3>
|
||||
<div class="outline-text-3" id="text-5-3">
|
||||
</div>
|
||||
<div id="outline-container-orgc6110f1" class="outline-4">
|
||||
<h4 id="orgc6110f1"><span class="section-number-4">5.3.1</span> Reference version</h4>
|
||||
<div id="outline-container-orge87c1ff" class="outline-4">
|
||||
<h4 id="orge87c1ff"><span class="section-number-4">5.3.1</span> Reference version</h4>
|
||||
<div class="outline-text-4" id="text-5-3-1">
|
||||
<table id="orgdbe789a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org195e561" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4157,10 +4157,10 @@ of bits of precision (1-53), a range is given.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc61a6b9" class="outline-4">
|
||||
<h4 id="orgc61a6b9"><span class="section-number-4">5.3.2</span> HPC version</h4>
|
||||
<div id="outline-container-orgfc4a837" class="outline-4">
|
||||
<h4 id="orgfc4a837"><span class="section-number-4">5.3.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-3-2">
|
||||
<table id="org51801a7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc2ad50b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4319,8 +4319,8 @@ of bits of precision (1-53), a range is given.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org90526cf" class="outline-4">
|
||||
<h4 id="org90526cf"><span class="section-number-4">5.3.3</span> Interfaces</h4>
|
||||
<div id="outline-container-org510ae0e" class="outline-4">
|
||||
<h4 id="org510ae0e"><span class="section-number-4">5.3.3</span> Interfaces</h4>
|
||||
<div class="outline-text-4" id="text-5-3-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> (
|
||||
@ -4372,7 +4372,7 @@ of bits of precision (1-53), a range is given.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2024-02-13 Tue 16:23</p>
|
||||
<p class="date">Created: 2024-02-14 Wed 10:00</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>
|
||||
<!-- 2024-02-13 Tue 16:22 -->
|
||||
<!-- 2024-02-14 Wed 10:00 -->
|
||||
<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="#orgc70a373">-</a></li>
|
||||
<li><a href="#org61239a3">1. Data types</a>
|
||||
<li><a href="#org91c16db">-</a></li>
|
||||
<li><a href="#org271dfbc">1. Data types</a>
|
||||
<ul>
|
||||
<li><a href="#orgebb928b">1.1. Vector</a></li>
|
||||
<li><a href="#orgf9de6c9">1.2. Matrix</a></li>
|
||||
<li><a href="#orgab1756a">1.3. Tensor</a></li>
|
||||
<li><a href="#org9c3ad59">1.4. Reshaping</a>
|
||||
<li><a href="#orgfd633e5">1.1. Vector</a></li>
|
||||
<li><a href="#orgfcbb6df">1.2. Matrix</a></li>
|
||||
<li><a href="#org236a04a">1.3. Tensor</a></li>
|
||||
<li><a href="#orgfcdbee8">1.4. Reshaping</a>
|
||||
<ul>
|
||||
<li><a href="#org1ecac49">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#org1d91b88">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#org7805572">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#orgd01c429">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#orge7267fb">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#org407d6e0">1.4.6. Tensor -> Matrix</a></li>
|
||||
<li><a href="#org352fa9a">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#org591bc26">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#org127eb3d">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#orgddac45b">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#org3b92008">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#org6646e00">1.4.6. Tensor -> Matrix</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc94c535">1.5. Access macros</a></li>
|
||||
<li><a href="#org6294aa1">1.6. Set all elements</a>
|
||||
<li><a href="#org193d21d">1.5. Access macros</a></li>
|
||||
<li><a href="#orgf590158">1.6. Set all elements</a>
|
||||
<ul>
|
||||
<li><a href="#org78a7265">1.6.1. Vector</a></li>
|
||||
<li><a href="#org2cc0dc6">1.6.2. Matrix</a></li>
|
||||
<li><a href="#org08ff473">1.6.3. Tensor</a></li>
|
||||
<li><a href="#orgb4cfc1a">1.6.1. Vector</a></li>
|
||||
<li><a href="#orgcdf8e97">1.6.2. Matrix</a></li>
|
||||
<li><a href="#orge6d3d3a">1.6.3. Tensor</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgff56cc7">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#org74c07f8">1.8. Allocate and copy to <code>double*</code></a></li>
|
||||
<li><a href="#org91db5d8">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#org046c3c5">1.8. Allocate and copy to <code>double*</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org90c5183">2. Matrix operations</a>
|
||||
<li><a href="#orgf10f419">2. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#org1e79d0d">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org3950edf">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#org3efce4a">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org0204373">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#orgacb9e51">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<li><a href="#org3e610f5">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#orge2ee0bb">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#org35fd82b">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org53f02d9">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#org9507884">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<ul>
|
||||
<li><a href="#org41a68f6">2.5.1. C interface</a></li>
|
||||
<li><a href="#orgbc69036">2.5.1. C interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1ddc89a">2.6. <code>qmckl_transpose</code></a></li>
|
||||
<li><a href="#org91479f6">2.6. <code>qmckl_transpose</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org850993d">3. Utilities</a></li>
|
||||
<li><a href="#org03009d1">3. Utilities</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc70a373" class="outline-2">
|
||||
<h2 id="orgc70a373">-</h2>
|
||||
<div class="outline-text-2" id="text-orgc70a373">
|
||||
<div id="outline-container-org91c16db" class="outline-2">
|
||||
<h2 id="org91c16db">-</h2>
|
||||
<div class="outline-text-2" id="text-org91c16db">
|
||||
<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-org61239a3" class="outline-2">
|
||||
<h2 id="org61239a3"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div id="outline-container-org271dfbc" class="outline-2">
|
||||
<h2 id="org271dfbc"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-orgebb928b" class="outline-3">
|
||||
<h3 id="orgebb928b"><span class="section-number-3">1.1</span> Vector</h3>
|
||||
<div id="outline-container-orgfd633e5" class="outline-3">
|
||||
<h3 id="orgfd633e5"><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-orgf9de6c9" class="outline-3">
|
||||
<h3 id="orgf9de6c9"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||
<div id="outline-container-orgfcbb6df" class="outline-3">
|
||||
<h3 id="orgfcbb6df"><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-orgab1756a" class="outline-3">
|
||||
<h3 id="orgab1756a"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||
<div id="outline-container-org236a04a" class="outline-3">
|
||||
<h3 id="org236a04a"><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-org9c3ad59" class="outline-3">
|
||||
<h3 id="org9c3ad59"><span class="section-number-3">1.4</span> Reshaping</h3>
|
||||
<div id="outline-container-orgfcdbee8" class="outline-3">
|
||||
<h3 id="orgfcdbee8"><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-org1ecac49" class="outline-4">
|
||||
<h4 id="org1ecac49"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||
<div id="outline-container-org352fa9a" class="outline-4">
|
||||
<h4 id="org352fa9a"><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-org1d91b88" class="outline-4">
|
||||
<h4 id="org1d91b88"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||
<div id="outline-container-org591bc26" class="outline-4">
|
||||
<h4 id="org591bc26"><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-org7805572" class="outline-4">
|
||||
<h4 id="org7805572"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||
<div id="outline-container-org127eb3d" class="outline-4">
|
||||
<h4 id="org127eb3d"><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-orgd01c429" class="outline-4">
|
||||
<h4 id="orgd01c429"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||
<div id="outline-container-orgddac45b" class="outline-4">
|
||||
<h4 id="orgddac45b"><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-orge7267fb" class="outline-4">
|
||||
<h4 id="orge7267fb"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||
<div id="outline-container-org3b92008" class="outline-4">
|
||||
<h4 id="org3b92008"><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-org407d6e0" class="outline-4">
|
||||
<h4 id="org407d6e0"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||
<div id="outline-container-org6646e00" class="outline-4">
|
||||
<h4 id="org6646e00"><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-orgc94c535" class="outline-3">
|
||||
<h3 id="orgc94c535"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||
<div id="outline-container-org193d21d" class="outline-3">
|
||||
<h3 id="org193d21d"><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-org6294aa1" class="outline-3">
|
||||
<h3 id="org6294aa1"><span class="section-number-3">1.6</span> Set all elements</h3>
|
||||
<div id="outline-container-orgf590158" class="outline-3">
|
||||
<h3 id="orgf590158"><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-org78a7265" class="outline-4">
|
||||
<h4 id="org78a7265"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||
<div id="outline-container-orgb4cfc1a" class="outline-4">
|
||||
<h4 id="orgb4cfc1a"><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-org2cc0dc6" class="outline-4">
|
||||
<h4 id="org2cc0dc6"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||
<div id="outline-container-orgcdf8e97" class="outline-4">
|
||||
<h4 id="orgcdf8e97"><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-org08ff473" class="outline-4">
|
||||
<h4 id="org08ff473"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||
<div id="outline-container-orge6d3d3a" class="outline-4">
|
||||
<h4 id="orge6d3d3a"><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-orgff56cc7" class="outline-3">
|
||||
<h3 id="orgff56cc7"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||
<div id="outline-container-org91db5d8" class="outline-3">
|
||||
<h3 id="org91db5d8"><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-org74c07f8" class="outline-3">
|
||||
<h3 id="org74c07f8"><span class="section-number-3">1.8</span> Allocate and copy to <code>double*</code></h3>
|
||||
<div id="outline-container-org046c3c5" class="outline-3">
|
||||
<h3 id="org046c3c5"><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-org90c5183" class="outline-2">
|
||||
<h2 id="org90c5183"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div id="outline-container-orgf10f419" class="outline-2">
|
||||
<h2 id="orgf10f419"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org1e79d0d" class="outline-3">
|
||||
<h3 id="org1e79d0d"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div id="outline-container-org3e610f5" class="outline-3">
|
||||
<h3 id="org3e610f5"><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="org9e225ae" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgcbe3177" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1052,8 +1052,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3950edf" class="outline-3">
|
||||
<h3 id="org3950edf"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
||||
<div id="outline-container-orge2ee0bb" class="outline-3">
|
||||
<h3 id="orge2ee0bb"><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="org53bc3ce" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org07b7e23" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1248,8 +1248,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3efce4a" class="outline-3">
|
||||
<h3 id="org3efce4a"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
||||
<div id="outline-container-org35fd82b" class="outline-3">
|
||||
<h3 id="org35fd82b"><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="org4604f86" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org58c2081" 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-org0204373" class="outline-3">
|
||||
<h3 id="org0204373"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
||||
<div id="outline-container-org53f02d9" class="outline-3">
|
||||
<h3 id="org53f02d9"><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="org3081f6a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0238891" 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-orgacb9e51" class="outline-3">
|
||||
<h3 id="orgacb9e51"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
||||
<div id="outline-container-org9507884" class="outline-3">
|
||||
<h3 id="org9507884"><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="org607c9b4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org087f739" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1703,13 +1703,13 @@ LAPACK library.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org41a68f6" class="outline-4">
|
||||
<h4 id="org41a68f6"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
<div id="outline-container-orgbc69036" class="outline-4">
|
||||
<h4 id="orgbc69036"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1ddc89a" class="outline-3">
|
||||
<h3 id="org1ddc89a"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
||||
<div id="outline-container-org91479f6" class="outline-3">
|
||||
<h3 id="org91479f6"><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-org850993d" class="outline-2">
|
||||
<h2 id="org850993d"><span class="section-number-2">3</span> Utilities</h2>
|
||||
<div id="outline-container-org03009d1" class="outline-2">
|
||||
<h2 id="org03009d1"><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: 2024-02-13 Tue 16:22</p>
|
||||
<p class="date">Created: 2024-02-14 Wed 10:00</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>
|
||||
<!-- 2024-02-13 Tue 16:22 -->
|
||||
<!-- 2024-02-14 Wed 10:00 -->
|
||||
<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="#org3a00173">1. Context handling</a>
|
||||
<li><a href="#orgce61207">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#orgced7a52">1.1. Data structure</a></li>
|
||||
<li><a href="#org93a75b8">1.2. Creation</a></li>
|
||||
<li><a href="#org4031a38">1.3. Locking</a></li>
|
||||
<li><a href="#org79fab12">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org19dcf2a">1.5. Destroy</a></li>
|
||||
<li><a href="#orgba21da9">1.1. Data structure</a></li>
|
||||
<li><a href="#org993093a">1.2. Creation</a></li>
|
||||
<li><a href="#orgfb5783c">1.3. Locking</a></li>
|
||||
<li><a href="#orgb2e7f91">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org0890903">1.5. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3a00173" class="outline-2">
|
||||
<h2 id="org3a00173"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-orgce61207" class="outline-2">
|
||||
<h2 id="orgce61207"><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="org2bd5e41"><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="org314b124"><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-orgced7a52" class="outline-3">
|
||||
<h3 id="orgced7a52"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgba21da9" class="outline-3">
|
||||
<h3 id="orgba21da9"><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="#org93a75b8"><code>qmckl_context_create</code></a> <a href="#org19dcf2a"><code>qmckl_context_destroy</code></a> and <a href="#org79fab12"><code>qmckl_context_copy</code></a>
|
||||
<a href="#org993093a"><code>qmckl_context_create</code></a> <a href="#org0890903"><code>qmckl_context_destroy</code></a> and <a href="#orgb2e7f91"><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-org93a75b8" class="outline-3">
|
||||
<h3 id="org93a75b8"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-org993093a" class="outline-3">
|
||||
<h3 id="org993093a"><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-org4031a38" class="outline-3">
|
||||
<h3 id="org4031a38"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-orgfb5783c" class="outline-3">
|
||||
<h3 id="orgfb5783c"><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-org79fab12" class="outline-3">
|
||||
<h3 id="org79fab12"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div id="outline-container-orgb2e7f91" class="outline-3">
|
||||
<h3 id="orgb2e7f91"><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-org19dcf2a" class="outline-3">
|
||||
<h3 id="org19dcf2a"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-org0890903" class="outline-3">
|
||||
<h3 id="org0890903"><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: 2024-02-13 Tue 16:22</p>
|
||||
<p class="date">Created: 2024-02-14 Wed 10:00</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>
|
||||
<!-- 2024-02-13 Tue 16:23 -->
|
||||
<!-- 2024-02-14 Wed 10:00 -->
|
||||
<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="#org7e0b6d3">1. Context</a>
|
||||
<li><a href="#org0c8aecd">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org5cb71ec">1.1. Data structure</a></li>
|
||||
<li><a href="#org157f556">1.2. Access functions</a></li>
|
||||
<li><a href="#orga9bc8bd">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org1b3a46f">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#org2f6114c">1.5. Test</a></li>
|
||||
<li><a href="#orge91ef1c">1.1. Data structure</a></li>
|
||||
<li><a href="#orgc1e4e9d">1.2. Access functions</a></li>
|
||||
<li><a href="#orgf5f19f1">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org8c79db8">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#org4ca3f7e">1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7d9b086">2. Computation</a>
|
||||
<li><a href="#orgcaa2fe1">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgfdd74e2">2.1. Determinant matrix</a>
|
||||
<li><a href="#orgaa687f0">2.1. Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org930e65f">2.1.1. Get</a></li>
|
||||
<li><a href="#orgfab24d2">2.1.2. Provide</a></li>
|
||||
<li><a href="#org5abfe9b">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#orgf49595b">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#org9d1933c">2.1.5. Test</a></li>
|
||||
<li><a href="#org20ef22e">2.1.1. Get</a></li>
|
||||
<li><a href="#orgb1b797b">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgf5b8ba6">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#orga90f7ec">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#orge265af2">2.1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgee27ea3">2.2. Inverse of Determinant matrix</a>
|
||||
<li><a href="#org0a832b5">2.2. Inverse of Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org6bee6b6">2.2.1. Get</a></li>
|
||||
<li><a href="#orgb587fe4">2.2.2. Provide</a></li>
|
||||
<li><a href="#org12fb7a6">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#org0d7cc7b">2.2.4. Compute beta</a></li>
|
||||
<li><a href="#org9848b4c">2.2.1. Get</a></li>
|
||||
<li><a href="#orgd6493f4">2.2.2. Provide</a></li>
|
||||
<li><a href="#org960c8f0">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#orgf23587d">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-org7e0b6d3" class="outline-2">
|
||||
<h2 id="org7e0b6d3"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org0c8aecd" class="outline-2">
|
||||
<h2 id="org0c8aecd"><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-org5cb71ec" class="outline-3">
|
||||
<h3 id="org5cb71ec"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orge91ef1c" class="outline-3">
|
||||
<h3 id="orge91ef1c"><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-org157f556" class="outline-3">
|
||||
<h3 id="org157f556"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgc1e4e9d" class="outline-3">
|
||||
<h3 id="orgc1e4e9d"><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-orga9bc8bd" class="outline-3">
|
||||
<h3 id="orga9bc8bd"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgf5f19f1" class="outline-3">
|
||||
<h3 id="orgf5f19f1"><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-org1b3a46f" class="outline-3">
|
||||
<h3 id="org1b3a46f"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
<div id="outline-container-org8c79db8" class="outline-3">
|
||||
<h3 id="org8c79db8"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
</div>
|
||||
<div id="outline-container-org2f6114c" class="outline-3">
|
||||
<h3 id="org2f6114c"><span class="section-number-3">1.5</span> Test</h3>
|
||||
<div id="outline-container-org4ca3f7e" class="outline-3">
|
||||
<h3 id="org4ca3f7e"><span class="section-number-3">1.5</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org7d9b086" class="outline-2">
|
||||
<h2 id="org7d9b086"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orgcaa2fe1" class="outline-2">
|
||||
<h2 id="orgcaa2fe1"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgfdd74e2" class="outline-3">
|
||||
<h3 id="orgfdd74e2"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
||||
<div id="outline-container-orgaa687f0" class="outline-3">
|
||||
<h3 id="orgaa687f0"><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-org930e65f" class="outline-4">
|
||||
<h4 id="org930e65f"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org20ef22e" class="outline-4">
|
||||
<h4 id="org20ef22e"><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-orgfab24d2" class="outline-4">
|
||||
<h4 id="orgfab24d2"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-orgb1b797b" class="outline-4">
|
||||
<h4 id="orgb1b797b"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5abfe9b" class="outline-4">
|
||||
<h4 id="org5abfe9b"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-orgf5b8ba6" class="outline-4">
|
||||
<h4 id="orgf5b8ba6"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="orgf214778" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org40c0664" 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-orgf49595b" class="outline-4">
|
||||
<h4 id="orgf49595b"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div id="outline-container-orga90f7ec" class="outline-4">
|
||||
<h4 id="orga90f7ec"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<table id="org49ef966" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2fe3a87" 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-org9d1933c" class="outline-4">
|
||||
<h4 id="org9d1933c"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
<div id="outline-container-orge265af2" class="outline-4">
|
||||
<h4 id="orge265af2"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgee27ea3" class="outline-3">
|
||||
<h3 id="orgee27ea3"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
||||
<div id="outline-container-org0a832b5" class="outline-3">
|
||||
<h3 id="org0a832b5"><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-org6bee6b6" class="outline-4">
|
||||
<h4 id="org6bee6b6"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org9848b4c" class="outline-4">
|
||||
<h4 id="org9848b4c"><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-orgb587fe4" class="outline-4">
|
||||
<h4 id="orgb587fe4"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-orgd6493f4" class="outline-4">
|
||||
<h4 id="orgd6493f4"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org12fb7a6" class="outline-4">
|
||||
<h4 id="org12fb7a6"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org960c8f0" class="outline-4">
|
||||
<h4 id="org960c8f0"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org4e902f2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge1f7588" 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-org0d7cc7b" class="outline-4">
|
||||
<h4 id="org0d7cc7b"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div id="outline-container-orgf23587d" class="outline-4">
|
||||
<h4 id="orgf23587d"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<table id="org6328350" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org368a3b5" 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: 2024-02-13 Tue 16:23</p>
|
||||
<p class="date">Created: 2024-02-14 Wed 10:00</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>
|
||||
<!-- 2024-02-13 Tue 16:22 -->
|
||||
<!-- 2024-02-14 Wed 10:00 -->
|
||||
<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="#orge02e5ac">1. Squared distance</a>
|
||||
<li><a href="#org0584334">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#orgd8b63c0">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#org9c493c8">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgcbf36b4">1.1.1. Performance</a></li>
|
||||
<li><a href="#org35c600e">1.1.1. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org43ae83f">2. Distance</a>
|
||||
<li><a href="#org10f5339">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#orged88d2b">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#orgaacca2e">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgbbc110d">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org89ad440">2.1.2. C header</a></li>
|
||||
<li><a href="#orgc5b7f14">2.1.3. Source</a></li>
|
||||
<li><a href="#org6de4992">2.1.4. Performance</a></li>
|
||||
<li><a href="#orgbc03473">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org8354d73">2.1.2. C header</a></li>
|
||||
<li><a href="#org6e83c5d">2.1.3. Source</a></li>
|
||||
<li><a href="#org4fca0e9">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge7c16fb">3. Rescaled Distance</a>
|
||||
<li><a href="#org9c1f575">3. Rescaled Distance</a>
|
||||
<ul>
|
||||
<li><a href="#orga2355d2">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<li><a href="#org9120307">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<ul>
|
||||
<li><a href="#org65819de">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orgcf29327">3.1.2. C header</a></li>
|
||||
<li><a href="#org624b66f">3.1.3. Source</a></li>
|
||||
<li><a href="#orgfe20cf3">3.1.4. Performance</a></li>
|
||||
<li><a href="#org859b0e0">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orgeebd8e7">3.1.2. C header</a></li>
|
||||
<li><a href="#orgde3f59b">3.1.3. Source</a></li>
|
||||
<li><a href="#org361b4e4">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4537fd8">4. Rescaled Distance Derivatives</a>
|
||||
<li><a href="#org3d3eb8a">4. Rescaled Distance Derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#org026bd88">4.1. <code>qmckl_distance_rescaled_gl</code></a></li>
|
||||
<li><a href="#org107552a">4.1. <code>qmckl_distance_rescaled_gl</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge02e5ac" class="outline-2">
|
||||
<h2 id="orge02e5ac"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-org0584334" class="outline-2">
|
||||
<h2 id="org0584334"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-orgd8b63c0" class="outline-3">
|
||||
<h3 id="orgd8b63c0"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-org9c493c8" class="outline-3">
|
||||
<h3 id="org9c493c8"><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="org4aeb586" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgabb1db2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -679,8 +679,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcbf36b4" class="outline-4">
|
||||
<h4 id="orgcbf36b4"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div id="outline-container-org35c600e" class="outline-4">
|
||||
<h4 id="org35c600e"><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
|
||||
@ -690,12 +690,12 @@ transposed.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org43ae83f" class="outline-2">
|
||||
<h2 id="org43ae83f"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-org10f5339" class="outline-2">
|
||||
<h2 id="org10f5339"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orged88d2b" class="outline-3">
|
||||
<h3 id="orged88d2b"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div id="outline-container-orgaacca2e" class="outline-3">
|
||||
<h3 id="orgaacca2e"><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
|
||||
@ -713,7 +713,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="orgc9a5759" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org75f9747" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -814,8 +814,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbbc110d" class="outline-4">
|
||||
<h4 id="orgbbc110d"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgbc03473" class="outline-4">
|
||||
<h4 id="orgbc03473"><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>
|
||||
@ -833,8 +833,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org89ad440" class="outline-4">
|
||||
<h4 id="org89ad440"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-org8354d73" class="outline-4">
|
||||
<h4 id="org8354d73"><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> (
|
||||
@ -854,8 +854,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc5b7f14" class="outline-4">
|
||||
<h4 id="orgc5b7f14"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-org6e83c5d" class="outline-4">
|
||||
<h4 id="org6e83c5d"><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: #a020f0;">function</span> <span style="color: #0000ff;">qmckl_distance</span>(context, transa, transb, m, n, <span style="color: #a020f0;">&</span>
|
||||
@ -1006,8 +1006,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6de4992" class="outline-4">
|
||||
<h4 id="org6de4992"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org4fca0e9" class="outline-4">
|
||||
<h4 id="org4fca0e9"><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.
|
||||
@ -1017,12 +1017,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge7c16fb" class="outline-2">
|
||||
<h2 id="orge7c16fb"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div id="outline-container-org9c1f575" class="outline-2">
|
||||
<h2 id="org9c1f575"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orga2355d2" class="outline-3">
|
||||
<h3 id="orga2355d2"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div id="outline-container-org9120307" class="outline-3">
|
||||
<h3 id="org9120307"><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
|
||||
@ -1040,7 +1040,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="org7820990" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9d2d268" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1148,8 +1148,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org65819de" class="outline-4">
|
||||
<h4 id="org65819de"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org859b0e0" class="outline-4">
|
||||
<h4 id="org859b0e0"><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>
|
||||
@ -1167,8 +1167,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcf29327" class="outline-4">
|
||||
<h4 id="orgcf29327"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgeebd8e7" class="outline-4">
|
||||
<h4 id="orgeebd8e7"><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> (
|
||||
@ -1189,8 +1189,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org624b66f" class="outline-4">
|
||||
<h4 id="org624b66f"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgde3f59b" class="outline-4">
|
||||
<h4 id="orgde3f59b"><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: #a020f0;">function</span> <span style="color: #0000ff;">qmckl_distance_rescaled</span>(context, transa, transb, m, n, <span style="color: #a020f0;">&</span>
|
||||
@ -1344,8 +1344,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfe20cf3" class="outline-4">
|
||||
<h4 id="orgfe20cf3"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org361b4e4" class="outline-4">
|
||||
<h4 id="org361b4e4"><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.
|
||||
@ -1354,12 +1354,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org4537fd8" class="outline-2">
|
||||
<h2 id="org4537fd8"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div id="outline-container-org3d3eb8a" class="outline-2">
|
||||
<h2 id="org3d3eb8a"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org026bd88" class="outline-3">
|
||||
<h3 id="org026bd88"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_gl</code></h3>
|
||||
<div id="outline-container-org107552a" class="outline-3">
|
||||
<h3 id="org107552a"><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
|
||||
@ -1414,7 +1414,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="org1c63b63" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org29c9a14" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1735,7 +1735,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: 2024-02-13 Tue 16:22</p>
|
||||
<p class="date">Created: 2024-02-14 Wed 10:00</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>
|
||||
<!-- 2024-02-13 Tue 16:23 -->
|
||||
<!-- 2024-02-14 Wed 10:00 -->
|
||||
<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="#org719b461">1. Context</a>
|
||||
<li><a href="#org3cdff8e">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org11e85bf">1.1. Data structure</a></li>
|
||||
<li><a href="#org73d02ae">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org63356c5">1.3. Access functions</a>
|
||||
<li><a href="#org3726c18">1.1. Data structure</a></li>
|
||||
<li><a href="#org5a7e536">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org9bf851f">1.3. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgcbf7ffd">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#org072e6d4">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#orgfd0f25f">1.3.3. Electron coordinates</a></li>
|
||||
<li><a href="#org4b0d573">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#orgc1bd138">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#orgfcc060d">1.3.3. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd2dff15">1.4. Test</a></li>
|
||||
<li><a href="#orge134677">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgade1d7f">2. Computation</a>
|
||||
<li><a href="#org9289240">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org6a40e1f">2.1. Electron-electron distances</a>
|
||||
<li><a href="#org69ef39b">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgcfc2db9">2.1.1. Get</a></li>
|
||||
<li><a href="#org6476624">2.1.2. Compute</a></li>
|
||||
<li><a href="#org410f856">2.1.3. Test</a></li>
|
||||
<li><a href="#org810a143">2.1.1. Get</a></li>
|
||||
<li><a href="#org2f4f8a6">2.1.2. Compute</a></li>
|
||||
<li><a href="#org0807ab2">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7384099">2.2. Electron-electron potential</a>
|
||||
<li><a href="#orgf44944f">2.2. Electron-electron potential</a>
|
||||
<ul>
|
||||
<li><a href="#org04a1f5b">2.2.1. Get</a></li>
|
||||
<li><a href="#org0ba4db6">2.2.2. Compute</a></li>
|
||||
<li><a href="#org3ea95ec">2.2.3. Test</a></li>
|
||||
<li><a href="#org64adb4f">2.2.1. Get</a></li>
|
||||
<li><a href="#orgf68dddf">2.2.2. Compute</a></li>
|
||||
<li><a href="#org90481e6">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge5329b4">2.3. Electron-nucleus distances</a>
|
||||
<li><a href="#orge3989d2">2.3. Electron-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org7ff8ec5">2.3.1. Get</a></li>
|
||||
<li><a href="#org8200bd8">2.3.2. Compute</a></li>
|
||||
<li><a href="#org3893e6f">2.3.3. Test</a></li>
|
||||
<li><a href="#orgbae5dac">2.3.1. Get</a></li>
|
||||
<li><a href="#orgc171a6b">2.3.2. Compute</a></li>
|
||||
<li><a href="#orgda6dec1">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga61e607">2.4. Electron-nucleus potential</a>
|
||||
<li><a href="#org15e1881">2.4. Electron-nucleus potential</a>
|
||||
<ul>
|
||||
<li><a href="#org09cc52f">2.4.1. Get</a></li>
|
||||
<li><a href="#org847cdb3">2.4.2. Compute</a></li>
|
||||
<li><a href="#orgc09b879">2.4.3. Test</a></li>
|
||||
<li><a href="#orgcdd332e">2.4.1. Get</a></li>
|
||||
<li><a href="#orgfad8ccf">2.4.2. Compute</a></li>
|
||||
<li><a href="#orgb3e41ef">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgcaf7850">2.5. Generate initial coordinates</a></li>
|
||||
<li><a href="#org4202cf6">2.5. Generate initial coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org719b461" class="outline-2">
|
||||
<h2 id="org719b461"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org3cdff8e" class="outline-2">
|
||||
<h2 id="org3cdff8e"><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-org11e85bf" class="outline-3">
|
||||
<h3 id="org11e85bf"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org3726c18" class="outline-3">
|
||||
<h3 id="org3726c18"><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-org73d02ae" class="outline-3">
|
||||
<h3 id="org73d02ae"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-org5a7e536" class="outline-3">
|
||||
<h3 id="org5a7e536"><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-org63356c5" class="outline-3">
|
||||
<h3 id="org63356c5"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div id="outline-container-org9bf851f" class="outline-3">
|
||||
<h3 id="org9bf851f"><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-orgcbf7ffd" class="outline-4">
|
||||
<h4 id="orgcbf7ffd"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
<div id="outline-container-org4b0d573" class="outline-4">
|
||||
<h4 id="org4b0d573"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org072e6d4" class="outline-4">
|
||||
<h4 id="org072e6d4"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
||||
<div id="outline-container-orgc1bd138" class="outline-4">
|
||||
<h4 id="orgc1bd138"><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-orgfd0f25f" class="outline-4">
|
||||
<h4 id="orgfd0f25f"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
||||
<div id="outline-container-orgfcc060d" class="outline-4">
|
||||
<h4 id="orgfcc060d"><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
|
||||
@ -776,8 +776,8 @@ current points.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgd2dff15" class="outline-3">
|
||||
<h3 id="orgd2dff15"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orge134677" class="outline-3">
|
||||
<h3 id="orge134677"><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> */
|
||||
@ -856,8 +856,8 @@ rc = qmckl_get_electron_coord (context, <span style="color: #8b2252;">'N'</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgade1d7f" class="outline-2">
|
||||
<h2 id="orgade1d7f"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org9289240" class="outline-2">
|
||||
<h2 id="org9289240"><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
|
||||
@ -870,12 +870,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6a40e1f" class="outline-3">
|
||||
<h3 id="org6a40e1f"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-org69ef39b" class="outline-3">
|
||||
<h3 id="org69ef39b"><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-orgcfc2db9" class="outline-4">
|
||||
<h4 id="orgcfc2db9"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org810a143" class="outline-4">
|
||||
<h4 id="org810a143"><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>);
|
||||
@ -884,10 +884,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6476624" class="outline-4">
|
||||
<h4 id="org6476624"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org2f4f8a6" class="outline-4">
|
||||
<h4 id="org2f4f8a6"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org1de393f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc7571ea" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -992,8 +992,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org410f856" class="outline-4">
|
||||
<h4 id="org410f856"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org0807ab2" class="outline-4">
|
||||
<h4 id="org0807ab2"><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>));
|
||||
@ -1027,8 +1027,8 @@ rc = qmckl_get_electron_ee_distance(context, ee_distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7384099" class="outline-3">
|
||||
<h3 id="org7384099"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
||||
<div id="outline-container-orgf44944f" class="outline-3">
|
||||
<h3 id="orgf44944f"><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
|
||||
@ -1046,8 +1046,8 @@ distance.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org04a1f5b" class="outline-4">
|
||||
<h4 id="org04a1f5b"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org64adb4f" class="outline-4">
|
||||
<h4 id="org64adb4f"><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>);
|
||||
@ -1056,10 +1056,10 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0ba4db6" class="outline-4">
|
||||
<h4 id="org0ba4db6"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-orgf68dddf" class="outline-4">
|
||||
<h4 id="orgf68dddf"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="org663c0d7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org95be102" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1175,8 +1175,8 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3ea95ec" class="outline-4">
|
||||
<h4 id="org3ea95ec"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org90481e6" class="outline-4">
|
||||
<h4 id="org90481e6"><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];
|
||||
@ -1188,12 +1188,12 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orge5329b4" class="outline-3">
|
||||
<h3 id="orge5329b4"><span class="section-number-3">2.3</span> Electron-nucleus distances</h3>
|
||||
<div id="outline-container-orge3989d2" class="outline-3">
|
||||
<h3 id="orge3989d2"><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-org7ff8ec5" class="outline-4">
|
||||
<h4 id="org7ff8ec5"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-orgbae5dac" class="outline-4">
|
||||
<h4 id="orgbae5dac"><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>);
|
||||
@ -1202,10 +1202,10 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8200bd8" class="outline-4">
|
||||
<h4 id="org8200bd8"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-orgc171a6b" class="outline-4">
|
||||
<h4 id="orgc171a6b"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org9db0500" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org10c6911" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1312,8 +1312,8 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3893e6f" class="outline-4">
|
||||
<h4 id="org3893e6f"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-orgda6dec1" class="outline-4">
|
||||
<h4 id="orgda6dec1"><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">
|
||||
@ -1361,8 +1361,8 @@ rc = qmckl_get_electron_en_distance(context, &(en_distance[0][0][0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga61e607" class="outline-3">
|
||||
<h3 id="orga61e607"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
||||
<div id="outline-container-org15e1881" class="outline-3">
|
||||
<h3 id="org15e1881"><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
|
||||
@ -1380,8 +1380,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org09cc52f" class="outline-4">
|
||||
<h4 id="org09cc52f"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-orgcdd332e" class="outline-4">
|
||||
<h4 id="orgcdd332e"><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>);
|
||||
@ -1390,10 +1390,10 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org847cdb3" class="outline-4">
|
||||
<h4 id="org847cdb3"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-orgfad8ccf" class="outline-4">
|
||||
<h4 id="orgfad8ccf"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="orgc23c24f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgea46d4c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1527,8 +1527,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc09b879" class="outline-4">
|
||||
<h4 id="orgc09b879"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-orgb3e41ef" class="outline-4">
|
||||
<h4 id="orgb3e41ef"><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];
|
||||
@ -1541,14 +1541,14 @@ rc = qmckl_get_electron_en_potential(context, &(en_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcaf7850" class="outline-3">
|
||||
<h3 id="orgcaf7850"><span class="section-number-3">2.5</span> Generate initial coordinates</h3>
|
||||
<div id="outline-container-org4202cf6" class="outline-3">
|
||||
<h3 id="org4202cf6"><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: 2024-02-13 Tue 16:23</p>
|
||||
<p class="date">Created: 2024-02-14 Wed 10:00</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>
|
||||
<!-- 2024-02-13 Tue 16:22 -->
|
||||
<!-- 2024-02-14 Wed 10:00 -->
|
||||
<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="#org4ffce8c">-</a></li>
|
||||
<li><a href="#org6acc3f1">1. Decoding errors</a></li>
|
||||
<li><a href="#org645fa7c">2. Data structure in context</a></li>
|
||||
<li><a href="#orgb9d214b">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org27af2d2">4. Get the error</a></li>
|
||||
<li><a href="#org64df5d1">5. Failing</a></li>
|
||||
<li><a href="#org9db7333">6. Last error</a>
|
||||
<li><a href="#org0bf069e">-</a></li>
|
||||
<li><a href="#org1cbe281">1. Decoding errors</a></li>
|
||||
<li><a href="#org86a0397">2. Data structure in context</a></li>
|
||||
<li><a href="#org3cd2007">3. Updating errors in the context</a></li>
|
||||
<li><a href="#orga644ee6">4. Get the error</a></li>
|
||||
<li><a href="#orgd3ab5b6">5. Failing</a></li>
|
||||
<li><a href="#orge3cef79">6. Last error</a>
|
||||
<ul>
|
||||
<li><a href="#orgc86e64c">6.1. Fortran inteface</a></li>
|
||||
<li><a href="#org462dde5">6.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org76f81bf">7. Helper functions for debugging</a>
|
||||
<li><a href="#orgb8a7afc">7. Helper functions for debugging</a>
|
||||
<ul>
|
||||
<li><a href="#org604740d">7.1. Fortran inteface</a></li>
|
||||
<li><a href="#orgded8740">7.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4ffce8c" class="outline-2">
|
||||
<h2 id="org4ffce8c">-</h2>
|
||||
<div class="outline-text-2" id="text-org4ffce8c">
|
||||
<div id="outline-container-org0bf069e" class="outline-2">
|
||||
<h2 id="org0bf069e">-</h2>
|
||||
<div class="outline-text-2" id="text-org0bf069e">
|
||||
<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="org7ad76d5"><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="org70a7a8d"><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="orga1ca2ee" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org833d609" 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-org6acc3f1" class="outline-2">
|
||||
<h2 id="org6acc3f1"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-org1cbe281" class="outline-2">
|
||||
<h2 id="org1cbe281"><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-org645fa7c" class="outline-2">
|
||||
<h2 id="org645fa7c"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-org86a0397" class="outline-2">
|
||||
<h2 id="org86a0397"><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-orgb9d214b" class="outline-2">
|
||||
<h2 id="orgb9d214b"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div id="outline-container-org3cd2007" class="outline-2">
|
||||
<h2 id="org3cd2007"><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-org27af2d2" class="outline-2">
|
||||
<h2 id="org27af2d2"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div id="outline-container-orga644ee6" class="outline-2">
|
||||
<h2 id="orga644ee6"><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-org64df5d1" class="outline-2">
|
||||
<h2 id="org64df5d1"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div id="outline-container-orgd3ab5b6" class="outline-2">
|
||||
<h2 id="orgd3ab5b6"><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-org9db7333" class="outline-2">
|
||||
<h2 id="org9db7333"><span class="section-number-2">6</span> Last error</h2>
|
||||
<div id="outline-container-orge3cef79" class="outline-2">
|
||||
<h2 id="orge3cef79"><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-orgc86e64c" class="outline-3">
|
||||
<h3 id="orgc86e64c"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-org462dde5" class="outline-3">
|
||||
<h3 id="org462dde5"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org76f81bf" class="outline-2">
|
||||
<h2 id="org76f81bf"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
||||
<div id="outline-container-orgb8a7afc" class="outline-2">
|
||||
<h2 id="orgb8a7afc"><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-org604740d" class="outline-3">
|
||||
<h3 id="org604740d"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-orgded8740" class="outline-3">
|
||||
<h3 id="orgded8740"><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: 2024-02-13 Tue 16:22</p>
|
||||
<p class="date">Created: 2024-02-14 Wed 10:00</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>
|
||||
<!-- 2024-02-13 Tue 16:22 -->
|
||||
<!-- 2024-02-14 Wed 10:00 -->
|
||||
<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="#orga467b5b">1. Overlap matrix in the MO basis</a>
|
||||
<li><a href="#org4c42332">1. Overlap matrix in the MO basis</a>
|
||||
<ul>
|
||||
<li><a href="#orgde4a2ae">1.1. Python</a></li>
|
||||
<li><a href="#orgcdd7d27">1.2. C</a></li>
|
||||
<li><a href="#orgda7deee">1.3. Fortran</a></li>
|
||||
<li><a href="#org0dfb833">1.1. Python</a></li>
|
||||
<li><a href="#orgc6b5cc1">1.2. C</a></li>
|
||||
<li><a href="#org0ab2303">1.3. Fortran</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1b0051b">2. Fortran</a>
|
||||
<li><a href="#orgcd0d3ce">2. Fortran</a>
|
||||
<ul>
|
||||
<li><a href="#org2238b7e">2.1. Checking errors</a></li>
|
||||
<li><a href="#org674802c">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
<li><a href="#orgbcef133">2.1. Checking errors</a></li>
|
||||
<li><a href="#org0d628d6">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga467b5b" class="outline-2">
|
||||
<h2 id="orga467b5b"><span class="section-number-2">1</span> Overlap matrix in the MO basis</h2>
|
||||
<div id="outline-container-org4c42332" class="outline-2">
|
||||
<h2 id="org4c42332"><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-orgde4a2ae" class="outline-3">
|
||||
<h3 id="orgde4a2ae"><span class="section-number-3">1.1</span> Python</h3>
|
||||
<div id="outline-container-org0dfb833" class="outline-3">
|
||||
<h3 id="org0dfb833"><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-orgcdd7d27" class="outline-3">
|
||||
<h3 id="orgcdd7d27"><span class="section-number-3">1.2</span> C</h3>
|
||||
<div id="outline-container-orgc6b5cc1" class="outline-3">
|
||||
<h3 id="orgc6b5cc1"><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-orgda7deee" class="outline-3">
|
||||
<h3 id="orgda7deee"><span class="section-number-3">1.3</span> Fortran</h3>
|
||||
<div id="outline-container-org0ab2303" class="outline-3">
|
||||
<h3 id="org0ab2303"><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-org1b0051b" class="outline-2">
|
||||
<h2 id="org1b0051b"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div id="outline-container-orgcd0d3ce" class="outline-2">
|
||||
<h2 id="orgcd0d3ce"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org2238b7e" class="outline-3">
|
||||
<h3 id="org2238b7e"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div id="outline-container-orgbcef133" class="outline-3">
|
||||
<h3 id="orgbcef133"><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="org647fe35"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<pre class="src src-f90" id="org93af367"><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-org674802c" class="outline-3">
|
||||
<h3 id="org674802c"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div id="outline-container-org0d628d6" class="outline-3">
|
||||
<h3 id="org0d628d6"><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: 2024-02-13 Tue 16:22</p>
|
||||
<p class="date">Created: 2024-02-14 Wed 10:00</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>
|
||||
<!-- 2024-02-13 Tue 16:22 -->
|
||||
<!-- 2024-02-14 Wed 10:00 -->
|
||||
<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="#org67c117d">1. Context</a>
|
||||
<li><a href="#org9bef475">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org587d55c">1.1. Data structure</a></li>
|
||||
<li><a href="#orgdccd79d">1.2. Access functions</a></li>
|
||||
<li><a href="#org11366ae">1.1. Data structure</a></li>
|
||||
<li><a href="#orgfd80e9b">1.2. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf5a4b0b">2. Computation</a>
|
||||
<li><a href="#orge4ca86d">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org1d033ae">2.1. Kinetic energy</a>
|
||||
<li><a href="#org83c275f">2.1. Kinetic energy</a>
|
||||
<ul>
|
||||
<li><a href="#org2924e12">2.1.1. Get</a></li>
|
||||
<li><a href="#org501a0c8">2.1.2. Provide</a></li>
|
||||
<li><a href="#org8ceffb5">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#orga257170">2.1.4. Test</a></li>
|
||||
<li><a href="#org72ba2fc">2.1.1. Get</a></li>
|
||||
<li><a href="#orge3abe99">2.1.2. Provide</a></li>
|
||||
<li><a href="#org0a30068">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#orgbddd2b8">2.1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org303643a">2.2. Potential energy</a>
|
||||
<li><a href="#org6fab561">2.2. Potential energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgbe73602">2.2.1. Get</a></li>
|
||||
<li><a href="#org668456f">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgf0f35f1">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#orga3dfa5b">2.2.4. Test</a></li>
|
||||
<li><a href="#org10418d3">2.2.1. Get</a></li>
|
||||
<li><a href="#org6eb110c">2.2.2. Provide</a></li>
|
||||
<li><a href="#org1b5029e">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#orga915c8c">2.2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0f49f53">2.3. Local energy</a>
|
||||
<li><a href="#org861c41a">2.3. Local energy</a>
|
||||
<ul>
|
||||
<li><a href="#org86c9ceb">2.3.1. Get</a></li>
|
||||
<li><a href="#org5a34b94">2.3.2. Provide</a></li>
|
||||
<li><a href="#org2465443">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#orgf71395b">2.3.4. Test</a></li>
|
||||
<li><a href="#org6b392fa">2.3.1. Get</a></li>
|
||||
<li><a href="#org912f954">2.3.2. Provide</a></li>
|
||||
<li><a href="#org9b59852">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#org07315be">2.3.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org48be292">2.4. Drift vector</a>
|
||||
<li><a href="#orgde103e6">2.4. Drift vector</a>
|
||||
<ul>
|
||||
<li><a href="#org83ee3d1">2.4.1. Get</a></li>
|
||||
<li><a href="#org353a583">2.4.2. Provide</a></li>
|
||||
<li><a href="#org6210a75">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org08154f9">2.4.4. Test</a></li>
|
||||
<li><a href="#org1a965dc">2.4.1. Get</a></li>
|
||||
<li><a href="#orgbe2382b">2.4.2. Provide</a></li>
|
||||
<li><a href="#org52dc080">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org28c628c">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-org67c117d" class="outline-2">
|
||||
<h2 id="org67c117d"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org9bef475" class="outline-2">
|
||||
<h2 id="org9bef475"><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-org587d55c" class="outline-3">
|
||||
<h3 id="org587d55c"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org11366ae" class="outline-3">
|
||||
<h3 id="org11366ae"><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-orgdccd79d" class="outline-3">
|
||||
<h3 id="orgdccd79d"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgfd80e9b" class="outline-3">
|
||||
<h3 id="orgfd80e9b"><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-orgf5a4b0b" class="outline-2">
|
||||
<h2 id="orgf5a4b0b"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orge4ca86d" class="outline-2">
|
||||
<h2 id="orge4ca86d"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org1d033ae" class="outline-3">
|
||||
<h3 id="org1d033ae"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div id="outline-container-org83c275f" class="outline-3">
|
||||
<h3 id="org83c275f"><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-org2924e12" class="outline-4">
|
||||
<h4 id="org2924e12"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org72ba2fc" class="outline-4">
|
||||
<h4 id="org72ba2fc"><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-org501a0c8" class="outline-4">
|
||||
<h4 id="org501a0c8"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-orge3abe99" class="outline-4">
|
||||
<h4 id="orge3abe99"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8ceffb5" class="outline-4">
|
||||
<h4 id="org8ceffb5"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
||||
<div id="outline-container-org0a30068" class="outline-4">
|
||||
<h4 id="org0a30068"><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="orgcac0c7f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgad6b0d1" 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-orga257170" class="outline-4">
|
||||
<h4 id="orga257170"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
<div id="outline-container-orgbddd2b8" class="outline-4">
|
||||
<h4 id="orgbddd2b8"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org303643a" class="outline-3">
|
||||
<h3 id="org303643a"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div id="outline-container-org6fab561" class="outline-3">
|
||||
<h3 id="org6fab561"><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-orgbe73602" class="outline-4">
|
||||
<h4 id="orgbe73602"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org10418d3" class="outline-4">
|
||||
<h4 id="org10418d3"><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-org668456f" class="outline-4">
|
||||
<h4 id="org668456f"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org6eb110c" class="outline-4">
|
||||
<h4 id="org6eb110c"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf0f35f1" class="outline-4">
|
||||
<h4 id="orgf0f35f1"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
||||
<div id="outline-container-org1b5029e" class="outline-4">
|
||||
<h4 id="org1b5029e"><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="org8ef55e8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgff8aa1f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -977,12 +977,12 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga3dfa5b" class="outline-4">
|
||||
<h4 id="orga3dfa5b"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
<div id="outline-container-orga915c8c" class="outline-4">
|
||||
<h4 id="orga915c8c"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org0f49f53" class="outline-3">
|
||||
<h3 id="org0f49f53"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div id="outline-container-org861c41a" class="outline-3">
|
||||
<h3 id="org861c41a"><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-org86c9ceb" class="outline-4">
|
||||
<h4 id="org86c9ceb"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org6b392fa" class="outline-4">
|
||||
<h4 id="org6b392fa"><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-org5a34b94" class="outline-4">
|
||||
<h4 id="org5a34b94"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-org912f954" class="outline-4">
|
||||
<h4 id="org912f954"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2465443" class="outline-4">
|
||||
<h4 id="org2465443"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
||||
<div id="outline-container-org9b59852" class="outline-4">
|
||||
<h4 id="org9b59852"><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="orgcaad755" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgce16059" 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-orgf71395b" class="outline-4">
|
||||
<h4 id="orgf71395b"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
<div id="outline-container-org07315be" class="outline-4">
|
||||
<h4 id="org07315be"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org48be292" class="outline-3">
|
||||
<h3 id="org48be292"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div id="outline-container-orgde103e6" class="outline-3">
|
||||
<h3 id="orgde103e6"><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-org83ee3d1" class="outline-4">
|
||||
<h4 id="org83ee3d1"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org1a965dc" class="outline-4">
|
||||
<h4 id="org1a965dc"><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-org353a583" class="outline-4">
|
||||
<h4 id="org353a583"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
<div id="outline-container-orgbe2382b" class="outline-4">
|
||||
<h4 id="orgbe2382b"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6210a75" class="outline-4">
|
||||
<h4 id="org6210a75"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
||||
<div id="outline-container-org52dc080" class="outline-4">
|
||||
<h4 id="org52dc080"><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="org5b60ea0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgee1aed3" 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-org08154f9" class="outline-4">
|
||||
<h4 id="org08154f9"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
<div id="outline-container-org28c628c" class="outline-4">
|
||||
<h4 id="org28c628c"><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: 2024-02-13 Tue 16:22</p>
|
||||
<p class="date">Created: 2024-02-14 Wed 10:00</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>
|
||||
<!-- 2024-02-13 Tue 16:22 -->
|
||||
<!-- 2024-02-14 Wed 10:00 -->
|
||||
<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="#org2fcb7fb">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org590555c">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orgec63616">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#orgb8527c7">4. Get the size of a memory block</a></li>
|
||||
<li><a href="#orgf2dd7f2">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org967587a">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#org5ab226b">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#org8ae68ee">4. Get the size of a memory block</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2fcb7fb" class="outline-2">
|
||||
<h2 id="org2fcb7fb"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div id="outline-container-orgf2dd7f2" class="outline-2">
|
||||
<h2 id="orgf2dd7f2"><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-org590555c" class="outline-2">
|
||||
<h2 id="org590555c"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div id="outline-container-org967587a" class="outline-2">
|
||||
<h2 id="org967587a"><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-orgec63616" class="outline-2">
|
||||
<h2 id="orgec63616"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-org5ab226b" class="outline-2">
|
||||
<h2 id="org5ab226b"><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
|
||||
@ -645,8 +645,8 @@ successful deallocation of the memory block.</li>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgb8527c7" class="outline-2">
|
||||
<h2 id="orgb8527c7"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
||||
<div id="outline-container-org8ae68ee" class="outline-2">
|
||||
<h2 id="org8ae68ee"><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
|
||||
@ -741,7 +741,7 @@ rc = qmckl_context_destroy(context);
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2024-02-13 Tue 16:22</p>
|
||||
<p class="date">Created: 2024-02-14 Wed 10:00</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
192
qmckl_mo.html
192
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>
|
||||
<!-- 2024-02-13 Tue 16:22 -->
|
||||
<!-- 2024-02-14 Wed 10:00 -->
|
||||
<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,72 +346,72 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org8fbe84f">1. Context</a>
|
||||
<li><a href="#org4c7c166">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orga167635">1.1. Data structure</a></li>
|
||||
<li><a href="#org97ff84c">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org6ebe530">1.3. Cusp adjsutment functions</a></li>
|
||||
<li><a href="#org15c73f5">1.4. Access functions</a>
|
||||
<li><a href="#org2c68f4a">1.1. Data structure</a></li>
|
||||
<li><a href="#org1e174c6">1.2. Initialization functions</a></li>
|
||||
<li><a href="#orgb654180">1.3. Cusp adjsutment functions</a></li>
|
||||
<li><a href="#org508ba2a">1.4. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org04ddcd4">1.4.1. Fortran interfaces</a></li>
|
||||
<li><a href="#orgb27e87c">1.4.1. Fortran interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3cf8513">1.5. Update</a>
|
||||
<li><a href="#org01548e2">1.5. Update</a>
|
||||
<ul>
|
||||
<li><a href="#org54829db">1.5.1. Fortran interface</a></li>
|
||||
<li><a href="#org62e903f">1.5.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9584000">2. Computation</a>
|
||||
<li><a href="#org09458d4">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org3923b08">2.1. Parameters of the cusp-correction functions</a></li>
|
||||
<li><a href="#org30bcf9a">2.2. Computation of MOs: values only</a>
|
||||
<li><a href="#org0579ab5">2.1. Parameters of the cusp-correction functions</a></li>
|
||||
<li><a href="#org5a70878">2.2. Computation of MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#org27b569d">2.2.1. Get</a></li>
|
||||
<li><a href="#orga8c4545">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgd9bae10">2.2.3. Compute</a></li>
|
||||
<li><a href="#orge18f824">2.2.4. HPC version</a>
|
||||
<li><a href="#org23ff835">2.2.1. Get</a></li>
|
||||
<li><a href="#orga2ed058">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgb6f39b1">2.2.3. Compute</a></li>
|
||||
<li><a href="#orgaf64a48">2.2.4. HPC version</a>
|
||||
<ul>
|
||||
<li><a href="#org8792b8c">2.2.4.1. Single-precision</a></li>
|
||||
<li><a href="#orgbb6bc6d">2.2.4.2. Double-precision</a></li>
|
||||
<li><a href="#org58218b6">2.2.4.1. Single-precision</a></li>
|
||||
<li><a href="#org0116fe7">2.2.4.2. Double-precision</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org899a626">2.3. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<li><a href="#org6ab05c9">2.3. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org5e390f1">2.3.1. Get</a></li>
|
||||
<li><a href="#orge640729">2.3.2. Provide</a></li>
|
||||
<li><a href="#orgee72ed9">2.3.3. Compute</a></li>
|
||||
<li><a href="#org5c46d01">2.3.1. Get</a></li>
|
||||
<li><a href="#org6f31a82">2.3.2. Provide</a></li>
|
||||
<li><a href="#orge39d77b">2.3.3. Compute</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org28a6a39">2.4. Computation of cusp-corrected MOs: values only</a>
|
||||
<li><a href="#orge34803d">2.4. Computation of cusp-corrected MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#orgf9cf6b3">2.4.1. Compute</a></li>
|
||||
<li><a href="#orgf572eec">2.4.2. HPC version</a></li>
|
||||
<li><a href="#orgdfe45c2">2.4.1. Compute</a></li>
|
||||
<li><a href="#org56fd371">2.4.2. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3920867">2.5. Computation of cusp-corrected MOs: values, gradient, Laplacian</a>
|
||||
<li><a href="#orgcae1863">2.5. Computation of cusp-corrected MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#orge43eff6">2.5.1. Compute</a></li>
|
||||
<li><a href="#orgf752a72">2.5.2. HPC version</a></li>
|
||||
<li><a href="#org2c72fc1">2.5.1. Compute</a></li>
|
||||
<li><a href="#org3c9576e">2.5.2. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2102857">2.6. Rescaling of MO coefficients</a>
|
||||
<li><a href="#org0e50655">2.6. Rescaling of MO coefficients</a>
|
||||
<ul>
|
||||
<li><a href="#org93bd025">2.6.1. Fortran interface</a></li>
|
||||
<li><a href="#orgfd189a5">2.6.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1995062">2.7. Test</a></li>
|
||||
<li><a href="#org8a6e2b8">2.7. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8fbe84f" class="outline-2">
|
||||
<h2 id="org8fbe84f"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org4c7c166" class="outline-2">
|
||||
<h2 id="org4c7c166"><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:
|
||||
@ -490,8 +490,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga167635" class="outline-3">
|
||||
<h3 id="orga167635"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org2c68f4a" class="outline-3">
|
||||
<h3 id="org2c68f4a"><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> {
|
||||
@ -548,8 +548,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org97ff84c" class="outline-3">
|
||||
<h3 id="org97ff84c"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-org1e174c6" class="outline-3">
|
||||
<h3 id="org1e174c6"><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
|
||||
@ -570,8 +570,8 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6ebe530" class="outline-3">
|
||||
<h3 id="org6ebe530"><span class="section-number-3">1.3</span> Cusp adjsutment functions</h3>
|
||||
<div id="outline-container-orgb654180" class="outline-3">
|
||||
<h3 id="orgb654180"><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
|
||||
@ -586,8 +586,8 @@ of the non-\(s\) AOs at the center.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org15c73f5" class="outline-3">
|
||||
<h3 id="org15c73f5"><span class="section-number-3">1.4</span> Access functions</h3>
|
||||
<div id="outline-container-org508ba2a" class="outline-3">
|
||||
<h3 id="org508ba2a"><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
|
||||
@ -600,13 +600,13 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org04ddcd4" class="outline-4">
|
||||
<h4 id="org04ddcd4"><span class="section-number-4">1.4.1</span> Fortran interfaces</h4>
|
||||
<div id="outline-container-orgb27e87c" class="outline-4">
|
||||
<h4 id="orgb27e87c"><span class="section-number-4">1.4.1</span> Fortran interfaces</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3cf8513" class="outline-3">
|
||||
<h3 id="org3cf8513"><span class="section-number-3">1.5</span> Update</h3>
|
||||
<div id="outline-container-org01548e2" class="outline-3">
|
||||
<h3 id="org01548e2"><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
|
||||
@ -633,25 +633,25 @@ calculation. If the integer is non-zero, the MO will be kept.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org54829db" class="outline-4">
|
||||
<h4 id="org54829db"><span class="section-number-4">1.5.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-org62e903f" class="outline-4">
|
||||
<h4 id="org62e903f"><span class="section-number-4">1.5.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9584000" class="outline-2">
|
||||
<h2 id="org9584000"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org09458d4" class="outline-2">
|
||||
<h2 id="org09458d4"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org3923b08" class="outline-3">
|
||||
<h3 id="org3923b08"><span class="section-number-3">2.1</span> Parameters of the cusp-correction functions</h3>
|
||||
<div id="outline-container-org0579ab5" class="outline-3">
|
||||
<h3 id="org0579ab5"><span class="section-number-3">2.1</span> Parameters of the cusp-correction functions</h3>
|
||||
</div>
|
||||
<div id="outline-container-org30bcf9a" class="outline-3">
|
||||
<h3 id="org30bcf9a"><span class="section-number-3">2.2</span> Computation of MOs: values only</h3>
|
||||
<div id="outline-container-org5a70878" class="outline-3">
|
||||
<h3 id="org5a70878"><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-org27b569d" class="outline-4">
|
||||
<h4 id="org27b569d"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org23ff835" class="outline-4">
|
||||
<h4 id="org23ff835"><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>
|
||||
@ -675,8 +675,8 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga8c4545" class="outline-4">
|
||||
<h4 id="orga8c4545"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-orga2ed058" class="outline-4">
|
||||
<h4 id="orga2ed058"><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>);
|
||||
@ -761,10 +761,10 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd9bae10" class="outline-4">
|
||||
<h4 id="orgd9bae10"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div id="outline-container-orgb6f39b1" class="outline-4">
|
||||
<h4 id="orgb6f39b1"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org52f043c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgdd2d867" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -919,8 +919,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge18f824" class="outline-4">
|
||||
<h4 id="orge18f824"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
||||
<div id="outline-container-orgaf64a48" class="outline-4">
|
||||
<h4 id="orgaf64a48"><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
|
||||
@ -947,8 +947,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org8792b8c" class="outline-5">
|
||||
<h5 id="org8792b8c"><span class="section-number-5">2.2.4.1</span> Single-precision</h5>
|
||||
<div id="outline-container-org58218b6" class="outline-5">
|
||||
<h5 id="org58218b6"><span class="section-number-5">2.2.4.1</span> Single-precision</h5>
|
||||
<div class="outline-text-5" id="text-2-2-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
@ -1069,8 +1069,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbb6bc6d" class="outline-5">
|
||||
<h5 id="orgbb6bc6d"><span class="section-number-5">2.2.4.2</span> Double-precision</h5>
|
||||
<div id="outline-container-org0116fe7" class="outline-5">
|
||||
<h5 id="org0116fe7"><span class="section-number-5">2.2.4.2</span> Double-precision</h5>
|
||||
<div class="outline-text-5" id="text-2-2-4-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
@ -1187,12 +1187,12 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org899a626" class="outline-3">
|
||||
<h3 id="org899a626"><span class="section-number-3">2.3</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-org6ab05c9" class="outline-3">
|
||||
<h3 id="org6ab05c9"><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-org5e390f1" class="outline-4">
|
||||
<h4 id="org5e390f1"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org5c46d01" class="outline-4">
|
||||
<h4 id="org5c46d01"><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>
|
||||
@ -1216,8 +1216,8 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge640729" class="outline-4">
|
||||
<h4 id="orge640729"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-org6f31a82" class="outline-4">
|
||||
<h4 id="org6f31a82"><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>);
|
||||
@ -1301,10 +1301,10 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgee72ed9" class="outline-4">
|
||||
<h4 id="orgee72ed9"><span class="section-number-4">2.3.3</span> Compute</h4>
|
||||
<div id="outline-container-orge39d77b" class="outline-4">
|
||||
<h4 id="orge39d77b"><span class="section-number-4">2.3.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-3">
|
||||
<table id="orgb75581a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org863dcd7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1478,14 +1478,14 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org28a6a39" class="outline-3">
|
||||
<h3 id="org28a6a39"><span class="section-number-3">2.4</span> Computation of cusp-corrected MOs: values only</h3>
|
||||
<div id="outline-container-orge34803d" class="outline-3">
|
||||
<h3 id="orge34803d"><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-orgf9cf6b3" class="outline-4">
|
||||
<h4 id="orgf9cf6b3"><span class="section-number-4">2.4.1</span> Compute</h4>
|
||||
<div id="outline-container-orgdfe45c2" class="outline-4">
|
||||
<h4 id="orgdfe45c2"><span class="section-number-4">2.4.1</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<table id="orgd9be2bc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgfa7cdc3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1724,8 +1724,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf572eec" class="outline-4">
|
||||
<h4 id="orgf572eec"><span class="section-number-4">2.4.2</span> HPC version</h4>
|
||||
<div id="outline-container-org56fd371" class="outline-4">
|
||||
<h4 id="org56fd371"><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
|
||||
@ -1863,14 +1863,14 @@ IVDEP
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3920867" class="outline-3">
|
||||
<h3 id="org3920867"><span class="section-number-3">2.5</span> Computation of cusp-corrected MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-orgcae1863" class="outline-3">
|
||||
<h3 id="orgcae1863"><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-orge43eff6" class="outline-4">
|
||||
<h4 id="orge43eff6"><span class="section-number-4">2.5.1</span> Compute</h4>
|
||||
<div id="outline-container-org2c72fc1" class="outline-4">
|
||||
<h4 id="org2c72fc1"><span class="section-number-4">2.5.1</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-5-1">
|
||||
<table id="orgdd0f024" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3617a17" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2166,8 +2166,8 @@ IVDEP
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf752a72" class="outline-4">
|
||||
<h4 id="orgf752a72"><span class="section-number-4">2.5.2</span> HPC version</h4>
|
||||
<div id="outline-container-org3c9576e" class="outline-4">
|
||||
<h4 id="org3c9576e"><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
|
||||
@ -2366,8 +2366,8 @@ IVDEP
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2102857" class="outline-3">
|
||||
<h3 id="org2102857"><span class="section-number-3">2.6</span> Rescaling of MO coefficients</h3>
|
||||
<div id="outline-container-org0e50655" class="outline-3">
|
||||
<h3 id="org0e50655"><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
|
||||
@ -2384,19 +2384,19 @@ correct range.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org93bd025" class="outline-4">
|
||||
<h4 id="org93bd025"><span class="section-number-4">2.6.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-orgfd189a5" class="outline-4">
|
||||
<h4 id="orgfd189a5"><span class="section-number-4">2.6.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1995062" class="outline-3">
|
||||
<h3 id="org1995062"><span class="section-number-3">2.7</span> Test</h3>
|
||||
<div id="outline-container-org8a6e2b8" class="outline-3">
|
||||
<h3 id="org8a6e2b8"><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: 2024-02-13 Tue 16:22</p>
|
||||
<p class="date">Created: 2024-02-14 Wed 10:00</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>
|
||||
<!-- 2024-02-13 Tue 16:22 -->
|
||||
<!-- 2024-02-14 Wed 10:00 -->
|
||||
<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="#orgdf9d2d7">1. Context</a>
|
||||
<li><a href="#orge6f5ae7">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org8329525">1.1. Data structure</a></li>
|
||||
<li><a href="#org4b82303">1.2. Access functions</a></li>
|
||||
<li><a href="#org180c1f5">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orge34e27c">1.4. Test</a></li>
|
||||
<li><a href="#orgd2eead4">1.1. Data structure</a></li>
|
||||
<li><a href="#org981f075">1.2. Access functions</a></li>
|
||||
<li><a href="#org75262f2">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org851be61">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orged24cd4">2. Computation</a>
|
||||
<li><a href="#org172be0d">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org92e76a0">2.1. Nucleus-nucleus distances</a>
|
||||
<li><a href="#org4061789">2.1. Nucleus-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org24d1f32">2.1.1. Get</a></li>
|
||||
<li><a href="#org85a00e9">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgb197631">2.1.3. Test</a></li>
|
||||
<li><a href="#orgb79031b">2.1.1. Get</a></li>
|
||||
<li><a href="#org40b8788">2.1.2. Compute</a></li>
|
||||
<li><a href="#org3b9355c">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga71d5a9">2.2. Nuclear repulsion energy</a>
|
||||
<li><a href="#org75c6998">2.2. Nuclear repulsion energy</a>
|
||||
<ul>
|
||||
<li><a href="#org1503395">2.2.1. Get</a></li>
|
||||
<li><a href="#org60912f0">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgd9f0f0b">2.2.3. Test</a></li>
|
||||
<li><a href="#org805c9a3">2.2.1. Get</a></li>
|
||||
<li><a href="#org6bc55b4">2.2.2. Compute</a></li>
|
||||
<li><a href="#org488f2c6">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-orgdf9d2d7" class="outline-2">
|
||||
<h2 id="orgdf9d2d7"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orge6f5ae7" class="outline-2">
|
||||
<h2 id="orge6f5ae7"><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-org8329525" class="outline-3">
|
||||
<h3 id="org8329525"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgd2eead4" class="outline-3">
|
||||
<h3 id="orgd2eead4"><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-org4b82303" class="outline-3">
|
||||
<h3 id="org4b82303"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org981f075" class="outline-3">
|
||||
<h3 id="org981f075"><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-org180c1f5" class="outline-3">
|
||||
<h3 id="org180c1f5"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org75262f2" class="outline-3">
|
||||
<h3 id="org75262f2"><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-orge34e27c" class="outline-3">
|
||||
<h3 id="orge34e27c"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org851be61" class="outline-3">
|
||||
<h3 id="org851be61"><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-orged24cd4" class="outline-2">
|
||||
<h2 id="orged24cd4"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org172be0d" class="outline-2">
|
||||
<h2 id="org172be0d"><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-org92e76a0" class="outline-3">
|
||||
<h3 id="org92e76a0"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div id="outline-container-org4061789" class="outline-3">
|
||||
<h3 id="org4061789"><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-org24d1f32" class="outline-4">
|
||||
<h4 id="org24d1f32"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orgb79031b" class="outline-4">
|
||||
<h4 id="orgb79031b"><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-org85a00e9" class="outline-4">
|
||||
<h4 id="org85a00e9"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org40b8788" class="outline-4">
|
||||
<h4 id="org40b8788"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org6754725" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6e964b0" 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-orgb197631" class="outline-4">
|
||||
<h4 id="orgb197631"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org3b9355c" class="outline-4">
|
||||
<h4 id="org3b9355c"><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-orga71d5a9" class="outline-3">
|
||||
<h3 id="orga71d5a9"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
||||
<div id="outline-container-org75c6998" class="outline-3">
|
||||
<h3 id="org75c6998"><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-org1503395" class="outline-4">
|
||||
<h4 id="org1503395"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org805c9a3" class="outline-4">
|
||||
<h4 id="org805c9a3"><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-org60912f0" class="outline-4">
|
||||
<h4 id="org60912f0"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org6bc55b4" class="outline-4">
|
||||
<h4 id="org6bc55b4"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="org7495f37" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0e5d82c" 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-orgd9f0f0b" class="outline-4">
|
||||
<h4 id="orgd9f0f0b"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org488f2c6" class="outline-4">
|
||||
<h4 id="org488f2c6"><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: 2024-02-13 Tue 16:22</p>
|
||||
<p class="date">Created: 2024-02-14 Wed 10:00</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>
|
||||
<!-- 2024-02-13 Tue 16:22 -->
|
||||
<!-- 2024-02-14 Wed 10:00 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>‎</title>
|
||||
@ -345,18 +345,18 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org2c38434">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org0979316">2. Precision</a></li>
|
||||
<li><a href="#orgf006a68">3. Range</a></li>
|
||||
<li><a href="#orgc03b45e">4. Helper functions</a>
|
||||
<li><a href="#org1c736e0">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#orgdb0e91b">2. Precision</a></li>
|
||||
<li><a href="#org69f2c75">3. Range</a></li>
|
||||
<li><a href="#orgb61c2c4">4. Helper functions</a>
|
||||
<ul>
|
||||
<li><a href="#org6ad7d11">4.1. Epsilon</a></li>
|
||||
<li><a href="#org0841dea">4.2. Testing the number of unchanged bits</a></li>
|
||||
<li><a href="#orgfa4410d">4.1. Epsilon</a></li>
|
||||
<li><a href="#org86fc6cd">4.2. Testing the number of unchanged bits</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf692624">5. Approximate functions</a>
|
||||
<li><a href="#org8be99e9">5. Approximate functions</a>
|
||||
<ul>
|
||||
<li><a href="#orge4b8aa4">5.1. Exponential</a></li>
|
||||
<li><a href="#orga7def55">5.1. Exponential</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -366,8 +366,8 @@ for the JavaScript code in this tag.
|
||||
3+TITLE: Numerical precision
|
||||
</p>
|
||||
|
||||
<div id="outline-container-org2c38434" class="outline-2">
|
||||
<h2 id="org2c38434"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-org1c736e0" class="outline-2">
|
||||
<h2 id="org1c736e0"><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
|
||||
@ -378,7 +378,7 @@ Arithmetic (IEEE 754),
|
||||
sign bit) and <i>range</i> refers to the number of exponent bits.
|
||||
</p>
|
||||
|
||||
<table id="org3d8e61e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7898abc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -422,8 +422,8 @@ integer. The update functions return <code>QMCKL_SUCCESS</code> or
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0979316" class="outline-2">
|
||||
<h2 id="org0979316"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-orgdb0e91b" class="outline-2">
|
||||
<h2 id="orgdb0e91b"><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
|
||||
@ -510,8 +510,8 @@ numerical precision in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf006a68" class="outline-2">
|
||||
<h2 id="orgf006a68"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-org69f2c75" class="outline-2">
|
||||
<h2 id="org69f2c75"><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
|
||||
@ -586,12 +586,12 @@ range in a given context.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgc03b45e" class="outline-2">
|
||||
<h2 id="orgc03b45e"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-orgb61c2c4" class="outline-2">
|
||||
<h2 id="orgb61c2c4"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org6ad7d11" class="outline-3">
|
||||
<h3 id="org6ad7d11"><span class="section-number-3">4.1</span> Epsilon</h3>
|
||||
<div id="outline-container-orgfa4410d" class="outline-3">
|
||||
<h3 id="orgfa4410d"><span class="section-number-3">4.1</span> Epsilon</h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
<code>qmckl_get_numprec_epsilon</code> returns \(\epsilon = 2^{1-n}\) where <code>n</code> is the precision.
|
||||
@ -610,8 +610,8 @@ We need to remove the sign bit from the precision.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org0841dea" class="outline-3">
|
||||
<h3 id="org0841dea"><span class="section-number-3">4.2</span> Testing the number of unchanged bits</h3>
|
||||
<div id="outline-container-org86fc6cd" class="outline-3">
|
||||
<h3 id="org86fc6cd"><span class="section-number-3">4.2</span> Testing the number of unchanged bits</h3>
|
||||
<div class="outline-text-3" id="text-4-2">
|
||||
<p>
|
||||
To test that a given approximation keeps a given number of bits
|
||||
@ -681,12 +681,12 @@ numbers differ.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf692624" class="outline-2">
|
||||
<h2 id="orgf692624"><span class="section-number-2">5</span> Approximate functions</h2>
|
||||
<div id="outline-container-org8be99e9" class="outline-2">
|
||||
<h2 id="org8be99e9"><span class="section-number-2">5</span> Approximate functions</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
</div>
|
||||
<div id="outline-container-orge4b8aa4" class="outline-3">
|
||||
<h3 id="orge4b8aa4"><span class="section-number-3">5.1</span> Exponential</h3>
|
||||
<div id="outline-container-orga7def55" class="outline-3">
|
||||
<h3 id="orga7def55"><span class="section-number-3">5.1</span> Exponential</h3>
|
||||
<div class="outline-text-3" id="text-5-1">
|
||||
<p>
|
||||
Fast exponential function, adapted from Johan Rade's implementation
|
||||
@ -741,7 +741,7 @@ N. Schraudolph, "A Fast, Compact Approximation of the Exponential Function",
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2024-02-13 Tue 16:22</p>
|
||||
<p class="date">Created: 2024-02-14 Wed 10:00</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>
|
||||
<!-- 2024-02-13 Tue 16:22 -->
|
||||
<!-- 2024-02-14 Wed 10:00 -->
|
||||
<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="#org51b35e2">1. Context</a>
|
||||
<li><a href="#org8c5ab6f">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgdc52e80">1.1. Data structure</a></li>
|
||||
<li><a href="#orgb104872">1.2. Access functions</a>
|
||||
<li><a href="#org30e83b3">1.1. Data structure</a></li>
|
||||
<li><a href="#org19e6b1c">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org72cdc6c">1.2.1. Number of points</a></li>
|
||||
<li><a href="#org07e0ee9">1.2.2. Point coordinates</a></li>
|
||||
<li><a href="#org7bc3b94">1.2.1. Number of points</a></li>
|
||||
<li><a href="#orgf6875de">1.2.2. Point coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org21793a4">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org4439ec5">1.4. Test</a></li>
|
||||
<li><a href="#orge77609b">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org52ab816">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org51b35e2" class="outline-2">
|
||||
<h2 id="org51b35e2"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org8c5ab6f" class="outline-2">
|
||||
<h2 id="org8c5ab6f"><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-orgdc52e80" class="outline-3">
|
||||
<h3 id="orgdc52e80"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org30e83b3" class="outline-3">
|
||||
<h3 id="org30e83b3"><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-orgb104872" class="outline-3">
|
||||
<h3 id="orgb104872"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org19e6b1c" class="outline-3">
|
||||
<h3 id="org19e6b1c"><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-org72cdc6c" class="outline-4">
|
||||
<h4 id="org72cdc6c"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div id="outline-container-org7bc3b94" class="outline-4">
|
||||
<h4 id="org7bc3b94"><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-org07e0ee9" class="outline-4">
|
||||
<h4 id="org07e0ee9"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div id="outline-container-orgf6875de" class="outline-4">
|
||||
<h4 id="orgf6875de"><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-org21793a4" class="outline-3">
|
||||
<h3 id="org21793a4"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orge77609b" class="outline-3">
|
||||
<h3 id="orge77609b"><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-org4439ec5" class="outline-3">
|
||||
<h3 id="org4439ec5"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org52ab816" class="outline-3">
|
||||
<h3 id="org52ab816"><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: 2024-02-13 Tue 16:22</p>
|
||||
<p class="date">Created: 2024-02-14 Wed 10:00</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>
|
||||
<!-- 2024-02-13 Tue 16:23 -->
|
||||
<!-- 2024-02-14 Wed 10:00 -->
|
||||
<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="#org412b7ed">1. Headers</a></li>
|
||||
<li><a href="#orgb49bfd1">2. Naïve Sherman-Morrison</a>
|
||||
<li><a href="#org1453a38">1. Headers</a></li>
|
||||
<li><a href="#orgf5854ff">2. Naïve Sherman-Morrison</a>
|
||||
<ul>
|
||||
<li><a href="#org3eae634">2.1. <code>qmckl_sm_naive</code></a>
|
||||
<li><a href="#orgd933e46">2.1. <code>qmckl_sm_naive</code></a>
|
||||
<ul>
|
||||
<li><a href="#org2bc2353">2.1.1. Introduction</a></li>
|
||||
<li><a href="#org8a8517c">2.1.2. API</a></li>
|
||||
<li><a href="#org5e67ce4">2.1.3. Requirements</a></li>
|
||||
<li><a href="#org7c968d9">2.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#orgd7a8aad">2.1.1. Introduction</a></li>
|
||||
<li><a href="#org7dc027c">2.1.2. API</a></li>
|
||||
<li><a href="#org2b20c88">2.1.3. Requirements</a></li>
|
||||
<li><a href="#org497c959">2.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#org2c4f263">2.1.4.1. C interface (not directly exposed)</a></li>
|
||||
<li><a href="#orge7f99e9">2.1.4.1. C interface (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org07d556f">2.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org15b5028">2.1.6. C sources</a></li>
|
||||
<li><a href="#orgffb7b34">2.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgcc02d6a">2.1.8. Performance</a></li>
|
||||
<li><a href="#orgc515a9d">2.1.9. Tests</a></li>
|
||||
<li><a href="#org9ba1c9a">2.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orgb12db04">2.1.6. C sources</a></li>
|
||||
<li><a href="#orgc65c506">2.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org0475110">2.1.8. Performance</a></li>
|
||||
<li><a href="#org11e8ec4">2.1.9. Tests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org55ec691">3. Sherman-Morrison with Slagel Splitting (core)</a>
|
||||
<li><a href="#org767d612">3. Sherman-Morrison with Slagel Splitting (core)</a>
|
||||
<ul>
|
||||
<li><a href="#orgcd493d9">3.1. <code>qmckl_sm_splitting_core</code></a>
|
||||
<li><a href="#org90f462d">3.1. <code>qmckl_sm_splitting_core</code></a>
|
||||
<ul>
|
||||
<li><a href="#org66a53c6">3.1.1. Introduction</a></li>
|
||||
<li><a href="#orge7050f8">3.1.2. API</a></li>
|
||||
<li><a href="#orgc43f387">3.1.3. Requirements</a></li>
|
||||
<li><a href="#org194b9c0">3.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org4e8ec3d">3.1.1. Introduction</a></li>
|
||||
<li><a href="#org5a52021">3.1.2. API</a></li>
|
||||
<li><a href="#org17fbeac">3.1.3. Requirements</a></li>
|
||||
<li><a href="#orgc5f0d6d">3.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#org5901936">3.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
<li><a href="#org30a3c0f">3.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4936f6f">3.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org1933f6c">3.1.6. C sources</a></li>
|
||||
<li><a href="#org9da5a44">3.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org7cf009b">3.1.8. Performance</a></li>
|
||||
<li><a href="#org0d1f3be">3.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orgcc07a73">3.1.6. C sources</a></li>
|
||||
<li><a href="#org84c8361">3.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgacb8da3">3.1.8. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga4f3ddc">4. Woodbury 2x2</a>
|
||||
<li><a href="#orgb18591e">4. Woodbury 2x2</a>
|
||||
<ul>
|
||||
<li><a href="#org0e7bf9c">4.1. <code>qmckl_woodbury_2x2</code></a>
|
||||
<li><a href="#org374da32">4.1. <code>qmckl_woodbury_2x2</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgd615cd0">4.1.1. Introduction</a></li>
|
||||
<li><a href="#orge679a48">4.1.2. API</a></li>
|
||||
<li><a href="#org9f79a1a">4.1.3. Requirements</a></li>
|
||||
<li><a href="#org4e145ab">4.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org3cc3b82">4.1.1. Introduction</a></li>
|
||||
<li><a href="#org624ac4c">4.1.2. API</a></li>
|
||||
<li><a href="#orgb9c062c">4.1.3. Requirements</a></li>
|
||||
<li><a href="#org99c184f">4.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#orgc3bf677">4.1.4.1. C interface (not directly exposed)</a></li>
|
||||
<li><a href="#org05db0aa">4.1.4.1. C interface (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org615b3f2">4.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org8bb508f">4.1.6. C sources</a></li>
|
||||
<li><a href="#org74fce57">4.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org11fd043">4.1.8. Performance</a></li>
|
||||
<li><a href="#orgc217838">4.1.9. Tests</a></li>
|
||||
<li><a href="#org22e76b6">4.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orgf6bca29">4.1.6. C sources</a></li>
|
||||
<li><a href="#org850750a">4.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgb84611c">4.1.8. Performance</a></li>
|
||||
<li><a href="#org96891e8">4.1.9. Tests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9a548f4">5. Woodbury 3x3</a>
|
||||
<li><a href="#orgdd68bee">5. Woodbury 3x3</a>
|
||||
<ul>
|
||||
<li><a href="#orgb128975">5.1. <code>qmckl_woodbury_3x3</code></a>
|
||||
<li><a href="#org6acbde2">5.1. <code>qmckl_woodbury_3x3</code></a>
|
||||
<ul>
|
||||
<li><a href="#org35544c7">5.1.1. Introduction</a></li>
|
||||
<li><a href="#orgfd2b666">5.1.2. API</a></li>
|
||||
<li><a href="#org83c7a8e">5.1.3. Requirements</a></li>
|
||||
<li><a href="#orgf547170">5.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org16bafdc">5.1.1. Introduction</a></li>
|
||||
<li><a href="#orgfa3197b">5.1.2. API</a></li>
|
||||
<li><a href="#orgfe08ccf">5.1.3. Requirements</a></li>
|
||||
<li><a href="#orgc4dff56">5.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#orgc850965">5.1.4.1. C interface (not directly exposed)</a></li>
|
||||
<li><a href="#org4241c11">5.1.4.1. C interface (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org932d4ec">5.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orga7d3556">5.1.6. C sources</a></li>
|
||||
<li><a href="#org50c0015">5.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org5940229">5.1.8. Performance</a></li>
|
||||
<li><a href="#org6b65138">5.1.9. Tests</a></li>
|
||||
<li><a href="#org4d7bc9a">5.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org537b537">5.1.6. C sources</a></li>
|
||||
<li><a href="#org9cecd25">5.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org9adc316">5.1.8. Performance</a></li>
|
||||
<li><a href="#org36cc465">5.1.9. Tests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgee1cf67">6. Sherman-Morrison with Slagel Splitting</a>
|
||||
<li><a href="#org58e7f09">6. Sherman-Morrison with Slagel Splitting</a>
|
||||
<ul>
|
||||
<li><a href="#org56fd6c6">6.1. <code>qmckl_sm_splitting</code></a>
|
||||
<li><a href="#org6a77df7">6.1. <code>qmckl_sm_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#org8a3a090">6.1.1. Introduction</a></li>
|
||||
<li><a href="#org707c1c7">6.1.2. API</a></li>
|
||||
<li><a href="#orgefd0af9">6.1.3. Requirements</a></li>
|
||||
<li><a href="#org44a6a5e">6.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org642a49f">6.1.1. Introduction</a></li>
|
||||
<li><a href="#orgc888f9b">6.1.2. API</a></li>
|
||||
<li><a href="#org8588af3">6.1.3. Requirements</a></li>
|
||||
<li><a href="#org45ac978">6.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#orga96f3a6">6.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
<li><a href="#org0ef62fe">6.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org472053c">6.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orgd43c241">6.1.6. C source</a></li>
|
||||
<li><a href="#orgc783f1a">6.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgbfd03ae">6.1.8. Performance…</a></li>
|
||||
<li><a href="#org19bc9d8">6.1.9. Test</a></li>
|
||||
<li><a href="#orgae59404">6.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orgc28dcb3">6.1.6. C source</a></li>
|
||||
<li><a href="#orgd7163e7">6.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgf2f3a18">6.1.8. Performance…</a></li>
|
||||
<li><a href="#orgbafbc5b">6.1.9. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga0f52d2">7. End of files</a></li>
|
||||
<li><a href="#orgb2ba33c">7. End of files</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org412b7ed" class="outline-2">
|
||||
<h2 id="org412b7ed"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div id="outline-container-org1453a38" class="outline-2">
|
||||
<h2 id="org1453a38"><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-orgb49bfd1" class="outline-2">
|
||||
<h2 id="orgb49bfd1"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
||||
<div id="outline-container-orgf5854ff" class="outline-2">
|
||||
<h2 id="orgf5854ff"><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-org3eae634" class="outline-3">
|
||||
<h3 id="org3eae634"><span class="section-number-3">2.1</span> <code>qmckl_sm_naive</code></h3>
|
||||
<div id="outline-container-orgd933e46" class="outline-3">
|
||||
<h3 id="orgd933e46"><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-org2bc2353" class="outline-4">
|
||||
<h4 id="org2bc2353"><span class="section-number-4">2.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-orgd7a8aad" class="outline-4">
|
||||
<h4 id="orgd7a8aad"><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-org8a8517c" class="outline-4">
|
||||
<h4 id="org8a8517c"><span class="section-number-4">2.1.2</span> API</h4>
|
||||
<div id="outline-container-org7dc027c" class="outline-4">
|
||||
<h4 id="org7dc027c"><span class="section-number-4">2.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orga7ee276" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgfdf7a24" 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-org5e67ce4" class="outline-4">
|
||||
<h4 id="org5e67ce4"><span class="section-number-4">2.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-org2b20c88" class="outline-4">
|
||||
<h4 id="org2b20c88"><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-org7c968d9" class="outline-4">
|
||||
<h4 id="org7c968d9"><span class="section-number-4">2.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-org497c959" class="outline-4">
|
||||
<h4 id="org497c959"><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-org2c4f263" class="outline-5">
|
||||
<h5 id="org2c4f263"><span class="section-number-5">2.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div id="outline-container-orge7f99e9" class="outline-5">
|
||||
<h5 id="orge7f99e9"><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-org07d556f" class="outline-4">
|
||||
<h4 id="org07d556f"><span class="section-number-4">2.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org9ba1c9a" class="outline-4">
|
||||
<h4 id="org9ba1c9a"><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-org15b5028" class="outline-4">
|
||||
<h4 id="org15b5028"><span class="section-number-4">2.1.6</span> C sources</h4>
|
||||
<div id="outline-container-orgb12db04" class="outline-4">
|
||||
<h4 id="orgb12db04"><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.
|
||||
@ -905,7 +905,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="org538ee1f"><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="orgad6b22a"><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,
|
||||
@ -981,7 +981,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="orgc0a41b0"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org0c3c3e1"><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>
|
||||
@ -1065,7 +1065,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="org1085a99"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="orge4cb3fa"><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>
|
||||
@ -2705,14 +2705,14 @@ Python script that generated C switch cases that call individual kernel instance
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgffb7b34" class="outline-4">
|
||||
<h4 id="orgffb7b34"><span class="section-number-4">2.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-orgc65c506" class="outline-4">
|
||||
<h4 id="orgc65c506"><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-orgcc02d6a" class="outline-4">
|
||||
<h4 id="orgcc02d6a"><span class="section-number-4">2.1.8</span> Performance</h4>
|
||||
<div id="outline-container-org0475110" class="outline-4">
|
||||
<h4 id="org0475110"><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
|
||||
@ -2721,8 +2721,8 @@ can never resolve a situation where applying the update causes singular behaviou
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgc515a9d" class="outline-4">
|
||||
<h4 id="orgc515a9d"><span class="section-number-4">2.1.9</span> Tests</h4>
|
||||
<div id="outline-container-org11e8ec4" class="outline-4">
|
||||
<h4 id="org11e8ec4"><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
|
||||
@ -2790,17 +2790,17 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org55ec691" class="outline-2">
|
||||
<h2 id="org55ec691"><span class="section-number-2">3</span> Sherman-Morrison with Slagel Splitting (core)</h2>
|
||||
<div id="outline-container-org767d612" class="outline-2">
|
||||
<h2 id="org767d612"><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-orgcd493d9" class="outline-3">
|
||||
<h3 id="orgcd493d9"><span class="section-number-3">3.1</span> <code>qmckl_sm_splitting_core</code></h3>
|
||||
<div id="outline-container-org90f462d" class="outline-3">
|
||||
<h3 id="org90f462d"><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-org66a53c6" class="outline-4">
|
||||
<h4 id="org66a53c6"><span class="section-number-4">3.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org4e8ec3d" class="outline-4">
|
||||
<h4 id="org4e8ec3d"><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.
|
||||
@ -2828,10 +2828,10 @@ If the determinant is passed it will only be partially updated if there were any
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge7050f8" class="outline-4">
|
||||
<h4 id="orge7050f8"><span class="section-number-4">3.1.2</span> API</h4>
|
||||
<div id="outline-container-org5a52021" class="outline-4">
|
||||
<h4 id="org5a52021"><span class="section-number-4">3.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<table id="orgc2ee127" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org68f0695" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2940,8 +2940,8 @@ If the determinant is passed it will only be partially updated if there were any
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc43f387" class="outline-4">
|
||||
<h4 id="orgc43f387"><span class="section-number-4">3.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-org17fbeac" class="outline-4">
|
||||
<h4 id="org17fbeac"><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>
|
||||
@ -2958,8 +2958,8 @@ If the determinant is passed it will only be partially updated if there were any
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org194b9c0" class="outline-4">
|
||||
<h4 id="org194b9c0"><span class="section-number-4">3.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-orgc5f0d6d" class="outline-4">
|
||||
<h4 id="orgc5f0d6d"><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
|
||||
@ -3075,8 +3075,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5901936" class="outline-5">
|
||||
<h5 id="org5901936"><span class="section-number-5">3.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div id="outline-container-org30a3c0f" class="outline-5">
|
||||
<h5 id="org30a3c0f"><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
|
||||
@ -3089,8 +3089,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4936f6f" class="outline-4">
|
||||
<h4 id="org4936f6f"><span class="section-number-4">3.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org0d1f3be" class="outline-4">
|
||||
<h4 id="org0d1f3be"><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> (
|
||||
@ -3145,8 +3145,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1933f6c" class="outline-4">
|
||||
<h4 id="org1933f6c"><span class="section-number-4">3.1.6</span> C sources</h4>
|
||||
<div id="outline-container-orgcc07a73" class="outline-4">
|
||||
<h4 id="orgcc07a73"><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>(
|
||||
@ -3235,7 +3235,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="org8e4527f"><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="orga459fb7"><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,
|
||||
@ -3319,7 +3319,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="orgd2bffb3"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org79f0924"><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>
|
||||
@ -3411,7 +3411,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="orgbb08730"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org69245e2"><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>
|
||||
@ -5379,14 +5379,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9da5a44" class="outline-4">
|
||||
<h4 id="org9da5a44"><span class="section-number-4">3.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-org84c8361" class="outline-4">
|
||||
<h4 id="org84c8361"><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-org7cf009b" class="outline-4">
|
||||
<h4 id="org7cf009b"><span class="section-number-4">3.1.8</span> Performance</h4>
|
||||
<div id="outline-container-orgacb8da3" class="outline-4">
|
||||
<h4 id="orgacb8da3"><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
|
||||
@ -5398,17 +5398,17 @@ with Sherman-Morrison and update splitting. Please look at the performance recco
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orga4f3ddc" class="outline-2">
|
||||
<h2 id="orga4f3ddc"><span class="section-number-2">4</span> Woodbury 2x2</h2>
|
||||
<div id="outline-container-orgb18591e" class="outline-2">
|
||||
<h2 id="orgb18591e"><span class="section-number-2">4</span> Woodbury 2x2</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org0e7bf9c" class="outline-3">
|
||||
<h3 id="org0e7bf9c"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_2x2</code></h3>
|
||||
<div id="outline-container-org374da32" class="outline-3">
|
||||
<h3 id="org374da32"><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-orgd615cd0" class="outline-4">
|
||||
<h4 id="orgd615cd0"><span class="section-number-4">4.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org3cc3b82" class="outline-4">
|
||||
<h4 id="org3cc3b82"><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
|
||||
@ -5432,10 +5432,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge679a48" class="outline-4">
|
||||
<h4 id="orge679a48"><span class="section-number-4">4.1.2</span> API</h4>
|
||||
<div id="outline-container-org624ac4c" class="outline-4">
|
||||
<h4 id="org624ac4c"><span class="section-number-4">4.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-4-1-2">
|
||||
<table id="org915a0ed" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4cc6904" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -5516,8 +5516,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9f79a1a" class="outline-4">
|
||||
<h4 id="org9f79a1a"><span class="section-number-4">4.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-orgb9c062c" class="outline-4">
|
||||
<h4 id="orgb9c062c"><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>
|
||||
@ -5531,8 +5531,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4e145ab" class="outline-4">
|
||||
<h4 id="org4e145ab"><span class="section-number-4">4.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-org99c184f" class="outline-4">
|
||||
<h4 id="org99c184f"><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
|
||||
@ -5668,8 +5668,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc3bf677" class="outline-5">
|
||||
<h5 id="orgc3bf677"><span class="section-number-5">4.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div id="outline-container-org05db0aa" class="outline-5">
|
||||
<h5 id="org05db0aa"><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
|
||||
@ -5682,8 +5682,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org615b3f2" class="outline-4">
|
||||
<h4 id="org615b3f2"><span class="section-number-4">4.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org22e76b6" class="outline-4">
|
||||
<h4 id="org22e76b6"><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> (
|
||||
@ -5726,8 +5726,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8bb508f" class="outline-4">
|
||||
<h4 id="org8bb508f"><span class="section-number-4">4.1.6</span> C sources</h4>
|
||||
<div id="outline-container-orgf6bca29" class="outline-4">
|
||||
<h4 id="orgf6bca29"><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>,
|
||||
@ -5817,7 +5817,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="org42b8a8f"><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="org7b7185b"><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,
|
||||
@ -7767,14 +7767,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org74fce57" class="outline-4">
|
||||
<h4 id="org74fce57"><span class="section-number-4">4.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-org850750a" class="outline-4">
|
||||
<h4 id="org850750a"><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-org11fd043" class="outline-4">
|
||||
<h4 id="org11fd043"><span class="section-number-4">4.1.8</span> Performance</h4>
|
||||
<div id="outline-container-orgb84611c" class="outline-4">
|
||||
<h4 id="orgb84611c"><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
|
||||
@ -7783,8 +7783,8 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc217838" class="outline-4">
|
||||
<h4 id="orgc217838"><span class="section-number-4">4.1.9</span> Tests</h4>
|
||||
<div id="outline-container-org96891e8" class="outline-4">
|
||||
<h4 id="org96891e8"><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>);
|
||||
@ -7821,17 +7821,17 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org9a548f4" class="outline-2">
|
||||
<h2 id="org9a548f4"><span class="section-number-2">5</span> Woodbury 3x3</h2>
|
||||
<div id="outline-container-orgdd68bee" class="outline-2">
|
||||
<h2 id="orgdd68bee"><span class="section-number-2">5</span> Woodbury 3x3</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
</div>
|
||||
<div id="outline-container-orgb128975" class="outline-3">
|
||||
<h3 id="orgb128975"><span class="section-number-3">5.1</span> <code>qmckl_woodbury_3x3</code></h3>
|
||||
<div id="outline-container-org6acbde2" class="outline-3">
|
||||
<h3 id="org6acbde2"><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-org35544c7" class="outline-4">
|
||||
<h4 id="org35544c7"><span class="section-number-4">5.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org16bafdc" class="outline-4">
|
||||
<h4 id="org16bafdc"><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
|
||||
@ -7855,10 +7855,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfd2b666" class="outline-4">
|
||||
<h4 id="orgfd2b666"><span class="section-number-4">5.1.2</span> API</h4>
|
||||
<div id="outline-container-orgfa3197b" class="outline-4">
|
||||
<h4 id="orgfa3197b"><span class="section-number-4">5.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-5-1-2">
|
||||
<table id="org0d418b6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge67ee57" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -7939,8 +7939,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org83c7a8e" class="outline-4">
|
||||
<h4 id="org83c7a8e"><span class="section-number-4">5.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-orgfe08ccf" class="outline-4">
|
||||
<h4 id="orgfe08ccf"><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>
|
||||
@ -7954,8 +7954,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf547170" class="outline-4">
|
||||
<h4 id="orgf547170"><span class="section-number-4">5.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-orgc4dff56" class="outline-4">
|
||||
<h4 id="orgc4dff56"><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
|
||||
@ -8100,8 +8100,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc850965" class="outline-5">
|
||||
<h5 id="orgc850965"><span class="section-number-5">5.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div id="outline-container-org4241c11" class="outline-5">
|
||||
<h5 id="org4241c11"><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
|
||||
@ -8114,8 +8114,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org932d4ec" class="outline-4">
|
||||
<h4 id="org932d4ec"><span class="section-number-4">5.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org4d7bc9a" class="outline-4">
|
||||
<h4 id="org4d7bc9a"><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> (
|
||||
@ -8158,8 +8158,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga7d3556" class="outline-4">
|
||||
<h4 id="orga7d3556"><span class="section-number-4">5.1.6</span> C sources</h4>
|
||||
<div id="outline-container-org537b537" class="outline-4">
|
||||
<h4 id="org537b537"><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>,
|
||||
@ -8269,7 +8269,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="orga4e3cbe"><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="org01e7a79"><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,
|
||||
@ -10639,14 +10639,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org50c0015" class="outline-4">
|
||||
<h4 id="org50c0015"><span class="section-number-4">5.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-org9cecd25" class="outline-4">
|
||||
<h4 id="org9cecd25"><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-org5940229" class="outline-4">
|
||||
<h4 id="org5940229"><span class="section-number-4">5.1.8</span> Performance</h4>
|
||||
<div id="outline-container-org9adc316" class="outline-4">
|
||||
<h4 id="org9adc316"><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
|
||||
@ -10655,8 +10655,8 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6b65138" class="outline-4">
|
||||
<h4 id="org6b65138"><span class="section-number-4">5.1.9</span> Tests</h4>
|
||||
<div id="outline-container-org36cc465" class="outline-4">
|
||||
<h4 id="org36cc465"><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>);
|
||||
@ -10693,17 +10693,17 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgee1cf67" class="outline-2">
|
||||
<h2 id="orgee1cf67"><span class="section-number-2">6</span> Sherman-Morrison with Slagel Splitting</h2>
|
||||
<div id="outline-container-org58e7f09" class="outline-2">
|
||||
<h2 id="org58e7f09"><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-org56fd6c6" class="outline-3">
|
||||
<h3 id="org56fd6c6"><span class="section-number-3">6.1</span> <code>qmckl_sm_splitting</code></h3>
|
||||
<div id="outline-container-org6a77df7" class="outline-3">
|
||||
<h3 id="org6a77df7"><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-org8a3a090" class="outline-4">
|
||||
<h4 id="org8a3a090"><span class="section-number-4">6.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org642a49f" class="outline-4">
|
||||
<h4 id="org642a49f"><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
|
||||
@ -10727,10 +10727,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org707c1c7" class="outline-4">
|
||||
<h4 id="org707c1c7"><span class="section-number-4">6.1.2</span> API</h4>
|
||||
<div id="outline-container-orgc888f9b" class="outline-4">
|
||||
<h4 id="orgc888f9b"><span class="section-number-4">6.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-6-1-2">
|
||||
<table id="org3010332" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org948d4a9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -10818,8 +10818,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgefd0af9" class="outline-4">
|
||||
<h4 id="orgefd0af9"><span class="section-number-4">6.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-org8588af3" class="outline-4">
|
||||
<h4 id="org8588af3"><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>
|
||||
@ -10834,8 +10834,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org44a6a5e" class="outline-4">
|
||||
<h4 id="org44a6a5e"><span class="section-number-4">6.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-org45ac978" class="outline-4">
|
||||
<h4 id="org45ac978"><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
|
||||
@ -10914,8 +10914,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga96f3a6" class="outline-5">
|
||||
<h5 id="orga96f3a6"><span class="section-number-5">6.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div id="outline-container-org0ef62fe" class="outline-5">
|
||||
<h5 id="org0ef62fe"><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
|
||||
@ -10928,8 +10928,8 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org472053c" class="outline-4">
|
||||
<h4 id="org472053c"><span class="section-number-4">6.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-orgae59404" class="outline-4">
|
||||
<h4 id="orgae59404"><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> (
|
||||
@ -10975,11 +10975,11 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd43c241" class="outline-4">
|
||||
<h4 id="orgd43c241"><span class="section-number-4">6.1.6</span> C source</h4>
|
||||
<div id="outline-container-orgc28dcb3" class="outline-4">
|
||||
<h4 id="orgc28dcb3"><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="orgfa8f61b"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org9c65eb2"><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>
|
||||
@ -11382,14 +11382,14 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc783f1a" class="outline-4">
|
||||
<h4 id="orgc783f1a"><span class="section-number-4">6.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-orgd7163e7" class="outline-4">
|
||||
<h4 id="orgd7163e7"><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-orgbfd03ae" class="outline-4">
|
||||
<h4 id="orgbfd03ae"><span class="section-number-4">6.1.8</span> Performance…</h4>
|
||||
<div id="outline-container-orgf2f3a18" class="outline-4">
|
||||
<h4 id="orgf2f3a18"><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.
|
||||
@ -11397,8 +11397,8 @@ This kernel performs best when there are 2 or more rank-1 update cycles and fail
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org19bc9d8" class="outline-4">
|
||||
<h4 id="org19bc9d8"><span class="section-number-4">6.1.9</span> Test</h4>
|
||||
<div id="outline-container-orgbafbc5b" class="outline-4">
|
||||
<h4 id="orgbafbc5b"><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>);
|
||||
@ -11436,8 +11436,8 @@ rc = QMCKL_SUCCESS;
|
||||
|
||||
|
||||
|
||||
<div id="outline-container-orga0f52d2" class="outline-2">
|
||||
<h2 id="orga0f52d2"><span class="section-number-2">7</span> End of files</h2>
|
||||
<div id="outline-container-orgb2ba33c" class="outline-2">
|
||||
<h2 id="orgb2ba33c"><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);
|
||||
@ -11451,7 +11451,7 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2024-02-13 Tue 16:23</p>
|
||||
<p class="date">Created: 2024-02-14 Wed 10:00</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>
|
||||
<!-- 2024-02-13 Tue 16:23 -->
|
||||
<!-- 2024-02-14 Wed 10:00 -->
|
||||
<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="#org86e2243">1. CHBrClF</a>
|
||||
<li><a href="#orgf3d17aa">1. CHBrClF</a>
|
||||
<ul>
|
||||
<li><a href="#org0a03647">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orgdcf60d8">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#orga7e3f28">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org48dbc22">1.4. Electron coordinates</a></li>
|
||||
<li><a href="#org8c4e715">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org7464285">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#orgd82fe0c">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#orgec9baa5">1.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4c57fe1">2. N2</a>
|
||||
<li><a href="#orge8dda76">2. N2</a>
|
||||
<ul>
|
||||
<li><a href="#org0d1fda5">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orgd22c021">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org086ce54">2.3. Jastrow related data</a></li>
|
||||
<li><a href="#org38b9c97">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org2c5faa8">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org9390bda">2.3. Jastrow related data</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org86e2243" class="outline-2">
|
||||
<h2 id="org86e2243"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div id="outline-container-orgf3d17aa" class="outline-2">
|
||||
<h2 id="orgf3d17aa"><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-org0a03647" class="outline-3">
|
||||
<h3 id="org0a03647"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org8c4e715" class="outline-3">
|
||||
<h3 id="org8c4e715"><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-orgdcf60d8" class="outline-3">
|
||||
<h3 id="orgdcf60d8"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div id="outline-container-org7464285" class="outline-3">
|
||||
<h3 id="org7464285"><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-orga7e3f28" class="outline-3">
|
||||
<h3 id="orga7e3f28"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-orgd82fe0c" class="outline-3">
|
||||
<h3 id="orgd82fe0c"><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-org48dbc22" class="outline-3">
|
||||
<h3 id="org48dbc22"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div id="outline-container-orgec9baa5" class="outline-3">
|
||||
<h3 id="orgec9baa5"><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-org4c57fe1" class="outline-2">
|
||||
<h2 id="org4c57fe1"><span class="section-number-2">2</span> N2</h2>
|
||||
<div id="outline-container-orge8dda76" class="outline-2">
|
||||
<h2 id="orge8dda76"><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-org0d1fda5" class="outline-3">
|
||||
<h3 id="org0d1fda5"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org38b9c97" class="outline-3">
|
||||
<h3 id="org38b9c97"><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-orgd22c021" class="outline-3">
|
||||
<h3 id="orgd22c021"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org2c5faa8" class="outline-3">
|
||||
<h3 id="org2c5faa8"><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-org086ce54" class="outline-3">
|
||||
<h3 id="org086ce54"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div id="outline-container-org9390bda" class="outline-3">
|
||||
<h3 id="org9390bda"><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: 2024-02-13 Tue 16:23</p>
|
||||
<p class="date">Created: 2024-02-14 Wed 10:00</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>
|
||||
<!-- 2024-02-13 Tue 16:22 -->
|
||||
<!-- 2024-02-14 Wed 10:00 -->
|
||||
<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="#org7519e46">1. Local functions</a>
|
||||
<li><a href="#org134feea">1. Local functions</a>
|
||||
<ul>
|
||||
<li><a href="#org7d0ad80">1.1. Open file</a></li>
|
||||
<li><a href="#org6c8e784">1.2. Electron</a></li>
|
||||
<li><a href="#org6fa9e45">1.3. Nucleus</a>
|
||||
<li><a href="#org72f9ae2">1.1. Open file</a></li>
|
||||
<li><a href="#org03116ab">1.2. Electron</a></li>
|
||||
<li><a href="#org0e4b956">1.3. Nucleus</a>
|
||||
<ul>
|
||||
<li><a href="#org9898b90">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#orgb40ba07">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#orgff3eb22">1.3.3. Nuclear coordinates</a></li>
|
||||
<li><a href="#org4ae3199">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#orgde13194">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#orgbe8a46c">1.3.3. Nuclear coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb2da574">1.4. Basis set and AOs</a>
|
||||
<li><a href="#org1d3b42c">1.4. Basis set and AOs</a>
|
||||
<ul>
|
||||
<li><a href="#orga187173">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#orga743c63">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org4b89dcf">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#orgfb0aba2">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org1b83068">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org9c2c02a">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#orgbde4023">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org0347bef">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#orgca485e4">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#org548a233">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org7423da1">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org25f8df8">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#org7d6848f">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org52d72a7">1.4.14. AO Normalization</a></li>
|
||||
<li><a href="#orgb4d2629">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#orgaa69e89">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#orgba2164e">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#org84031f5">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org768aeb7">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org472ab22">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#org8855cbb">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org0ae40f0">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#org66ce76b">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#org57b0374">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org371f5e3">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org7e8ee50">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#org0a6b1a9">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org9c02e09">1.4.14. AO Normalization</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgfbca458">1.5. Molecular orbitals</a>
|
||||
<li><a href="#org92180be">1.5. Molecular orbitals</a>
|
||||
<ul>
|
||||
<li><a href="#orgf23149d">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#orgf3307c1">1.5.2. MO coefficients</a></li>
|
||||
<li><a href="#org421c437">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#orgd232978">1.5.2. MO coefficients</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc335f5c">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
<li><a href="#org66d8f14">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org83480e7">2. Read everything</a></li>
|
||||
<li><a href="#orge71dbe1">3. Test</a>
|
||||
<li><a href="#orgbbc4c5d">2. Read everything</a></li>
|
||||
<li><a href="#org56319fc">3. Test</a>
|
||||
<ul>
|
||||
<li>
|
||||
<ul>
|
||||
<li><a href="#orga3e20ed">3.0.1. Electrons</a></li>
|
||||
<li><a href="#orgc8db46b">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#org46fedb6">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#orga9d3293">3.0.4. MO Basis</a></li>
|
||||
<li><a href="#org565b62d">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org3c2e5a6">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#orgabb792a">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org878e27b">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-org7519e46" class="outline-2">
|
||||
<h2 id="org7519e46"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div id="outline-container-org134feea" class="outline-2">
|
||||
<h2 id="org134feea"><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-org7d0ad80" class="outline-3">
|
||||
<h3 id="org7d0ad80"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div id="outline-container-org72f9ae2" class="outline-3">
|
||||
<h3 id="org72f9ae2"><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-org6c8e784" class="outline-3">
|
||||
<h3 id="org6c8e784"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div id="outline-container-org03116ab" class="outline-3">
|
||||
<h3 id="org03116ab"><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-org6fa9e45" class="outline-3">
|
||||
<h3 id="org6fa9e45"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div id="outline-container-org0e4b956" class="outline-3">
|
||||
<h3 id="org0e4b956"><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-org9898b90" class="outline-4">
|
||||
<h4 id="org9898b90"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div id="outline-container-org4ae3199" class="outline-4">
|
||||
<h4 id="org4ae3199"><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-orgb40ba07" class="outline-4">
|
||||
<h4 id="orgb40ba07"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div id="outline-container-orgde13194" class="outline-4">
|
||||
<h4 id="orgde13194"><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-orgff3eb22" class="outline-4">
|
||||
<h4 id="orgff3eb22"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div id="outline-container-orgbe8a46c" class="outline-4">
|
||||
<h4 id="orgbe8a46c"><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-orgb2da574" class="outline-3">
|
||||
<h3 id="orgb2da574"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div id="outline-container-org1d3b42c" class="outline-3">
|
||||
<h3 id="org1d3b42c"><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-orga187173" class="outline-4">
|
||||
<h4 id="orga187173"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div id="outline-container-orgb4d2629" class="outline-4">
|
||||
<h4 id="orgb4d2629"><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-orga743c63" class="outline-4">
|
||||
<h4 id="orga743c63"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div id="outline-container-orgaa69e89" class="outline-4">
|
||||
<h4 id="orgaa69e89"><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-org4b89dcf" class="outline-4">
|
||||
<h4 id="org4b89dcf"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div id="outline-container-orgba2164e" class="outline-4">
|
||||
<h4 id="orgba2164e"><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-orgfb0aba2" class="outline-4">
|
||||
<h4 id="orgfb0aba2"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div id="outline-container-org84031f5" class="outline-4">
|
||||
<h4 id="org84031f5"><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> = 0;
|
||||
@ -770,8 +770,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1b83068" class="outline-4">
|
||||
<h4 id="org1b83068"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div id="outline-container-org768aeb7" class="outline-4">
|
||||
<h4 id="org768aeb7"><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-org9c2c02a" class="outline-4">
|
||||
<h4 id="org9c2c02a"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div id="outline-container-org472ab22" class="outline-4">
|
||||
<h4 id="org472ab22"><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-orgbde4023" class="outline-4">
|
||||
<h4 id="orgbde4023"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div id="outline-container-org8855cbb" class="outline-4">
|
||||
<h4 id="org8855cbb"><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-org0347bef" class="outline-4">
|
||||
<h4 id="org0347bef"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
||||
<div id="outline-container-org0ae40f0" class="outline-4">
|
||||
<h4 id="org0ae40f0"><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">{
|
||||
@ -1070,8 +1070,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgca485e4" class="outline-4">
|
||||
<h4 id="orgca485e4"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
||||
<div id="outline-container-org66ce76b" class="outline-4">
|
||||
<h4 id="org66ce76b"><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">{
|
||||
@ -1151,8 +1151,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org548a233" class="outline-4">
|
||||
<h4 id="org548a233"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
||||
<div id="outline-container-org57b0374" class="outline-4">
|
||||
<h4 id="org57b0374"><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">{
|
||||
@ -1197,8 +1197,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7423da1" class="outline-4">
|
||||
<h4 id="org7423da1"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||
<div id="outline-container-org371f5e3" class="outline-4">
|
||||
<h4 id="org371f5e3"><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">{
|
||||
@ -1243,8 +1243,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org25f8df8" class="outline-4">
|
||||
<h4 id="org25f8df8"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||
<div id="outline-container-org7e8ee50" class="outline-4">
|
||||
<h4 id="org7e8ee50"><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">{
|
||||
@ -1289,8 +1289,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7d6848f" class="outline-4">
|
||||
<h4 id="org7d6848f"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
||||
<div id="outline-container-org0a6b1a9" class="outline-4">
|
||||
<h4 id="org0a6b1a9"><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">{
|
||||
@ -1335,8 +1335,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org52d72a7" class="outline-4">
|
||||
<h4 id="org52d72a7"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||
<div id="outline-container-org9c02e09" class="outline-4">
|
||||
<h4 id="org9c02e09"><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">{
|
||||
@ -1391,8 +1391,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgfbca458" class="outline-3">
|
||||
<h3 id="orgfbca458"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org92180be" class="outline-3">
|
||||
<h3 id="org92180be"><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.
|
||||
@ -1418,8 +1418,8 @@ In this section we read the MO coefficients.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf23149d" class="outline-4">
|
||||
<h4 id="orgf23149d"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
||||
<div id="outline-container-org421c437" class="outline-4">
|
||||
<h4 id="org421c437"><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;
|
||||
@ -1442,8 +1442,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf3307c1" class="outline-4">
|
||||
<h4 id="orgf3307c1"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||
<div id="outline-container-orgd232978" class="outline-4">
|
||||
<h4 id="orgd232978"><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">{
|
||||
@ -1492,12 +1492,12 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc335f5c" class="outline-3">
|
||||
<h3 id="orgc335f5c"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
<div id="outline-container-org66d8f14" class="outline-3">
|
||||
<h3 id="org66d8f14"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org83480e7" class="outline-2">
|
||||
<h2 id="org83480e7"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div id="outline-container-orgbbc4c5d" class="outline-2">
|
||||
<h2 id="orgbbc4c5d"><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>
|
||||
@ -1572,8 +1572,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge71dbe1" class="outline-2">
|
||||
<h2 id="orge71dbe1"><span class="section-number-2">3</span> Test</h2>
|
||||
<div id="outline-container-org56319fc" class="outline-2">
|
||||
<h2 id="org56319fc"><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
|
||||
@ -1597,8 +1597,8 @@ rc = qmckl_trexio_read(context, filename, 255);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga3e20ed" class="outline-4">
|
||||
<h4 id="orga3e20ed"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||
<div id="outline-container-org565b62d" class="outline-4">
|
||||
<h4 id="org565b62d"><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>);
|
||||
@ -1616,8 +1616,8 @@ rc = qmckl_get_electron_down_num(context, &dn_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc8db46b" class="outline-4">
|
||||
<h4 id="orgc8db46b"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||
<div id="outline-container-org3c2e5a6" class="outline-4">
|
||||
<h4 id="org3c2e5a6"><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>);
|
||||
@ -1657,8 +1657,8 @@ coord = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org46fedb6" class="outline-4">
|
||||
<h4 id="org46fedb6"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||
<div id="outline-container-orgabb792a" class="outline-4">
|
||||
<h4 id="orgabb792a"><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>);
|
||||
@ -1766,8 +1766,8 @@ prim_factor = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga9d3293" class="outline-4">
|
||||
<h4 id="orga9d3293"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div id="outline-container-org878e27b" class="outline-4">
|
||||
<h4 id="org878e27b"><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>);
|
||||
@ -1798,7 +1798,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: 2024-02-13 Tue 16:22</p>
|
||||
<p class="date">Created: 2024-02-14 Wed 10:00</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>
|
||||
<!-- 2024-02-13 Tue 16:23 -->
|
||||
<!-- 2024-02-14 Wed 10:00 -->
|
||||
<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="#org2967984">1. Verificarlo probes</a>
|
||||
<li><a href="#org8cd42b4">1. Verificarlo probes</a>
|
||||
<ul>
|
||||
<li><a href="#org72d90af">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org2c8f04e">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org9d07387">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#org38ba7d4">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org8ad7c46">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org489e14a">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#orgd7e5f05">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org0c7e8bd">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#orgadabd4b">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org159ef2a">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="#orgfc16d31">2. Fortran wrappers</a></li>
|
||||
<li><a href="#orgb3b50c5">2. Fortran wrappers</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2967984" class="outline-2">
|
||||
<h2 id="org2967984"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div id="outline-container-org8cd42b4" class="outline-2">
|
||||
<h2 id="org8cd42b4"><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-org72d90af" class="outline-3">
|
||||
<h3 id="org72d90af"><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-org489e14a" class="outline-3">
|
||||
<h3 id="org489e14a"><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-org2c8f04e" class="outline-3">
|
||||
<h3 id="org2c8f04e"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div id="outline-container-orgd7e5f05" class="outline-3">
|
||||
<h3 id="orgd7e5f05"><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-org9d07387" class="outline-3">
|
||||
<h3 id="org9d07387"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div id="outline-container-org0c7e8bd" class="outline-3">
|
||||
<h3 id="org0c7e8bd"><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-org38ba7d4" class="outline-3">
|
||||
<h3 id="org38ba7d4"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div id="outline-container-orgadabd4b" class="outline-3">
|
||||
<h3 id="orgadabd4b"><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-org8ad7c46" class="outline-3">
|
||||
<h3 id="org8ad7c46"><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-org159ef2a" class="outline-3">
|
||||
<h3 id="org159ef2a"><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-orgfc16d31" class="outline-2">
|
||||
<h2 id="orgfc16d31"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||
<div id="outline-container-orgb3b50c5" class="outline-2">
|
||||
<h2 id="orgb3b50c5"><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: 2024-02-13 Tue 16:23</p>
|
||||
<p class="date">Created: 2024-02-14 Wed 10:00</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