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@73a1603138 🚀
This commit is contained in:
parent
ed0f7d00cb
commit
1e49e4ef1e
@ -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-12-13 Fri 14:10 -->
|
||||
<!-- 2024-12-13 Fri 14:19 -->
|
||||
<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-12-13 Fri 14:10</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:19</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-12-13 Fri 14:10 -->
|
||||
<!-- 2024-12-13 Fri 14:19 -->
|
||||
<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="#org178e812">1. Installing QMCkl</a>
|
||||
<li><a href="#orgfafbf03">1. Installing QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#orgb688ba0">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#orge9362c3">1.2. Installing from the source repository (for developers)</a></li>
|
||||
<li><a href="#orgf50c9e3">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org2474741">1.2. Installing from the source repository (for developers)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4796c61">2. Using QMCkl</a></li>
|
||||
<li><a href="#org37dffce">3. Developing in QMCkl</a>
|
||||
<li><a href="#orgb21a51c">2. Using QMCkl</a></li>
|
||||
<li><a href="#org11a1c95">3. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#orga1dcd9d">3.1. Literate programming</a></li>
|
||||
<li><a href="#org8b8c50b">3.2. Source code editing</a></li>
|
||||
<li><a href="#org288a34a">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#orgb18bfca">3.4. Coding rules</a></li>
|
||||
<li><a href="#orgcf0f670">3.5. Design of the library</a></li>
|
||||
<li><a href="#org51547e2">3.6. Naming conventions</a></li>
|
||||
<li><a href="#org53c7d4f">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org6a21452">3.8. Global state</a></li>
|
||||
<li><a href="#org84e5504">3.9. Headers</a></li>
|
||||
<li><a href="#org25af469">3.10. Low-level functions</a></li>
|
||||
<li><a href="#orgcdc5d6b">3.11. High-level functions</a></li>
|
||||
<li><a href="#org13c1887">3.12. Numerical precision</a></li>
|
||||
<li><a href="#orgfce7f76">3.13. Algorithms</a></li>
|
||||
<li><a href="#org3acc37b">3.1. Literate programming</a></li>
|
||||
<li><a href="#orgc98758a">3.2. Source code editing</a></li>
|
||||
<li><a href="#org1766e75">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#orga1da9ac">3.4. Coding rules</a></li>
|
||||
<li><a href="#orga950570">3.5. Design of the library</a></li>
|
||||
<li><a href="#org6769602">3.6. Naming conventions</a></li>
|
||||
<li><a href="#orga7f9ba1">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org27a6af1">3.8. Global state</a></li>
|
||||
<li><a href="#orgb933521">3.9. Headers</a></li>
|
||||
<li><a href="#org04d50e1">3.10. Low-level functions</a></li>
|
||||
<li><a href="#orga443974">3.11. High-level functions</a></li>
|
||||
<li><a href="#org4aeeca9">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org0a4a177">3.13. Algorithms</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org178e812" class="outline-2">
|
||||
<h2 id="org178e812"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div id="outline-container-orgfafbf03" class="outline-2">
|
||||
<h2 id="orgfafbf03"><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-orgb688ba0" class="outline-3">
|
||||
<h3 id="orgb688ba0"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div id="outline-container-orgf50c9e3" class="outline-3">
|
||||
<h3 id="orgf50c9e3"><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-orge9362c3" class="outline-3">
|
||||
<h3 id="orge9362c3"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div id="outline-container-org2474741" class="outline-3">
|
||||
<h3 id="org2474741"><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-org4796c61" class="outline-2">
|
||||
<h2 id="org4796c61"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div id="outline-container-orgb21a51c" class="outline-2">
|
||||
<h2 id="orgb21a51c"><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-org37dffce" class="outline-2">
|
||||
<h2 id="org37dffce"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-org11a1c95" class="outline-2">
|
||||
<h2 id="org11a1c95"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orga1dcd9d" class="outline-3">
|
||||
<h3 id="orga1dcd9d"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div id="outline-container-org3acc37b" class="outline-3">
|
||||
<h3 id="org3acc37b"><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-org8b8c50b" class="outline-3">
|
||||
<h3 id="org8b8c50b"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div id="outline-container-orgc98758a" class="outline-3">
|
||||
<h3 id="orgc98758a"><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-org288a34a" class="outline-3">
|
||||
<h3 id="org288a34a"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-org1766e75" class="outline-3">
|
||||
<h3 id="org1766e75"><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-orgb18bfca" class="outline-3">
|
||||
<h3 id="orgb18bfca"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div id="outline-container-orga1da9ac" class="outline-3">
|
||||
<h3 id="orga1da9ac"><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-orgcf0f670" class="outline-3">
|
||||
<h3 id="orgcf0f670"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div id="outline-container-orga950570" class="outline-3">
|
||||
<h3 id="orga950570"><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-org51547e2" class="outline-3">
|
||||
<h3 id="org51547e2"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-org6769602" class="outline-3">
|
||||
<h3 id="org6769602"><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-org53c7d4f" class="outline-3">
|
||||
<h3 id="org53c7d4f"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-orga7f9ba1" class="outline-3">
|
||||
<h3 id="orga7f9ba1"><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-org6a21452" class="outline-3">
|
||||
<h3 id="org6a21452"><span class="section-number-3">3.8</span> Global state</h3>
|
||||
<div id="outline-container-org27a6af1" class="outline-3">
|
||||
<h3 id="org27a6af1"><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="orga3cbc1e">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="org699c542">=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-org84e5504" class="outline-3">
|
||||
<h3 id="org84e5504"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div id="outline-container-orgb933521" class="outline-3">
|
||||
<h3 id="orgb933521"><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-org25af469" class="outline-3">
|
||||
<h3 id="org25af469"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-org04d50e1" class="outline-3">
|
||||
<h3 id="org04d50e1"><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="#orga3cbc1e"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#org699c542"><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-orgcdc5d6b" class="outline-3">
|
||||
<h3 id="orgcdc5d6b"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div id="outline-container-orga443974" class="outline-3">
|
||||
<h3 id="orga443974"><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-org13c1887" class="outline-3">
|
||||
<h3 id="org13c1887"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-org4aeeca9" class="outline-3">
|
||||
<h3 id="org4aeeca9"><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="#orga3cbc1e"><code>context</code></a> variable.
|
||||
specified in the <a href="#org699c542"><code>context</code></a> variable.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -909,8 +909,8 @@ following points :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfce7f76" class="outline-3">
|
||||
<h3 id="orgfce7f76"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div id="outline-container-org0a4a177" class="outline-3">
|
||||
<h3 id="org0a4a177"><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-12-13 Fri 14:10</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:19</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-12-13 Fri 14:10 -->
|
||||
<!-- 2024-12-13 Fri 14:20 -->
|
||||
<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="#org6bff402">1. Introduction</a></li>
|
||||
<li><a href="#orgd877ca5">2. Context</a>
|
||||
<li><a href="#org2ac5c7a">1. Introduction</a></li>
|
||||
<li><a href="#orge0d5fe8">2. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org36b8d1c">2.1. Constant data</a>
|
||||
<li><a href="#org61e0a5c">2.1. Constant data</a>
|
||||
<ul>
|
||||
<li><a href="#org6908be5">2.1.1. Initialization functions</a>
|
||||
<li><a href="#org35daabd">2.1.1. Initialization functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgdc8aa6b">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org1fa71c7">2.1.1.2. Fortran interface</a></li>
|
||||
<li><a href="#orgd4576ea">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org5b6c6d8">2.1.1.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org56589ed">2.1.2. Access functions</a>
|
||||
<li><a href="#orgd89f5e3">2.1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orge7c6734">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org86e96e1">2.1.2.2. Fortran interface</a></li>
|
||||
<li><a href="#orgd7d21a6">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org69eee27">2.1.2.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgdd2282b">2.2. Computed data</a>
|
||||
<li><a href="#org509313c">2.2. Computed data</a>
|
||||
<ul>
|
||||
<li><a href="#orga38daff">2.2.1. After initialization</a></li>
|
||||
<li><a href="#org6417044">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#orge836570">2.2.3. Access functions</a></li>
|
||||
<li><a href="#org45dd9eb">2.2.1. After initialization</a></li>
|
||||
<li><a href="#org7b0683d">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#orgbfef619">2.2.3. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5b3a308">3. Radial part</a>
|
||||
<li><a href="#orgf6bbe6d">3. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#orgf2001eb">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org6a302fc">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org8b66dd7">3.3. Computation of shells</a></li>
|
||||
<li><a href="#org45aadb0">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org73a025e">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org4b9a1ab">3.3. Computation of shells</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf344676">4. Polynomial part</a>
|
||||
<li><a href="#org0b3c4f7">4. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#org8972056">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#orgd9fa0ac">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
<li><a href="#orgf64492c">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org93e0e35">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org68a7f67">5. Combining radial and polynomial parts</a>
|
||||
<li><a href="#orge6ce756">5. Combining radial and polynomial parts</a>
|
||||
<ul>
|
||||
<li><a href="#org6db9a47">5.1. Determination of nucleus ranges</a></li>
|
||||
<li><a href="#orgb940577">5.2. Values only</a>
|
||||
<li><a href="#org17bd307">5.1. Determination of nucleus ranges</a></li>
|
||||
<li><a href="#org897e677">5.2. Values only</a>
|
||||
<ul>
|
||||
<li><a href="#org63ecec0">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#org440ddb1">5.2.2. HPC version</a></li>
|
||||
<li><a href="#org3829cf9">5.2.3. Interfaces</a></li>
|
||||
<li><a href="#orge5b71fa">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#org064a6f5">5.2.2. HPC version</a></li>
|
||||
<li><a href="#orge90f529">5.2.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3773169">5.3. Value, gradients, Laplacian</a>
|
||||
<li><a href="#orge58d026">5.3. Value, gradients, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org68a096e">5.3.1. Reference version</a></li>
|
||||
<li><a href="#org60ff61c">5.3.2. HPC version</a></li>
|
||||
<li><a href="#org27de254">5.3.3. Interfaces</a></li>
|
||||
<li><a href="#orge61929f">5.3.1. Reference version</a></li>
|
||||
<li><a href="#org41d5454">5.3.2. HPC version</a></li>
|
||||
<li><a href="#orgc8b6cbd">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-org6bff402" class="outline-2">
|
||||
<h2 id="org6bff402"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div id="outline-container-org2ac5c7a" class="outline-2">
|
||||
<h2 id="org2ac5c7a"><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-orgd877ca5" class="outline-2">
|
||||
<h2 id="orgd877ca5"><span class="section-number-2">2</span> Context</h2>
|
||||
<div id="outline-container-orge0d5fe8" class="outline-2">
|
||||
<h2 id="orge0d5fe8"><span class="section-number-2">2</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org36b8d1c" class="outline-3">
|
||||
<h3 id="org36b8d1c"><span class="section-number-3">2.1</span> Constant data</h3>
|
||||
<div id="outline-container-org61e0a5c" class="outline-3">
|
||||
<h3 id="org61e0a5c"><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="orge81c4d1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc7ee8f3" 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="orgf812cca"><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="orgc96a922"><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="org172afdf"><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="orgb1eaeb0"><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-org6908be5" class="outline-4">
|
||||
<h4 id="org6908be5"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
||||
<div id="outline-container-org35daabd" class="outline-4">
|
||||
<h4 id="org35daabd"><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="#orgd877ca5">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#orge0d5fe8">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdc8aa6b" class="outline-5">
|
||||
<h5 id="orgdc8aa6b"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div id="outline-container-orgd4576ea" class="outline-5">
|
||||
<h5 id="orgd4576ea"><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-org1fa71c7" class="outline-5">
|
||||
<h5 id="org1fa71c7"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org5b6c6d8" class="outline-5">
|
||||
<h5 id="org5b6c6d8"><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-org56589ed" class="outline-4">
|
||||
<h4 id="org56589ed"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
||||
<div id="outline-container-orgd89f5e3" class="outline-4">
|
||||
<h4 id="orgd89f5e3"><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="#orgd877ca5">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#orge0d5fe8">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge7c6734" class="outline-5">
|
||||
<h5 id="orge7c6734"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div id="outline-container-orgd7d21a6" class="outline-5">
|
||||
<h5 id="orgd7d21a6"><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-org86e96e1" class="outline-5">
|
||||
<h5 id="org86e96e1"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org69eee27" class="outline-5">
|
||||
<h5 id="org69eee27"><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-orgdd2282b" class="outline-3">
|
||||
<h3 id="orgdd2282b"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div id="outline-container-org509313c" class="outline-3">
|
||||
<h3 id="org509313c"><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-orga38daff" class="outline-4">
|
||||
<h4 id="orga38daff"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div id="outline-container-org45dd9eb" class="outline-4">
|
||||
<h4 id="org45dd9eb"><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-org6417044" class="outline-4">
|
||||
<h4 id="org6417044"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
||||
<div id="outline-container-org7b0683d" class="outline-4">
|
||||
<h4 id="org7b0683d"><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-orge836570" class="outline-4">
|
||||
<h4 id="orge836570"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||
<div id="outline-container-orgbfef619" class="outline-4">
|
||||
<h4 id="orgbfef619"><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="#org6a302fc">3.2</a>.
|
||||
See section <a href="#org73a025e">3.2</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1569,7 +1569,7 @@ See section <a href="#org6a302fc">3.2</a>.
|
||||
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of contracted shells
|
||||
evaluated at the current coordinates. See section <a href="#org8b66dd7">3.3</a>.
|
||||
evaluated at the current coordinates. See section <a href="#org4b9a1ab">3.3</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1583,7 +1583,7 @@ evaluated at the current coordinates. See section <a href="#org8b66dd7">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="#org68a7f67">5</a>.
|
||||
See section <a href="#orge6ce756">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="#org68a7f67">5</a>.
|
||||
the current coordinates. See section <a href="#orge6ce756">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1627,12 +1627,12 @@ Uses the given array to compute the value.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5b3a308" class="outline-2">
|
||||
<h2 id="org5b3a308"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div id="outline-container-orgf6bbe6d" class="outline-2">
|
||||
<h2 id="orgf6bbe6d"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orgf2001eb" class="outline-3">
|
||||
<h3 id="orgf2001eb"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div id="outline-container-org45aadb0" class="outline-3">
|
||||
<h3 id="org45aadb0"><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
|
||||
@ -1805,10 +1805,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6a302fc" class="outline-3">
|
||||
<h3 id="org6a302fc"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div id="outline-container-org73a025e" class="outline-3">
|
||||
<h3 id="org73a025e"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<table id="org754cb51" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5a0c91d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1969,10 +1969,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8b66dd7" class="outline-3">
|
||||
<h3 id="org8b66dd7"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div id="outline-container-org4b9a1ab" class="outline-3">
|
||||
<h3 id="org4b9a1ab"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<table id="org81bd495" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0aa4374" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2228,8 +2228,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf344676" class="outline-2">
|
||||
<h2 id="orgf344676"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div id="outline-container-org0b3c4f7" class="outline-2">
|
||||
<h2 id="org0b3c4f7"><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
|
||||
@ -2249,8 +2249,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-org8972056" class="outline-3">
|
||||
<h3 id="org8972056"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-orgf64492c" class="outline-3">
|
||||
<h3 id="orgf64492c"><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>
|
||||
@ -2262,7 +2262,7 @@ the \(n\) points:
|
||||
\[ P_{ik} = X_i^k \]
|
||||
</p>
|
||||
|
||||
<table id="org6dc5bc4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org05c7a29" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2403,8 +2403,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd9fa0ac" class="outline-3">
|
||||
<h3 id="orgd9fa0ac"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-org93e0e35" class="outline-3">
|
||||
<h3 id="org93e0e35"><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\)
|
||||
@ -2449,7 +2449,7 @@ Laplacians at a given point in space, of all polynomials with an
|
||||
angular momentum up to <code>lmax</code>.
|
||||
</p>
|
||||
|
||||
<table id="org733be0b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1405f08" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3245,12 +3245,12 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org68a7f67" class="outline-2">
|
||||
<h2 id="org68a7f67"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div id="outline-container-orge6ce756" class="outline-2">
|
||||
<h2 id="orge6ce756"><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-org6db9a47" class="outline-3">
|
||||
<h3 id="org6db9a47"><span class="section-number-3">5.1</span> Determination of nucleus ranges</h3>
|
||||
<div id="outline-container-org17bd307" class="outline-3">
|
||||
<h3 id="org17bd307"><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
|
||||
@ -3416,14 +3416,14 @@ of bits of precision (1-53), a range is given.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb940577" class="outline-3">
|
||||
<h3 id="orgb940577"><span class="section-number-3">5.2</span> Values only</h3>
|
||||
<div id="outline-container-org897e677" class="outline-3">
|
||||
<h3 id="org897e677"><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-org63ecec0" class="outline-4">
|
||||
<h4 id="org63ecec0"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-orge5b71fa" class="outline-4">
|
||||
<h4 id="orge5b71fa"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-1">
|
||||
<table id="org1fc229c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org69acc12" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3663,10 +3663,10 @@ of bits of precision (1-53), a range is given.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org440ddb1" class="outline-4">
|
||||
<h4 id="org440ddb1"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div id="outline-container-org064a6f5" class="outline-4">
|
||||
<h4 id="org064a6f5"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-2">
|
||||
<table id="orgfadaa37" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org03a7170" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3824,8 +3824,8 @@ of bits of precision (1-53), a range is given.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3829cf9" class="outline-4">
|
||||
<h4 id="org3829cf9"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||
<div id="outline-container-orge90f529" class="outline-4">
|
||||
<h4 id="orge90f529"><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> (
|
||||
@ -3874,14 +3874,14 @@ of bits of precision (1-53), a range is given.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3773169" class="outline-3">
|
||||
<h3 id="org3773169"><span class="section-number-3">5.3</span> Value, gradients, Laplacian</h3>
|
||||
<div id="outline-container-orge58d026" class="outline-3">
|
||||
<h3 id="orge58d026"><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-org68a096e" class="outline-4">
|
||||
<h4 id="org68a096e"><span class="section-number-4">5.3.1</span> Reference version</h4>
|
||||
<div id="outline-container-orge61929f" class="outline-4">
|
||||
<h4 id="orge61929f"><span class="section-number-4">5.3.1</span> Reference version</h4>
|
||||
<div class="outline-text-4" id="text-5-3-1">
|
||||
<table id="org0f8c009" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org597b373" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4149,10 +4149,10 @@ of bits of precision (1-53), a range is given.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org60ff61c" class="outline-4">
|
||||
<h4 id="org60ff61c"><span class="section-number-4">5.3.2</span> HPC version</h4>
|
||||
<div id="outline-container-org41d5454" class="outline-4">
|
||||
<h4 id="org41d5454"><span class="section-number-4">5.3.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-3-2">
|
||||
<table id="org7b3e6f2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org026ea1e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4311,8 +4311,8 @@ of bits of precision (1-53), a range is given.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org27de254" class="outline-4">
|
||||
<h4 id="org27de254"><span class="section-number-4">5.3.3</span> Interfaces</h4>
|
||||
<div id="outline-container-orgc8b6cbd" class="outline-4">
|
||||
<h4 id="orgc8b6cbd"><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> (
|
||||
@ -4364,7 +4364,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-12-13 Fri 14:10</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:20</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-12-13 Fri 14:10 -->
|
||||
<!-- 2024-12-13 Fri 14:19 -->
|
||||
<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="#org7b37f74">-</a></li>
|
||||
<li><a href="#org1a9c761">1. Data types</a>
|
||||
<li><a href="#orga74f9e8">-</a></li>
|
||||
<li><a href="#org8750beb">1. Data types</a>
|
||||
<ul>
|
||||
<li><a href="#org95de205">1.1. Vector</a></li>
|
||||
<li><a href="#org18a89a7">1.2. Matrix</a></li>
|
||||
<li><a href="#orga78bb7d">1.3. Tensor</a></li>
|
||||
<li><a href="#orgebff3cd">1.4. Reshaping</a>
|
||||
<li><a href="#org15246e5">1.1. Vector</a></li>
|
||||
<li><a href="#org55f7d59">1.2. Matrix</a></li>
|
||||
<li><a href="#orgea8e8de">1.3. Tensor</a></li>
|
||||
<li><a href="#org2805553">1.4. Reshaping</a>
|
||||
<ul>
|
||||
<li><a href="#orgea7f89c">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#orgc35d7a7">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#orge586b11">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#org33c64c7">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#orgfb86888">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#org2edc69e">1.4.6. Tensor -> Matrix</a></li>
|
||||
<li><a href="#orgb002860">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#orgc458554">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#org72dc569">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#orge6c00dd">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#org5f6605c">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#orge07620a">1.4.6. Tensor -> Matrix</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge0156c4">1.5. Access macros</a></li>
|
||||
<li><a href="#org7cdc791">1.6. Set all elements</a>
|
||||
<li><a href="#org6a64a79">1.5. Access macros</a></li>
|
||||
<li><a href="#org0086c15">1.6. Set all elements</a>
|
||||
<ul>
|
||||
<li><a href="#orgcecb73d">1.6.1. Vector</a></li>
|
||||
<li><a href="#org5a7bebb">1.6.2. Matrix</a></li>
|
||||
<li><a href="#orgeacdba7">1.6.3. Tensor</a></li>
|
||||
<li><a href="#org4ecc27f">1.6.1. Vector</a></li>
|
||||
<li><a href="#org7edfa0f">1.6.2. Matrix</a></li>
|
||||
<li><a href="#org984c042">1.6.3. Tensor</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2910934">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#orgc7a81d3">1.8. Allocate and copy to <code>double*</code></a></li>
|
||||
<li><a href="#org5ba5493">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#orgd077082">1.8. Allocate and copy to <code>double*</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org36a8713">2. Matrix operations</a>
|
||||
<li><a href="#org6ece186">2. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#org01e734a">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org4189230">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#org5f5d5c1">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#orgf2b0fab">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#org524ee3d">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<li><a href="#orge1b14a5">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org53eb51e">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#orga839e15">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org17d21a7">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#orgb08eb9c">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<ul>
|
||||
<li><a href="#orge303e89">2.5.1. C interface</a></li>
|
||||
<li><a href="#org9316f25">2.5.1. C interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org544d6d9">2.6. <code>qmckl_transpose</code></a></li>
|
||||
<li><a href="#orgf69458d">2.6. <code>qmckl_transpose</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgeb15341">3. Utilities</a></li>
|
||||
<li><a href="#orga797502">3. Utilities</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7b37f74" class="outline-2">
|
||||
<h2 id="org7b37f74">-</h2>
|
||||
<div class="outline-text-2" id="text-org7b37f74">
|
||||
<div id="outline-container-orga74f9e8" class="outline-2">
|
||||
<h2 id="orga74f9e8">-</h2>
|
||||
<div class="outline-text-2" id="text-orga74f9e8">
|
||||
<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-org1a9c761" class="outline-2">
|
||||
<h2 id="org1a9c761"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div id="outline-container-org8750beb" class="outline-2">
|
||||
<h2 id="org8750beb"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org95de205" class="outline-3">
|
||||
<h3 id="org95de205"><span class="section-number-3">1.1</span> Vector</h3>
|
||||
<div id="outline-container-org15246e5" class="outline-3">
|
||||
<h3 id="org15246e5"><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-org18a89a7" class="outline-3">
|
||||
<h3 id="org18a89a7"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||
<div id="outline-container-org55f7d59" class="outline-3">
|
||||
<h3 id="org55f7d59"><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-orga78bb7d" class="outline-3">
|
||||
<h3 id="orga78bb7d"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||
<div id="outline-container-orgea8e8de" class="outline-3">
|
||||
<h3 id="orgea8e8de"><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-orgebff3cd" class="outline-3">
|
||||
<h3 id="orgebff3cd"><span class="section-number-3">1.4</span> Reshaping</h3>
|
||||
<div id="outline-container-org2805553" class="outline-3">
|
||||
<h3 id="org2805553"><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-orgea7f89c" class="outline-4">
|
||||
<h4 id="orgea7f89c"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||
<div id="outline-container-orgb002860" class="outline-4">
|
||||
<h4 id="orgb002860"><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-orgc35d7a7" class="outline-4">
|
||||
<h4 id="orgc35d7a7"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||
<div id="outline-container-orgc458554" class="outline-4">
|
||||
<h4 id="orgc458554"><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-orge586b11" class="outline-4">
|
||||
<h4 id="orge586b11"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||
<div id="outline-container-org72dc569" class="outline-4">
|
||||
<h4 id="org72dc569"><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-org33c64c7" class="outline-4">
|
||||
<h4 id="org33c64c7"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||
<div id="outline-container-orge6c00dd" class="outline-4">
|
||||
<h4 id="orge6c00dd"><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-orgfb86888" class="outline-4">
|
||||
<h4 id="orgfb86888"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||
<div id="outline-container-org5f6605c" class="outline-4">
|
||||
<h4 id="org5f6605c"><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-org2edc69e" class="outline-4">
|
||||
<h4 id="org2edc69e"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||
<div id="outline-container-orge07620a" class="outline-4">
|
||||
<h4 id="orge07620a"><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-orge0156c4" class="outline-3">
|
||||
<h3 id="orge0156c4"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||
<div id="outline-container-org6a64a79" class="outline-3">
|
||||
<h3 id="org6a64a79"><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-org7cdc791" class="outline-3">
|
||||
<h3 id="org7cdc791"><span class="section-number-3">1.6</span> Set all elements</h3>
|
||||
<div id="outline-container-org0086c15" class="outline-3">
|
||||
<h3 id="org0086c15"><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-orgcecb73d" class="outline-4">
|
||||
<h4 id="orgcecb73d"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||
<div id="outline-container-org4ecc27f" class="outline-4">
|
||||
<h4 id="org4ecc27f"><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-org5a7bebb" class="outline-4">
|
||||
<h4 id="org5a7bebb"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||
<div id="outline-container-org7edfa0f" class="outline-4">
|
||||
<h4 id="org7edfa0f"><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-orgeacdba7" class="outline-4">
|
||||
<h4 id="orgeacdba7"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||
<div id="outline-container-org984c042" class="outline-4">
|
||||
<h4 id="org984c042"><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-org2910934" class="outline-3">
|
||||
<h3 id="org2910934"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||
<div id="outline-container-org5ba5493" class="outline-3">
|
||||
<h3 id="org5ba5493"><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-orgc7a81d3" class="outline-3">
|
||||
<h3 id="orgc7a81d3"><span class="section-number-3">1.8</span> Allocate and copy to <code>double*</code></h3>
|
||||
<div id="outline-container-orgd077082" class="outline-3">
|
||||
<h3 id="orgd077082"><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-org36a8713" class="outline-2">
|
||||
<h2 id="org36a8713"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div id="outline-container-org6ece186" class="outline-2">
|
||||
<h2 id="org6ece186"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org01e734a" class="outline-3">
|
||||
<h3 id="org01e734a"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div id="outline-container-orge1b14a5" class="outline-3">
|
||||
<h3 id="orge1b14a5"><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="org4e3fe52" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc1964a6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1052,8 +1052,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4189230" class="outline-3">
|
||||
<h3 id="org4189230"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
||||
<div id="outline-container-org53eb51e" class="outline-3">
|
||||
<h3 id="org53eb51e"><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="orgdc32d6c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8750ac2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1248,8 +1248,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5f5d5c1" class="outline-3">
|
||||
<h3 id="org5f5d5c1"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
||||
<div id="outline-container-orga839e15" class="outline-3">
|
||||
<h3 id="orga839e15"><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="orgdcc5cda" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4258ea9" 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-orgf2b0fab" class="outline-3">
|
||||
<h3 id="orgf2b0fab"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
||||
<div id="outline-container-org17d21a7" class="outline-3">
|
||||
<h3 id="org17d21a7"><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="org7ff352b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3f26f81" 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-org524ee3d" class="outline-3">
|
||||
<h3 id="org524ee3d"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
||||
<div id="outline-container-orgb08eb9c" class="outline-3">
|
||||
<h3 id="orgb08eb9c"><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="orgab53ab5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2764fa8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1703,13 +1703,13 @@ LAPACK library.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge303e89" class="outline-4">
|
||||
<h4 id="orge303e89"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
<div id="outline-container-org9316f25" class="outline-4">
|
||||
<h4 id="org9316f25"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org544d6d9" class="outline-3">
|
||||
<h3 id="org544d6d9"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
||||
<div id="outline-container-orgf69458d" class="outline-3">
|
||||
<h3 id="orgf69458d"><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-orgeb15341" class="outline-2">
|
||||
<h2 id="orgeb15341"><span class="section-number-2">3</span> Utilities</h2>
|
||||
<div id="outline-container-orga797502" class="outline-2">
|
||||
<h2 id="orga797502"><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-12-13 Fri 14:10</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:19</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-12-13 Fri 14:10 -->
|
||||
<!-- 2024-12-13 Fri 14:20 -->
|
||||
<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="#org4320e05">1. Context handling</a>
|
||||
<li><a href="#org81c6b0f">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#org9a8c142">1.1. Data structure</a></li>
|
||||
<li><a href="#orga8568e7">1.2. Creation</a></li>
|
||||
<li><a href="#orgbc1a143">1.3. Locking</a></li>
|
||||
<li><a href="#org34d4f61">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#orgf915da1">1.5. Destroy</a></li>
|
||||
<li><a href="#org00f4af9">1.1. Data structure</a></li>
|
||||
<li><a href="#orge3af73a">1.2. Creation</a></li>
|
||||
<li><a href="#org6514f38">1.3. Locking</a></li>
|
||||
<li><a href="#org01545cb">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org1e3dd5f">1.5. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4320e05" class="outline-2">
|
||||
<h2 id="org4320e05"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-org81c6b0f" class="outline-2">
|
||||
<h2 id="org81c6b0f"><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="org905720f"><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="org349b4cf"><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-org9a8c142" class="outline-3">
|
||||
<h3 id="org9a8c142"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org00f4af9" class="outline-3">
|
||||
<h3 id="org00f4af9"><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="#orga8568e7"><code>qmckl_context_create</code></a> <a href="#orgf915da1"><code>qmckl_context_destroy</code></a> and <a href="#org34d4f61"><code>qmckl_context_copy</code></a>
|
||||
<a href="#orge3af73a"><code>qmckl_context_create</code></a> <a href="#org1e3dd5f"><code>qmckl_context_destroy</code></a> and <a href="#org01545cb"><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-orga8568e7" class="outline-3">
|
||||
<h3 id="orga8568e7"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-orge3af73a" class="outline-3">
|
||||
<h3 id="orge3af73a"><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-orgbc1a143" class="outline-3">
|
||||
<h3 id="orgbc1a143"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-org6514f38" class="outline-3">
|
||||
<h3 id="org6514f38"><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-org34d4f61" class="outline-3">
|
||||
<h3 id="org34d4f61"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div id="outline-container-org01545cb" class="outline-3">
|
||||
<h3 id="org01545cb"><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-orgf915da1" class="outline-3">
|
||||
<h3 id="orgf915da1"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-org1e3dd5f" class="outline-3">
|
||||
<h3 id="org1e3dd5f"><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-12-13 Fri 14:10</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:20</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-12-13 Fri 14:10 -->
|
||||
<!-- 2024-12-13 Fri 14:20 -->
|
||||
<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="#org10ad538">1. Context</a>
|
||||
<li><a href="#org788cec5">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgd0594b2">1.1. Data structure</a></li>
|
||||
<li><a href="#org2501c3d">1.2. Access functions</a></li>
|
||||
<li><a href="#orgaf9d0b4">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org4e0a14d">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#orgfeea898">1.5. Test</a></li>
|
||||
<li><a href="#orgcb69d07">1.1. Data structure</a></li>
|
||||
<li><a href="#org7ad237c">1.2. Access functions</a></li>
|
||||
<li><a href="#org7054522">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org22105ad">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#orge60cc49">1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge0b2a54">2. Computation</a>
|
||||
<li><a href="#orgad9d669">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org0ee64ec">2.1. Determinant matrix</a>
|
||||
<li><a href="#org95a3e24">2.1. Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#orgb861fd7">2.1.1. Get</a></li>
|
||||
<li><a href="#org985eda6">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgfe38883">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#orgcf41f63">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#orgb55e5e1">2.1.5. Test</a></li>
|
||||
<li><a href="#org41f3db1">2.1.1. Get</a></li>
|
||||
<li><a href="#orge4233e1">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgccfe37a">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#org095f96a">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#orgffd2fa5">2.1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org69a0283">2.2. Inverse of Determinant matrix</a>
|
||||
<li><a href="#orgd39978b">2.2. Inverse of Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org9450a01">2.2.1. Get</a></li>
|
||||
<li><a href="#org364ad42">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgf8ded67">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#org81d2c0e">2.2.4. Compute beta</a></li>
|
||||
<li><a href="#orgb6d3c06">2.2.1. Get</a></li>
|
||||
<li><a href="#org5e87bc4">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgfba8594">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#orgc90d5b6">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-org10ad538" class="outline-2">
|
||||
<h2 id="org10ad538"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org788cec5" class="outline-2">
|
||||
<h2 id="org788cec5"><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-orgd0594b2" class="outline-3">
|
||||
<h3 id="orgd0594b2"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgcb69d07" class="outline-3">
|
||||
<h3 id="orgcb69d07"><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-org2501c3d" class="outline-3">
|
||||
<h3 id="org2501c3d"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org7ad237c" class="outline-3">
|
||||
<h3 id="org7ad237c"><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-orgaf9d0b4" class="outline-3">
|
||||
<h3 id="orgaf9d0b4"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org7054522" class="outline-3">
|
||||
<h3 id="org7054522"><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-org4e0a14d" class="outline-3">
|
||||
<h3 id="org4e0a14d"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
<div id="outline-container-org22105ad" class="outline-3">
|
||||
<h3 id="org22105ad"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
</div>
|
||||
<div id="outline-container-orgfeea898" class="outline-3">
|
||||
<h3 id="orgfeea898"><span class="section-number-3">1.5</span> Test</h3>
|
||||
<div id="outline-container-orge60cc49" class="outline-3">
|
||||
<h3 id="orge60cc49"><span class="section-number-3">1.5</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orge0b2a54" class="outline-2">
|
||||
<h2 id="orge0b2a54"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orgad9d669" class="outline-2">
|
||||
<h2 id="orgad9d669"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org0ee64ec" class="outline-3">
|
||||
<h3 id="org0ee64ec"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
||||
<div id="outline-container-org95a3e24" class="outline-3">
|
||||
<h3 id="org95a3e24"><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-orgb861fd7" class="outline-4">
|
||||
<h4 id="orgb861fd7"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org41f3db1" class="outline-4">
|
||||
<h4 id="org41f3db1"><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-org985eda6" class="outline-4">
|
||||
<h4 id="org985eda6"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-orge4233e1" class="outline-4">
|
||||
<h4 id="orge4233e1"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfe38883" class="outline-4">
|
||||
<h4 id="orgfe38883"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-orgccfe37a" class="outline-4">
|
||||
<h4 id="orgccfe37a"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="orgc11e3dc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6933baf" 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-orgcf41f63" class="outline-4">
|
||||
<h4 id="orgcf41f63"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org095f96a" class="outline-4">
|
||||
<h4 id="org095f96a"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<table id="org77fe4a0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2a7c5b5" 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-orgb55e5e1" class="outline-4">
|
||||
<h4 id="orgb55e5e1"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
<div id="outline-container-orgffd2fa5" class="outline-4">
|
||||
<h4 id="orgffd2fa5"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org69a0283" class="outline-3">
|
||||
<h3 id="org69a0283"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
||||
<div id="outline-container-orgd39978b" class="outline-3">
|
||||
<h3 id="orgd39978b"><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-org9450a01" class="outline-4">
|
||||
<h4 id="org9450a01"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgb6d3c06" class="outline-4">
|
||||
<h4 id="orgb6d3c06"><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-org364ad42" class="outline-4">
|
||||
<h4 id="org364ad42"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org5e87bc4" class="outline-4">
|
||||
<h4 id="org5e87bc4"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf8ded67" class="outline-4">
|
||||
<h4 id="orgf8ded67"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-orgfba8594" class="outline-4">
|
||||
<h4 id="orgfba8594"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org29d5767" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org615cd59" 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-org81d2c0e" class="outline-4">
|
||||
<h4 id="org81d2c0e"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div id="outline-container-orgc90d5b6" class="outline-4">
|
||||
<h4 id="orgc90d5b6"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<table id="org0b55255" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org32581c0" 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-12-13 Fri 14:10</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:20</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-12-13 Fri 14:10 -->
|
||||
<!-- 2024-12-13 Fri 14:19 -->
|
||||
<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="#org605ad20">1. Squared distance</a>
|
||||
<li><a href="#orged70682">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#org3f5b58f">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#org293d1a2">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#org5c6e5b0">1.1.1. Performance</a></li>
|
||||
<li><a href="#orgfc35c9f">1.1.1. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc81e230">2. Distance</a>
|
||||
<li><a href="#orgab2e26f">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org3849f26">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#orgb1b8a47">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#org297b45a">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orge6df85f">2.1.2. C header</a></li>
|
||||
<li><a href="#orgd59ce5a">2.1.3. Source</a></li>
|
||||
<li><a href="#org024d0a8">2.1.4. Performance</a></li>
|
||||
<li><a href="#orgc07c153">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orgb0ee4b5">2.1.2. C header</a></li>
|
||||
<li><a href="#org63e1b0e">2.1.3. Source</a></li>
|
||||
<li><a href="#orgc31fa76">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc178cbd">3. Rescaled Distance</a>
|
||||
<li><a href="#org698ae87">3. Rescaled Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org6545a45">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<li><a href="#org6e2dfde">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<ul>
|
||||
<li><a href="#orga913d98">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org9324b1c">3.1.2. C header</a></li>
|
||||
<li><a href="#org8dc291f">3.1.3. Source</a></li>
|
||||
<li><a href="#org77bc9cd">3.1.4. Performance</a></li>
|
||||
<li><a href="#org638e4cf">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org723bb1f">3.1.2. C header</a></li>
|
||||
<li><a href="#orgb7c310f">3.1.3. Source</a></li>
|
||||
<li><a href="#org0bd353a">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5bbc65c">4. Rescaled Distance Derivatives</a>
|
||||
<li><a href="#orgfcd354f">4. Rescaled Distance Derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#org93cec8a">4.1. <code>qmckl_distance_rescaled_gl</code></a></li>
|
||||
<li><a href="#orgab6cc01">4.1. <code>qmckl_distance_rescaled_gl</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org605ad20" class="outline-2">
|
||||
<h2 id="org605ad20"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-orged70682" class="outline-2">
|
||||
<h2 id="orged70682"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org3f5b58f" class="outline-3">
|
||||
<h3 id="org3f5b58f"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-org293d1a2" class="outline-3">
|
||||
<h3 id="org293d1a2"><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="org85ec7b2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9dbb599" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -678,8 +678,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5c6e5b0" class="outline-4">
|
||||
<h4 id="org5c6e5b0"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div id="outline-container-orgfc35c9f" class="outline-4">
|
||||
<h4 id="orgfc35c9f"><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
|
||||
@ -689,12 +689,12 @@ transposed.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgc81e230" class="outline-2">
|
||||
<h2 id="orgc81e230"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-orgab2e26f" class="outline-2">
|
||||
<h2 id="orgab2e26f"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org3849f26" class="outline-3">
|
||||
<h3 id="org3849f26"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div id="outline-container-orgb1b8a47" class="outline-3">
|
||||
<h3 id="orgb1b8a47"><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
|
||||
@ -712,7 +712,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="org2f0607a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga29f225" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -813,8 +813,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org297b45a" class="outline-4">
|
||||
<h4 id="org297b45a"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgc07c153" class="outline-4">
|
||||
<h4 id="orgc07c153"><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>
|
||||
@ -832,8 +832,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge6df85f" class="outline-4">
|
||||
<h4 id="orge6df85f"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgb0ee4b5" class="outline-4">
|
||||
<h4 id="orgb0ee4b5"><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> (
|
||||
@ -853,8 +853,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd59ce5a" class="outline-4">
|
||||
<h4 id="orgd59ce5a"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-org63e1b0e" class="outline-4">
|
||||
<h4 id="org63e1b0e"><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>
|
||||
@ -1004,8 +1004,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org024d0a8" class="outline-4">
|
||||
<h4 id="org024d0a8"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgc31fa76" class="outline-4">
|
||||
<h4 id="orgc31fa76"><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.
|
||||
@ -1015,12 +1015,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc178cbd" class="outline-2">
|
||||
<h2 id="orgc178cbd"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div id="outline-container-org698ae87" class="outline-2">
|
||||
<h2 id="org698ae87"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org6545a45" class="outline-3">
|
||||
<h3 id="org6545a45"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div id="outline-container-org6e2dfde" class="outline-3">
|
||||
<h3 id="org6e2dfde"><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
|
||||
@ -1038,7 +1038,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="org3b85c27" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4194a88" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1146,8 +1146,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga913d98" class="outline-4">
|
||||
<h4 id="orga913d98"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org638e4cf" class="outline-4">
|
||||
<h4 id="org638e4cf"><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>
|
||||
@ -1165,8 +1165,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9324b1c" class="outline-4">
|
||||
<h4 id="org9324b1c"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-org723bb1f" class="outline-4">
|
||||
<h4 id="org723bb1f"><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> (
|
||||
@ -1187,8 +1187,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8dc291f" class="outline-4">
|
||||
<h4 id="org8dc291f"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgb7c310f" class="outline-4">
|
||||
<h4 id="orgb7c310f"><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>
|
||||
@ -1341,8 +1341,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org77bc9cd" class="outline-4">
|
||||
<h4 id="org77bc9cd"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org0bd353a" class="outline-4">
|
||||
<h4 id="org0bd353a"><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.
|
||||
@ -1351,12 +1351,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org5bbc65c" class="outline-2">
|
||||
<h2 id="org5bbc65c"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div id="outline-container-orgfcd354f" class="outline-2">
|
||||
<h2 id="orgfcd354f"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org93cec8a" class="outline-3">
|
||||
<h3 id="org93cec8a"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_gl</code></h3>
|
||||
<div id="outline-container-orgab6cc01" class="outline-3">
|
||||
<h3 id="orgab6cc01"><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
|
||||
@ -1411,7 +1411,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="org361ffad" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge3ca457" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1731,7 +1731,7 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:10</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:19</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-12-13 Fri 14:10 -->
|
||||
<!-- 2024-12-13 Fri 14:19 -->
|
||||
<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="#org1094183">1. Context</a>
|
||||
<li><a href="#org90a5439">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orga4fd696">1.1. Data structure</a></li>
|
||||
<li><a href="#orga0e5531">1.2. Initialization functions</a></li>
|
||||
<li><a href="#orgee08cc1">1.3. Access functions</a>
|
||||
<li><a href="#org6a1a8de">1.1. Data structure</a></li>
|
||||
<li><a href="#org398d86a">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org1de1102">1.3. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgc772550">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#org95887ce">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#org5d7434c">1.3.3. Electron coordinates</a></li>
|
||||
<li><a href="#org6870883">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#orga534652">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#orga2abdbe">1.3.3. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org95c574f">1.4. Test</a></li>
|
||||
<li><a href="#orga2a8dc3">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4e85677">2. Computation</a>
|
||||
<li><a href="#orgaac3a94">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org7b5362d">2.1. Electron-electron distances</a>
|
||||
<li><a href="#orgd931758">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgd32dce4">2.1.1. Get</a></li>
|
||||
<li><a href="#orgd33876d">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgdb7c2a0">2.1.3. Test</a></li>
|
||||
<li><a href="#orgd8bdd1a">2.1.1. Get</a></li>
|
||||
<li><a href="#org7c349fe">2.1.2. Compute</a></li>
|
||||
<li><a href="#org639d0f5">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga8c2a40">2.2. Electron-electron potential</a>
|
||||
<li><a href="#org1618060">2.2. Electron-electron potential</a>
|
||||
<ul>
|
||||
<li><a href="#org3d596e4">2.2.1. Get</a></li>
|
||||
<li><a href="#orga071508">2.2.2. Compute</a></li>
|
||||
<li><a href="#org731fbbb">2.2.3. Test</a></li>
|
||||
<li><a href="#org9c18866">2.2.1. Get</a></li>
|
||||
<li><a href="#org40ab5fc">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgf155aed">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org71a0498">2.3. Electron-nucleus distances</a>
|
||||
<li><a href="#org19e929c">2.3. Electron-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgd530da5">2.3.1. Get</a></li>
|
||||
<li><a href="#orgbf7c9cc">2.3.2. Compute</a></li>
|
||||
<li><a href="#org5efce15">2.3.3. Test</a></li>
|
||||
<li><a href="#org96fab61">2.3.1. Get</a></li>
|
||||
<li><a href="#orgd6fe293">2.3.2. Compute</a></li>
|
||||
<li><a href="#orgf4739d4">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgeccd462">2.4. Electron-nucleus potential</a>
|
||||
<li><a href="#org3d1cb93">2.4. Electron-nucleus potential</a>
|
||||
<ul>
|
||||
<li><a href="#org1a7d1ae">2.4.1. Get</a></li>
|
||||
<li><a href="#org26e64f4">2.4.2. Compute</a></li>
|
||||
<li><a href="#org37b6be1">2.4.3. Test</a></li>
|
||||
<li><a href="#org74b3385">2.4.1. Get</a></li>
|
||||
<li><a href="#org7dd287c">2.4.2. Compute</a></li>
|
||||
<li><a href="#org6af7aa6">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org603de66">2.5. Generate initial coordinates</a></li>
|
||||
<li><a href="#org8696da1">2.5. Generate initial coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1094183" class="outline-2">
|
||||
<h2 id="org1094183"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org90a5439" class="outline-2">
|
||||
<h2 id="org90a5439"><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-orga4fd696" class="outline-3">
|
||||
<h3 id="orga4fd696"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org6a1a8de" class="outline-3">
|
||||
<h3 id="org6a1a8de"><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-orga0e5531" class="outline-3">
|
||||
<h3 id="orga0e5531"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-org398d86a" class="outline-3">
|
||||
<h3 id="org398d86a"><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-orgee08cc1" class="outline-3">
|
||||
<h3 id="orgee08cc1"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div id="outline-container-org1de1102" class="outline-3">
|
||||
<h3 id="org1de1102"><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-orgc772550" class="outline-4">
|
||||
<h4 id="orgc772550"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
<div id="outline-container-org6870883" class="outline-4">
|
||||
<h4 id="org6870883"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org95887ce" class="outline-4">
|
||||
<h4 id="org95887ce"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
||||
<div id="outline-container-orga534652" class="outline-4">
|
||||
<h4 id="orga534652"><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-org5d7434c" class="outline-4">
|
||||
<h4 id="org5d7434c"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
||||
<div id="outline-container-orga2abdbe" class="outline-4">
|
||||
<h4 id="orga2abdbe"><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-org95c574f" class="outline-3">
|
||||
<h3 id="org95c574f"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orga2a8dc3" class="outline-3">
|
||||
<h3 id="orga2a8dc3"><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-org4e85677" class="outline-2">
|
||||
<h2 id="org4e85677"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orgaac3a94" class="outline-2">
|
||||
<h2 id="orgaac3a94"><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-org7b5362d" class="outline-3">
|
||||
<h3 id="org7b5362d"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-orgd931758" class="outline-3">
|
||||
<h3 id="orgd931758"><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-orgd32dce4" class="outline-4">
|
||||
<h4 id="orgd32dce4"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orgd8bdd1a" class="outline-4">
|
||||
<h4 id="orgd8bdd1a"><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>
|
||||
@ -887,10 +887,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd33876d" class="outline-4">
|
||||
<h4 id="orgd33876d"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org7c349fe" class="outline-4">
|
||||
<h4 id="org7c349fe"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orgb4f9ce5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org76265d7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -995,8 +995,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdb7c2a0" class="outline-4">
|
||||
<h4 id="orgdb7c2a0"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org639d0f5" class="outline-4">
|
||||
<h4 id="org639d0f5"><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>));
|
||||
@ -1030,8 +1030,8 @@ rc = qmckl_get_electron_ee_distance(context, ee_distance, walk_num * elec_num *
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga8c2a40" class="outline-3">
|
||||
<h3 id="orga8c2a40"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
||||
<div id="outline-container-org1618060" class="outline-3">
|
||||
<h3 id="org1618060"><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
|
||||
@ -1049,8 +1049,8 @@ distance.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3d596e4" class="outline-4">
|
||||
<h4 id="org3d596e4"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org9c18866" class="outline-4">
|
||||
<h4 id="org9c18866"><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>);
|
||||
@ -1059,10 +1059,10 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga071508" class="outline-4">
|
||||
<h4 id="orga071508"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org40ab5fc" class="outline-4">
|
||||
<h4 id="org40ab5fc"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="org7b9cfd2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd34d2d8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1178,8 +1178,8 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org731fbbb" class="outline-4">
|
||||
<h4 id="org731fbbb"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-orgf155aed" class="outline-4">
|
||||
<h4 id="orgf155aed"><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];
|
||||
@ -1191,12 +1191,12 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org71a0498" class="outline-3">
|
||||
<h3 id="org71a0498"><span class="section-number-3">2.3</span> Electron-nucleus distances</h3>
|
||||
<div id="outline-container-org19e929c" class="outline-3">
|
||||
<h3 id="org19e929c"><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-orgd530da5" class="outline-4">
|
||||
<h4 id="orgd530da5"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org96fab61" class="outline-4">
|
||||
<h4 id="org96fab61"><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>);
|
||||
@ -1205,10 +1205,10 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbf7c9cc" class="outline-4">
|
||||
<h4 id="orgbf7c9cc"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-orgd6fe293" class="outline-4">
|
||||
<h4 id="orgd6fe293"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org904ffa1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4c6b242" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1315,8 +1315,8 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5efce15" class="outline-4">
|
||||
<h4 id="org5efce15"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-orgf4739d4" class="outline-4">
|
||||
<h4 id="orgf4739d4"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-3-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">
|
||||
@ -1364,8 +1364,8 @@ rc = qmckl_get_electron_en_distance(context, &(en_distance[0][0][0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeccd462" class="outline-3">
|
||||
<h3 id="orgeccd462"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
||||
<div id="outline-container-org3d1cb93" class="outline-3">
|
||||
<h3 id="org3d1cb93"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
<code>en_potential</code> stores the <code>en</code> potential energy
|
||||
@ -1383,8 +1383,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1a7d1ae" class="outline-4">
|
||||
<h4 id="org1a7d1ae"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org74b3385" class="outline-4">
|
||||
<h4 id="org74b3385"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_potential</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">en_potential</span>);
|
||||
@ -1393,10 +1393,10 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org26e64f4" class="outline-4">
|
||||
<h4 id="org26e64f4"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-org7dd287c" class="outline-4">
|
||||
<h4 id="org7dd287c"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="org93f033b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgca0b8da" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1530,8 +1530,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org37b6be1" class="outline-4">
|
||||
<h4 id="org37b6be1"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-org6af7aa6" class="outline-4">
|
||||
<h4 id="org6af7aa6"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-4-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">double</span> <span style="color: #a0522d;">en_potential</span>[walk_num];
|
||||
@ -1544,14 +1544,14 @@ rc = qmckl_get_electron_en_potential(context, &(en_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org603de66" class="outline-3">
|
||||
<h3 id="org603de66"><span class="section-number-3">2.5</span> Generate initial coordinates</h3>
|
||||
<div id="outline-container-org8696da1" class="outline-3">
|
||||
<h3 id="org8696da1"><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-12-13 Fri 14:10</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:19</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-12-13 Fri 14:10 -->
|
||||
<!-- 2024-12-13 Fri 14:19 -->
|
||||
<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="#orgdbc3fd8">-</a></li>
|
||||
<li><a href="#org1b78c4d">1. Decoding errors</a></li>
|
||||
<li><a href="#orga761ce2">2. Data structure in context</a></li>
|
||||
<li><a href="#org83d716f">3. Updating errors in the context</a></li>
|
||||
<li><a href="#orgd9e16b5">4. Get the error</a></li>
|
||||
<li><a href="#orga2ad8aa">5. Failing</a></li>
|
||||
<li><a href="#orgc850821">6. Last error</a>
|
||||
<li><a href="#orgb8e7717">-</a></li>
|
||||
<li><a href="#org4bde967">1. Decoding errors</a></li>
|
||||
<li><a href="#org61efbab">2. Data structure in context</a></li>
|
||||
<li><a href="#org08bab1c">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org5997f03">4. Get the error</a></li>
|
||||
<li><a href="#orgb847999">5. Failing</a></li>
|
||||
<li><a href="#org9dbcfdb">6. Last error</a>
|
||||
<ul>
|
||||
<li><a href="#org8338589">6.1. Fortran inteface</a></li>
|
||||
<li><a href="#org8ec3f9d">6.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org66384f9">7. Helper functions for debugging</a>
|
||||
<li><a href="#org2118c1f">7. Helper functions for debugging</a>
|
||||
<ul>
|
||||
<li><a href="#org63db270">7.1. Fortran inteface</a></li>
|
||||
<li><a href="#orgb0ffd31">7.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdbc3fd8" class="outline-2">
|
||||
<h2 id="orgdbc3fd8">-</h2>
|
||||
<div class="outline-text-2" id="text-orgdbc3fd8">
|
||||
<div id="outline-container-orgb8e7717" class="outline-2">
|
||||
<h2 id="orgb8e7717">-</h2>
|
||||
<div class="outline-text-2" id="text-orgb8e7717">
|
||||
<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="orgd3f92c6"><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="org80c655d"><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="orgc5a28a0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org640c0f8" 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-org1b78c4d" class="outline-2">
|
||||
<h2 id="org1b78c4d"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-org4bde967" class="outline-2">
|
||||
<h2 id="org4bde967"><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-orga761ce2" class="outline-2">
|
||||
<h2 id="orga761ce2"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-org61efbab" class="outline-2">
|
||||
<h2 id="org61efbab"><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-org83d716f" class="outline-2">
|
||||
<h2 id="org83d716f"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div id="outline-container-org08bab1c" class="outline-2">
|
||||
<h2 id="org08bab1c"><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-orgd9e16b5" class="outline-2">
|
||||
<h2 id="orgd9e16b5"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div id="outline-container-org5997f03" class="outline-2">
|
||||
<h2 id="org5997f03"><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-orga2ad8aa" class="outline-2">
|
||||
<h2 id="orga2ad8aa"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div id="outline-container-orgb847999" class="outline-2">
|
||||
<h2 id="orgb847999"><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-orgc850821" class="outline-2">
|
||||
<h2 id="orgc850821"><span class="section-number-2">6</span> Last error</h2>
|
||||
<div id="outline-container-org9dbcfdb" class="outline-2">
|
||||
<h2 id="org9dbcfdb"><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-org8338589" class="outline-3">
|
||||
<h3 id="org8338589"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-org8ec3f9d" class="outline-3">
|
||||
<h3 id="org8ec3f9d"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org66384f9" class="outline-2">
|
||||
<h2 id="org66384f9"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
||||
<div id="outline-container-org2118c1f" class="outline-2">
|
||||
<h2 id="org2118c1f"><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-org63db270" class="outline-3">
|
||||
<h3 id="org63db270"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-orgb0ffd31" class="outline-3">
|
||||
<h3 id="orgb0ffd31"><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-12-13 Fri 14:10</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:19</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-12-13 Fri 14:10 -->
|
||||
<!-- 2024-12-13 Fri 14:20 -->
|
||||
<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="#org541bc18">1. Overlap matrix in the MO basis</a>
|
||||
<li><a href="#org42c073f">1. Overlap matrix in the MO basis</a>
|
||||
<ul>
|
||||
<li><a href="#orgaca491b">1.1. Python</a></li>
|
||||
<li><a href="#orgbae7b06">1.2. C</a></li>
|
||||
<li><a href="#org046c51b">1.3. Fortran</a></li>
|
||||
<li><a href="#orgbaec1aa">1.1. Python</a></li>
|
||||
<li><a href="#org68fcc16">1.2. C</a></li>
|
||||
<li><a href="#org1df8c4b">1.3. Fortran</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgcc93077">2. Fortran</a>
|
||||
<li><a href="#org4a5e3a3">2. Fortran</a>
|
||||
<ul>
|
||||
<li><a href="#org617fceb">2.1. Checking errors</a></li>
|
||||
<li><a href="#org6d6ed69">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
<li><a href="#org9a52e0d">2.1. Checking errors</a></li>
|
||||
<li><a href="#orgb7fa9b2">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org541bc18" class="outline-2">
|
||||
<h2 id="org541bc18"><span class="section-number-2">1</span> Overlap matrix in the MO basis</h2>
|
||||
<div id="outline-container-org42c073f" class="outline-2">
|
||||
<h2 id="org42c073f"><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-orgaca491b" class="outline-3">
|
||||
<h3 id="orgaca491b"><span class="section-number-3">1.1</span> Python</h3>
|
||||
<div id="outline-container-orgbaec1aa" class="outline-3">
|
||||
<h3 id="orgbaec1aa"><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-orgbae7b06" class="outline-3">
|
||||
<h3 id="orgbae7b06"><span class="section-number-3">1.2</span> C</h3>
|
||||
<div id="outline-container-org68fcc16" class="outline-3">
|
||||
<h3 id="org68fcc16"><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-org046c51b" class="outline-3">
|
||||
<h3 id="org046c51b"><span class="section-number-3">1.3</span> Fortran</h3>
|
||||
<div id="outline-container-org1df8c4b" class="outline-3">
|
||||
<h3 id="org1df8c4b"><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-orgcc93077" class="outline-2">
|
||||
<h2 id="orgcc93077"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div id="outline-container-org4a5e3a3" class="outline-2">
|
||||
<h2 id="org4a5e3a3"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org617fceb" class="outline-3">
|
||||
<h3 id="org617fceb"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div id="outline-container-org9a52e0d" class="outline-3">
|
||||
<h3 id="org9a52e0d"><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="org76f107f"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<pre class="src src-f90" id="org5c95c88"><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-org6d6ed69" class="outline-3">
|
||||
<h3 id="org6d6ed69"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div id="outline-container-orgb7fa9b2" class="outline-3">
|
||||
<h3 id="orgb7fa9b2"><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-12-13 Fri 14:10</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:20</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-12-13 Fri 14:10 -->
|
||||
<!-- 2024-12-13 Fri 14:19 -->
|
||||
<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="#orge3f0edd">1. Context</a>
|
||||
<li><a href="#org37fcb74">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org47434c1">1.1. Data structure</a></li>
|
||||
<li><a href="#orgf39c3c6">1.2. Access functions</a></li>
|
||||
<li><a href="#orgbda5244">1.1. Data structure</a></li>
|
||||
<li><a href="#orgefc7121">1.2. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org58da2e4">2. Computation</a>
|
||||
<li><a href="#orge4c9db5">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org00a4bae">2.1. Kinetic energy</a>
|
||||
<li><a href="#org3c67907">2.1. Kinetic energy</a>
|
||||
<ul>
|
||||
<li><a href="#org8407049">2.1.1. Get</a></li>
|
||||
<li><a href="#orged7438e">2.1.2. Provide</a></li>
|
||||
<li><a href="#orgebca06f">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org6c1782f">2.1.4. Test</a></li>
|
||||
<li><a href="#orgaa629cd">2.1.1. Get</a></li>
|
||||
<li><a href="#org23a541f">2.1.2. Provide</a></li>
|
||||
<li><a href="#org37832cb">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org8bd90d2">2.1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc54b282">2.2. Potential energy</a>
|
||||
<li><a href="#org38e7a4e">2.2. Potential energy</a>
|
||||
<ul>
|
||||
<li><a href="#org76e93f5">2.2.1. Get</a></li>
|
||||
<li><a href="#org7c4859b">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgc57ba6d">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org4becd11">2.2.4. Test</a></li>
|
||||
<li><a href="#org592c99f">2.2.1. Get</a></li>
|
||||
<li><a href="#org5b13e51">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgd1a7bed">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#orgaee755d">2.2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6ee903d">2.3. Local energy</a>
|
||||
<li><a href="#orgf1424e9">2.3. Local energy</a>
|
||||
<ul>
|
||||
<li><a href="#org6704023">2.3.1. Get</a></li>
|
||||
<li><a href="#orged6fb51">2.3.2. Provide</a></li>
|
||||
<li><a href="#org72c822b">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#org088cd14">2.3.4. Test</a></li>
|
||||
<li><a href="#org78cf64e">2.3.1. Get</a></li>
|
||||
<li><a href="#orgf37276c">2.3.2. Provide</a></li>
|
||||
<li><a href="#orgad32191">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#org0d989b8">2.3.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org65f8380">2.4. Drift vector</a>
|
||||
<li><a href="#org5c3051b">2.4. Drift vector</a>
|
||||
<ul>
|
||||
<li><a href="#org0ef1693">2.4.1. Get</a></li>
|
||||
<li><a href="#orgf3ce49e">2.4.2. Provide</a></li>
|
||||
<li><a href="#orgb246000">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org82f98b7">2.4.4. Test</a></li>
|
||||
<li><a href="#org3feccf0">2.4.1. Get</a></li>
|
||||
<li><a href="#orgcda1f06">2.4.2. Provide</a></li>
|
||||
<li><a href="#org500a3d2">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org2993893">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-orge3f0edd" class="outline-2">
|
||||
<h2 id="orge3f0edd"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org37fcb74" class="outline-2">
|
||||
<h2 id="org37fcb74"><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-org47434c1" class="outline-3">
|
||||
<h3 id="org47434c1"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgbda5244" class="outline-3">
|
||||
<h3 id="orgbda5244"><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-orgf39c3c6" class="outline-3">
|
||||
<h3 id="orgf39c3c6"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgefc7121" class="outline-3">
|
||||
<h3 id="orgefc7121"><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-org58da2e4" class="outline-2">
|
||||
<h2 id="org58da2e4"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orge4c9db5" class="outline-2">
|
||||
<h2 id="orge4c9db5"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org00a4bae" class="outline-3">
|
||||
<h3 id="org00a4bae"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div id="outline-container-org3c67907" class="outline-3">
|
||||
<h3 id="org3c67907"><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-org8407049" class="outline-4">
|
||||
<h4 id="org8407049"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orgaa629cd" class="outline-4">
|
||||
<h4 id="orgaa629cd"><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-orged7438e" class="outline-4">
|
||||
<h4 id="orged7438e"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org23a541f" class="outline-4">
|
||||
<h4 id="org23a541f"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgebca06f" class="outline-4">
|
||||
<h4 id="orgebca06f"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
||||
<div id="outline-container-org37832cb" class="outline-4">
|
||||
<h4 id="org37832cb"><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="org8bb3eed" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org152d51c" 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-org6c1782f" class="outline-4">
|
||||
<h4 id="org6c1782f"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
<div id="outline-container-org8bd90d2" class="outline-4">
|
||||
<h4 id="org8bd90d2"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgc54b282" class="outline-3">
|
||||
<h3 id="orgc54b282"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div id="outline-container-org38e7a4e" class="outline-3">
|
||||
<h3 id="org38e7a4e"><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-org76e93f5" class="outline-4">
|
||||
<h4 id="org76e93f5"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org592c99f" class="outline-4">
|
||||
<h4 id="org592c99f"><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-org7c4859b" class="outline-4">
|
||||
<h4 id="org7c4859b"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org5b13e51" class="outline-4">
|
||||
<h4 id="org5b13e51"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc57ba6d" class="outline-4">
|
||||
<h4 id="orgc57ba6d"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
||||
<div id="outline-container-orgd1a7bed" class="outline-4">
|
||||
<h4 id="orgd1a7bed"><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="org08bd564" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgfcc8890" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -977,12 +977,12 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4becd11" class="outline-4">
|
||||
<h4 id="org4becd11"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
<div id="outline-container-orgaee755d" class="outline-4">
|
||||
<h4 id="orgaee755d"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org6ee903d" class="outline-3">
|
||||
<h3 id="org6ee903d"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div id="outline-container-orgf1424e9" class="outline-3">
|
||||
<h3 id="orgf1424e9"><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-org6704023" class="outline-4">
|
||||
<h4 id="org6704023"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org78cf64e" class="outline-4">
|
||||
<h4 id="org78cf64e"><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-orged6fb51" class="outline-4">
|
||||
<h4 id="orged6fb51"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-orgf37276c" class="outline-4">
|
||||
<h4 id="orgf37276c"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org72c822b" class="outline-4">
|
||||
<h4 id="org72c822b"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
||||
<div id="outline-container-orgad32191" class="outline-4">
|
||||
<h4 id="orgad32191"><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="org7f14f38" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org57c1d4a" 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-org088cd14" class="outline-4">
|
||||
<h4 id="org088cd14"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
<div id="outline-container-org0d989b8" class="outline-4">
|
||||
<h4 id="org0d989b8"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org65f8380" class="outline-3">
|
||||
<h3 id="org65f8380"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div id="outline-container-org5c3051b" class="outline-3">
|
||||
<h3 id="org5c3051b"><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-org0ef1693" class="outline-4">
|
||||
<h4 id="org0ef1693"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org3feccf0" class="outline-4">
|
||||
<h4 id="org3feccf0"><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-orgf3ce49e" class="outline-4">
|
||||
<h4 id="orgf3ce49e"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
<div id="outline-container-orgcda1f06" class="outline-4">
|
||||
<h4 id="orgcda1f06"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb246000" class="outline-4">
|
||||
<h4 id="orgb246000"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
||||
<div id="outline-container-org500a3d2" class="outline-4">
|
||||
<h4 id="org500a3d2"><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="orgb2f270b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge9c763a" 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-org82f98b7" class="outline-4">
|
||||
<h4 id="org82f98b7"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
<div id="outline-container-org2993893" class="outline-4">
|
||||
<h4 id="org2993893"><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-12-13 Fri 14:10</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:19</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-12-13 Fri 14:10 -->
|
||||
<!-- 2024-12-13 Fri 14:20 -->
|
||||
<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="#org25ebb29">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org40fab62">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orgd11e09e">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#orge25dadc">4. Get the size of a memory block</a></li>
|
||||
<li><a href="#orgebca116">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org7bfd054">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#org4b036e0">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#org44e3a88">4. Get the size of a memory block</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org25ebb29" class="outline-2">
|
||||
<h2 id="org25ebb29"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div id="outline-container-orgebca116" class="outline-2">
|
||||
<h2 id="orgebca116"><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-org40fab62" class="outline-2">
|
||||
<h2 id="org40fab62"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div id="outline-container-org7bfd054" class="outline-2">
|
||||
<h2 id="org7bfd054"><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-orgd11e09e" class="outline-2">
|
||||
<h2 id="orgd11e09e"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-org4b036e0" class="outline-2">
|
||||
<h2 id="org4b036e0"><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-orge25dadc" class="outline-2">
|
||||
<h2 id="orge25dadc"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
||||
<div id="outline-container-org44e3a88" class="outline-2">
|
||||
<h2 id="org44e3a88"><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-12-13 Fri 14:10</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:20</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-12-13 Fri 14:10 -->
|
||||
<!-- 2024-12-13 Fri 14:19 -->
|
||||
<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="#org25d712a">1. Context</a>
|
||||
<li><a href="#orgf3b5f1d">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orga4b290c">1.1. Data structure</a></li>
|
||||
<li><a href="#org9e93c60">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org9d3f7eb">1.3. Cusp adjsutment functions</a></li>
|
||||
<li><a href="#orgc358563">1.4. Access functions</a>
|
||||
<li><a href="#org6cf3889">1.1. Data structure</a></li>
|
||||
<li><a href="#org89e0d37">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org9500b04">1.3. Cusp adjsutment functions</a></li>
|
||||
<li><a href="#orga4361f0">1.4. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org623a8f7">1.4.1. Fortran interfaces</a></li>
|
||||
<li><a href="#org4b7e767">1.4.1. Fortran interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3708ec1">1.5. Update</a>
|
||||
<li><a href="#orga69d330">1.5. Update</a>
|
||||
<ul>
|
||||
<li><a href="#org8efb030">1.5.1. Fortran interface</a></li>
|
||||
<li><a href="#orgfbbe173">1.5.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2009abd">2. Computation</a>
|
||||
<li><a href="#org6d4c744">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org2f4afe5">2.1. Parameters of the cusp-correction functions</a></li>
|
||||
<li><a href="#orgd4f4a2b">2.2. Computation of MOs: values only</a>
|
||||
<li><a href="#orgb4483df">2.1. Parameters of the cusp-correction functions</a></li>
|
||||
<li><a href="#orgf800243">2.2. Computation of MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#org0ec10bd">2.2.1. Get</a></li>
|
||||
<li><a href="#org4dd6248">2.2.2. Provide</a></li>
|
||||
<li><a href="#org8732cd7">2.2.3. Compute</a></li>
|
||||
<li><a href="#orgcf417e5">2.2.4. HPC version</a>
|
||||
<li><a href="#orgb3e611e">2.2.1. Get</a></li>
|
||||
<li><a href="#orgb054c2a">2.2.2. Provide</a></li>
|
||||
<li><a href="#org55705e4">2.2.3. Compute</a></li>
|
||||
<li><a href="#org5d9a037">2.2.4. HPC version</a>
|
||||
<ul>
|
||||
<li><a href="#org17ae773">2.2.4.1. Single-precision</a></li>
|
||||
<li><a href="#orgf8ed013">2.2.4.2. Double-precision</a></li>
|
||||
<li><a href="#orgc8897d9">2.2.4.1. Single-precision</a></li>
|
||||
<li><a href="#orga53ae01">2.2.4.2. Double-precision</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org96940d0">2.3. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<li><a href="#org5067ff2">2.3. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#orgebc235f">2.3.1. Get</a></li>
|
||||
<li><a href="#org6333505">2.3.2. Provide</a></li>
|
||||
<li><a href="#orgf97d8c3">2.3.3. Compute</a></li>
|
||||
<li><a href="#orgc66986c">2.3.1. Get</a></li>
|
||||
<li><a href="#org83f6511">2.3.2. Provide</a></li>
|
||||
<li><a href="#org8fe9334">2.3.3. Compute</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgaf3a018">2.4. Computation of cusp-corrected MOs: values only</a>
|
||||
<li><a href="#org9a30a7d">2.4. Computation of cusp-corrected MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#org4fc735d">2.4.1. Compute</a></li>
|
||||
<li><a href="#org0e42699">2.4.2. HPC version</a></li>
|
||||
<li><a href="#orga1d8ca5">2.4.1. Compute</a></li>
|
||||
<li><a href="#org8938076">2.4.2. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9e6ed9f">2.5. Computation of cusp-corrected MOs: values, gradient, Laplacian</a>
|
||||
<li><a href="#orgf128529">2.5. Computation of cusp-corrected MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org07ea7a9">2.5.1. Compute</a></li>
|
||||
<li><a href="#orgcfc33b1">2.5.2. HPC version</a></li>
|
||||
<li><a href="#org35dc931">2.5.1. Compute</a></li>
|
||||
<li><a href="#org0ccf942">2.5.2. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9a9cfc9">2.6. Rescaling of MO coefficients</a>
|
||||
<li><a href="#org971ddc9">2.6. Rescaling of MO coefficients</a>
|
||||
<ul>
|
||||
<li><a href="#org65ec9a8">2.6.1. Fortran interface</a></li>
|
||||
<li><a href="#orgf9c4f43">2.6.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgdd31036">2.7. Test</a></li>
|
||||
<li><a href="#org80fc85a">2.7. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org25d712a" class="outline-2">
|
||||
<h2 id="org25d712a"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgf3b5f1d" class="outline-2">
|
||||
<h2 id="orgf3b5f1d"><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-orga4b290c" class="outline-3">
|
||||
<h3 id="orga4b290c"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org6cf3889" class="outline-3">
|
||||
<h3 id="org6cf3889"><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-org9e93c60" class="outline-3">
|
||||
<h3 id="org9e93c60"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-org89e0d37" class="outline-3">
|
||||
<h3 id="org89e0d37"><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-org9d3f7eb" class="outline-3">
|
||||
<h3 id="org9d3f7eb"><span class="section-number-3">1.3</span> Cusp adjsutment functions</h3>
|
||||
<div id="outline-container-org9500b04" class="outline-3">
|
||||
<h3 id="org9500b04"><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-orgc358563" class="outline-3">
|
||||
<h3 id="orgc358563"><span class="section-number-3">1.4</span> Access functions</h3>
|
||||
<div id="outline-container-orga4361f0" class="outline-3">
|
||||
<h3 id="orga4361f0"><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-org623a8f7" class="outline-4">
|
||||
<h4 id="org623a8f7"><span class="section-number-4">1.4.1</span> Fortran interfaces</h4>
|
||||
<div id="outline-container-org4b7e767" class="outline-4">
|
||||
<h4 id="org4b7e767"><span class="section-number-4">1.4.1</span> Fortran interfaces</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3708ec1" class="outline-3">
|
||||
<h3 id="org3708ec1"><span class="section-number-3">1.5</span> Update</h3>
|
||||
<div id="outline-container-orga69d330" class="outline-3">
|
||||
<h3 id="orga69d330"><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-org8efb030" class="outline-4">
|
||||
<h4 id="org8efb030"><span class="section-number-4">1.5.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-orgfbbe173" class="outline-4">
|
||||
<h4 id="orgfbbe173"><span class="section-number-4">1.5.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2009abd" class="outline-2">
|
||||
<h2 id="org2009abd"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org6d4c744" class="outline-2">
|
||||
<h2 id="org6d4c744"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org2f4afe5" class="outline-3">
|
||||
<h3 id="org2f4afe5"><span class="section-number-3">2.1</span> Parameters of the cusp-correction functions</h3>
|
||||
<div id="outline-container-orgb4483df" class="outline-3">
|
||||
<h3 id="orgb4483df"><span class="section-number-3">2.1</span> Parameters of the cusp-correction functions</h3>
|
||||
</div>
|
||||
<div id="outline-container-orgd4f4a2b" class="outline-3">
|
||||
<h3 id="orgd4f4a2b"><span class="section-number-3">2.2</span> Computation of MOs: values only</h3>
|
||||
<div id="outline-container-orgf800243" class="outline-3">
|
||||
<h3 id="orgf800243"><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-org0ec10bd" class="outline-4">
|
||||
<h4 id="org0ec10bd"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgb3e611e" class="outline-4">
|
||||
<h4 id="orgb3e611e"><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-org4dd6248" class="outline-4">
|
||||
<h4 id="org4dd6248"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-orgb054c2a" class="outline-4">
|
||||
<h4 id="orgb054c2a"><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-org8732cd7" class="outline-4">
|
||||
<h4 id="org8732cd7"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div id="outline-container-org55705e4" class="outline-4">
|
||||
<h4 id="org55705e4"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org08640ef" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org08c4ba1" 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-orgcf417e5" class="outline-4">
|
||||
<h4 id="orgcf417e5"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
||||
<div id="outline-container-org5d9a037" class="outline-4">
|
||||
<h4 id="org5d9a037"><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-org17ae773" class="outline-5">
|
||||
<h5 id="org17ae773"><span class="section-number-5">2.2.4.1</span> Single-precision</h5>
|
||||
<div id="outline-container-orgc8897d9" class="outline-5">
|
||||
<h5 id="orgc8897d9"><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-orgf8ed013" class="outline-5">
|
||||
<h5 id="orgf8ed013"><span class="section-number-5">2.2.4.2</span> Double-precision</h5>
|
||||
<div id="outline-container-orga53ae01" class="outline-5">
|
||||
<h5 id="orga53ae01"><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-org96940d0" class="outline-3">
|
||||
<h3 id="org96940d0"><span class="section-number-3">2.3</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-org5067ff2" class="outline-3">
|
||||
<h3 id="org5067ff2"><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-orgebc235f" class="outline-4">
|
||||
<h4 id="orgebc235f"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-orgc66986c" class="outline-4">
|
||||
<h4 id="orgc66986c"><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-org6333505" class="outline-4">
|
||||
<h4 id="org6333505"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-org83f6511" class="outline-4">
|
||||
<h4 id="org83f6511"><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-orgf97d8c3" class="outline-4">
|
||||
<h4 id="orgf97d8c3"><span class="section-number-4">2.3.3</span> Compute</h4>
|
||||
<div id="outline-container-org8fe9334" class="outline-4">
|
||||
<h4 id="org8fe9334"><span class="section-number-4">2.3.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-3">
|
||||
<table id="orgee133c4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6a4e155" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1473,14 +1473,14 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaf3a018" class="outline-3">
|
||||
<h3 id="orgaf3a018"><span class="section-number-3">2.4</span> Computation of cusp-corrected MOs: values only</h3>
|
||||
<div id="outline-container-org9a30a7d" class="outline-3">
|
||||
<h3 id="org9a30a7d"><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-org4fc735d" class="outline-4">
|
||||
<h4 id="org4fc735d"><span class="section-number-4">2.4.1</span> Compute</h4>
|
||||
<div id="outline-container-orga1d8ca5" class="outline-4">
|
||||
<h4 id="orga1d8ca5"><span class="section-number-4">2.4.1</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<table id="orgb28c567" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgec1b9e6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1719,8 +1719,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0e42699" class="outline-4">
|
||||
<h4 id="org0e42699"><span class="section-number-4">2.4.2</span> HPC version</h4>
|
||||
<div id="outline-container-org8938076" class="outline-4">
|
||||
<h4 id="org8938076"><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
|
||||
@ -1858,14 +1858,14 @@ IVDEP
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9e6ed9f" class="outline-3">
|
||||
<h3 id="org9e6ed9f"><span class="section-number-3">2.5</span> Computation of cusp-corrected MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-orgf128529" class="outline-3">
|
||||
<h3 id="orgf128529"><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-org07ea7a9" class="outline-4">
|
||||
<h4 id="org07ea7a9"><span class="section-number-4">2.5.1</span> Compute</h4>
|
||||
<div id="outline-container-org35dc931" class="outline-4">
|
||||
<h4 id="org35dc931"><span class="section-number-4">2.5.1</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-5-1">
|
||||
<table id="org1086c32" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1ece4b3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2165,8 +2165,8 @@ IVDEP
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcfc33b1" class="outline-4">
|
||||
<h4 id="orgcfc33b1"><span class="section-number-4">2.5.2</span> HPC version</h4>
|
||||
<div id="outline-container-org0ccf942" class="outline-4">
|
||||
<h4 id="org0ccf942"><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
|
||||
@ -2365,8 +2365,8 @@ IVDEP
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9a9cfc9" class="outline-3">
|
||||
<h3 id="org9a9cfc9"><span class="section-number-3">2.6</span> Rescaling of MO coefficients</h3>
|
||||
<div id="outline-container-org971ddc9" class="outline-3">
|
||||
<h3 id="org971ddc9"><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
|
||||
@ -2383,19 +2383,19 @@ correct range.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org65ec9a8" class="outline-4">
|
||||
<h4 id="org65ec9a8"><span class="section-number-4">2.6.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-orgf9c4f43" class="outline-4">
|
||||
<h4 id="orgf9c4f43"><span class="section-number-4">2.6.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdd31036" class="outline-3">
|
||||
<h3 id="orgdd31036"><span class="section-number-3">2.7</span> Test</h3>
|
||||
<div id="outline-container-org80fc85a" class="outline-3">
|
||||
<h3 id="org80fc85a"><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-12-13 Fri 14:10</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:19</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-12-13 Fri 14:10 -->
|
||||
<!-- 2024-12-13 Fri 14:19 -->
|
||||
<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="#org40c0d1a">1. Context</a>
|
||||
<li><a href="#org89fa178">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgd4f40fe">1.1. Data structure</a></li>
|
||||
<li><a href="#org6acc576">1.2. Access functions</a></li>
|
||||
<li><a href="#org98066e1">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org6f4391e">1.4. Test</a></li>
|
||||
<li><a href="#org334ed4a">1.1. Data structure</a></li>
|
||||
<li><a href="#org9cb4ce4">1.2. Access functions</a></li>
|
||||
<li><a href="#org9367a82">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org8906c79">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc6f67e5">2. Computation</a>
|
||||
<li><a href="#org67b71b3">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgc99270d">2.1. Nucleus-nucleus distances</a>
|
||||
<li><a href="#orgf71f4d1">2.1. Nucleus-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org25ed3a1">2.1.1. Get</a></li>
|
||||
<li><a href="#org25ed77b">2.1.2. Compute</a></li>
|
||||
<li><a href="#org5756a8c">2.1.3. Test</a></li>
|
||||
<li><a href="#org82d6433">2.1.1. Get</a></li>
|
||||
<li><a href="#orgf280aee">2.1.2. Compute</a></li>
|
||||
<li><a href="#org96867ee">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd1f5b2e">2.2. Nuclear repulsion energy</a>
|
||||
<li><a href="#org0501087">2.2. Nuclear repulsion energy</a>
|
||||
<ul>
|
||||
<li><a href="#orge2776f7">2.2.1. Get</a></li>
|
||||
<li><a href="#orgf4c29c1">2.2.2. Compute</a></li>
|
||||
<li><a href="#org37f8fa6">2.2.3. Test</a></li>
|
||||
<li><a href="#org699f324">2.2.1. Get</a></li>
|
||||
<li><a href="#org59af375">2.2.2. Compute</a></li>
|
||||
<li><a href="#org7774dcb">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-org40c0d1a" class="outline-2">
|
||||
<h2 id="org40c0d1a"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org89fa178" class="outline-2">
|
||||
<h2 id="org89fa178"><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-orgd4f40fe" class="outline-3">
|
||||
<h3 id="orgd4f40fe"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org334ed4a" class="outline-3">
|
||||
<h3 id="org334ed4a"><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-org6acc576" class="outline-3">
|
||||
<h3 id="org6acc576"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org9cb4ce4" class="outline-3">
|
||||
<h3 id="org9cb4ce4"><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-org98066e1" class="outline-3">
|
||||
<h3 id="org98066e1"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org9367a82" class="outline-3">
|
||||
<h3 id="org9367a82"><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-org6f4391e" class="outline-3">
|
||||
<h3 id="org6f4391e"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org8906c79" class="outline-3">
|
||||
<h3 id="org8906c79"><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-orgc6f67e5" class="outline-2">
|
||||
<h2 id="orgc6f67e5"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org67b71b3" class="outline-2">
|
||||
<h2 id="org67b71b3"><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-orgc99270d" class="outline-3">
|
||||
<h3 id="orgc99270d"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div id="outline-container-orgf71f4d1" class="outline-3">
|
||||
<h3 id="orgf71f4d1"><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-org25ed3a1" class="outline-4">
|
||||
<h4 id="org25ed3a1"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org82d6433" class="outline-4">
|
||||
<h4 id="org82d6433"><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-org25ed77b" class="outline-4">
|
||||
<h4 id="org25ed77b"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-orgf280aee" class="outline-4">
|
||||
<h4 id="orgf280aee"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org7f6cc16" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgcfa4a00" 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-org5756a8c" class="outline-4">
|
||||
<h4 id="org5756a8c"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org96867ee" class="outline-4">
|
||||
<h4 id="org96867ee"><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-orgd1f5b2e" class="outline-3">
|
||||
<h3 id="orgd1f5b2e"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
||||
<div id="outline-container-org0501087" class="outline-3">
|
||||
<h3 id="org0501087"><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-orge2776f7" class="outline-4">
|
||||
<h4 id="orge2776f7"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org699f324" class="outline-4">
|
||||
<h4 id="org699f324"><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-orgf4c29c1" class="outline-4">
|
||||
<h4 id="orgf4c29c1"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org59af375" class="outline-4">
|
||||
<h4 id="org59af375"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="org4a78a65" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc8ecb1d" 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-org37f8fa6" class="outline-4">
|
||||
<h4 id="org37f8fa6"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org7774dcb" class="outline-4">
|
||||
<h4 id="org7774dcb"><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-12-13 Fri 14:10</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:19</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-12-13 Fri 14:10 -->
|
||||
<!-- 2024-12-13 Fri 14:19 -->
|
||||
<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="#org8be21f8">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#orgdea9602">2. Precision</a></li>
|
||||
<li><a href="#orge62b13e">3. Range</a></li>
|
||||
<li><a href="#org3006e8f">4. Helper functions</a>
|
||||
<li><a href="#orga3d29a9">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#orge5915ef">2. Precision</a></li>
|
||||
<li><a href="#org4810b1d">3. Range</a></li>
|
||||
<li><a href="#org364c0c7">4. Helper functions</a>
|
||||
<ul>
|
||||
<li><a href="#org706af67">4.1. Epsilon</a></li>
|
||||
<li><a href="#org3e56d07">4.2. Testing the number of unchanged bits</a></li>
|
||||
<li><a href="#orgd815636">4.1. Epsilon</a></li>
|
||||
<li><a href="#orgc684cbc">4.2. Testing the number of unchanged bits</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9a9501b">5. Approximate functions</a>
|
||||
<li><a href="#orga8bb95d">5. Approximate functions</a>
|
||||
<ul>
|
||||
<li><a href="#org55c3ecf">5.1. Exponential</a></li>
|
||||
<li><a href="#orgcba7758">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-org8be21f8" class="outline-2">
|
||||
<h2 id="org8be21f8"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-orga3d29a9" class="outline-2">
|
||||
<h2 id="orga3d29a9"><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="org93f4df3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgecd45e2" 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-orgdea9602" class="outline-2">
|
||||
<h2 id="orgdea9602"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-orge5915ef" class="outline-2">
|
||||
<h2 id="orge5915ef"><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-orge62b13e" class="outline-2">
|
||||
<h2 id="orge62b13e"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-org4810b1d" class="outline-2">
|
||||
<h2 id="org4810b1d"><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-org3006e8f" class="outline-2">
|
||||
<h2 id="org3006e8f"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-org364c0c7" class="outline-2">
|
||||
<h2 id="org364c0c7"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org706af67" class="outline-3">
|
||||
<h3 id="org706af67"><span class="section-number-3">4.1</span> Epsilon</h3>
|
||||
<div id="outline-container-orgd815636" class="outline-3">
|
||||
<h3 id="orgd815636"><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-org3e56d07" class="outline-3">
|
||||
<h3 id="org3e56d07"><span class="section-number-3">4.2</span> Testing the number of unchanged bits</h3>
|
||||
<div id="outline-container-orgc684cbc" class="outline-3">
|
||||
<h3 id="orgc684cbc"><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-org9a9501b" class="outline-2">
|
||||
<h2 id="org9a9501b"><span class="section-number-2">5</span> Approximate functions</h2>
|
||||
<div id="outline-container-orga8bb95d" class="outline-2">
|
||||
<h2 id="orga8bb95d"><span class="section-number-2">5</span> Approximate functions</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
</div>
|
||||
<div id="outline-container-org55c3ecf" class="outline-3">
|
||||
<h3 id="org55c3ecf"><span class="section-number-3">5.1</span> Exponential</h3>
|
||||
<div id="outline-container-orgcba7758" class="outline-3">
|
||||
<h3 id="orgcba7758"><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-12-13 Fri 14:10</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:19</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-12-13 Fri 14:10 -->
|
||||
<!-- 2024-12-13 Fri 14:19 -->
|
||||
<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="#org5ec4d88">1. Context</a>
|
||||
<li><a href="#org7c204cb">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org1dbe4af">1.1. Data structure</a></li>
|
||||
<li><a href="#orgd3ad02a">1.2. Access functions</a>
|
||||
<li><a href="#orgedfa06f">1.1. Data structure</a></li>
|
||||
<li><a href="#orgd48f1b7">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgbf03a64">1.2.1. Number of points</a></li>
|
||||
<li><a href="#org2e8cc29">1.2.2. Point coordinates</a></li>
|
||||
<li><a href="#org5bfb9cf">1.2.1. Number of points</a></li>
|
||||
<li><a href="#org29d7853">1.2.2. Point coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb2ca4f8">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org5862569">1.4. Test</a></li>
|
||||
<li><a href="#org0caab9b">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org55c5f26">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5ec4d88" class="outline-2">
|
||||
<h2 id="org5ec4d88"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org7c204cb" class="outline-2">
|
||||
<h2 id="org7c204cb"><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-org1dbe4af" class="outline-3">
|
||||
<h3 id="org1dbe4af"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgedfa06f" class="outline-3">
|
||||
<h3 id="orgedfa06f"><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-orgd3ad02a" class="outline-3">
|
||||
<h3 id="orgd3ad02a"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgd48f1b7" class="outline-3">
|
||||
<h3 id="orgd48f1b7"><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-orgbf03a64" class="outline-4">
|
||||
<h4 id="orgbf03a64"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div id="outline-container-org5bfb9cf" class="outline-4">
|
||||
<h4 id="org5bfb9cf"><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-org2e8cc29" class="outline-4">
|
||||
<h4 id="org2e8cc29"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div id="outline-container-org29d7853" class="outline-4">
|
||||
<h4 id="org29d7853"><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-orgb2ca4f8" class="outline-3">
|
||||
<h3 id="orgb2ca4f8"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org0caab9b" class="outline-3">
|
||||
<h3 id="org0caab9b"><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-org5862569" class="outline-3">
|
||||
<h3 id="org5862569"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org55c5f26" class="outline-3">
|
||||
<h3 id="org55c5f26"><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-12-13 Fri 14:10</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:19</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-12-13 Fri 14:10 -->
|
||||
<!-- 2024-12-13 Fri 14:20 -->
|
||||
<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="#orgc32c1b9">1. Headers</a></li>
|
||||
<li><a href="#org76d7238">2. Naïve Sherman-Morrison</a>
|
||||
<li><a href="#org39b2df8">1. Headers</a></li>
|
||||
<li><a href="#orga883b8a">2. Naïve Sherman-Morrison</a>
|
||||
<ul>
|
||||
<li><a href="#org83340be">2.1. <code>qmckl_sm_naive</code></a>
|
||||
<li><a href="#orged4d955">2.1. <code>qmckl_sm_naive</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgbe65d9c">2.1.1. Introduction</a></li>
|
||||
<li><a href="#orged2ee85">2.1.2. API</a></li>
|
||||
<li><a href="#org38adeb8">2.1.3. Requirements</a></li>
|
||||
<li><a href="#org9141043">2.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org07a2ff4">2.1.1. Introduction</a></li>
|
||||
<li><a href="#org2a6e06c">2.1.2. API</a></li>
|
||||
<li><a href="#org788d05e">2.1.3. Requirements</a></li>
|
||||
<li><a href="#orgb0fa7fe">2.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#orged43120">2.1.4.1. C interface (not directly exposed)</a></li>
|
||||
<li><a href="#org4bf44db">2.1.4.1. C interface (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org853f297">2.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org25eded7">2.1.6. C sources</a></li>
|
||||
<li><a href="#orgcff8d4b">2.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org4731ed6">2.1.8. Performance</a></li>
|
||||
<li><a href="#org04f87c2">2.1.9. Tests</a></li>
|
||||
<li><a href="#org9710ed0">2.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orgfdbc73d">2.1.6. C sources</a></li>
|
||||
<li><a href="#orge952e9a">2.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgf22907b">2.1.8. Performance</a></li>
|
||||
<li><a href="#org3cf68fd">2.1.9. Tests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbe6798e">3. Sherman-Morrison with Slagel Splitting (core)</a>
|
||||
<li><a href="#orgb5725b8">3. Sherman-Morrison with Slagel Splitting (core)</a>
|
||||
<ul>
|
||||
<li><a href="#org3591f4f">3.1. <code>qmckl_sm_splitting_core</code></a>
|
||||
<li><a href="#org6a1137d">3.1. <code>qmckl_sm_splitting_core</code></a>
|
||||
<ul>
|
||||
<li><a href="#orge83325d">3.1.1. Introduction</a></li>
|
||||
<li><a href="#org97ef9fe">3.1.2. API</a></li>
|
||||
<li><a href="#orgb06c0aa">3.1.3. Requirements</a></li>
|
||||
<li><a href="#org85cf189">3.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org10147be">3.1.1. Introduction</a></li>
|
||||
<li><a href="#org6b43953">3.1.2. API</a></li>
|
||||
<li><a href="#orge3a8b2c">3.1.3. Requirements</a></li>
|
||||
<li><a href="#orgc3fd0e2">3.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#org8403aec">3.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
<li><a href="#orgf465fcf">3.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org068a04e">3.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org3e0f3b2">3.1.6. C sources</a></li>
|
||||
<li><a href="#org3bb9f8e">3.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org6204e5b">3.1.8. Performance</a></li>
|
||||
<li><a href="#org7b53ca7">3.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orgbfe934e">3.1.6. C sources</a></li>
|
||||
<li><a href="#org65d2e3a">3.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org93ed7b5">3.1.8. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgdb6df1e">4. Woodbury 2x2</a>
|
||||
<li><a href="#org1c692ff">4. Woodbury 2x2</a>
|
||||
<ul>
|
||||
<li><a href="#org00c1b06">4.1. <code>qmckl_woodbury_2x2</code></a>
|
||||
<li><a href="#orgc1ef574">4.1. <code>qmckl_woodbury_2x2</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgca78e42">4.1.1. Introduction</a></li>
|
||||
<li><a href="#orgfb2f070">4.1.2. API</a></li>
|
||||
<li><a href="#org1401ff7">4.1.3. Requirements</a></li>
|
||||
<li><a href="#orgdfa213c">4.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org4efdaf9">4.1.1. Introduction</a></li>
|
||||
<li><a href="#orgbf200b6">4.1.2. API</a></li>
|
||||
<li><a href="#org945dff5">4.1.3. Requirements</a></li>
|
||||
<li><a href="#orga84bd05">4.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#org8622f40">4.1.4.1. C interface (not directly exposed)</a></li>
|
||||
<li><a href="#org14bcf17">4.1.4.1. C interface (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8121b8e">4.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org51a9f5b">4.1.6. C sources</a></li>
|
||||
<li><a href="#org71ee213">4.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgb6144fa">4.1.8. Performance</a></li>
|
||||
<li><a href="#org1d95fa8">4.1.9. Tests</a></li>
|
||||
<li><a href="#orgc7e4971">4.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org62e34d3">4.1.6. C sources</a></li>
|
||||
<li><a href="#org0c13e1a">4.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org0220687">4.1.8. Performance</a></li>
|
||||
<li><a href="#org30e5dc2">4.1.9. Tests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb903c2c">5. Woodbury 3x3</a>
|
||||
<li><a href="#orgb131351">5. Woodbury 3x3</a>
|
||||
<ul>
|
||||
<li><a href="#orgf2de962">5.1. <code>qmckl_woodbury_3x3</code></a>
|
||||
<li><a href="#org07b912d">5.1. <code>qmckl_woodbury_3x3</code></a>
|
||||
<ul>
|
||||
<li><a href="#org3897dd4">5.1.1. Introduction</a></li>
|
||||
<li><a href="#org4954812">5.1.2. API</a></li>
|
||||
<li><a href="#orgcd574d6">5.1.3. Requirements</a></li>
|
||||
<li><a href="#org0e8ab79">5.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org7fa83d4">5.1.1. Introduction</a></li>
|
||||
<li><a href="#org63faf2e">5.1.2. API</a></li>
|
||||
<li><a href="#org2bb6e48">5.1.3. Requirements</a></li>
|
||||
<li><a href="#orgfff1ee3">5.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#orgfdad7b3">5.1.4.1. C interface (not directly exposed)</a></li>
|
||||
<li><a href="#org0dce3b8">5.1.4.1. C interface (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge14fc07">5.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org81c9d96">5.1.6. C sources</a></li>
|
||||
<li><a href="#org570d42d">5.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#orgf695514">5.1.8. Performance</a></li>
|
||||
<li><a href="#org25c2455">5.1.9. Tests</a></li>
|
||||
<li><a href="#org0a9516a">5.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orgd57c448">5.1.6. C sources</a></li>
|
||||
<li><a href="#org7077a09">5.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org9ba0c77">5.1.8. Performance</a></li>
|
||||
<li><a href="#orgb233215">5.1.9. Tests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org36fa920">6. Sherman-Morrison with Slagel Splitting</a>
|
||||
<li><a href="#org0c62fc0">6. Sherman-Morrison with Slagel Splitting</a>
|
||||
<ul>
|
||||
<li><a href="#org4ae6980">6.1. <code>qmckl_sm_splitting</code></a>
|
||||
<li><a href="#org7d29860">6.1. <code>qmckl_sm_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#org7935558">6.1.1. Introduction</a></li>
|
||||
<li><a href="#orgb77fd72">6.1.2. API</a></li>
|
||||
<li><a href="#org24f2726">6.1.3. Requirements</a></li>
|
||||
<li><a href="#org94ffc43">6.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<li><a href="#org2f71639">6.1.1. Introduction</a></li>
|
||||
<li><a href="#org8413497">6.1.2. API</a></li>
|
||||
<li><a href="#org7e2da1b">6.1.3. Requirements</a></li>
|
||||
<li><a href="#orgd24426a">6.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||
<ul>
|
||||
<li><a href="#org1614e18">6.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
<li><a href="#org8dfc75a">6.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org813a57f">6.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#orgea621f0">6.1.6. C source</a></li>
|
||||
<li><a href="#org42425ff">6.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org7ba4700">6.1.8. Performance…</a></li>
|
||||
<li><a href="#org591fdd7">6.1.9. Test</a></li>
|
||||
<li><a href="#org3cfdc7d">6.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||
<li><a href="#org2b5c21b">6.1.6. C source</a></li>
|
||||
<li><a href="#orgbf2efc8">6.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||
<li><a href="#org4c84fab">6.1.8. Performance…</a></li>
|
||||
<li><a href="#orge36ebe8">6.1.9. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8e324db">7. End of files</a></li>
|
||||
<li><a href="#orgbd1c6f0">7. End of files</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc32c1b9" class="outline-2">
|
||||
<h2 id="orgc32c1b9"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div id="outline-container-org39b2df8" class="outline-2">
|
||||
<h2 id="org39b2df8"><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-org76d7238" class="outline-2">
|
||||
<h2 id="org76d7238"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
||||
<div id="outline-container-orga883b8a" class="outline-2">
|
||||
<h2 id="orga883b8a"><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-org83340be" class="outline-3">
|
||||
<h3 id="org83340be"><span class="section-number-3">2.1</span> <code>qmckl_sm_naive</code></h3>
|
||||
<div id="outline-container-orged4d955" class="outline-3">
|
||||
<h3 id="orged4d955"><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-orgbe65d9c" class="outline-4">
|
||||
<h4 id="orgbe65d9c"><span class="section-number-4">2.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org07a2ff4" class="outline-4">
|
||||
<h4 id="org07a2ff4"><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-orged2ee85" class="outline-4">
|
||||
<h4 id="orged2ee85"><span class="section-number-4">2.1.2</span> API</h4>
|
||||
<div id="outline-container-org2a6e06c" class="outline-4">
|
||||
<h4 id="org2a6e06c"><span class="section-number-4">2.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org3a693b5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0b3e775" 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-org38adeb8" class="outline-4">
|
||||
<h4 id="org38adeb8"><span class="section-number-4">2.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-org788d05e" class="outline-4">
|
||||
<h4 id="org788d05e"><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-org9141043" class="outline-4">
|
||||
<h4 id="org9141043"><span class="section-number-4">2.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-orgb0fa7fe" class="outline-4">
|
||||
<h4 id="orgb0fa7fe"><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-orged43120" class="outline-5">
|
||||
<h5 id="orged43120"><span class="section-number-5">2.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div id="outline-container-org4bf44db" class="outline-5">
|
||||
<h5 id="org4bf44db"><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-org853f297" class="outline-4">
|
||||
<h4 id="org853f297"><span class="section-number-4">2.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org9710ed0" class="outline-4">
|
||||
<h4 id="org9710ed0"><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-org25eded7" class="outline-4">
|
||||
<h4 id="org25eded7"><span class="section-number-4">2.1.6</span> C sources</h4>
|
||||
<div id="outline-container-orgfdbc73d" class="outline-4">
|
||||
<h4 id="orgfdbc73d"><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="orgbc4e41d"><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="org3140f32"><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: #a020f0;">restrict</span> <span style="color: #a0522d;">Updates</span>,
|
||||
@ -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="org371eab2"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="orgdac6e9a"><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="org78c2853"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org743bbc5"><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>
|
||||
@ -2706,14 +2706,14 @@ Python script that generated C switch cases that call individual kernel instance
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcff8d4b" class="outline-4">
|
||||
<h4 id="orgcff8d4b"><span class="section-number-4">2.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-orge952e9a" class="outline-4">
|
||||
<h4 id="orge952e9a"><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-org4731ed6" class="outline-4">
|
||||
<h4 id="org4731ed6"><span class="section-number-4">2.1.8</span> Performance</h4>
|
||||
<div id="outline-container-orgf22907b" class="outline-4">
|
||||
<h4 id="orgf22907b"><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
|
||||
@ -2722,8 +2722,8 @@ can never resolve a situation where applying the update causes singular behaviou
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org04f87c2" class="outline-4">
|
||||
<h4 id="org04f87c2"><span class="section-number-4">2.1.9</span> Tests</h4>
|
||||
<div id="outline-container-org3cf68fd" class="outline-4">
|
||||
<h4 id="org3cf68fd"><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
|
||||
@ -2791,17 +2791,17 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgbe6798e" class="outline-2">
|
||||
<h2 id="orgbe6798e"><span class="section-number-2">3</span> Sherman-Morrison with Slagel Splitting (core)</h2>
|
||||
<div id="outline-container-orgb5725b8" class="outline-2">
|
||||
<h2 id="orgb5725b8"><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-org3591f4f" class="outline-3">
|
||||
<h3 id="org3591f4f"><span class="section-number-3">3.1</span> <code>qmckl_sm_splitting_core</code></h3>
|
||||
<div id="outline-container-org6a1137d" class="outline-3">
|
||||
<h3 id="org6a1137d"><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-orge83325d" class="outline-4">
|
||||
<h4 id="orge83325d"><span class="section-number-4">3.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org10147be" class="outline-4">
|
||||
<h4 id="org10147be"><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.
|
||||
@ -2829,10 +2829,10 @@ If the determinant is passed it will only be partially updated if there were any
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org97ef9fe" class="outline-4">
|
||||
<h4 id="org97ef9fe"><span class="section-number-4">3.1.2</span> API</h4>
|
||||
<div id="outline-container-org6b43953" class="outline-4">
|
||||
<h4 id="org6b43953"><span class="section-number-4">3.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<table id="org7912786" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf547035" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2941,8 +2941,8 @@ If the determinant is passed it will only be partially updated if there were any
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb06c0aa" class="outline-4">
|
||||
<h4 id="orgb06c0aa"><span class="section-number-4">3.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-orge3a8b2c" class="outline-4">
|
||||
<h4 id="orge3a8b2c"><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>
|
||||
@ -2959,8 +2959,8 @@ If the determinant is passed it will only be partially updated if there were any
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org85cf189" class="outline-4">
|
||||
<h4 id="org85cf189"><span class="section-number-4">3.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-orgc3fd0e2" class="outline-4">
|
||||
<h4 id="orgc3fd0e2"><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
|
||||
@ -3076,8 +3076,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8403aec" class="outline-5">
|
||||
<h5 id="org8403aec"><span class="section-number-5">3.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div id="outline-container-orgf465fcf" class="outline-5">
|
||||
<h5 id="orgf465fcf"><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
|
||||
@ -3090,8 +3090,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org068a04e" class="outline-4">
|
||||
<h4 id="org068a04e"><span class="section-number-4">3.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org7b53ca7" class="outline-4">
|
||||
<h4 id="org7b53ca7"><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> (
|
||||
@ -3146,8 +3146,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3e0f3b2" class="outline-4">
|
||||
<h4 id="org3e0f3b2"><span class="section-number-4">3.1.6</span> C sources</h4>
|
||||
<div id="outline-container-orgbfe934e" class="outline-4">
|
||||
<h4 id="orgbfe934e"><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>(
|
||||
@ -3236,7 +3236,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="org6c0a1e7"><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="org5541451"><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: #a020f0;">restrict</span> <span style="color: #a0522d;">Updates</span>,
|
||||
@ -3320,7 +3320,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="orgd983278"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org89f53c4"><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>
|
||||
@ -3412,7 +3412,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="org03ca4b5"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="org8c4f9d7"><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>
|
||||
@ -5380,14 +5380,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3bb9f8e" class="outline-4">
|
||||
<h4 id="org3bb9f8e"><span class="section-number-4">3.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-org65d2e3a" class="outline-4">
|
||||
<h4 id="org65d2e3a"><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-org6204e5b" class="outline-4">
|
||||
<h4 id="org6204e5b"><span class="section-number-4">3.1.8</span> Performance</h4>
|
||||
<div id="outline-container-org93ed7b5" class="outline-4">
|
||||
<h4 id="org93ed7b5"><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
|
||||
@ -5399,17 +5399,17 @@ with Sherman-Morrison and update splitting. Please look at the performance recco
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgdb6df1e" class="outline-2">
|
||||
<h2 id="orgdb6df1e"><span class="section-number-2">4</span> Woodbury 2x2</h2>
|
||||
<div id="outline-container-org1c692ff" class="outline-2">
|
||||
<h2 id="org1c692ff"><span class="section-number-2">4</span> Woodbury 2x2</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org00c1b06" class="outline-3">
|
||||
<h3 id="org00c1b06"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_2x2</code></h3>
|
||||
<div id="outline-container-orgc1ef574" class="outline-3">
|
||||
<h3 id="orgc1ef574"><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-orgca78e42" class="outline-4">
|
||||
<h4 id="orgca78e42"><span class="section-number-4">4.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org4efdaf9" class="outline-4">
|
||||
<h4 id="org4efdaf9"><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
|
||||
@ -5433,10 +5433,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfb2f070" class="outline-4">
|
||||
<h4 id="orgfb2f070"><span class="section-number-4">4.1.2</span> API</h4>
|
||||
<div id="outline-container-orgbf200b6" class="outline-4">
|
||||
<h4 id="orgbf200b6"><span class="section-number-4">4.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-4-1-2">
|
||||
<table id="org127958b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf20f55d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -5517,8 +5517,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1401ff7" class="outline-4">
|
||||
<h4 id="org1401ff7"><span class="section-number-4">4.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-org945dff5" class="outline-4">
|
||||
<h4 id="org945dff5"><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>
|
||||
@ -5532,8 +5532,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdfa213c" class="outline-4">
|
||||
<h4 id="orgdfa213c"><span class="section-number-4">4.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-orga84bd05" class="outline-4">
|
||||
<h4 id="orga84bd05"><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
|
||||
@ -5669,8 +5669,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8622f40" class="outline-5">
|
||||
<h5 id="org8622f40"><span class="section-number-5">4.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div id="outline-container-org14bcf17" class="outline-5">
|
||||
<h5 id="org14bcf17"><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
|
||||
@ -5683,8 +5683,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8121b8e" class="outline-4">
|
||||
<h4 id="org8121b8e"><span class="section-number-4">4.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-orgc7e4971" class="outline-4">
|
||||
<h4 id="orgc7e4971"><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> (
|
||||
@ -5727,8 +5727,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org51a9f5b" class="outline-4">
|
||||
<h4 id="org51a9f5b"><span class="section-number-4">4.1.6</span> C sources</h4>
|
||||
<div id="outline-container-org62e34d3" class="outline-4">
|
||||
<h4 id="org62e34d3"><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>,
|
||||
@ -5812,7 +5812,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="org3ef2ed5"><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="orgc07606c"><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: #a020f0;">restrict</span> <span style="color: #a0522d;">Updates</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">Updates_index</span>,
|
||||
@ -7762,14 +7762,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org71ee213" class="outline-4">
|
||||
<h4 id="org71ee213"><span class="section-number-4">4.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-org0c13e1a" class="outline-4">
|
||||
<h4 id="org0c13e1a"><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-orgb6144fa" class="outline-4">
|
||||
<h4 id="orgb6144fa"><span class="section-number-4">4.1.8</span> Performance</h4>
|
||||
<div id="outline-container-org0220687" class="outline-4">
|
||||
<h4 id="org0220687"><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
|
||||
@ -7778,8 +7778,8 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1d95fa8" class="outline-4">
|
||||
<h4 id="org1d95fa8"><span class="section-number-4">4.1.9</span> Tests</h4>
|
||||
<div id="outline-container-org30e5dc2" class="outline-4">
|
||||
<h4 id="org30e5dc2"><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>);
|
||||
@ -7816,17 +7816,17 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgb903c2c" class="outline-2">
|
||||
<h2 id="orgb903c2c"><span class="section-number-2">5</span> Woodbury 3x3</h2>
|
||||
<div id="outline-container-orgb131351" class="outline-2">
|
||||
<h2 id="orgb131351"><span class="section-number-2">5</span> Woodbury 3x3</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
</div>
|
||||
<div id="outline-container-orgf2de962" class="outline-3">
|
||||
<h3 id="orgf2de962"><span class="section-number-3">5.1</span> <code>qmckl_woodbury_3x3</code></h3>
|
||||
<div id="outline-container-org07b912d" class="outline-3">
|
||||
<h3 id="org07b912d"><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-org3897dd4" class="outline-4">
|
||||
<h4 id="org3897dd4"><span class="section-number-4">5.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org7fa83d4" class="outline-4">
|
||||
<h4 id="org7fa83d4"><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
|
||||
@ -7850,10 +7850,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4954812" class="outline-4">
|
||||
<h4 id="org4954812"><span class="section-number-4">5.1.2</span> API</h4>
|
||||
<div id="outline-container-org63faf2e" class="outline-4">
|
||||
<h4 id="org63faf2e"><span class="section-number-4">5.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-5-1-2">
|
||||
<table id="org10b0d8d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org968efac" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -7934,8 +7934,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcd574d6" class="outline-4">
|
||||
<h4 id="orgcd574d6"><span class="section-number-4">5.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-org2bb6e48" class="outline-4">
|
||||
<h4 id="org2bb6e48"><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>
|
||||
@ -7949,8 +7949,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0e8ab79" class="outline-4">
|
||||
<h4 id="org0e8ab79"><span class="section-number-4">5.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-orgfff1ee3" class="outline-4">
|
||||
<h4 id="orgfff1ee3"><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
|
||||
@ -8095,8 +8095,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfdad7b3" class="outline-5">
|
||||
<h5 id="orgfdad7b3"><span class="section-number-5">5.1.4.1</span> C interface (not directly exposed)</h5>
|
||||
<div id="outline-container-org0dce3b8" class="outline-5">
|
||||
<h5 id="org0dce3b8"><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
|
||||
@ -8109,8 +8109,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge14fc07" class="outline-4">
|
||||
<h4 id="orge14fc07"><span class="section-number-4">5.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org0a9516a" class="outline-4">
|
||||
<h4 id="org0a9516a"><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> (
|
||||
@ -8153,8 +8153,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org81c9d96" class="outline-4">
|
||||
<h4 id="org81c9d96"><span class="section-number-4">5.1.6</span> C sources</h4>
|
||||
<div id="outline-container-orgd57c448" class="outline-4">
|
||||
<h4 id="orgd57c448"><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>,
|
||||
@ -8264,7 +8264,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="org6ee9464"><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="orga491d4b"><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: #a020f0;">restrict</span> <span style="color: #a0522d;">Updates</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">Updates_index</span>,
|
||||
@ -10634,14 +10634,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org570d42d" class="outline-4">
|
||||
<h4 id="org570d42d"><span class="section-number-4">5.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-org7077a09" class="outline-4">
|
||||
<h4 id="org7077a09"><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-orgf695514" class="outline-4">
|
||||
<h4 id="orgf695514"><span class="section-number-4">5.1.8</span> Performance</h4>
|
||||
<div id="outline-container-org9ba0c77" class="outline-4">
|
||||
<h4 id="org9ba0c77"><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
|
||||
@ -10650,8 +10650,8 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org25c2455" class="outline-4">
|
||||
<h4 id="org25c2455"><span class="section-number-4">5.1.9</span> Tests</h4>
|
||||
<div id="outline-container-orgb233215" class="outline-4">
|
||||
<h4 id="orgb233215"><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>);
|
||||
@ -10688,17 +10688,17 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org36fa920" class="outline-2">
|
||||
<h2 id="org36fa920"><span class="section-number-2">6</span> Sherman-Morrison with Slagel Splitting</h2>
|
||||
<div id="outline-container-org0c62fc0" class="outline-2">
|
||||
<h2 id="org0c62fc0"><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-org4ae6980" class="outline-3">
|
||||
<h3 id="org4ae6980"><span class="section-number-3">6.1</span> <code>qmckl_sm_splitting</code></h3>
|
||||
<div id="outline-container-org7d29860" class="outline-3">
|
||||
<h3 id="org7d29860"><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-org7935558" class="outline-4">
|
||||
<h4 id="org7935558"><span class="section-number-4">6.1.1</span> Introduction</h4>
|
||||
<div id="outline-container-org2f71639" class="outline-4">
|
||||
<h4 id="org2f71639"><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
|
||||
@ -10722,10 +10722,10 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb77fd72" class="outline-4">
|
||||
<h4 id="orgb77fd72"><span class="section-number-4">6.1.2</span> API</h4>
|
||||
<div id="outline-container-org8413497" class="outline-4">
|
||||
<h4 id="org8413497"><span class="section-number-4">6.1.2</span> API</h4>
|
||||
<div class="outline-text-4" id="text-6-1-2">
|
||||
<table id="org614c7a5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6e4bd5a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -10813,8 +10813,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org24f2726" class="outline-4">
|
||||
<h4 id="org24f2726"><span class="section-number-4">6.1.3</span> Requirements</h4>
|
||||
<div id="outline-container-org7e2da1b" class="outline-4">
|
||||
<h4 id="org7e2da1b"><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>
|
||||
@ -10829,8 +10829,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org94ffc43" class="outline-4">
|
||||
<h4 id="org94ffc43"><span class="section-number-4">6.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||
<div id="outline-container-orgd24426a" class="outline-4">
|
||||
<h4 id="orgd24426a"><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
|
||||
@ -10909,8 +10909,8 @@ not be used in real workloads.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1614e18" class="outline-5">
|
||||
<h5 id="org1614e18"><span class="section-number-5">6.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||
<div id="outline-container-org8dfc75a" class="outline-5">
|
||||
<h5 id="org8dfc75a"><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
|
||||
@ -10923,8 +10923,8 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org813a57f" class="outline-4">
|
||||
<h4 id="org813a57f"><span class="section-number-4">6.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||
<div id="outline-container-org3cfdc7d" class="outline-4">
|
||||
<h4 id="org3cfdc7d"><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> (
|
||||
@ -10970,11 +10970,11 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgea621f0" class="outline-4">
|
||||
<h4 id="orgea621f0"><span class="section-number-4">6.1.6</span> C source</h4>
|
||||
<div id="outline-container-org2b5c21b" class="outline-4">
|
||||
<h4 id="org2b5c21b"><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="org5b6c205"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||
<pre class="src src-python" id="orgdc17f28"><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>
|
||||
@ -11377,14 +11377,14 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org42425ff" class="outline-4">
|
||||
<h4 id="org42425ff"><span class="section-number-4">6.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||
<div id="outline-container-orgbf2efc8" class="outline-4">
|
||||
<h4 id="orgbf2efc8"><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-org7ba4700" class="outline-4">
|
||||
<h4 id="org7ba4700"><span class="section-number-4">6.1.8</span> Performance…</h4>
|
||||
<div id="outline-container-org4c84fab" class="outline-4">
|
||||
<h4 id="org4c84fab"><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.
|
||||
@ -11392,8 +11392,8 @@ This kernel performs best when there are 2 or more rank-1 update cycles and fail
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org591fdd7" class="outline-4">
|
||||
<h4 id="org591fdd7"><span class="section-number-4">6.1.9</span> Test</h4>
|
||||
<div id="outline-container-orge36ebe8" class="outline-4">
|
||||
<h4 id="orge36ebe8"><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>);
|
||||
@ -11431,8 +11431,8 @@ rc = QMCKL_SUCCESS;
|
||||
|
||||
|
||||
|
||||
<div id="outline-container-org8e324db" class="outline-2">
|
||||
<h2 id="org8e324db"><span class="section-number-2">7</span> End of files</h2>
|
||||
<div id="outline-container-orgbd1c6f0" class="outline-2">
|
||||
<h2 id="orgbd1c6f0"><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);
|
||||
@ -11446,7 +11446,7 @@ rc = QMCKL_SUCCESS;
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:10</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:20</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-12-13 Fri 14:10 -->
|
||||
<!-- 2024-12-13 Fri 14:19 -->
|
||||
<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="#orga30a619">1. CHBrClF</a>
|
||||
<li><a href="#org19c59e9">1. CHBrClF</a>
|
||||
<ul>
|
||||
<li><a href="#org5236643">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org9af821a">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org430c3a3">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#orgd976313">1.4. Electron coordinates</a></li>
|
||||
<li><a href="#org8814b0c">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org65ba83e">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#orgaf5c584">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org44521c4">1.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5e698ba">2. N2</a>
|
||||
<li><a href="#org1a32adf">2. N2</a>
|
||||
<ul>
|
||||
<li><a href="#org82f40a2">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org8e2f3af">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org932b2df">2.3. Jastrow related data</a></li>
|
||||
<li><a href="#orgfcc90bd">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org24c0092">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#orgf056134">2.3. Jastrow related data</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga30a619" class="outline-2">
|
||||
<h2 id="orga30a619"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div id="outline-container-org19c59e9" class="outline-2">
|
||||
<h2 id="org19c59e9"><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-org5236643" class="outline-3">
|
||||
<h3 id="org5236643"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org8814b0c" class="outline-3">
|
||||
<h3 id="org8814b0c"><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-org9af821a" class="outline-3">
|
||||
<h3 id="org9af821a"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div id="outline-container-org65ba83e" class="outline-3">
|
||||
<h3 id="org65ba83e"><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-org430c3a3" class="outline-3">
|
||||
<h3 id="org430c3a3"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-orgaf5c584" class="outline-3">
|
||||
<h3 id="orgaf5c584"><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)
|
||||
@ -1316,8 +1316,8 @@ F 1
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgd976313" class="outline-3">
|
||||
<h3 id="orgd976313"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org44521c4" class="outline-3">
|
||||
<h3 id="org44521c4"><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.
|
||||
@ -1476,8 +1476,8 @@ Electron coordinates are stored in atomic units in normal format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5e698ba" class="outline-2">
|
||||
<h2 id="org5e698ba"><span class="section-number-2">2</span> N2</h2>
|
||||
<div id="outline-container-org1a32adf" class="outline-2">
|
||||
<h2 id="org1a32adf"><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
|
||||
@ -1518,8 +1518,8 @@ treated by pseudopotentials thus excluded from the actual calculation.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org82f40a2" class="outline-3">
|
||||
<h3 id="org82f40a2"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-orgfcc90bd" class="outline-3">
|
||||
<h3 id="orgfcc90bd"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<pre class="example">
|
||||
2
|
||||
@ -1546,8 +1546,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8e2f3af" class="outline-3">
|
||||
<h3 id="org8e2f3af"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org24c0092" class="outline-3">
|
||||
<h3 id="org24c0092"><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.
|
||||
@ -1586,8 +1586,8 @@ Electron coordinates are stored in atomic units in normal format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org932b2df" class="outline-3">
|
||||
<h3 id="org932b2df"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div id="outline-container-orgf056134" class="outline-3">
|
||||
<h3 id="orgf056134"><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
|
||||
@ -1686,7 +1686,7 @@ Ramon Panades Baruetta.
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="date">Created: 2024-12-13 Fri 14:10</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:19</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-12-13 Fri 14:10 -->
|
||||
<!-- 2024-12-13 Fri 14:19 -->
|
||||
<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="#org4dcb3a2">1. Local functions</a>
|
||||
<li><a href="#org935d6da">1. Local functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgbce4bc3">1.1. Open file</a></li>
|
||||
<li><a href="#org1fa27c5">1.2. Electron</a></li>
|
||||
<li><a href="#orgdb6f66e">1.3. Nucleus</a>
|
||||
<li><a href="#org072083c">1.1. Open file</a></li>
|
||||
<li><a href="#org8860282">1.2. Electron</a></li>
|
||||
<li><a href="#org417c703">1.3. Nucleus</a>
|
||||
<ul>
|
||||
<li><a href="#orga5f02fd">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#org6deb983">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org0bc7978">1.3.3. Nuclear coordinates</a></li>
|
||||
<li><a href="#org1a7781d">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#orgd3e81ad">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org0c825d8">1.3.3. Nuclear coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb713e6d">1.4. Basis set and AOs</a>
|
||||
<li><a href="#orgfe23aec">1.4. Basis set and AOs</a>
|
||||
<ul>
|
||||
<li><a href="#org4fe590b">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#org226073d">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org687f768">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#orgd602b6d">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org914a437">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org23bcb1d">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#orgf5d363c">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org0450443">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#orgbf16df2">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#org2b5aff2">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org0e4a40f">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org05d3a79">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#orgbbe5750">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#orgdd91731">1.4.14. AO Normalization</a></li>
|
||||
<li><a href="#org16c484e">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#orgb6098ef">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#orgf4a3f88">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#org7ec2945">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#orgac23d55">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#orgc28bf81">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#orgd2b9161">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org961f101">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#org0c705f4">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#org49cbffd">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#orge66ea08">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org464af53">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#org33e1729">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org99c6850">1.4.14. AO Normalization</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org427457f">1.5. Molecular orbitals</a>
|
||||
<li><a href="#orgce1c43c">1.5. Molecular orbitals</a>
|
||||
<ul>
|
||||
<li><a href="#orgc399c6f">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#org55f5194">1.5.2. MO coefficients</a></li>
|
||||
<li><a href="#org4915ba8">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#orgf8a9bb3">1.5.2. MO coefficients</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org31cf637">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
<li><a href="#orga4263bc">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga8c88de">2. Read everything</a></li>
|
||||
<li><a href="#orge70e6f5">3. Test</a>
|
||||
<li><a href="#org67fa89c">2. Read everything</a></li>
|
||||
<li><a href="#org561a1d4">3. Test</a>
|
||||
<ul>
|
||||
<li>
|
||||
<ul>
|
||||
<li><a href="#org75b2751">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org4735c9e">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#orgb426123">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org4a1b4b9">3.0.4. MO Basis</a></li>
|
||||
<li><a href="#org10846d1">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org5b0de49">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#orgac90251">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org98964af">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-org4dcb3a2" class="outline-2">
|
||||
<h2 id="org4dcb3a2"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div id="outline-container-org935d6da" class="outline-2">
|
||||
<h2 id="org935d6da"><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-orgbce4bc3" class="outline-3">
|
||||
<h3 id="orgbce4bc3"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div id="outline-container-org072083c" class="outline-3">
|
||||
<h3 id="org072083c"><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-org1fa27c5" class="outline-3">
|
||||
<h3 id="org1fa27c5"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div id="outline-container-org8860282" class="outline-3">
|
||||
<h3 id="org8860282"><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-orgdb6f66e" class="outline-3">
|
||||
<h3 id="orgdb6f66e"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div id="outline-container-org417c703" class="outline-3">
|
||||
<h3 id="org417c703"><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-orga5f02fd" class="outline-4">
|
||||
<h4 id="orga5f02fd"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div id="outline-container-org1a7781d" class="outline-4">
|
||||
<h4 id="org1a7781d"><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-org6deb983" class="outline-4">
|
||||
<h4 id="org6deb983"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div id="outline-container-orgd3e81ad" class="outline-4">
|
||||
<h4 id="orgd3e81ad"><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-org0bc7978" class="outline-4">
|
||||
<h4 id="org0bc7978"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div id="outline-container-org0c825d8" class="outline-4">
|
||||
<h4 id="org0c825d8"><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-orgb713e6d" class="outline-3">
|
||||
<h3 id="orgb713e6d"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div id="outline-container-orgfe23aec" class="outline-3">
|
||||
<h3 id="orgfe23aec"><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-org4fe590b" class="outline-4">
|
||||
<h4 id="org4fe590b"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div id="outline-container-org16c484e" class="outline-4">
|
||||
<h4 id="org16c484e"><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-org226073d" class="outline-4">
|
||||
<h4 id="org226073d"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div id="outline-container-orgb6098ef" class="outline-4">
|
||||
<h4 id="orgb6098ef"><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-org687f768" class="outline-4">
|
||||
<h4 id="org687f768"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div id="outline-container-orgf4a3f88" class="outline-4">
|
||||
<h4 id="orgf4a3f88"><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-orgd602b6d" class="outline-4">
|
||||
<h4 id="orgd602b6d"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div id="outline-container-org7ec2945" class="outline-4">
|
||||
<h4 id="org7ec2945"><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-org914a437" class="outline-4">
|
||||
<h4 id="org914a437"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div id="outline-container-orgac23d55" class="outline-4">
|
||||
<h4 id="orgac23d55"><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-org23bcb1d" class="outline-4">
|
||||
<h4 id="org23bcb1d"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div id="outline-container-orgc28bf81" class="outline-4">
|
||||
<h4 id="orgc28bf81"><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-orgf5d363c" class="outline-4">
|
||||
<h4 id="orgf5d363c"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div id="outline-container-orgd2b9161" class="outline-4">
|
||||
<h4 id="orgd2b9161"><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-org0450443" class="outline-4">
|
||||
<h4 id="org0450443"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
||||
<div id="outline-container-org961f101" class="outline-4">
|
||||
<h4 id="org961f101"><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-orgbf16df2" class="outline-4">
|
||||
<h4 id="orgbf16df2"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
||||
<div id="outline-container-org0c705f4" class="outline-4">
|
||||
<h4 id="org0c705f4"><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-org2b5aff2" class="outline-4">
|
||||
<h4 id="org2b5aff2"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
||||
<div id="outline-container-org49cbffd" class="outline-4">
|
||||
<h4 id="org49cbffd"><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-org0e4a40f" class="outline-4">
|
||||
<h4 id="org0e4a40f"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||
<div id="outline-container-orge66ea08" class="outline-4">
|
||||
<h4 id="orge66ea08"><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-org05d3a79" class="outline-4">
|
||||
<h4 id="org05d3a79"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||
<div id="outline-container-org464af53" class="outline-4">
|
||||
<h4 id="org464af53"><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-orgbbe5750" class="outline-4">
|
||||
<h4 id="orgbbe5750"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
||||
<div id="outline-container-org33e1729" class="outline-4">
|
||||
<h4 id="org33e1729"><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-orgdd91731" class="outline-4">
|
||||
<h4 id="orgdd91731"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||
<div id="outline-container-org99c6850" class="outline-4">
|
||||
<h4 id="org99c6850"><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-org427457f" class="outline-3">
|
||||
<h3 id="org427457f"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-orgce1c43c" class="outline-3">
|
||||
<h3 id="orgce1c43c"><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-orgc399c6f" class="outline-4">
|
||||
<h4 id="orgc399c6f"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
||||
<div id="outline-container-org4915ba8" class="outline-4">
|
||||
<h4 id="org4915ba8"><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-org55f5194" class="outline-4">
|
||||
<h4 id="org55f5194"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||
<div id="outline-container-orgf8a9bb3" class="outline-4">
|
||||
<h4 id="orgf8a9bb3"><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-org31cf637" class="outline-3">
|
||||
<h3 id="org31cf637"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
<div id="outline-container-orga4263bc" class="outline-3">
|
||||
<h3 id="orga4263bc"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orga8c88de" class="outline-2">
|
||||
<h2 id="orga8c88de"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div id="outline-container-org67fa89c" class="outline-2">
|
||||
<h2 id="org67fa89c"><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-orge70e6f5" class="outline-2">
|
||||
<h2 id="orge70e6f5"><span class="section-number-2">3</span> Test</h2>
|
||||
<div id="outline-container-org561a1d4" class="outline-2">
|
||||
<h2 id="org561a1d4"><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-org75b2751" class="outline-4">
|
||||
<h4 id="org75b2751"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||
<div id="outline-container-org10846d1" class="outline-4">
|
||||
<h4 id="org10846d1"><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-org4735c9e" class="outline-4">
|
||||
<h4 id="org4735c9e"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||
<div id="outline-container-org5b0de49" class="outline-4">
|
||||
<h4 id="org5b0de49"><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-orgb426123" class="outline-4">
|
||||
<h4 id="orgb426123"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||
<div id="outline-container-orgac90251" class="outline-4">
|
||||
<h4 id="orgac90251"><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-org4a1b4b9" class="outline-4">
|
||||
<h4 id="org4a1b4b9"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div id="outline-container-org98964af" class="outline-4">
|
||||
<h4 id="org98964af"><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-12-13 Fri 14:10</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:19</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-12-13 Fri 14:10 -->
|
||||
<!-- 2024-12-13 Fri 14:19 -->
|
||||
<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="#orgcbc0d6b">1. Verificarlo probes</a>
|
||||
<li><a href="#orgf463efd">1. Verificarlo probes</a>
|
||||
<ul>
|
||||
<li><a href="#orgb6eefcd">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org20d4d16">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org01da563">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#org697feac">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org3348ddf">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#orgac2fbd0">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org7d03c68">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org06ed76c">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#orgf9bd16a">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org194646d">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="#org77ccf0e">2. Fortran wrappers</a></li>
|
||||
<li><a href="#org89b3650">2. Fortran wrappers</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcbc0d6b" class="outline-2">
|
||||
<h2 id="orgcbc0d6b"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div id="outline-container-orgf463efd" class="outline-2">
|
||||
<h2 id="orgf463efd"><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-orgb6eefcd" class="outline-3">
|
||||
<h3 id="orgb6eefcd"><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-orgac2fbd0" class="outline-3">
|
||||
<h3 id="orgac2fbd0"><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-org20d4d16" class="outline-3">
|
||||
<h3 id="org20d4d16"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div id="outline-container-org7d03c68" class="outline-3">
|
||||
<h3 id="org7d03c68"><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-org01da563" class="outline-3">
|
||||
<h3 id="org01da563"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div id="outline-container-org06ed76c" class="outline-3">
|
||||
<h3 id="org06ed76c"><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-org697feac" class="outline-3">
|
||||
<h3 id="org697feac"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div id="outline-container-orgf9bd16a" class="outline-3">
|
||||
<h3 id="orgf9bd16a"><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-org3348ddf" class="outline-3">
|
||||
<h3 id="org3348ddf"><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-org194646d" class="outline-3">
|
||||
<h3 id="org194646d"><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-org77ccf0e" class="outline-2">
|
||||
<h2 id="org77ccf0e"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||
<div id="outline-container-org89b3650" class="outline-2">
|
||||
<h2 id="org89b3650"><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-12-13 Fri 14:10</p>
|
||||
<p class="date">Created: 2024-12-13 Fri 14:19</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