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@3e2ea5f2ca 🚀
This commit is contained in:
parent
b05c074c0d
commit
c479d2b7c2
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-10-13 Thu 08:32 -->
|
||||
<!-- 2022-10-13 Thu 09:50 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>QMCkl source code documentation</title>
|
||||
@ -362,7 +362,7 @@ and bug reports should be submitted at
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 08:32</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 09:50</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
118
qmckl.html
118
qmckl.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-10-13 Thu 08:32 -->
|
||||
<!-- 2022-10-13 Thu 09:50 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Introduction</title>
|
||||
@ -333,36 +333,36 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org4f86c60">1. Installing QMCkl</a>
|
||||
<li><a href="#org990e6f5">1. Installing QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#orgb4c1801">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#orgac5a6cf">1.2. Installing from the source repository (for developers)</a></li>
|
||||
<li><a href="#orga2d8b91">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org0390690">1.2. Installing from the source repository (for developers)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd5f3afe">2. Using QMCkl</a></li>
|
||||
<li><a href="#orga86da0c">3. Developing in QMCkl</a>
|
||||
<li><a href="#org7757dee">2. Using QMCkl</a></li>
|
||||
<li><a href="#orgb3c1905">3. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#org54219d9">3.1. Literate programming</a></li>
|
||||
<li><a href="#org8968b52">3.2. Source code editing</a></li>
|
||||
<li><a href="#org1b103c6">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org7b4d3f3">3.4. Coding rules</a></li>
|
||||
<li><a href="#org0d467e0">3.5. Design of the library</a></li>
|
||||
<li><a href="#org77b513d">3.6. Naming conventions</a></li>
|
||||
<li><a href="#orgf3d3342">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org5994c66">3.8. Global state</a></li>
|
||||
<li><a href="#orgf3ab87a">3.9. Headers</a></li>
|
||||
<li><a href="#orgdcffe01">3.10. Low-level functions</a></li>
|
||||
<li><a href="#orgbb220ce">3.11. High-level functions</a></li>
|
||||
<li><a href="#orgcc53e91">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org3492d87">3.13. Algorithms</a></li>
|
||||
<li><a href="#org644dbf3">3.1. Literate programming</a></li>
|
||||
<li><a href="#orgc28a690">3.2. Source code editing</a></li>
|
||||
<li><a href="#org7c08d03">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org8657b07">3.4. Coding rules</a></li>
|
||||
<li><a href="#orgf041365">3.5. Design of the library</a></li>
|
||||
<li><a href="#orge466de5">3.6. Naming conventions</a></li>
|
||||
<li><a href="#org62f16f0">3.7. Application programming interface</a></li>
|
||||
<li><a href="#orgca0f949">3.8. Global state</a></li>
|
||||
<li><a href="#org14a7650">3.9. Headers</a></li>
|
||||
<li><a href="#org5fafe1a">3.10. Low-level functions</a></li>
|
||||
<li><a href="#org823e0d5">3.11. High-level functions</a></li>
|
||||
<li><a href="#orgb24238c">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org781b77f">3.13. Algorithms</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4f86c60" class="outline-2">
|
||||
<h2 id="org4f86c60"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div id="outline-container-org990e6f5" class="outline-2">
|
||||
<h2 id="org990e6f5"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The latest version fo QMCkl can be downloaded
|
||||
@ -371,8 +371,8 @@ The latest version fo QMCkl can be downloaded
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb4c1801" class="outline-3">
|
||||
<h3 id="orgb4c1801"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div id="outline-container-orga2d8b91" class="outline-3">
|
||||
<h3 id="orga2d8b91"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
QMCkl is built with GNU Autotools, so the usual
|
||||
@ -387,8 +387,8 @@ options are defined using <code>CFLAGS</code> and <code>FCFLAGS</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgac5a6cf" class="outline-3">
|
||||
<h3 id="orgac5a6cf"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div id="outline-container-org0390690" class="outline-3">
|
||||
<h3 id="org0390690"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To compile from the source repository, additional dependencies are
|
||||
@ -409,8 +409,8 @@ to be executed first.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd5f3afe" class="outline-2">
|
||||
<h2 id="orgd5f3afe"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div id="outline-container-org7757dee" class="outline-2">
|
||||
<h2 id="org7757dee"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The <code>qmckl.h</code> header file installed in the <code>${prefix}/include</code> directory
|
||||
@ -439,12 +439,12 @@ Both files are located in the <code>include/</code> directory.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga86da0c" class="outline-2">
|
||||
<h2 id="orga86da0c"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-orgb3c1905" class="outline-2">
|
||||
<h2 id="orgb3c1905"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org54219d9" class="outline-3">
|
||||
<h3 id="org54219d9"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div id="outline-container-org644dbf3" class="outline-3">
|
||||
<h3 id="org644dbf3"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
In a traditional source code, most of the lines of source files of a program
|
||||
@ -494,8 +494,8 @@ tarball contains the generated source code.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8968b52" class="outline-3">
|
||||
<h3 id="org8968b52"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div id="outline-container-orgc28a690" class="outline-3">
|
||||
<h3 id="orgc28a690"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<p>
|
||||
For a tutorial on literate programming with org-mode, follow <a href="http://www.howardism.org/Technical/Emacs/literate-programming-tutorial.html">this link</a>.
|
||||
@ -526,8 +526,8 @@ org-mode.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1b103c6" class="outline-3">
|
||||
<h3 id="org1b103c6"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-org7c08d03" class="outline-3">
|
||||
<h3 id="org7c08d03"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<p>
|
||||
Most of the codes of the <a href="https://trex-coe.eu">TREX CoE</a> are written in Fortran with some
|
||||
@ -591,8 +591,8 @@ For more guidelines on using Fortran to generate a C interface, see
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7b4d3f3" class="outline-3">
|
||||
<h3 id="org7b4d3f3"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div id="outline-container-org8657b07" class="outline-3">
|
||||
<h3 id="org8657b07"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div class="outline-text-3" id="text-3-4">
|
||||
<p>
|
||||
The authors should follow the recommendations of the C99
|
||||
@ -612,8 +612,8 @@ make cppcheck ; cat cppcheck.out
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0d467e0" class="outline-3">
|
||||
<h3 id="org0d467e0"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div id="outline-container-orgf041365" class="outline-3">
|
||||
<h3 id="orgf041365"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div class="outline-text-3" id="text-3-5">
|
||||
<p>
|
||||
The proposed API should allow the library to: deal with memory transfers
|
||||
@ -624,8 +624,8 @@ functions (see below).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org77b513d" class="outline-3">
|
||||
<h3 id="org77b513d"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-orge466de5" class="outline-3">
|
||||
<h3 id="orge466de5"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div class="outline-text-3" id="text-3-6">
|
||||
<p>
|
||||
To avoid namespace collisions, we use <code>qmckl_</code> as a prefix for all exported
|
||||
@ -646,8 +646,8 @@ form is allowed.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf3d3342" class="outline-3">
|
||||
<h3 id="orgf3d3342"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-org62f16f0" class="outline-3">
|
||||
<h3 id="org62f16f0"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div class="outline-text-3" id="text-3-7">
|
||||
<p>
|
||||
In the C language, the number of bits used by the integer types can change
|
||||
@ -679,15 +679,15 @@ bindings in other languages in other repositories.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5994c66" class="outline-3">
|
||||
<h3 id="org5994c66"><span class="section-number-3">3.8</span> Global state</h3>
|
||||
<div id="outline-container-orgca0f949" class="outline-3">
|
||||
<h3 id="orgca0f949"><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="org2d890c4">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="orga4703dc">=context=</a> contains the global
|
||||
state of the library, and is used as the first argument of many
|
||||
QMCkl functions.
|
||||
</p>
|
||||
@ -701,8 +701,8 @@ the state is done by setters and getters, prefixed by
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf3ab87a" class="outline-3">
|
||||
<h3 id="orgf3ab87a"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div id="outline-container-org14a7650" class="outline-3">
|
||||
<h3 id="org14a7650"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div class="outline-text-3" id="text-3-9">
|
||||
<p>
|
||||
A single <code>qmckl.h</code> header to be distributed by the library
|
||||
@ -790,8 +790,8 @@ and the types definitions should be written in the <code>*fh_type.f90</code> fil
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdcffe01" class="outline-3">
|
||||
<h3 id="orgdcffe01"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-org5fafe1a" class="outline-3">
|
||||
<h3 id="org5fafe1a"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div class="outline-text-3" id="text-3-10">
|
||||
<p>
|
||||
Low-level functions are very simple functions which are leaves of
|
||||
@ -800,14 +800,14 @@ the function call tree (they don't call any other QMCkl function).
|
||||
|
||||
<p>
|
||||
These functions are <i>pure</i>, and unaware of the QMCkl
|
||||
<a href="#org2d890c4"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#orga4703dc"><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-orgbb220ce" class="outline-3">
|
||||
<h3 id="orgbb220ce"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div id="outline-container-org823e0d5" class="outline-3">
|
||||
<h3 id="org823e0d5"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div class="outline-text-3" id="text-3-11">
|
||||
<p>
|
||||
High-level functions are at the top of the function call tree.
|
||||
@ -819,8 +819,8 @@ temporary storage, to simplify the use of accelerators.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcc53e91" class="outline-3">
|
||||
<h3 id="orgcc53e91"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-orgb24238c" class="outline-3">
|
||||
<h3 id="orgb24238c"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div class="outline-text-3" id="text-3-12">
|
||||
<p>
|
||||
The minimal number of bits of precision required for a function
|
||||
@ -828,7 +828,7 @@ should be given as an input of low-level computational
|
||||
functions. This input will be used to define the values of the
|
||||
different thresholds that might be used to avoid computing
|
||||
unnecessary noise. High-level functions will use the precision
|
||||
specified in the <a href="#org2d890c4"><code>context</code></a> variable.
|
||||
specified in the <a href="#orga4703dc"><code>context</code></a> variable.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -896,8 +896,8 @@ following points :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3492d87" class="outline-3">
|
||||
<h3 id="org3492d87"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div id="outline-container-org781b77f" class="outline-3">
|
||||
<h3 id="org781b77f"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div class="outline-text-3" id="text-3-13">
|
||||
<p>
|
||||
Reducing the scaling of an algorithm usually implies also reducing
|
||||
@ -913,7 +913,7 @@ implemented adapted to different problem sizes.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 08:32</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 09:50</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
233
qmckl_ao.html
233
qmckl_ao.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-10-13 Thu 08:33 -->
|
||||
<!-- 2022-10-13 Thu 09:50 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Atomic Orbitals</title>
|
||||
@ -333,61 +333,61 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org4c10859">1. Introduction</a></li>
|
||||
<li><a href="#orgd63d680">2. Context</a>
|
||||
<li><a href="#org0c1a926">1. Introduction</a></li>
|
||||
<li><a href="#orge8abcb1">2. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org9785cb3">2.1. Constant data</a>
|
||||
<li><a href="#orga34eeb4">2.1. Constant data</a>
|
||||
<ul>
|
||||
<li><a href="#org144e01e">2.1.1. Initialization functions</a>
|
||||
<li><a href="#org18c3c99">2.1.1. Initialization functions</a>
|
||||
<ul>
|
||||
<li><a href="#org3364fc3">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org7c1589d">2.1.1.2. Fortran interface</a></li>
|
||||
<li><a href="#org0aaa37e">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org0f09b31">2.1.1.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org41e3e0c">2.1.2. Access functions</a>
|
||||
<li><a href="#orgedf8d88">2.1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgbfb1339">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#orga3bf11c">2.1.2.2. Fortran interface</a></li>
|
||||
<li><a href="#org4d92334">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org7afec06">2.1.2.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org40b2b56">2.2. Computed data</a>
|
||||
<li><a href="#orge9e2c3c">2.2. Computed data</a>
|
||||
<ul>
|
||||
<li><a href="#orgadccec1">2.2.1. After initialization</a></li>
|
||||
<li><a href="#org6f68eed">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#org6a544ae">2.2.3. Access functions</a></li>
|
||||
<li><a href="#org34d1b81">2.2.1. After initialization</a></li>
|
||||
<li><a href="#org09e6e2f">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#orge77abbb">2.2.3. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4f6538a">3. Radial part</a>
|
||||
<li><a href="#org1bdb7a8">3. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#org38b4079">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org2c152d4">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org14b07de">3.3. Computation of shells</a></li>
|
||||
<li><a href="#orge342caf">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org7dffbae">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#org13eb44a">3.3. Computation of shells</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgffd4df8">4. Polynomial part</a>
|
||||
<li><a href="#orgfd66bf1">4. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#orgbbaab0f">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#orge44d410">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
<li><a href="#org0687a19">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#org8115258">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3fd9533">5. Combining radial and polynomial parts</a>
|
||||
<li><a href="#org33882ce">5. Combining radial and polynomial parts</a>
|
||||
<ul>
|
||||
<li><a href="#orgb39feba">5.1. Values only</a>
|
||||
<li><a href="#org4487a8c">5.1. Values only</a>
|
||||
<ul>
|
||||
<li><a href="#org1391757">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#org52c54b0">5.1.2. HPC version</a></li>
|
||||
<li><a href="#org7cc839d">5.1.3. Interfaces</a></li>
|
||||
<li><a href="#org1f8acc1">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#orgd1d4fec">5.1.2. HPC version</a></li>
|
||||
<li><a href="#orgce93763">5.1.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0f51653">5.2. Value, gradients, Laplacian</a>
|
||||
<li><a href="#org5586c11">5.2. Value, gradients, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org7e70383">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#org7c117ba">5.2.2. HPC version</a></li>
|
||||
<li><a href="#org055239d">5.2.3. Interfaces</a></li>
|
||||
<li><a href="#orgf82c7b8">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#org5364aa0">5.2.2. HPC version</a></li>
|
||||
<li><a href="#org1e33a53">5.2.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -396,8 +396,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4c10859" class="outline-2">
|
||||
<h2 id="org4c10859"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div id="outline-container-org0c1a926" class="outline-2">
|
||||
<h2 id="org0c1a926"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The atomic basis set is defined as a list of shells. Each shell \(s\) is
|
||||
@ -450,19 +450,19 @@ gradients and Laplacian of the atomic basis functions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd63d680" class="outline-2">
|
||||
<h2 id="orgd63d680"><span class="section-number-2">2</span> Context</h2>
|
||||
<div id="outline-container-orge8abcb1" class="outline-2">
|
||||
<h2 id="orge8abcb1"><span class="section-number-2">2</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org9785cb3" class="outline-3">
|
||||
<h3 id="org9785cb3"><span class="section-number-3">2.1</span> Constant data</h3>
|
||||
<div id="outline-container-orga34eeb4" class="outline-3">
|
||||
<h3 id="orga34eeb4"><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="orge779d42" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org26df936" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -636,7 +636,7 @@ calling the functions:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="org1c1ab58"><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="org1403c98"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_set_ao_basis_$V$</span> ( <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> $type_of_V$ $V$);
|
||||
|
||||
<span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_ao_basis_$V$</span> ( <span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
@ -673,7 +673,7 @@ For array variables, use the rule:
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-C" id="org66c3528"><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="orgf2aecbd"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_set_ao_basis_$V$</span> ( <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<span style="color: #a020f0;">const</span> $type_of_V$ $V$,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">size_max</span>);
|
||||
|
||||
@ -711,17 +711,17 @@ For array variables, use the rule:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org144e01e" class="outline-4">
|
||||
<h4 id="org144e01e"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
||||
<div id="outline-container-org18c3c99" class="outline-4">
|
||||
<h4 id="org18c3c99"><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="#orgd63d680">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#orge8abcb1">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3364fc3" class="outline-5">
|
||||
<h5 id="org3364fc3"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div id="outline-container-org0aaa37e" class="outline-5">
|
||||
<h5 id="org0aaa37e"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-1-1">
|
||||
<p>
|
||||
To set the basis set, all the following functions need to be
|
||||
@ -845,8 +845,8 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7c1589d" class="outline-5">
|
||||
<h5 id="org7c1589d"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org0f09b31" class="outline-5">
|
||||
<h5 id="org0f09b31"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #a020f0;">interface</span>
|
||||
@ -1029,17 +1029,17 @@ called.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org41e3e0c" class="outline-4">
|
||||
<h4 id="org41e3e0c"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
||||
<div id="outline-container-orgedf8d88" class="outline-4">
|
||||
<h4 id="orgedf8d88"><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="#orgd63d680">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#orge8abcb1">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbfb1339" class="outline-5">
|
||||
<h5 id="orgbfb1339"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div id="outline-container-org4d92334" class="outline-5">
|
||||
<h5 id="org4d92334"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1161,8 +1161,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga3bf11c" class="outline-5">
|
||||
<h5 id="orga3bf11c"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org7afec06" class="outline-5">
|
||||
<h5 id="org7afec06"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div class="outline-text-5" id="text-2-1-2-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #a020f0;">interface</span>
|
||||
@ -1346,8 +1346,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org40b2b56" class="outline-3">
|
||||
<h3 id="org40b2b56"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div id="outline-container-orge9e2c3c" class="outline-3">
|
||||
<h3 id="orge9e2c3c"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
The following data is computed as described in the next sections:
|
||||
@ -1422,8 +1422,8 @@ The following data is computed as described in the next sections:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgadccec1" class="outline-4">
|
||||
<h4 id="orgadccec1"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div id="outline-container-org34d1b81" class="outline-4">
|
||||
<h4 id="org34d1b81"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<p>
|
||||
When the basis set is completely entered, extra data structures may be
|
||||
@ -1437,8 +1437,8 @@ the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6f68eed" class="outline-4">
|
||||
<h4 id="org6f68eed"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
||||
<div id="outline-container-org09e6e2f" class="outline-4">
|
||||
<h4 id="org09e6e2f"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<p>
|
||||
For faster access, we provide extra arrays for the shell information as:
|
||||
@ -1468,8 +1468,8 @@ which is a matrix-vector product.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6a544ae" class="outline-4">
|
||||
<h4 id="org6a544ae"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||
<div id="outline-container-orge77abbb" class="outline-4">
|
||||
<h4 id="orge77abbb"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -1482,7 +1482,7 @@ which is a matrix-vector product.
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of primitive
|
||||
basis functions evaluated at the current coordinates.
|
||||
See section <a href="#org2c152d4">3.2</a>.
|
||||
See section <a href="#org7dffbae">3.2</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1495,7 +1495,7 @@ See section <a href="#org2c152d4">3.2</a>.
|
||||
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of contracted shells
|
||||
evaluated at the current coordinates. See section <a href="#org14b07de">3.3</a>.
|
||||
evaluated at the current coordinates. See section <a href="#org13eb44a">3.3</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1509,7 +1509,7 @@ evaluated at the current coordinates. See section <a href="#org14b07de">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="#org3fd9533">5</a>.
|
||||
See section <a href="#org33882ce">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1534,7 +1534,7 @@ Uses the given array to compute the VGL.
|
||||
|
||||
<p>
|
||||
Returns the array of values of the atomic orbitals evaluated at
|
||||
the current coordinates. See section <a href="#org3fd9533">5</a>.
|
||||
the current coordinates. See section <a href="#org33882ce">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1553,12 +1553,12 @@ Uses the given array to compute the value.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4f6538a" class="outline-2">
|
||||
<h2 id="org4f6538a"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div id="outline-container-org1bdb7a8" class="outline-2">
|
||||
<h2 id="org1bdb7a8"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org38b4079" class="outline-3">
|
||||
<h3 id="org38b4079"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div id="outline-container-orge342caf" class="outline-3">
|
||||
<h3 id="orge342caf"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
<code>qmckl_ao_gaussian_vgl</code> computes the values, gradients and
|
||||
@ -1729,10 +1729,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2c152d4" class="outline-3">
|
||||
<h3 id="org2c152d4"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div id="outline-container-org7dffbae" class="outline-3">
|
||||
<h3 id="org7dffbae"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<table id="org7b9a270" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6efc496" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1891,10 +1891,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org14b07de" class="outline-3">
|
||||
<h3 id="org14b07de"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div id="outline-container-org13eb44a" class="outline-3">
|
||||
<h3 id="org13eb44a"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<table id="org2cd6786" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org32c4c59" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2146,8 +2146,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgffd4df8" class="outline-2">
|
||||
<h2 id="orgffd4df8"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div id="outline-container-orgfd66bf1" class="outline-2">
|
||||
<h2 id="orgfd66bf1"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
Going from the atomic basis set to AOs implies a systematic
|
||||
@ -2167,8 +2167,8 @@ f & : & f_{xxx}, f_{xxy}, f_{xxz}, f_{xyy}, f_{xyz}, f_{xzz}, f_{yyy}, f_{yyz},
|
||||
\end{eqnarray}
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbbaab0f" class="outline-3">
|
||||
<h3 id="orgbbaab0f"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-org0687a19" class="outline-3">
|
||||
<h3 id="org0687a19"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
The <code>qmckl_ao_power</code> function computes all the powers of the <code>n</code>
|
||||
@ -2180,7 +2180,7 @@ the \(n\) points:
|
||||
\[ P_{ik} = X_i^k \]
|
||||
</p>
|
||||
|
||||
<table id="org7f32663" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga1f8acb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2318,8 +2318,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge44d410" class="outline-3">
|
||||
<h3 id="orge44d410"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-org8115258" class="outline-3">
|
||||
<h3 id="org8115258"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div class="outline-text-3" id="text-4-2">
|
||||
<p>
|
||||
A polynomial is centered on a nucleus \(\mathbf{R}_i\)
|
||||
@ -2364,7 +2364,7 @@ Laplacians at a given point in space, of all polynomials with an
|
||||
angular momentum up to <code>lmax</code>.
|
||||
</p>
|
||||
|
||||
<table id="orgb0ae9d1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf469897" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2692,7 +2692,7 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
<span style="color: #228b22;">int32_t</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">L</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">ldl</span>,
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">VGL</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">ldv</span> );
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">ldv</span> );
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -2847,8 +2847,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
<span style="color: #0000ff;">qmckl_ao_polynomial_transp_vgl_hpc</span> (<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||
<pre class="src src-c"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span>
|
||||
<span style="color: #0000ff;">qmckl_ao_polynomial_transp_vgl_hpc_inline</span> (<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;">X</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">R</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int32_t</span> <span style="color: #a0522d;">lmax</span>,
|
||||
@ -3122,24 +3122,39 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
*n = m;
|
||||
<span style="color: #a020f0;">return</span> QMCKL_SUCCESS;
|
||||
}
|
||||
|
||||
<span style="color: #228b22;">qmckl_exit_code</span>
|
||||
<span style="color: #0000ff;">qmckl_ao_polynomial_transp_vgl_hpc</span> (<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;">X</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a0522d;">R</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int32_t</span> <span style="color: #a0522d;">lmax</span>,
|
||||
<span style="color: #228b22;">int64_t</span>* <span style="color: #a0522d;">n</span>,
|
||||
<span style="color: #228b22;">int32_t</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">L</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">ldl</span>,
|
||||
<span style="color: #228b22;">double</span>* <span style="color: #a020f0;">restrict</span> <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">VGL</span>,
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">ldv</span> )
|
||||
{
|
||||
<span style="color: #a020f0;">return</span> qmckl_ao_polynomial_transp_vgl_hpc_inline (context,
|
||||
X, R, lmax, n, L, ldl, VGL, ldv );
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3fd9533" class="outline-2">
|
||||
<h2 id="org3fd9533"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div id="outline-container-org33882ce" class="outline-2">
|
||||
<h2 id="org33882ce"><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-orgb39feba" class="outline-3">
|
||||
<h3 id="orgb39feba"><span class="section-number-3">5.1</span> Values only</h3>
|
||||
<div id="outline-container-org4487a8c" class="outline-3">
|
||||
<h3 id="org4487a8c"><span class="section-number-3">5.1</span> Values only</h3>
|
||||
<div class="outline-text-3" id="text-5-1">
|
||||
</div>
|
||||
<div id="outline-container-org1391757" class="outline-4">
|
||||
<h4 id="org1391757"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-org1f8acc1" class="outline-4">
|
||||
<h4 id="org1f8acc1"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-1">
|
||||
<table id="org46d52a2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org82c54aa" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3375,10 +3390,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org52c54b0" class="outline-4">
|
||||
<h4 id="org52c54b0"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div id="outline-container-orgd1d4fec" class="outline-4">
|
||||
<h4 id="orgd1d4fec"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-2">
|
||||
<table id="org9e37f2c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org58f5d97" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3536,8 +3551,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7cc839d" class="outline-4">
|
||||
<h4 id="org7cc839d"><span class="section-number-4">5.1.3</span> Interfaces</h4>
|
||||
<div id="outline-container-orgce93763" class="outline-4">
|
||||
<h4 id="orgce93763"><span class="section-number-4">5.1.3</span> Interfaces</h4>
|
||||
<div class="outline-text-4" id="text-5-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_compute_ao_value_doc</span> (
|
||||
@ -3586,14 +3601,14 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0f51653" class="outline-3">
|
||||
<h3 id="org0f51653"><span class="section-number-3">5.2</span> Value, gradients, Laplacian</h3>
|
||||
<div id="outline-container-org5586c11" class="outline-3">
|
||||
<h3 id="org5586c11"><span class="section-number-3">5.2</span> Value, gradients, Laplacian</h3>
|
||||
<div class="outline-text-3" id="text-5-2">
|
||||
</div>
|
||||
<div id="outline-container-org7e70383" class="outline-4">
|
||||
<h4 id="org7e70383"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-orgf82c7b8" class="outline-4">
|
||||
<h4 id="orgf82c7b8"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-1">
|
||||
<table id="orgfd7a865" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org21c5bc7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3858,10 +3873,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7c117ba" class="outline-4">
|
||||
<h4 id="org7c117ba"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div id="outline-container-org5364aa0" class="outline-4">
|
||||
<h4 id="org5364aa0"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-2">
|
||||
<table id="org71085fe" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org98ab06c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4020,8 +4035,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org055239d" class="outline-4">
|
||||
<h4 id="org055239d"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||
<div id="outline-container-org1e33a53" class="outline-4">
|
||||
<h4 id="org1e33a53"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||
<div class="outline-text-4" id="text-5-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_compute_ao_vgl_doc</span> (
|
||||
@ -4073,7 +4088,7 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 08:33</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 09:50</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
172
qmckl_blas.html
172
qmckl_blas.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-10-13 Thu 08:32 -->
|
||||
<!-- 2022-10-13 Thu 09:50 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>BLAS functions</title>
|
||||
@ -333,54 +333,54 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org8d2246a">-</a></li>
|
||||
<li><a href="#orgac8eaab">1. Data types</a>
|
||||
<li><a href="#org3c5e5c5">-</a></li>
|
||||
<li><a href="#org6769b3d">1. Data types</a>
|
||||
<ul>
|
||||
<li><a href="#org42330a7">1.1. Vector</a></li>
|
||||
<li><a href="#org97169bd">1.2. Matrix</a></li>
|
||||
<li><a href="#orgdf8fa79">1.3. Tensor</a></li>
|
||||
<li><a href="#org1d89a84">1.4. Reshaping</a>
|
||||
<li><a href="#orgad7c859">1.1. Vector</a></li>
|
||||
<li><a href="#org8df03b8">1.2. Matrix</a></li>
|
||||
<li><a href="#orgb588240">1.3. Tensor</a></li>
|
||||
<li><a href="#org33db9cb">1.4. Reshaping</a>
|
||||
<ul>
|
||||
<li><a href="#org809e279">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#org570b287">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#org89d7fb4">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#org28d90b4">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#orga8ae60a">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#org086b8b5">1.4.6. Tensor -> Matrix</a></li>
|
||||
<li><a href="#orgb9adb80">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#org3ab86e5">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#org4bfad61">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#org74f7e93">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#org609a547">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#org3f249e2">1.4.6. Tensor -> Matrix</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd115cc5">1.5. Access macros</a></li>
|
||||
<li><a href="#orga9fdfb3">1.6. Set all elements</a>
|
||||
<li><a href="#orga887fdc">1.5. Access macros</a></li>
|
||||
<li><a href="#orgc95dd87">1.6. Set all elements</a>
|
||||
<ul>
|
||||
<li><a href="#orga98ad79">1.6.1. Vector</a></li>
|
||||
<li><a href="#org2da5579">1.6.2. Matrix</a></li>
|
||||
<li><a href="#orge46ef79">1.6.3. Tensor</a></li>
|
||||
<li><a href="#org1c41ac8">1.6.1. Vector</a></li>
|
||||
<li><a href="#org1ccb9d9">1.6.2. Matrix</a></li>
|
||||
<li><a href="#org0487f76">1.6.3. Tensor</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgcae4d18">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#org3350c48">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org099e44e">2. Matrix operations</a>
|
||||
<li><a href="#org00d32d0">2. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#orga28cb21">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org8544017">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#orga702ba3">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org093d772">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#orgc23a225">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<li><a href="#orgd0ff2a5">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org8038619">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#orgcdfeb39">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#orga8522f6">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#orgf825e5c">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgbb4815c">2.5.1. C interface</a></li>
|
||||
<li><a href="#orgb82a222">2.5.1. C interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd75f203">2.6. <code>qmckl_transpose</code></a></li>
|
||||
<li><a href="#org4d71864">2.6. <code>qmckl_transpose</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8d2246a" class="outline-2">
|
||||
<h2 id="org8d2246a">-</h2>
|
||||
<div class="outline-text-2" id="text-org8d2246a">
|
||||
<div id="outline-container-org3c5e5c5" class="outline-2">
|
||||
<h2 id="org3c5e5c5">-</h2>
|
||||
<div class="outline-text-2" id="text-org3c5e5c5">
|
||||
<p>
|
||||
Basic linear algebra data types and operations are described in this file.
|
||||
The data types are private, so that HPC implementations can use
|
||||
@ -394,12 +394,12 @@ are not intended to be passed to external codes.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgac8eaab" class="outline-2">
|
||||
<h2 id="orgac8eaab"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div id="outline-container-org6769b3d" class="outline-2">
|
||||
<h2 id="org6769b3d"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org42330a7" class="outline-3">
|
||||
<h3 id="org42330a7"><span class="section-number-3">1.1</span> Vector</h3>
|
||||
<div id="outline-container-orgad7c859" class="outline-3">
|
||||
<h3 id="orgad7c859"><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">
|
||||
|
||||
@ -453,8 +453,8 @@ Allocates a new vector. If the allocation failed the size is zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org97169bd" class="outline-3">
|
||||
<h3 id="org97169bd"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||
<div id="outline-container-org8df03b8" class="outline-3">
|
||||
<h3 id="org8df03b8"><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">
|
||||
|
||||
@ -514,8 +514,8 @@ Allocates a new matrix. If the allocation failed the sizes are zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdf8fa79" class="outline-3">
|
||||
<h3 id="orgdf8fa79"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||
<div id="outline-container-orgb588240" class="outline-3">
|
||||
<h3 id="orgb588240"><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">
|
||||
|
||||
@ -582,16 +582,16 @@ is zero.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1d89a84" class="outline-3">
|
||||
<h3 id="org1d89a84"><span class="section-number-3">1.4</span> Reshaping</h3>
|
||||
<div id="outline-container-org33db9cb" class="outline-3">
|
||||
<h3 id="org33db9cb"><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-org809e279" class="outline-4">
|
||||
<h4 id="org809e279"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||
<div id="outline-container-orgb9adb80" class="outline-4">
|
||||
<h4 id="orgb9adb80"><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>
|
||||
@ -607,8 +607,8 @@ Reshapes a vector into a matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org570b287" class="outline-4">
|
||||
<h4 id="org570b287"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||
<div id="outline-container-org3ab86e5" class="outline-4">
|
||||
<h4 id="org3ab86e5"><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>
|
||||
@ -624,8 +624,8 @@ Reshapes a vector into a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org89d7fb4" class="outline-4">
|
||||
<h4 id="org89d7fb4"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||
<div id="outline-container-org4bfad61" class="outline-4">
|
||||
<h4 id="org4bfad61"><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>
|
||||
@ -639,8 +639,8 @@ Reshapes a matrix into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org28d90b4" class="outline-4">
|
||||
<h4 id="org28d90b4"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||
<div id="outline-container-org74f7e93" class="outline-4">
|
||||
<h4 id="org74f7e93"><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>
|
||||
@ -656,8 +656,8 @@ Reshapes a matrix into a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga8ae60a" class="outline-4">
|
||||
<h4 id="orga8ae60a"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||
<div id="outline-container-org609a547" class="outline-4">
|
||||
<h4 id="org609a547"><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>
|
||||
@ -671,8 +671,8 @@ Reshapes a tensor into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org086b8b5" class="outline-4">
|
||||
<h4 id="org086b8b5"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||
<div id="outline-container-org3f249e2" class="outline-4">
|
||||
<h4 id="org3f249e2"><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>
|
||||
@ -689,8 +689,8 @@ Reshapes a tensor into a vector.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd115cc5" class="outline-3">
|
||||
<h3 id="orgd115cc5"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||
<div id="outline-container-orga887fdc" class="outline-3">
|
||||
<h3 id="orga887fdc"><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
|
||||
@ -714,12 +714,12 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga9fdfb3" class="outline-3">
|
||||
<h3 id="orga9fdfb3"><span class="section-number-3">1.6</span> Set all elements</h3>
|
||||
<div id="outline-container-orgc95dd87" class="outline-3">
|
||||
<h3 id="orgc95dd87"><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-orga98ad79" class="outline-4">
|
||||
<h4 id="orga98ad79"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||
<div id="outline-container-org1c41ac8" class="outline-4">
|
||||
<h4 id="org1c41ac8"><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>
|
||||
@ -729,8 +729,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2da5579" class="outline-4">
|
||||
<h4 id="org2da5579"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||
<div id="outline-container-org1ccb9d9" class="outline-4">
|
||||
<h4 id="org1ccb9d9"><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>
|
||||
@ -740,8 +740,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge46ef79" class="outline-4">
|
||||
<h4 id="orge46ef79"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||
<div id="outline-container-org0487f76" class="outline-4">
|
||||
<h4 id="org0487f76"><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>
|
||||
@ -752,8 +752,8 @@ For example:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcae4d18" class="outline-3">
|
||||
<h3 id="orgcae4d18"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||
<div id="outline-container-org3350c48" class="outline-3">
|
||||
<h3 id="org3350c48"><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>
|
||||
@ -836,12 +836,12 @@ Converts a <code>double*</code> to a tensor.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org099e44e" class="outline-2">
|
||||
<h2 id="org099e44e"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div id="outline-container-org00d32d0" class="outline-2">
|
||||
<h2 id="org00d32d0"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orga28cb21" class="outline-3">
|
||||
<h3 id="orga28cb21"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div id="outline-container-orgd0ff2a5" class="outline-3">
|
||||
<h3 id="orgd0ff2a5"><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:
|
||||
@ -853,7 +853,7 @@ Matrix multiplication with a BLAS interface:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="org3cc54a7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge9c37b3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1012,8 +1012,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8544017" class="outline-3">
|
||||
<h3 id="org8544017"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
||||
<div id="outline-container-org8038619" class="outline-3">
|
||||
<h3 id="org8038619"><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>
|
||||
@ -1022,7 +1022,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="orgf4001f6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org365e376" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1208,8 +1208,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga702ba3" class="outline-3">
|
||||
<h3 id="orga702ba3"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
||||
<div id="outline-container-orgcdfeb39" class="outline-3">
|
||||
<h3 id="orgcdfeb39"><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:
|
||||
@ -1221,7 +1221,7 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="org88a506f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1a30391" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1315,8 +1315,8 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org093d772" class="outline-3">
|
||||
<h3 id="org093d772"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
||||
<div id="outline-container-orga8522f6" class="outline-3">
|
||||
<h3 id="orga8522f6"><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
|
||||
@ -1334,7 +1334,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="org9ae3567" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc12c518" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1530,8 +1530,8 @@ determinant with the inverse:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc23a225" class="outline-3">
|
||||
<h3 id="orgc23a225"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
||||
<div id="outline-container-orgf825e5c" class="outline-3">
|
||||
<h3 id="orgf825e5c"><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>
|
||||
@ -1541,7 +1541,7 @@ NumPy arrays implies that sizes of the input and output arrays are provided.
|
||||
</p>
|
||||
|
||||
|
||||
<table id="orgff8d709" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6f13c02" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1663,13 +1663,13 @@ LAPACK library.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbb4815c" class="outline-4">
|
||||
<h4 id="orgbb4815c"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
<div id="outline-container-orgb82a222" class="outline-4">
|
||||
<h4 id="orgb82a222"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd75f203" class="outline-3">
|
||||
<h3 id="orgd75f203"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
||||
<div id="outline-container-org4d71864" class="outline-3">
|
||||
<h3 id="org4d71864"><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}\).
|
||||
@ -1732,7 +1732,7 @@ Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 08:32</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 09:50</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-10-13 Thu 08:32 -->
|
||||
<!-- 2022-10-13 Thu 09:50 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Context</title>
|
||||
@ -311,21 +311,21 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org640794d">1. Context handling</a>
|
||||
<li><a href="#org3fed704">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#orgfe9c4b5">1.1. Data structure</a></li>
|
||||
<li><a href="#org61bbe14">1.2. Creation</a></li>
|
||||
<li><a href="#orga85e406">1.3. Locking</a></li>
|
||||
<li><a href="#orgd06398b">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#orgf99b9a3">1.5. Destroy</a></li>
|
||||
<li><a href="#orgb6ad86f">1.1. Data structure</a></li>
|
||||
<li><a href="#orgdc962c5">1.2. Creation</a></li>
|
||||
<li><a href="#orgf2f9696">1.3. Locking</a></li>
|
||||
<li><a href="#org4af663a">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org7a358d7">1.5. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org640794d" class="outline-2">
|
||||
<h2 id="org640794d"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-org3fed704" class="outline-2">
|
||||
<h2 id="org3fed704"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The context variable is a handle for the state of the library,
|
||||
@ -338,7 +338,7 @@ A value of <code>QMCKL_NULL_CONTEXT</code> for the context is equivalent to a
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="org2a0ffdc"><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="org6cc4ac9"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int64_t</span> <span style="color: #228b22;">qmckl_context</span> ;
|
||||
<span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">QMCKL_NULL_CONTEXT</span> (qmckl_context) 0
|
||||
</pre>
|
||||
</div>
|
||||
@ -356,8 +356,8 @@ and <code>ctx</code> is a <code>qmckl_context_struct*</code> pointer.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfe9c4b5" class="outline-3">
|
||||
<h3 id="orgfe9c4b5"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgb6ad86f" class="outline-3">
|
||||
<h3 id="orgb6ad86f"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
A tag is used internally to check if the memory domain pointed
|
||||
@ -385,7 +385,7 @@ to be recomputed. The date is incremented when the context is touched.
|
||||
|
||||
<p>
|
||||
When a new element is added to the context, the functions
|
||||
<a href="#org61bbe14"><code>qmckl_context_create</code></a> <a href="#orgf99b9a3"><code>qmckl_context_destroy</code></a> and <a href="#orgd06398b"><code>qmckl_context_copy</code></a>
|
||||
<a href="#orgdc962c5"><code>qmckl_context_create</code></a> <a href="#org7a358d7"><code>qmckl_context_destroy</code></a> and <a href="#org4af663a"><code>qmckl_context_copy</code></a>
|
||||
should be updated in order to make deep copies.
|
||||
</p>
|
||||
|
||||
@ -406,8 +406,8 @@ This has the effect to increment the date of the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org61bbe14" class="outline-3">
|
||||
<h3 id="org61bbe14"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-orgdc962c5" class="outline-3">
|
||||
<h3 id="orgdc962c5"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
@ -424,8 +424,8 @@ To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orga85e406" class="outline-3">
|
||||
<h3 id="orga85e406"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-orgf2f9696" class="outline-3">
|
||||
<h3 id="orgf2f9696"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
For thread safety, the context may be locked/unlocked. The lock is
|
||||
@ -441,8 +441,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgd06398b" class="outline-3">
|
||||
<h3 id="orgd06398b"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div id="outline-container-org4af663a" class="outline-3">
|
||||
<h3 id="org4af663a"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
<code>qmckl_context_copy</code> makes a deep copy of a context. It returns
|
||||
@ -450,8 +450,8 @@ number of times the thread has locked it is saved in the
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgf99b9a3" class="outline-3">
|
||||
<h3 id="orgf99b9a3"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-org7a358d7" class="outline-3">
|
||||
<h3 id="org7a358d7"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
The context is destroyed with <code>qmckl_context_destroy</code>, leaving the ancestors untouched.
|
||||
@ -469,7 +469,7 @@ It frees the context, and returns the previous context.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 08:32</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 09:50</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-10-13 Thu 08:33 -->
|
||||
<!-- 2022-10-13 Thu 09:50 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Slater Determinant</title>
|
||||
@ -311,32 +311,32 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org0231d9e">1. Context</a>
|
||||
<li><a href="#org09c1e57">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgda2773d">1.1. Data structure</a></li>
|
||||
<li><a href="#org0ab8c5f">1.2. Access functions</a></li>
|
||||
<li><a href="#org4acb55e">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org4f222b4">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#org11ca5be">1.5. Test</a></li>
|
||||
<li><a href="#org89a65d9">1.1. Data structure</a></li>
|
||||
<li><a href="#orgfc0814a">1.2. Access functions</a></li>
|
||||
<li><a href="#org2bdd8cc">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org8fc7cb9">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#orgcbfcfd6">1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0195b10">2. Computation</a>
|
||||
<li><a href="#org475773f">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org3ceb301">2.1. Determinant matrix</a>
|
||||
<li><a href="#orgeeb37ad">2.1. Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org5cf15da">2.1.1. Get</a></li>
|
||||
<li><a href="#orgae73b90">2.1.2. Provide</a></li>
|
||||
<li><a href="#org39cdbcd">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#orgc302d93">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#org24de2dc">2.1.5. Test</a></li>
|
||||
<li><a href="#orga6cba2b">2.1.1. Get</a></li>
|
||||
<li><a href="#org4a28dc6">2.1.2. Provide</a></li>
|
||||
<li><a href="#org37d438a">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#org4762669">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#orgb2be8bd">2.1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org25d7a54">2.2. Inverse of Determinant matrix</a>
|
||||
<li><a href="#org9b6dd94">2.2. Inverse of Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org949b10f">2.2.1. Get</a></li>
|
||||
<li><a href="#org3c30bde">2.2.2. Provide</a></li>
|
||||
<li><a href="#org3d2ff9e">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#orgfd984e3">2.2.4. Compute beta</a></li>
|
||||
<li><a href="#orgbc6bcda">2.2.1. Get</a></li>
|
||||
<li><a href="#org3187ceb">2.2.2. Provide</a></li>
|
||||
<li><a href="#org659c3e6">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#orgf8e0e71">2.2.4. Compute beta</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -345,8 +345,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0231d9e" class="outline-2">
|
||||
<h2 id="org0231d9e"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org09c1e57" class="outline-2">
|
||||
<h2 id="org09c1e57"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following arrays are stored in the context:
|
||||
@ -522,8 +522,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgda2773d" class="outline-3">
|
||||
<h3 id="orgda2773d"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org89a65d9" class="outline-3">
|
||||
<h3 id="org89a65d9"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_determinant_struct</span> {
|
||||
@ -591,8 +591,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0ab8c5f" class="outline-3">
|
||||
<h3 id="org0ab8c5f"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgfc0814a" class="outline-3">
|
||||
<h3 id="orgfc0814a"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
When all the data for the slater determinants have been provided, the following
|
||||
@ -606,8 +606,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4acb55e" class="outline-3">
|
||||
<h3 id="org4acb55e"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org2bdd8cc" class="outline-3">
|
||||
<h3 id="org2bdd8cc"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To set the basis set, all the following functions need to be
|
||||
@ -630,24 +630,24 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4f222b4" class="outline-3">
|
||||
<h3 id="org4f222b4"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
<div id="outline-container-org8fc7cb9" class="outline-3">
|
||||
<h3 id="org8fc7cb9"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
</div>
|
||||
<div id="outline-container-org11ca5be" class="outline-3">
|
||||
<h3 id="org11ca5be"><span class="section-number-3">1.5</span> Test</h3>
|
||||
<div id="outline-container-orgcbfcfd6" class="outline-3">
|
||||
<h3 id="orgcbfcfd6"><span class="section-number-3">1.5</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org0195b10" class="outline-2">
|
||||
<h2 id="org0195b10"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org475773f" class="outline-2">
|
||||
<h2 id="org475773f"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org3ceb301" class="outline-3">
|
||||
<h3 id="org3ceb301"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
||||
<div id="outline-container-orgeeb37ad" class="outline-3">
|
||||
<h3 id="orgeeb37ad"><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-org5cf15da" class="outline-4">
|
||||
<h4 id="org5cf15da"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orga6cba2b" class="outline-4">
|
||||
<h4 id="orga6cba2b"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_det_vgl_alpha</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">det_vgl_alpha</span>);
|
||||
@ -657,14 +657,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgae73b90" class="outline-4">
|
||||
<h4 id="orgae73b90"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org4a28dc6" class="outline-4">
|
||||
<h4 id="org4a28dc6"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org39cdbcd" class="outline-4">
|
||||
<h4 id="org39cdbcd"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org37d438a" class="outline-4">
|
||||
<h4 id="org37d438a"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="orgf6b4ec4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1ba8be3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -838,10 +838,10 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc302d93" class="outline-4">
|
||||
<h4 id="orgc302d93"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org4762669" class="outline-4">
|
||||
<h4 id="org4762669"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<table id="org0d30026" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org54b728f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1015,18 +1015,18 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org24de2dc" class="outline-4">
|
||||
<h4 id="org24de2dc"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
<div id="outline-container-orgb2be8bd" class="outline-4">
|
||||
<h4 id="orgb2be8bd"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org25d7a54" class="outline-3">
|
||||
<h3 id="org25d7a54"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
||||
<div id="outline-container-org9b6dd94" class="outline-3">
|
||||
<h3 id="org9b6dd94"><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-org949b10f" class="outline-4">
|
||||
<h4 id="org949b10f"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgbc6bcda" class="outline-4">
|
||||
<h4 id="orgbc6bcda"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_det_inv_matrix_alpha</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">det_inv_matrix_alpha</span>);
|
||||
@ -1040,14 +1040,14 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3c30bde" class="outline-4">
|
||||
<h4 id="org3c30bde"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org3187ceb" class="outline-4">
|
||||
<h4 id="org3187ceb"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3d2ff9e" class="outline-4">
|
||||
<h4 id="org3d2ff9e"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org659c3e6" class="outline-4">
|
||||
<h4 id="org659c3e6"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org8268a39" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2c63950" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1209,10 +1209,10 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfd984e3" class="outline-4">
|
||||
<h4 id="orgfd984e3"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div id="outline-container-orgf8e0e71" class="outline-4">
|
||||
<h4 id="orgf8e0e71"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<table id="org7bb12de" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org521f3d4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1379,7 +1379,7 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 08:33</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 09:50</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-10-13 Thu 08:33 -->
|
||||
<!-- 2022-10-13 Thu 09:50 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Inter-particle distances</title>
|
||||
@ -333,54 +333,54 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgcf5227e">1. Squared distance</a>
|
||||
<li><a href="#orgeca089a">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#org9e4328b">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#orgdbd6f00">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#org2b5e0df">1.1.1. Performance</a></li>
|
||||
<li><a href="#orgf5cd6a7">1.1.1. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org245e06e">2. Distance</a>
|
||||
<li><a href="#orga25797a">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#orgf840e78">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#org20efd47">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#orga9419ae">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orge4beaef">2.1.2. C header</a></li>
|
||||
<li><a href="#orgcc39284">2.1.3. Source</a></li>
|
||||
<li><a href="#org5f8f2e6">2.1.4. Performance</a></li>
|
||||
<li><a href="#orgd264614">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orgfbe5ce4">2.1.2. C header</a></li>
|
||||
<li><a href="#org66d8dbb">2.1.3. Source</a></li>
|
||||
<li><a href="#org9d54ac2">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org161a834">3. Rescaled Distance</a>
|
||||
<li><a href="#org5c2cb66">3. Rescaled Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org4697b55">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<li><a href="#orgdec0574">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<ul>
|
||||
<li><a href="#org2c5cfae">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orgd6378b5">3.1.2. C header</a></li>
|
||||
<li><a href="#org744179f">3.1.3. Source</a></li>
|
||||
<li><a href="#org654a147">3.1.4. Performance</a></li>
|
||||
<li><a href="#orgff2bb09">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orgcef01b9">3.1.2. C header</a></li>
|
||||
<li><a href="#org435a6dd">3.1.3. Source</a></li>
|
||||
<li><a href="#orgbf8e9da">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0f2d2ca">4. Rescaled Distance Derivatives</a>
|
||||
<li><a href="#orgf514d06">4. Rescaled Distance Derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#org8a0bfa5">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a></li>
|
||||
<li><a href="#orgdb08e27">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcf5227e" class="outline-2">
|
||||
<h2 id="orgcf5227e"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-orgeca089a" class="outline-2">
|
||||
<h2 id="orgeca089a"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org9e4328b" class="outline-3">
|
||||
<h3 id="org9e4328b"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-orgdbd6f00" class="outline-3">
|
||||
<h3 id="orgdbd6f00"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
<code>qmckl_distance_sq</code> computes the matrix of the squared distances
|
||||
@ -393,7 +393,7 @@ between all pairs of points in two sets, one point within each set:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="org9d19572" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org01d44aa" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -659,8 +659,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2b5e0df" class="outline-4">
|
||||
<h4 id="org2b5e0df"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div id="outline-container-orgf5cd6a7" class="outline-4">
|
||||
<h4 id="orgf5cd6a7"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-1-1-1">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are
|
||||
@ -670,12 +670,12 @@ transposed.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org245e06e" class="outline-2">
|
||||
<h2 id="org245e06e"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-orga25797a" class="outline-2">
|
||||
<h2 id="orga25797a"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgf840e78" class="outline-3">
|
||||
<h3 id="orgf840e78"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div id="outline-container-org20efd47" class="outline-3">
|
||||
<h3 id="org20efd47"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
<code>qmckl_distance</code> computes the matrix of the distances between all
|
||||
@ -693,7 +693,7 @@ If the input array is normal (<code>'N'</code>), the xyz coordinates are in
|
||||
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
||||
</p>
|
||||
|
||||
<table id="orgec7e7a9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb3d9a40" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -794,8 +794,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga9419ae" class="outline-4">
|
||||
<h4 id="orga9419ae"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgd264614" class="outline-4">
|
||||
<h4 id="orgd264614"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -813,8 +813,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge4beaef" class="outline-4">
|
||||
<h4 id="orge4beaef"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgfbe5ce4" class="outline-4">
|
||||
<h4 id="orgfbe5ce4"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance</span> (
|
||||
@ -834,8 +834,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcc39284" class="outline-4">
|
||||
<h4 id="orgcc39284"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-org66d8dbb" class="outline-4">
|
||||
<h4 id="org66d8dbb"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
||||
@ -1002,8 +1002,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5f8f2e6" class="outline-4">
|
||||
<h4 id="org5f8f2e6"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org9d54ac2" class="outline-4">
|
||||
<h4 id="org9d54ac2"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are transposed.
|
||||
@ -1013,12 +1013,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org161a834" class="outline-2">
|
||||
<h2 id="org161a834"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div id="outline-container-org5c2cb66" class="outline-2">
|
||||
<h2 id="org5c2cb66"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org4697b55" class="outline-3">
|
||||
<h3 id="org4697b55"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div id="outline-container-orgdec0574" class="outline-3">
|
||||
<h3 id="orgdec0574"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
<code>qmckl_distance_rescaled</code> computes the matrix of the rescaled distances between all
|
||||
@ -1036,7 +1036,7 @@ If the input array is normal (<code>'N'</code>), the xyz coordinates are in
|
||||
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
||||
</p>
|
||||
|
||||
<table id="orgf9be60e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0b316aa" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1144,8 +1144,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2c5cfae" class="outline-4">
|
||||
<h4 id="org2c5cfae"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgff2bb09" class="outline-4">
|
||||
<h4 id="orgff2bb09"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-3-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1163,8 +1163,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd6378b5" class="outline-4">
|
||||
<h4 id="orgd6378b5"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgcef01b9" class="outline-4">
|
||||
<h4 id="orgcef01b9"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance_rescaled</span> (
|
||||
@ -1185,8 +1185,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org744179f" class="outline-4">
|
||||
<h4 id="org744179f"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-org435a6dd" class="outline-4">
|
||||
<h4 id="org435a6dd"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-3-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_rescaled_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
||||
@ -1356,8 +1356,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org654a147" class="outline-4">
|
||||
<h4 id="org654a147"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgbf8e9da" class="outline-4">
|
||||
<h4 id="orgbf8e9da"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-3-1-4">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are transposed.
|
||||
@ -1366,12 +1366,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org0f2d2ca" class="outline-2">
|
||||
<h2 id="org0f2d2ca"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div id="outline-container-orgf514d06" class="outline-2">
|
||||
<h2 id="orgf514d06"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org8a0bfa5" class="outline-3">
|
||||
<h3 id="org8a0bfa5"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_deriv_e</code></h3>
|
||||
<div id="outline-container-orgdb08e27" class="outline-3">
|
||||
<h3 id="orgdb08e27"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_deriv_e</code></h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
<code>qmckl_distance_rescaled_deriv_e</code> computes the matrix of the gradient and laplacian of the
|
||||
@ -1438,7 +1438,7 @@ If the input array is normal (<code>'N'</code>), the xyz coordinates are in
|
||||
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
||||
</p>
|
||||
|
||||
<table id="org676b3e6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgca59e86" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1776,7 +1776,7 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 08:33</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 09:50</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-10-13 Thu 08:32 -->
|
||||
<!-- 2022-10-13 Thu 09:50 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Electrons</title>
|
||||
@ -333,59 +333,59 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org1052bcd">1. Context</a>
|
||||
<li><a href="#org47d8bb8">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org7e9b4a3">1.1. Data structure</a></li>
|
||||
<li><a href="#orgdd8e13e">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org46dcffb">1.3. Access functions</a>
|
||||
<li><a href="#org01c6885">1.1. Data structure</a></li>
|
||||
<li><a href="#org1667eae">1.2. Initialization functions</a></li>
|
||||
<li><a href="#orgabb2906">1.3. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgf7a115c">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#org0e4e41f">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#orgb14ef9f">1.3.3. Electron coordinates</a></li>
|
||||
<li><a href="#org811a58a">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#org6317bed">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#orgab8559c">1.3.3. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org38bb785">1.4. Test</a></li>
|
||||
<li><a href="#orgc67b178">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1b7a202">2. Computation</a>
|
||||
<li><a href="#org6d9d2b3">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgdb6b964">2.1. Electron-electron distances</a>
|
||||
<li><a href="#orgfbff76c">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgdc34db2">2.1.1. Get</a></li>
|
||||
<li><a href="#orgb94005d">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgac0c253">2.1.3. Test</a></li>
|
||||
<li><a href="#org9371b52">2.1.1. Get</a></li>
|
||||
<li><a href="#orgf39b20e">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgd3aa927">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org91b127a">2.2. Electron-electron potential</a>
|
||||
<li><a href="#orgc76f649">2.2. Electron-electron potential</a>
|
||||
<ul>
|
||||
<li><a href="#org34a4fe4">2.2.1. Get</a></li>
|
||||
<li><a href="#org76478de">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgd986c6b">2.2.3. Test</a></li>
|
||||
<li><a href="#orgda7129e">2.2.1. Get</a></li>
|
||||
<li><a href="#org45b2ae6">2.2.2. Compute</a></li>
|
||||
<li><a href="#org746f74f">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org95efc53">2.3. Electron-nucleus distances</a>
|
||||
<li><a href="#orge080849">2.3. Electron-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgf0bdf55">2.3.1. Get</a></li>
|
||||
<li><a href="#org31a511c">2.3.2. Compute</a></li>
|
||||
<li><a href="#orgf3a0abf">2.3.3. Test</a></li>
|
||||
<li><a href="#org16b9cdc">2.3.1. Get</a></li>
|
||||
<li><a href="#org2167e15">2.3.2. Compute</a></li>
|
||||
<li><a href="#org862cfb4">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1ba6246">2.4. Electron-nucleus potential</a>
|
||||
<li><a href="#org41c3cd2">2.4. Electron-nucleus potential</a>
|
||||
<ul>
|
||||
<li><a href="#orga562891">2.4.1. Get</a></li>
|
||||
<li><a href="#orgfbb1214">2.4.2. Compute</a></li>
|
||||
<li><a href="#org2007de5">2.4.3. Test</a></li>
|
||||
<li><a href="#org14f30d1">2.4.1. Get</a></li>
|
||||
<li><a href="#orgadab69e">2.4.2. Compute</a></li>
|
||||
<li><a href="#orgad35d97">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge3801f0">2.5. Generate initial coordinates</a></li>
|
||||
<li><a href="#org1cee16a">2.5. Generate initial coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1052bcd" class="outline-2">
|
||||
<h2 id="org1052bcd"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org47d8bb8" class="outline-2">
|
||||
<h2 id="org47d8bb8"><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:
|
||||
@ -526,8 +526,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7e9b4a3" class="outline-3">
|
||||
<h3 id="org7e9b4a3"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org01c6885" class="outline-3">
|
||||
<h3 id="org01c6885"><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">
|
||||
@ -596,8 +596,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdd8e13e" class="outline-3">
|
||||
<h3 id="orgdd8e13e"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-org1667eae" class="outline-3">
|
||||
<h3 id="org1667eae"><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
|
||||
@ -670,8 +670,8 @@ in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org46dcffb" class="outline-3">
|
||||
<h3 id="org46dcffb"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div id="outline-container-orgabb2906" class="outline-3">
|
||||
<h3 id="orgabb2906"><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
|
||||
@ -683,12 +683,12 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf7a115c" class="outline-4">
|
||||
<h4 id="orgf7a115c"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
<div id="outline-container-org811a58a" class="outline-4">
|
||||
<h4 id="org811a58a"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0e4e41f" class="outline-4">
|
||||
<h4 id="org0e4e41f"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
||||
<div id="outline-container-org6317bed" class="outline-4">
|
||||
<h4 id="org6317bed"><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
|
||||
@ -697,8 +697,8 @@ the wave function. <code>walk_num</code> is the number of walkers.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb14ef9f" class="outline-4">
|
||||
<h4 id="orgb14ef9f"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
||||
<div id="outline-container-orgab8559c" class="outline-4">
|
||||
<h4 id="orgab8559c"><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
|
||||
@ -748,8 +748,8 @@ current points.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org38bb785" class="outline-3">
|
||||
<h3 id="org38bb785"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orgc67b178" class="outline-3">
|
||||
<h3 id="orgc67b178"><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>*/
|
||||
@ -828,8 +828,8 @@ rc = qmckl_get_electron_coord (context, <span style="color: #8b2252;">'N'</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1b7a202" class="outline-2">
|
||||
<h2 id="org1b7a202"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org6d9d2b3" class="outline-2">
|
||||
<h2 id="org6d9d2b3"><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
|
||||
@ -842,12 +842,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdb6b964" class="outline-3">
|
||||
<h3 id="orgdb6b964"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-orgfbff76c" class="outline-3">
|
||||
<h3 id="orgfbff76c"><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-orgdc34db2" class="outline-4">
|
||||
<h4 id="orgdc34db2"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org9371b52" class="outline-4">
|
||||
<h4 id="org9371b52"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_ee_distance</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">distance</span>);
|
||||
@ -856,10 +856,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb94005d" class="outline-4">
|
||||
<h4 id="orgb94005d"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-orgf39b20e" class="outline-4">
|
||||
<h4 id="orgf39b20e"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org6277c92" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5df1696" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -964,8 +964,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgac0c253" class="outline-4">
|
||||
<h4 id="orgac0c253"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orgd3aa927" class="outline-4">
|
||||
<h4 id="orgd3aa927"><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>));
|
||||
@ -999,8 +999,8 @@ rc = qmckl_get_electron_ee_distance(context, ee_distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org91b127a" class="outline-3">
|
||||
<h3 id="org91b127a"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
||||
<div id="outline-container-orgc76f649" class="outline-3">
|
||||
<h3 id="orgc76f649"><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
|
||||
@ -1018,8 +1018,8 @@ distance.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org34a4fe4" class="outline-4">
|
||||
<h4 id="org34a4fe4"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgda7129e" class="outline-4">
|
||||
<h4 id="orgda7129e"><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>);
|
||||
@ -1028,10 +1028,10 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org76478de" class="outline-4">
|
||||
<h4 id="org76478de"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org45b2ae6" class="outline-4">
|
||||
<h4 id="org45b2ae6"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orge067eeb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgcb5b3a8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1147,8 +1147,8 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd986c6b" class="outline-4">
|
||||
<h4 id="orgd986c6b"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org746f74f" class="outline-4">
|
||||
<h4 id="org746f74f"><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];
|
||||
@ -1160,12 +1160,12 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org95efc53" class="outline-3">
|
||||
<h3 id="org95efc53"><span class="section-number-3">2.3</span> Electron-nucleus distances</h3>
|
||||
<div id="outline-container-orge080849" class="outline-3">
|
||||
<h3 id="orge080849"><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-orgf0bdf55" class="outline-4">
|
||||
<h4 id="orgf0bdf55"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org16b9cdc" class="outline-4">
|
||||
<h4 id="org16b9cdc"><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>);
|
||||
@ -1174,10 +1174,10 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org31a511c" class="outline-4">
|
||||
<h4 id="org31a511c"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-org2167e15" class="outline-4">
|
||||
<h4 id="org2167e15"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="orgfaaacae" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga9b3bde" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1302,8 +1302,8 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf3a0abf" class="outline-4">
|
||||
<h4 id="orgf3a0abf"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-org862cfb4" class="outline-4">
|
||||
<h4 id="org862cfb4"><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">
|
||||
@ -1351,8 +1351,8 @@ rc = qmckl_get_electron_en_distance(context, &(en_distance[0][0][0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1ba6246" class="outline-3">
|
||||
<h3 id="org1ba6246"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
||||
<div id="outline-container-org41c3cd2" class="outline-3">
|
||||
<h3 id="org41c3cd2"><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
|
||||
@ -1370,8 +1370,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga562891" class="outline-4">
|
||||
<h4 id="orga562891"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org14f30d1" class="outline-4">
|
||||
<h4 id="org14f30d1"><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>);
|
||||
@ -1380,10 +1380,10 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfbb1214" class="outline-4">
|
||||
<h4 id="orgfbb1214"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-orgadab69e" class="outline-4">
|
||||
<h4 id="orgadab69e"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="org63b3689" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org896a6eb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1517,8 +1517,8 @@ distance and \[Z_A\] is the nuclear charge.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2007de5" class="outline-4">
|
||||
<h4 id="org2007de5"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-orgad35d97" class="outline-4">
|
||||
<h4 id="orgad35d97"><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];
|
||||
@ -1531,14 +1531,14 @@ rc = qmckl_get_electron_en_potential(context, &(en_potential[0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge3801f0" class="outline-3">
|
||||
<h3 id="orge3801f0"><span class="section-number-3">2.5</span> Generate initial coordinates</h3>
|
||||
<div id="outline-container-org1cee16a" class="outline-3">
|
||||
<h3 id="org1cee16a"><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: 2022-10-13 Thu 08:32</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 09:50</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-10-13 Thu 08:32 -->
|
||||
<!-- 2022-10-13 Thu 09:49 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Error handling</title>
|
||||
@ -311,29 +311,29 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgaec83fe">-</a></li>
|
||||
<li><a href="#org11c2a21">1. Decoding errors</a></li>
|
||||
<li><a href="#org0b36d20">2. Data structure in context</a></li>
|
||||
<li><a href="#org1b733f4">3. Updating errors in the context</a></li>
|
||||
<li><a href="#orgbbae5c1">4. Get the error</a></li>
|
||||
<li><a href="#org8226524">5. Failing</a></li>
|
||||
<li><a href="#org3f372c6">6. Last error</a>
|
||||
<li><a href="#org55a50d1">-</a></li>
|
||||
<li><a href="#org9b5fa78">1. Decoding errors</a></li>
|
||||
<li><a href="#org01d772c">2. Data structure in context</a></li>
|
||||
<li><a href="#org100133d">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org57f345f">4. Get the error</a></li>
|
||||
<li><a href="#orgfa5b096">5. Failing</a></li>
|
||||
<li><a href="#org7f2f710">6. Last error</a>
|
||||
<ul>
|
||||
<li><a href="#org96b6e51">6.1. Fortran inteface</a></li>
|
||||
<li><a href="#org46dc4e8">6.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbf7973a">7. Helper functions for debugging</a>
|
||||
<li><a href="#orgd0f1551">7. Helper functions for debugging</a>
|
||||
<ul>
|
||||
<li><a href="#org21d77d6">7.1. Fortran inteface</a></li>
|
||||
<li><a href="#orge0ba10e">7.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaec83fe" class="outline-2">
|
||||
<h2 id="orgaec83fe">-</h2>
|
||||
<div class="outline-text-2" id="text-orgaec83fe">
|
||||
<div id="outline-container-org55a50d1" class="outline-2">
|
||||
<h2 id="org55a50d1">-</h2>
|
||||
<div class="outline-text-2" id="text-org55a50d1">
|
||||
<p>
|
||||
The library should never make the calling programs abort, nor
|
||||
perform any input/output operations. This decision has to be taken
|
||||
@ -344,7 +344,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="orgfdbef65"><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="org83928c7"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int32_t</span> <span style="color: #228b22;">qmckl_exit_code</span>;
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@ -361,7 +361,7 @@ error code is returned to the program.
|
||||
Here is the complete list of exit codes.
|
||||
</p>
|
||||
|
||||
<table id="org58e5231" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf2693ae" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -569,8 +569,8 @@ string is assumed to be large enough to contain the error message
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org11c2a21" class="outline-2">
|
||||
<h2 id="org11c2a21"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-org9b5fa78" class="outline-2">
|
||||
<h2 id="org9b5fa78"><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
|
||||
@ -588,8 +588,8 @@ The text strings are extracted from the previous table.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org0b36d20" class="outline-2">
|
||||
<h2 id="org0b36d20"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-org01d772c" class="outline-2">
|
||||
<h2 id="org01d772c"><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
|
||||
@ -612,8 +612,8 @@ dynamic memory allocation.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1b733f4" class="outline-2">
|
||||
<h2 id="org1b733f4"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div id="outline-container-org100133d" class="outline-2">
|
||||
<h2 id="org100133d"><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>.
|
||||
@ -632,8 +632,8 @@ explaining the error. The exit code can't be <code>QMCKL_SUCCESS</code>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgbbae5c1" class="outline-2">
|
||||
<h2 id="orgbbae5c1"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div id="outline-container-org57f345f" class="outline-2">
|
||||
<h2 id="org57f345f"><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
|
||||
@ -652,8 +652,8 @@ function name and message is mandatory.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org8226524" class="outline-2">
|
||||
<h2 id="org8226524"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div id="outline-container-orgfa5b096" class="outline-2">
|
||||
<h2 id="orgfa5b096"><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
|
||||
@ -690,8 +690,8 @@ For example, this function can be used as
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3f372c6" class="outline-2">
|
||||
<h2 id="org3f372c6"><span class="section-number-2">6</span> Last error</h2>
|
||||
<div id="outline-container-org7f2f710" class="outline-2">
|
||||
<h2 id="org7f2f710"><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>.
|
||||
@ -703,13 +703,13 @@ Returns a string describing the last error, using <code>qmckl_get_error</code>.
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org96b6e51" class="outline-3">
|
||||
<h3 id="org96b6e51"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-org46dc4e8" class="outline-3">
|
||||
<h3 id="org46dc4e8"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbf7973a" class="outline-2">
|
||||
<h2 id="orgbf7973a"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
||||
<div id="outline-container-orgd0f1551" class="outline-2">
|
||||
<h2 id="orgd0f1551"><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
|
||||
@ -735,14 +735,14 @@ It should be used as:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org21d77d6" class="outline-3">
|
||||
<h3 id="org21d77d6"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-orge0ba10e" class="outline-3">
|
||||
<h3 id="orge0ba10e"><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: 2022-10-13 Thu 08:32</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 09:49</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-10-13 Thu 08:32 -->
|
||||
<!-- 2022-10-13 Thu 09:50 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Code examples</title>
|
||||
@ -333,27 +333,27 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org63af1d6">1. Python</a>
|
||||
<li><a href="#org34d5edd">1. Python</a>
|
||||
<ul>
|
||||
<li><a href="#org7e3e34a">1.1. Check numerically that MOs are orthonormal</a></li>
|
||||
<li><a href="#org75f7c16">1.1. Check numerically that MOs are orthonormal</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5f63da1">2. Fortran</a>
|
||||
<li><a href="#org3e0200b">2. Fortran</a>
|
||||
<ul>
|
||||
<li><a href="#orgddeeacf">2.1. Checking errors</a></li>
|
||||
<li><a href="#org688a4f9">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
<li><a href="#org68d6c4a">2.1. Checking errors</a></li>
|
||||
<li><a href="#org2460550">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org63af1d6" class="outline-2">
|
||||
<h2 id="org63af1d6"><span class="section-number-2">1</span> Python</h2>
|
||||
<div id="outline-container-org34d5edd" class="outline-2">
|
||||
<h2 id="org34d5edd"><span class="section-number-2">1</span> Python</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org7e3e34a" class="outline-3">
|
||||
<h3 id="org7e3e34a"><span class="section-number-3">1.1</span> Check numerically that MOs are orthonormal</h3>
|
||||
<div id="outline-container-org75f7c16" class="outline-3">
|
||||
<h3 id="org75f7c16"><span class="section-number-3">1.1</span> Check numerically that MOs are orthonormal</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
In this example, we will compute numerically the overlap
|
||||
@ -529,12 +529,12 @@ and finally we compute the overlap between all the MOs as
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5f63da1" class="outline-2">
|
||||
<h2 id="org5f63da1"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div id="outline-container-org3e0200b" class="outline-2">
|
||||
<h2 id="org3e0200b"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgddeeacf" class="outline-3">
|
||||
<h3 id="orgddeeacf"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div id="outline-container-org68d6c4a" class="outline-3">
|
||||
<h3 id="org68d6c4a"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
All QMCkl functions return an error code. A convenient way to handle
|
||||
@ -543,7 +543,7 @@ error in text format and exits the program.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90" id="org438b5e0"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<pre class="src src-f90" id="orgf22a9e6"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl</span>
|
||||
<span style="color: #a020f0;">implicit</span> <span style="color: #228b22;">none</span>
|
||||
<span style="color: #228b22;">integer</span>(qmckl_exit_code), <span style="color: #a020f0;">intent</span>(in) ::<span style="color: #a0522d;"> rc</span>
|
||||
@ -561,8 +561,8 @@ error in text format and exits the program.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org688a4f9" class="outline-3">
|
||||
<h3 id="org688a4f9"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div id="outline-container-org2460550" class="outline-3">
|
||||
<h3 id="org2460550"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
The following program, in Fortran, computes the values of an atomic
|
||||
@ -781,7 +781,7 @@ We finally print the value and Laplacian of the AO:
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 08:32</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 09:50</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>
|
||||
<!-- 2022-10-13 Thu 08:32 -->
|
||||
<!-- 2022-10-13 Thu 09:50 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Local Energy</title>
|
||||
@ -333,44 +333,44 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org594380b">1. Context</a>
|
||||
<li><a href="#org27c5ae5">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org8903dab">1.1. Data structure</a></li>
|
||||
<li><a href="#org3017f7c">1.2. Access functions</a></li>
|
||||
<li><a href="#org1426ac6">1.1. Data structure</a></li>
|
||||
<li><a href="#org1c3e248">1.2. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org448e00f">2. Computation</a>
|
||||
<li><a href="#org19041ae">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgda04fed">2.1. Kinetic energy</a>
|
||||
<li><a href="#org4af629a">2.1. Kinetic energy</a>
|
||||
<ul>
|
||||
<li><a href="#org2e39d41">2.1.1. Get</a></li>
|
||||
<li><a href="#orgaebc9f3">2.1.2. Provide</a></li>
|
||||
<li><a href="#org296c2b1">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org8101929">2.1.4. Test</a></li>
|
||||
<li><a href="#orge1239c7">2.1.1. Get</a></li>
|
||||
<li><a href="#orgddb2201">2.1.2. Provide</a></li>
|
||||
<li><a href="#orga379a1b">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#org08daebd">2.1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1726c4f">2.2. Potential energy</a>
|
||||
<li><a href="#orgbf2dddd">2.2. Potential energy</a>
|
||||
<ul>
|
||||
<li><a href="#org1a310d0">2.2.1. Get</a></li>
|
||||
<li><a href="#org696a850">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgad7b7e9">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org4b77a6f">2.2.4. Test</a></li>
|
||||
<li><a href="#org7442ec5">2.2.1. Get</a></li>
|
||||
<li><a href="#org4d667d2">2.2.2. Provide</a></li>
|
||||
<li><a href="#orge18da54">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org5ae974c">2.2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8422ffa">2.3. Local energy</a>
|
||||
<li><a href="#orgb1bc662">2.3. Local energy</a>
|
||||
<ul>
|
||||
<li><a href="#org7e3f2d3">2.3.1. Get</a></li>
|
||||
<li><a href="#org7d6a47e">2.3.2. Provide</a></li>
|
||||
<li><a href="#org1462df4">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#org30a8b95">2.3.4. Test</a></li>
|
||||
<li><a href="#org701e7ae">2.3.1. Get</a></li>
|
||||
<li><a href="#org700e75d">2.3.2. Provide</a></li>
|
||||
<li><a href="#orgeceb9a4">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#org2e95721">2.3.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7e2f2d9">2.4. Drift vector</a>
|
||||
<li><a href="#org50697ac">2.4. Drift vector</a>
|
||||
<ul>
|
||||
<li><a href="#orgb26d3ec">2.4.1. Get</a></li>
|
||||
<li><a href="#orga97306d">2.4.2. Provide</a></li>
|
||||
<li><a href="#orgde0daa3">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#orgf166f78">2.4.4. Test</a></li>
|
||||
<li><a href="#org5785b9f">2.4.1. Get</a></li>
|
||||
<li><a href="#org17974a1">2.4.2. Provide</a></li>
|
||||
<li><a href="#org61df66b">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org39a9e95">2.4.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -379,8 +379,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org594380b" class="outline-2">
|
||||
<h2 id="org594380b"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org27c5ae5" class="outline-2">
|
||||
<h2 id="org27c5ae5"><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:
|
||||
@ -453,8 +453,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8903dab" class="outline-3">
|
||||
<h3 id="org8903dab"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org1426ac6" class="outline-3">
|
||||
<h3 id="org1426ac6"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_local_energy_struct</span> {
|
||||
@ -488,8 +488,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3017f7c" class="outline-3">
|
||||
<h3 id="org3017f7c"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org1c3e248" class="outline-3">
|
||||
<h3 id="org1c3e248"><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
|
||||
@ -504,12 +504,12 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org448e00f" class="outline-2">
|
||||
<h2 id="org448e00f"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org19041ae" class="outline-2">
|
||||
<h2 id="org19041ae"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgda04fed" class="outline-3">
|
||||
<h3 id="orgda04fed"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div id="outline-container-org4af629a" class="outline-3">
|
||||
<h3 id="org4af629a"><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:
|
||||
@ -533,8 +533,8 @@ case is given as follows:
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2e39d41" class="outline-4">
|
||||
<h4 id="org2e39d41"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orge1239c7" class="outline-4">
|
||||
<h4 id="orge1239c7"><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>);
|
||||
@ -543,14 +543,14 @@ case is given as follows:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaebc9f3" class="outline-4">
|
||||
<h4 id="orgaebc9f3"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-orgddb2201" class="outline-4">
|
||||
<h4 id="orgddb2201"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org296c2b1" class="outline-4">
|
||||
<h4 id="org296c2b1"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
||||
<div id="outline-container-orga379a1b" class="outline-4">
|
||||
<h4 id="orga379a1b"><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="orge48be0e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org29a4b65" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -779,12 +779,12 @@ case is given as follows:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8101929" class="outline-4">
|
||||
<h4 id="org8101929"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
<div id="outline-container-org08daebd" class="outline-4">
|
||||
<h4 id="org08daebd"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org1726c4f" class="outline-3">
|
||||
<h3 id="org1726c4f"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div id="outline-container-orgbf2dddd" class="outline-3">
|
||||
<h3 id="orgbf2dddd"><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
|
||||
@ -820,8 +820,8 @@ contributions.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1a310d0" class="outline-4">
|
||||
<h4 id="org1a310d0"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org7442ec5" class="outline-4">
|
||||
<h4 id="org7442ec5"><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>);
|
||||
@ -830,14 +830,14 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org696a850" class="outline-4">
|
||||
<h4 id="org696a850"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org4d667d2" class="outline-4">
|
||||
<h4 id="org4d667d2"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgad7b7e9" class="outline-4">
|
||||
<h4 id="orgad7b7e9"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
||||
<div id="outline-container-orge18da54" class="outline-4">
|
||||
<h4 id="orge18da54"><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="org367b679" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgeb14509" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -964,12 +964,12 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4b77a6f" class="outline-4">
|
||||
<h4 id="org4b77a6f"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
<div id="outline-container-org5ae974c" class="outline-4">
|
||||
<h4 id="org5ae974c"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org8422ffa" class="outline-3">
|
||||
<h3 id="org8422ffa"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div id="outline-container-orgb1bc662" class="outline-3">
|
||||
<h3 id="orgb1bc662"><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.
|
||||
@ -983,8 +983,8 @@ E_L = KE + PE
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org7e3f2d3" class="outline-4">
|
||||
<h4 id="org7e3f2d3"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org701e7ae" class="outline-4">
|
||||
<h4 id="org701e7ae"><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>);
|
||||
@ -993,14 +993,14 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7d6a47e" class="outline-4">
|
||||
<h4 id="org7d6a47e"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-org700e75d" class="outline-4">
|
||||
<h4 id="org700e75d"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1462df4" class="outline-4">
|
||||
<h4 id="org1462df4"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
||||
<div id="outline-container-orgeceb9a4" class="outline-4">
|
||||
<h4 id="orgeceb9a4"><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="org726700e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgca8619d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1096,12 +1096,12 @@ E_L = KE + PE
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org30a8b95" class="outline-4">
|
||||
<h4 id="org30a8b95"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
<div id="outline-container-org2e95721" class="outline-4">
|
||||
<h4 id="org2e95721"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org7e2f2d9" class="outline-3">
|
||||
<h3 id="org7e2f2d9"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div id="outline-container-org50697ac" class="outline-3">
|
||||
<h3 id="org50697ac"><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
|
||||
@ -1115,8 +1115,8 @@ with the determinant of the wavefunction.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb26d3ec" class="outline-4">
|
||||
<h4 id="orgb26d3ec"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org5785b9f" class="outline-4">
|
||||
<h4 id="org5785b9f"><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>);
|
||||
@ -1125,14 +1125,14 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga97306d" class="outline-4">
|
||||
<h4 id="orga97306d"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
<div id="outline-container-org17974a1" class="outline-4">
|
||||
<h4 id="org17974a1"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgde0daa3" class="outline-4">
|
||||
<h4 id="orgde0daa3"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
||||
<div id="outline-container-org61df66b" class="outline-4">
|
||||
<h4 id="org61df66b"><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="org506818d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1ea7057" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1353,15 +1353,15 @@ with the determinant of the wavefunction.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf166f78" class="outline-4">
|
||||
<h4 id="orgf166f78"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
<div id="outline-container-org39a9e95" class="outline-4">
|
||||
<h4 id="org39a9e95"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 08:32</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 09:50</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-10-13 Thu 08:32 -->
|
||||
<!-- 2022-10-13 Thu 09:50 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Memory management</title>
|
||||
@ -311,16 +311,16 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org21532ae">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#orgc01aaaf">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#org1c85ed1">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#orgfc92703">4. Get the size of a memory block</a></li>
|
||||
<li><a href="#org7ad8a72">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#orga18842c">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orge8a0b1c">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#orgdc5d1d9">4. Get the size of a memory block</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org21532ae" class="outline-2">
|
||||
<h2 id="org21532ae"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div id="outline-container-org7ad8a72" class="outline-2">
|
||||
<h2 id="org7ad8a72"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
Every time a new block of memory is allocated, the information
|
||||
@ -362,8 +362,8 @@ array, and the number of allocated blocks.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc01aaaf" class="outline-2">
|
||||
<h2 id="orgc01aaaf"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div id="outline-container-orga18842c" class="outline-2">
|
||||
<h2 id="orga18842c"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
Passing information to the allocation routine should be done by
|
||||
@ -372,8 +372,8 @@ passing an instance of a <code>qmckl_memory_info_struct</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1c85ed1" class="outline-2">
|
||||
<h2 id="org1c85ed1"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-orge8a0b1c" class="outline-2">
|
||||
<h2 id="orge8a0b1c"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
Memory allocation inside the library should be done with
|
||||
@ -537,8 +537,8 @@ allocation and needs to be updated.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgfc92703" class="outline-2">
|
||||
<h2 id="orgfc92703"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
||||
<div id="outline-container-orgdc5d1d9" class="outline-2">
|
||||
<h2 id="orgdc5d1d9"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
All the blocks allocated with <code>qmckl_malloc</code> keep track of how many
|
||||
@ -633,7 +633,7 @@ rc = qmckl_context_destroy(context);
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 08:32</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 09:50</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
122
qmckl_mo.html
122
qmckl_mo.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-10-13 Thu 08:33 -->
|
||||
<!-- 2022-10-13 Thu 09:50 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Molecular Orbitals</title>
|
||||
@ -311,49 +311,49 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org727a7dc">1. Context</a>
|
||||
<li><a href="#org559c049">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org54891dc">1.1. Data structure</a></li>
|
||||
<li><a href="#orgd1ef9ff">1.2. Initialization functions</a></li>
|
||||
<li><a href="#orgc2e6a0d">1.3. Access functions</a>
|
||||
<li><a href="#orgea29183">1.1. Data structure</a></li>
|
||||
<li><a href="#org4f9dcf2">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org26c4b0c">1.3. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org4f85e14">1.3.1. Fortran interfaces</a></li>
|
||||
<li><a href="#orgbc635f7">1.3.1. Fortran interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org948c43b">1.4. Update</a>
|
||||
<li><a href="#orga130e20">1.4. Update</a>
|
||||
<ul>
|
||||
<li><a href="#org997370c">1.4.1. Fortran interface</a></li>
|
||||
<li><a href="#org8e19131">1.4.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6c1438e">2. Computation</a>
|
||||
<li><a href="#org97cf5e4">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgad8dea9">2.1. Computation of MOs: values only</a>
|
||||
<li><a href="#org4c0abb6">2.1. Computation of MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#org96df35d">2.1.1. Get</a></li>
|
||||
<li><a href="#org2bbdc08">2.1.2. Provide</a></li>
|
||||
<li><a href="#org0b00f14">2.1.3. Compute</a></li>
|
||||
<li><a href="#org333db3f">2.1.4. HPC version</a></li>
|
||||
<li><a href="#orgc618570">2.1.1. Get</a></li>
|
||||
<li><a href="#org8a8c01a">2.1.2. Provide</a></li>
|
||||
<li><a href="#org647930a">2.1.3. Compute</a></li>
|
||||
<li><a href="#org8b6d938">2.1.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgab7614a">2.2. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<li><a href="#orgc58e7cc">2.2. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org522d47c">2.2.1. Get</a></li>
|
||||
<li><a href="#org04bfbb3">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgda46590">2.2.3. Compute</a></li>
|
||||
<li><a href="#org5bd62e3">2.2.4. HPC version</a></li>
|
||||
<li><a href="#orgff94ba2">2.2.1. Get</a></li>
|
||||
<li><a href="#orgcd05d5c">2.2.2. Provide</a></li>
|
||||
<li><a href="#org280cde1">2.2.3. Compute</a></li>
|
||||
<li><a href="#org0ca5de9">2.2.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga514014">2.3. Test</a></li>
|
||||
<li><a href="#org7dc762b">2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org727a7dc" class="outline-2">
|
||||
<h2 id="org727a7dc"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org559c049" class="outline-2">
|
||||
<h2 id="org559c049"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following arrays are stored in the context:
|
||||
@ -433,8 +433,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org54891dc" class="outline-3">
|
||||
<h3 id="org54891dc"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgea29183" class="outline-3">
|
||||
<h3 id="orgea29183"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_mo_basis_struct</span> {
|
||||
@ -486,8 +486,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd1ef9ff" class="outline-3">
|
||||
<h3 id="orgd1ef9ff"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-org4f9dcf2" class="outline-3">
|
||||
<h3 id="org4f9dcf2"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To set the basis set, all the following functions need to be
|
||||
@ -507,8 +507,8 @@ computed to accelerate the calculations.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc2e6a0d" class="outline-3">
|
||||
<h3 id="orgc2e6a0d"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div id="outline-container-org26c4b0c" class="outline-3">
|
||||
<h3 id="org26c4b0c"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
When all the data for the AOs have been provided, the following
|
||||
@ -521,13 +521,13 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4f85e14" class="outline-4">
|
||||
<h4 id="org4f85e14"><span class="section-number-4">1.3.1</span> Fortran interfaces</h4>
|
||||
<div id="outline-container-orgbc635f7" class="outline-4">
|
||||
<h4 id="orgbc635f7"><span class="section-number-4">1.3.1</span> Fortran interfaces</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org948c43b" class="outline-3">
|
||||
<h3 id="org948c43b"><span class="section-number-3">1.4</span> Update</h3>
|
||||
<div id="outline-container-orga130e20" class="outline-3">
|
||||
<h3 id="orga130e20"><span class="section-number-3">1.4</span> Update</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
Useless MOs can be removed, for instance virtual MOs in a single
|
||||
@ -548,22 +548,22 @@ otherwise it is kept.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org997370c" class="outline-4">
|
||||
<h4 id="org997370c"><span class="section-number-4">1.4.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-org8e19131" class="outline-4">
|
||||
<h4 id="org8e19131"><span class="section-number-4">1.4.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6c1438e" class="outline-2">
|
||||
<h2 id="org6c1438e"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org97cf5e4" class="outline-2">
|
||||
<h2 id="org97cf5e4"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgad8dea9" class="outline-3">
|
||||
<h3 id="orgad8dea9"><span class="section-number-3">2.1</span> Computation of MOs: values only</h3>
|
||||
<div id="outline-container-org4c0abb6" class="outline-3">
|
||||
<h3 id="org4c0abb6"><span class="section-number-3">2.1</span> Computation of MOs: values only</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
</div>
|
||||
<div id="outline-container-org96df35d" class="outline-4">
|
||||
<h4 id="org96df35d"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orgc618570" class="outline-4">
|
||||
<h4 id="orgc618570"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -587,8 +587,8 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2bbdc08" class="outline-4">
|
||||
<h4 id="org2bbdc08"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org8a8c01a" class="outline-4">
|
||||
<h4 id="org8a8c01a"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_provide_mo_basis_mo_value</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>);
|
||||
@ -673,10 +673,10 @@ Uses the given array to compute the values.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0b00f14" class="outline-4">
|
||||
<h4 id="org0b00f14"><span class="section-number-4">2.1.3</span> Compute</h4>
|
||||
<div id="outline-container-org647930a" class="outline-4">
|
||||
<h4 id="org647930a"><span class="section-number-4">2.1.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="orga85482d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgccf83fe" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -850,8 +850,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org333db3f" class="outline-4">
|
||||
<h4 id="org333db3f"><span class="section-number-4">2.1.4</span> HPC version</h4>
|
||||
<div id="outline-container-org8b6d938" class="outline-4">
|
||||
<h4 id="org8b6d938"><span class="section-number-4">2.1.4</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
@ -944,12 +944,12 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgab7614a" class="outline-3">
|
||||
<h3 id="orgab7614a"><span class="section-number-3">2.2</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-orgc58e7cc" class="outline-3">
|
||||
<h3 id="orgc58e7cc"><span class="section-number-3">2.2</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
</div>
|
||||
<div id="outline-container-org522d47c" class="outline-4">
|
||||
<h4 id="org522d47c"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgff94ba2" class="outline-4">
|
||||
<h4 id="orgff94ba2"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||
@ -973,8 +973,8 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org04bfbb3" class="outline-4">
|
||||
<h4 id="org04bfbb3"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-orgcd05d5c" class="outline-4">
|
||||
<h4 id="orgcd05d5c"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_provide_mo_basis_mo_vgl</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>);
|
||||
@ -1058,10 +1058,10 @@ Uses the given array to compute the VGL.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgda46590" class="outline-4">
|
||||
<h4 id="orgda46590"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div id="outline-container-org280cde1" class="outline-4">
|
||||
<h4 id="org280cde1"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org73bf0cb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org47dfbd2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1233,8 +1233,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5bd62e3" class="outline-4">
|
||||
<h4 id="org5bd62e3"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
||||
<div id="outline-container-org0ca5de9" class="outline-4">
|
||||
<h4 id="org0ca5de9"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||
@ -1380,14 +1380,14 @@ matrix multiplication instead of a dgemm, as exposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga514014" class="outline-3">
|
||||
<h3 id="orga514014"><span class="section-number-3">2.3</span> Test</h3>
|
||||
<div id="outline-container-org7dc762b" class="outline-3">
|
||||
<h3 id="org7dc762b"><span class="section-number-3">2.3</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 08:33</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 09:50</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-10-13 Thu 08:33 -->
|
||||
<!-- 2022-10-13 Thu 09:50 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Nucleus</title>
|
||||
@ -333,28 +333,28 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orge0340ae">1. Context</a>
|
||||
<li><a href="#org21c50e5">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org320a8f7">1.1. Data structure</a></li>
|
||||
<li><a href="#org8da7d80">1.2. Access functions</a></li>
|
||||
<li><a href="#orgafe92ef">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org19f4099">1.4. Test</a></li>
|
||||
<li><a href="#orgb3427aa">1.1. Data structure</a></li>
|
||||
<li><a href="#org4909fc2">1.2. Access functions</a></li>
|
||||
<li><a href="#org5b3ab0c">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orga89990d">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org407263e">2. Computation</a>
|
||||
<li><a href="#org14a483b">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org7f8d17c">2.1. Nucleus-nucleus distances</a>
|
||||
<li><a href="#orgacb6046">2.1. Nucleus-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org3b75a50">2.1.1. Get</a></li>
|
||||
<li><a href="#orgb0c4c6e">2.1.2. Compute</a></li>
|
||||
<li><a href="#org869813d">2.1.3. Test</a></li>
|
||||
<li><a href="#orgd1cb76a">2.1.1. Get</a></li>
|
||||
<li><a href="#org12f8e07">2.1.2. Compute</a></li>
|
||||
<li><a href="#org8d0bee1">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7c44a44">2.2. Nuclear repulsion energy</a>
|
||||
<li><a href="#orgb0b5a75">2.2. Nuclear repulsion energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgb90d4be">2.2.1. Get</a></li>
|
||||
<li><a href="#org8e821f7">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgaefb4b8">2.2.3. Test</a></li>
|
||||
<li><a href="#orgf5fca77">2.2.1. Get</a></li>
|
||||
<li><a href="#org2b32c86">2.2.2. Compute</a></li>
|
||||
<li><a href="#orga827148">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -363,8 +363,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge0340ae" class="outline-2">
|
||||
<h2 id="orge0340ae"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org21c50e5" class="outline-2">
|
||||
<h2 id="org21c50e5"><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:
|
||||
@ -461,8 +461,8 @@ Computed data:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org320a8f7" class="outline-3">
|
||||
<h3 id="org320a8f7"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgb3427aa" class="outline-3">
|
||||
<h3 id="orgb3427aa"><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> {
|
||||
@ -516,8 +516,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8da7d80" class="outline-3">
|
||||
<h3 id="org8da7d80"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org4909fc2" class="outline-3">
|
||||
<h3 id="org4909fc2"><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
|
||||
@ -531,8 +531,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgafe92ef" class="outline-3">
|
||||
<h3 id="orgafe92ef"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org5b3ab0c" class="outline-3">
|
||||
<h3 id="org5b3ab0c"><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
|
||||
@ -578,8 +578,8 @@ are be given in atomic units.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org19f4099" class="outline-3">
|
||||
<h3 id="org19f4099"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orga89990d" class="outline-3">
|
||||
<h3 id="orga89990d"><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;
|
||||
@ -648,8 +648,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2, chbrclf_nucl_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org407263e" class="outline-2">
|
||||
<h2 id="org407263e"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org14a483b" class="outline-2">
|
||||
<h2 id="org14a483b"><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
|
||||
@ -662,12 +662,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7f8d17c" class="outline-3">
|
||||
<h3 id="org7f8d17c"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div id="outline-container-orgacb6046" class="outline-3">
|
||||
<h3 id="orgacb6046"><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-org3b75a50" class="outline-4">
|
||||
<h4 id="org3b75a50"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orgd1cb76a" class="outline-4">
|
||||
<h4 id="orgd1cb76a"><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>
|
||||
@ -679,10 +679,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb0c4c6e" class="outline-4">
|
||||
<h4 id="orgb0c4c6e"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org12f8e07" class="outline-4">
|
||||
<h4 id="org12f8e07"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orge71f4b3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org86dbf59" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -760,8 +760,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org869813d" class="outline-4">
|
||||
<h4 id="org869813d"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org8d0bee1" class="outline-4">
|
||||
<h4 id="org8d0bee1"><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>*/
|
||||
@ -780,8 +780,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7c44a44" class="outline-3">
|
||||
<h3 id="org7c44a44"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
||||
<div id="outline-container-orgb0b5a75" class="outline-3">
|
||||
<h3 id="orgb0b5a75"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
\[
|
||||
@ -790,8 +790,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb90d4be" class="outline-4">
|
||||
<h4 id="orgb90d4be"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgf5fca77" class="outline-4">
|
||||
<h4 id="orgf5fca77"><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>);
|
||||
@ -800,10 +800,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8e821f7" class="outline-4">
|
||||
<h4 id="org8e821f7"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org2b32c86" class="outline-4">
|
||||
<h4 id="org2b32c86"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="org4c50d83" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0cecb65" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -893,8 +893,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaefb4b8" class="outline-4">
|
||||
<h4 id="orgaefb4b8"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-orga827148" class="outline-4">
|
||||
<h4 id="orga827148"><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>*/
|
||||
@ -914,7 +914,7 @@ rc = qmckl_get_nucleus_repulsion(context, &rep);
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 08:33</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 09:50</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-10-13 Thu 08:32 -->
|
||||
<!-- 2022-10-13 Thu 09:50 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Numerical precision</title>
|
||||
@ -333,16 +333,16 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgb5f8f8e">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org87d3deb">2. Precision</a></li>
|
||||
<li><a href="#orgeb6687c">3. Range</a></li>
|
||||
<li><a href="#orgbf65faf">4. Helper functions</a></li>
|
||||
<li><a href="#orga64af5c">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org2ce1c61">2. Precision</a></li>
|
||||
<li><a href="#org6010766">3. Range</a></li>
|
||||
<li><a href="#org70f5c5e">4. Helper functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb5f8f8e" class="outline-2">
|
||||
<h2 id="orgb5f8f8e"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-orga64af5c" class="outline-2">
|
||||
<h2 id="orga64af5c"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
Controlling numerical precision enables optimizations. Here, the
|
||||
@ -353,7 +353,7 @@ Arithmetic (IEEE 754),
|
||||
refers to the number of exponent bits.
|
||||
</p>
|
||||
|
||||
<table id="orge94e7c0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgcfb8414" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -397,8 +397,8 @@ integer. The update functions return <code>QMCKL_SUCCESS</code> or
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org87d3deb" class="outline-2">
|
||||
<h2 id="org87d3deb"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-org2ce1c61" class="outline-2">
|
||||
<h2 id="org2ce1c61"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
<code>qmckl_context_set_numprec_precision</code> modifies the parameter for the
|
||||
@ -485,8 +485,8 @@ numerical precision in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeb6687c" class="outline-2">
|
||||
<h2 id="orgeb6687c"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-org6010766" class="outline-2">
|
||||
<h2 id="org6010766"><span class="section-number-2">3</span> Range</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
<code>qmckl_set_numprec_range</code> modifies the parameter for the numerical
|
||||
@ -561,8 +561,8 @@ range in a given context.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgbf65faf" class="outline-2">
|
||||
<h2 id="orgbf65faf"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-org70f5c5e" class="outline-2">
|
||||
<h2 id="org70f5c5e"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
<code>qmckl_get_numprec_epsilon</code> returns \(\epsilon = 2^{1-n}\) where <code>n</code> is the precision.
|
||||
@ -581,7 +581,7 @@ We need to remove the sign bit from the precision.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 08:32</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 09:50</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-10-13 Thu 08:32 -->
|
||||
<!-- 2022-10-13 Thu 09:50 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Point</title>
|
||||
@ -333,25 +333,25 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgd223c38">1. Context</a>
|
||||
<li><a href="#org909251d">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org1d1dc35">1.1. Data structure</a></li>
|
||||
<li><a href="#orga4b0ec0">1.2. Access functions</a>
|
||||
<li><a href="#orgeafd71a">1.1. Data structure</a></li>
|
||||
<li><a href="#orgbe48e6d">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgcb5ac74">1.2.1. Number of points</a></li>
|
||||
<li><a href="#orgbd16d9e">1.2.2. Point coordinates</a></li>
|
||||
<li><a href="#org4ac0e20">1.2.1. Number of points</a></li>
|
||||
<li><a href="#org644067e">1.2.2. Point coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org532e84c">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org11e7ab4">1.4. Test</a></li>
|
||||
<li><a href="#org6c41699">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orga77d9fd">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd223c38" class="outline-2">
|
||||
<h2 id="orgd223c38"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org909251d" class="outline-2">
|
||||
<h2 id="org909251d"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following data stored in the context:
|
||||
@ -401,8 +401,8 @@ corresponds to the 3 × <code>num</code> matrix.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1d1dc35" class="outline-3">
|
||||
<h3 id="org1d1dc35"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgeafd71a" class="outline-3">
|
||||
<h3 id="orgeafd71a"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_point_struct</span> {
|
||||
@ -438,8 +438,8 @@ corresponds to the 3 × <code>num</code> matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga4b0ec0" class="outline-3">
|
||||
<h3 id="orga4b0ec0"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgbe48e6d" class="outline-3">
|
||||
<h3 id="orgbe48e6d"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
Access functions return <code>QMCKL_SUCCESS</code> when the data has been
|
||||
@ -450,8 +450,8 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcb5ac74" class="outline-4">
|
||||
<h4 id="orgcb5ac74"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div id="outline-container-org4ac0e20" class="outline-4">
|
||||
<h4 id="org4ac0e20"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div class="outline-text-4" id="text-1-2-1">
|
||||
<p>
|
||||
Returns the number of points stored in the context.
|
||||
@ -473,8 +473,8 @@ Returns the number of points stored in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbd16d9e" class="outline-4">
|
||||
<h4 id="orgbd16d9e"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div id="outline-container-org644067e" class="outline-4">
|
||||
<h4 id="org644067e"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-2-2">
|
||||
<p>
|
||||
Returns the point coordinates as sequences of (x,y,z).
|
||||
@ -502,8 +502,8 @@ The pointer is assumed to point on a memory block of size
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org532e84c" class="outline-3">
|
||||
<h3 id="org532e84c"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org6c41699" class="outline-3">
|
||||
<h3 id="org6c41699"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
When the data is set in the context, if the arrays are large
|
||||
@ -635,8 +635,8 @@ Copy a sequence of <code>num</code> points \((x,y,z)\) into the context.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org11e7ab4" class="outline-3">
|
||||
<h3 id="org11e7ab4"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orga77d9fd" class="outline-3">
|
||||
<h3 id="orga77d9fd"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -695,7 +695,7 @@ rc = qmckl_get_point (context, <span style="color: #8b2252;">'N'</span>, coord3,
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 08:32</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 09:50</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-10-13 Thu 08:33 -->
|
||||
<!-- 2022-10-13 Thu 09:50 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Sherman-Morrison-Woodbury</title>
|
||||
@ -333,86 +333,86 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgff76e23">1. Headers</a></li>
|
||||
<li><a href="#orgf6a4ad9">2. Naïve Sherman-Morrison</a>
|
||||
<li><a href="#org1a437dc">1. Headers</a></li>
|
||||
<li><a href="#orge529186">2. Naïve Sherman-Morrison</a>
|
||||
<ul>
|
||||
<li><a href="#orgaa82d53">2.1. <code>qmckl_sherman_morrison</code></a>
|
||||
<li><a href="#org6e9bb16">2.1. <code>qmckl_sherman_morrison</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgfb91ec7">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org433c411">2.1.2. C header</a></li>
|
||||
<li><a href="#org7a985e9">2.1.3. C source</a></li>
|
||||
<li><a href="#org8f3cedb">2.1.4. Performance</a></li>
|
||||
<li><a href="#org5615677">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org48fdf3e">2.1.2. C header</a></li>
|
||||
<li><a href="#org015be7c">2.1.3. C source</a></li>
|
||||
<li><a href="#orgc4df701">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org74e3268">3. Woodbury 2x2</a>
|
||||
<li><a href="#org4e10473">3. Woodbury 2x2</a>
|
||||
<ul>
|
||||
<li><a href="#org746188b">3.1. <code>qmckl_woodbury_2</code></a>
|
||||
<li><a href="#org934f87f">3.1. <code>qmckl_woodbury_2</code></a>
|
||||
<ul>
|
||||
<li><a href="#org5129393">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orgd4ade0e">3.1.2. C header</a></li>
|
||||
<li><a href="#orgd856782">3.1.3. C source</a></li>
|
||||
<li><a href="#org15b0e19">3.1.4. Performance</a></li>
|
||||
<li><a href="#orge9931ac">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org88eb423">3.1.2. C header</a></li>
|
||||
<li><a href="#orgc149105">3.1.3. C source</a></li>
|
||||
<li><a href="#org7564f43">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd83fe06">4. Woodbury 3x3</a>
|
||||
<li><a href="#org4b832dd">4. Woodbury 3x3</a>
|
||||
<ul>
|
||||
<li><a href="#org7148832">4.1. <code>qmckl_woodbury_3</code></a>
|
||||
<li><a href="#org6322e70">4.1. <code>qmckl_woodbury_3</code></a>
|
||||
<ul>
|
||||
<li><a href="#org3367d03">4.1.1. Requirements</a></li>
|
||||
<li><a href="#org9fa7d5b">4.1.2. C header</a></li>
|
||||
<li><a href="#org98776c6">4.1.3. C source</a></li>
|
||||
<li><a href="#org303cf41">4.1.4. Performance…</a></li>
|
||||
<li><a href="#org4732aee">4.1.1. Requirements</a></li>
|
||||
<li><a href="#org4c86076">4.1.2. C header</a></li>
|
||||
<li><a href="#org7c198cf">4.1.3. C source</a></li>
|
||||
<li><a href="#org48b824c">4.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6f1dc81">5. Sherman-Morrison with update splitting</a>
|
||||
<li><a href="#orgafa836a">5. Sherman-Morrison with update splitting</a>
|
||||
<ul>
|
||||
<li><a href="#org05ffa69">5.1. <code>qmckl_sherman_morrison_splitting</code></a>
|
||||
<li><a href="#org61e8c2c">5.1. <code>qmckl_sherman_morrison_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgd807467">5.1.1. Requirements</a></li>
|
||||
<li><a href="#org869516e">5.1.2. C header</a></li>
|
||||
<li><a href="#org04cb892">5.1.3. C source</a></li>
|
||||
<li><a href="#orgcd6dedb">5.1.4. Performance…</a></li>
|
||||
<li><a href="#org468e43b">5.1.1. Requirements</a></li>
|
||||
<li><a href="#org3098b5a">5.1.2. C header</a></li>
|
||||
<li><a href="#orgf2e8e32">5.1.3. C source</a></li>
|
||||
<li><a href="#orgbbdc141">5.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgdeb1578">6. Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</a>
|
||||
<li><a href="#org3c0356c">6. Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</a>
|
||||
<ul>
|
||||
<li><a href="#orga4294b2">6.1. <code>qmckl_sherman_morrison_smw32s</code></a>
|
||||
<li><a href="#orgda2ee0c">6.1. <code>qmckl_sherman_morrison_smw32s</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgcf0e419">6.1.1. Requirements</a></li>
|
||||
<li><a href="#org5818672">6.1.2. C header</a></li>
|
||||
<li><a href="#org6b62d17">6.1.3. C source</a></li>
|
||||
<li><a href="#org88fa1ce">6.1.4. Performance…</a></li>
|
||||
<li><a href="#org51b13d8">6.1.1. Requirements</a></li>
|
||||
<li><a href="#org073d281">6.1.2. C header</a></li>
|
||||
<li><a href="#org5fabb62">6.1.3. C source</a></li>
|
||||
<li><a href="#org8cc6741">6.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org111eeef">7. Helper Functions</a>
|
||||
<li><a href="#org80aade5">7. Helper Functions</a>
|
||||
<ul>
|
||||
<li><a href="#org5a968c0">7.1. <code>qmckl_slagel_splitting</code></a>
|
||||
<li><a href="#org345643b">7.1. <code>qmckl_slagel_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#orga4381e2">7.1.1. Requirements</a></li>
|
||||
<li><a href="#org986db3a">7.1.2. C header</a></li>
|
||||
<li><a href="#orgc6e978e">7.1.3. C source</a></li>
|
||||
<li><a href="#org9d7cc88">7.1.4. Performance</a></li>
|
||||
<li><a href="#org4e717f0">7.1.1. Requirements</a></li>
|
||||
<li><a href="#org4a79dd2">7.1.2. C header</a></li>
|
||||
<li><a href="#org63d7a86">7.1.3. C source</a></li>
|
||||
<li><a href="#orga86ab2b">7.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1821346">8. End of files</a></li>
|
||||
<li><a href="#org548a5ec">8. End of files</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgff76e23" class="outline-2">
|
||||
<h2 id="orgff76e23"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div id="outline-container-org1a437dc" class="outline-2">
|
||||
<h2 id="org1a437dc"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;">"qmckl.h"</span>
|
||||
@ -431,12 +431,12 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf6a4ad9" class="outline-2">
|
||||
<h2 id="orgf6a4ad9"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
||||
<div id="outline-container-orge529186" class="outline-2">
|
||||
<h2 id="orge529186"><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-orgaa82d53" class="outline-3">
|
||||
<h3 id="orgaa82d53"><span class="section-number-3">2.1</span> <code>qmckl_sherman_morrison</code></h3>
|
||||
<div id="outline-container-org6e9bb16" class="outline-3">
|
||||
<h3 id="org6e9bb16"><span class="section-number-3">2.1</span> <code>qmckl_sherman_morrison</code></h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
This is the simplest of the available Sherman-Morrison-Woodbury kernels. It applies rank-1 updates one by one in
|
||||
@ -478,7 +478,7 @@ If the determinant of the Slater-matrix is passed, it will be updated to the det
|
||||
from applying the updates to the original matrix.
|
||||
</p>
|
||||
|
||||
<table id="org3e6bdaf" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org54be426" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -557,8 +557,8 @@ from applying the updates to the original matrix.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfb91ec7" class="outline-4">
|
||||
<h4 id="orgfb91ec7"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org5615677" class="outline-4">
|
||||
<h4 id="org5615677"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -573,8 +573,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org433c411" class="outline-4">
|
||||
<h4 id="org433c411"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-org48fdf3e" class="outline-4">
|
||||
<h4 id="org48fdf3e"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sherman_morrison</span> (
|
||||
@ -592,8 +592,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7a985e9" class="outline-4">
|
||||
<h4 id="org7a985e9"><span class="section-number-4">2.1.3</span> C source</h4>
|
||||
<div id="outline-container-org015be7c" class="outline-4">
|
||||
<h4 id="org015be7c"><span class="section-number-4">2.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -663,8 +663,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8f3cedb" class="outline-4">
|
||||
<h4 id="org8f3cedb"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgc4df701" class="outline-4">
|
||||
<h4 id="orgc4df701"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<p>
|
||||
This function performs best when there is only 1 rank-1 update in the update cycle. It is not useful to
|
||||
@ -676,12 +676,12 @@ where applying the update causes singular behaviour.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org74e3268" class="outline-2">
|
||||
<h2 id="org74e3268"><span class="section-number-2">3</span> Woodbury 2x2</h2>
|
||||
<div id="outline-container-org4e10473" class="outline-2">
|
||||
<h2 id="org4e10473"><span class="section-number-2">3</span> Woodbury 2x2</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org746188b" class="outline-3">
|
||||
<h3 id="org746188b"><span class="section-number-3">3.1</span> <code>qmckl_woodbury_2</code></h3>
|
||||
<div id="outline-container-org934f87f" class="outline-3">
|
||||
<h3 id="org934f87f"><span class="section-number-3">3.1</span> <code>qmckl_woodbury_2</code></h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
The Woodbury 2x2 kernel. It is used to apply two rank-1 updates at once. The formula used in
|
||||
@ -705,7 +705,7 @@ from applying the updates to the original matrix.
|
||||
|
||||
|
||||
|
||||
<table id="org42f924b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge80e9fe" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -777,8 +777,8 @@ from applying the updates to the original matrix.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5129393" class="outline-4">
|
||||
<h4 id="org5129393"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orge9931ac" class="outline-4">
|
||||
<h4 id="orge9931ac"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-3-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>qmckl_null_context</code></li>
|
||||
@ -792,8 +792,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd4ade0e" class="outline-4">
|
||||
<h4 id="orgd4ade0e"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-org88eb423" class="outline-4">
|
||||
<h4 id="org88eb423"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_2</span> (
|
||||
@ -810,8 +810,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd856782" class="outline-4">
|
||||
<h4 id="orgd856782"><span class="section-number-4">3.1.3</span> C source</h4>
|
||||
<div id="outline-container-orgc149105" class="outline-4">
|
||||
<h4 id="orgc149105"><span class="section-number-4">3.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-3-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -898,8 +898,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org15b0e19" class="outline-4">
|
||||
<h4 id="org15b0e19"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org7564f43" class="outline-4">
|
||||
<h4 id="org7564f43"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-3-1-4">
|
||||
<p>
|
||||
This function is most efficient when used in cases where there are only 2 rank-1 updates and
|
||||
@ -910,12 +910,12 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd83fe06" class="outline-2">
|
||||
<h2 id="orgd83fe06"><span class="section-number-2">4</span> Woodbury 3x3</h2>
|
||||
<div id="outline-container-org4b832dd" class="outline-2">
|
||||
<h2 id="org4b832dd"><span class="section-number-2">4</span> Woodbury 3x3</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org7148832" class="outline-3">
|
||||
<h3 id="org7148832"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_3</code></h3>
|
||||
<div id="outline-container-org6322e70" class="outline-3">
|
||||
<h3 id="org6322e70"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_3</code></h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
The 3x3 version of the Woodbury 2x2 kernel. It is used to apply three
|
||||
@ -936,7 +936,7 @@ from applying the updates to the original matrix.
|
||||
|
||||
|
||||
|
||||
<table id="org0e64ef3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf4c58e7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1008,8 +1008,8 @@ from applying the updates to the original matrix.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3367d03" class="outline-4">
|
||||
<h4 id="org3367d03"><span class="section-number-4">4.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org4732aee" class="outline-4">
|
||||
<h4 id="org4732aee"><span class="section-number-4">4.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-4-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>qmckl_null_context</code></li>
|
||||
@ -1023,8 +1023,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9fa7d5b" class="outline-4">
|
||||
<h4 id="org9fa7d5b"><span class="section-number-4">4.1.2</span> C header</h4>
|
||||
<div id="outline-container-org4c86076" class="outline-4">
|
||||
<h4 id="org4c86076"><span class="section-number-4">4.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-4-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_3</span> (
|
||||
@ -1041,8 +1041,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org98776c6" class="outline-4">
|
||||
<h4 id="org98776c6"><span class="section-number-4">4.1.3</span> C source</h4>
|
||||
<div id="outline-container-org7c198cf" class="outline-4">
|
||||
<h4 id="org7c198cf"><span class="section-number-4">4.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-4-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -1144,8 +1144,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org303cf41" class="outline-4">
|
||||
<h4 id="org303cf41"><span class="section-number-4">4.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org48b824c" class="outline-4">
|
||||
<h4 id="org48b824c"><span class="section-number-4">4.1.4</span> Performance…</h4>
|
||||
<div class="outline-text-4" id="text-4-1-4">
|
||||
<p>
|
||||
This function is most efficient when used in cases where there are only 3 rank-1 updates and
|
||||
@ -1156,12 +1156,12 @@ it is sure they will not result in a singular matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6f1dc81" class="outline-2">
|
||||
<h2 id="org6f1dc81"><span class="section-number-2">5</span> Sherman-Morrison with update splitting</h2>
|
||||
<div id="outline-container-orgafa836a" class="outline-2">
|
||||
<h2 id="orgafa836a"><span class="section-number-2">5</span> Sherman-Morrison with update splitting</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
</div>
|
||||
<div id="outline-container-org05ffa69" class="outline-3">
|
||||
<h3 id="org05ffa69"><span class="section-number-3">5.1</span> <code>qmckl_sherman_morrison_splitting</code></h3>
|
||||
<div id="outline-container-org61e8c2c" class="outline-3">
|
||||
<h3 id="org61e8c2c"><span class="section-number-3">5.1</span> <code>qmckl_sherman_morrison_splitting</code></h3>
|
||||
<div class="outline-text-3" id="text-5-1">
|
||||
<p>
|
||||
This is a variation on the 'Naive' Sherman-Morrison kernel. Whenever the denominator \(1+v_j^T S^{-1} u_j\) in
|
||||
@ -1183,7 +1183,7 @@ If the determinant of the Slater-matrix is passed, it will be updated to the det
|
||||
from applying the updates to the original matrix.
|
||||
</p>
|
||||
|
||||
<table id="org79dcb55" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org65769ca" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1267,8 +1267,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgd807467" class="outline-4">
|
||||
<h4 id="orgd807467"><span class="section-number-4">5.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org468e43b" class="outline-4">
|
||||
<h4 id="org468e43b"><span class="section-number-4">5.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-5-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1283,8 +1283,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org869516e" class="outline-4">
|
||||
<h4 id="org869516e"><span class="section-number-4">5.1.2</span> C header</h4>
|
||||
<div id="outline-container-org3098b5a" class="outline-4">
|
||||
<h4 id="org3098b5a"><span class="section-number-4">5.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-5-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sherman_morrison_splitting</span> (
|
||||
@ -1302,8 +1302,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org04cb892" class="outline-4">
|
||||
<h4 id="org04cb892"><span class="section-number-4">5.1.3</span> C source</h4>
|
||||
<div id="outline-container-orgf2e8e32" class="outline-4">
|
||||
<h4 id="orgf2e8e32"><span class="section-number-4">5.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-5-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -1343,8 +1343,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcd6dedb" class="outline-4">
|
||||
<h4 id="orgcd6dedb"><span class="section-number-4">5.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-orgbbdc141" class="outline-4">
|
||||
<h4 id="orgbbdc141"><span class="section-number-4">5.1.4</span> Performance…</h4>
|
||||
<div class="outline-text-4" id="text-5-1-4">
|
||||
<p>
|
||||
This kernel performs best when there are 2 or more rank-1 update cycles and fail-rate is high.
|
||||
@ -1354,12 +1354,12 @@ This kernel performs best when there are 2 or more rank-1 update cycles and fail
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdeb1578" class="outline-2">
|
||||
<h2 id="orgdeb1578"><span class="section-number-2">6</span> Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</h2>
|
||||
<div id="outline-container-org3c0356c" class="outline-2">
|
||||
<h2 id="org3c0356c"><span class="section-number-2">6</span> Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</h2>
|
||||
<div class="outline-text-2" id="text-6">
|
||||
</div>
|
||||
<div id="outline-container-orga4294b2" class="outline-3">
|
||||
<h3 id="orga4294b2"><span class="section-number-3">6.1</span> <code>qmckl_sherman_morrison_smw32s</code></h3>
|
||||
<div id="outline-container-orgda2ee0c" class="outline-3">
|
||||
<h3 id="orgda2ee0c"><span class="section-number-3">6.1</span> <code>qmckl_sherman_morrison_smw32s</code></h3>
|
||||
<div class="outline-text-3" id="text-6-1">
|
||||
<p>
|
||||
The Woodbury 3x3 and 2x2 kernel with Sherman-Morrison and update splitting combines the low-level Woodbury 3x3 kernel,
|
||||
@ -1374,7 +1374,7 @@ If the determinant of the Slater-matrix is passed, it will be updated to the det
|
||||
from applying the updates to the original matrix.
|
||||
</p>
|
||||
|
||||
<table id="orgac80c3e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgde9ee95" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1454,8 +1454,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgcf0e419" class="outline-4">
|
||||
<h4 id="orgcf0e419"><span class="section-number-4">6.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org51b13d8" class="outline-4">
|
||||
<h4 id="org51b13d8"><span class="section-number-4">6.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-6-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1470,8 +1470,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5818672" class="outline-4">
|
||||
<h4 id="org5818672"><span class="section-number-4">6.1.2</span> C header</h4>
|
||||
<div id="outline-container-org073d281" class="outline-4">
|
||||
<h4 id="org073d281"><span class="section-number-4">6.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-6-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sherman_morrison_smw32s</span> (
|
||||
@ -1489,8 +1489,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6b62d17" class="outline-4">
|
||||
<h4 id="org6b62d17"><span class="section-number-4">6.1.3</span> C source</h4>
|
||||
<div id="outline-container-org5fabb62" class="outline-4">
|
||||
<h4 id="org5fabb62"><span class="section-number-4">6.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-6-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -1568,8 +1568,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org88fa1ce" class="outline-4">
|
||||
<h4 id="org88fa1ce"><span class="section-number-4">6.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org8cc6741" class="outline-4">
|
||||
<h4 id="org8cc6741"><span class="section-number-4">6.1.4</span> Performance…</h4>
|
||||
<div class="outline-text-4" id="text-6-1-4">
|
||||
<p>
|
||||
This kernel performs best for update cycles with 2 or more rank-1 updates and the fail-rate is low.
|
||||
@ -1579,8 +1579,8 @@ This kernel performs best for update cycles with 2 or more rank-1 updates and th
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org111eeef" class="outline-2">
|
||||
<h2 id="org111eeef"><span class="section-number-2">7</span> Helper Functions</h2>
|
||||
<div id="outline-container-org80aade5" class="outline-2">
|
||||
<h2 id="org80aade5"><span class="section-number-2">7</span> Helper Functions</h2>
|
||||
<div class="outline-text-2" id="text-7">
|
||||
<p>
|
||||
Private helper-functions that are used by the Sherman-Morrison-Woodbury kernels.
|
||||
@ -1588,8 +1588,8 @@ These functions can only be used internally by the kernels in this module.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5a968c0" class="outline-3">
|
||||
<h3 id="org5a968c0"><span class="section-number-3">7.1</span> <code>qmckl_slagel_splitting</code></h3>
|
||||
<div id="outline-container-org345643b" class="outline-3">
|
||||
<h3 id="org345643b"><span class="section-number-3">7.1</span> <code>qmckl_slagel_splitting</code></h3>
|
||||
<div class="outline-text-3" id="text-7-1">
|
||||
<p>
|
||||
<code>qmckl_slagel_splitting</code> is the non-recursive, inner part of the 'Sherman-Morrison with update splitting'-kernel.
|
||||
@ -1609,7 +1609,7 @@ If the determinant of the Slater-matrix is passed, it will be updated to the det
|
||||
from applying the updates to the original matrix.
|
||||
</p>
|
||||
|
||||
<table id="org1109077" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4084769" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1703,8 +1703,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orga4381e2" class="outline-4">
|
||||
<h4 id="orga4381e2"><span class="section-number-4">7.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org4e717f0" class="outline-4">
|
||||
<h4 id="org4e717f0"><span class="section-number-4">7.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-7-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>LDS >= 2</code></li>
|
||||
@ -1721,8 +1721,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org986db3a" class="outline-4">
|
||||
<h4 id="org986db3a"><span class="section-number-4">7.1.2</span> C header</h4>
|
||||
<div id="outline-container-org4a79dd2" class="outline-4">
|
||||
<h4 id="org4a79dd2"><span class="section-number-4">7.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-7-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">double</span> <span style="color: #0000ff;">qmckl_slagel_splitting</span> (
|
||||
@ -1742,8 +1742,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc6e978e" class="outline-4">
|
||||
<h4 id="orgc6e978e"><span class="section-number-4">7.1.3</span> C source</h4>
|
||||
<div id="outline-container-org63d7a86" class="outline-4">
|
||||
<h4 id="org63d7a86"><span class="section-number-4">7.1.3</span> C source</h4>
|
||||
<div class="outline-text-4" id="text-7-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;"><stdbool.h></span>
|
||||
@ -1821,8 +1821,8 @@ from applying the updates to the original matrix.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9d7cc88" class="outline-4">
|
||||
<h4 id="org9d7cc88"><span class="section-number-4">7.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orga86ab2b" class="outline-4">
|
||||
<h4 id="orga86ab2b"><span class="section-number-4">7.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-7-1-4">
|
||||
<p>
|
||||
This function cannot be used by itself and is used in Sherman-Morrison with update splitting and Woodbury 3x3 and 2x2
|
||||
@ -1833,8 +1833,8 @@ with Sherman-Morrison and update splitting. Please look at the performance recco
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1821346" class="outline-2">
|
||||
<h2 id="org1821346"><span class="section-number-2">8</span> End of files</h2>
|
||||
<div id="outline-container-org548a5ec" class="outline-2">
|
||||
<h2 id="org548a5ec"><span class="section-number-2">8</span> End of files</h2>
|
||||
<div class="outline-text-2" id="text-8">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"> <span style="color: #0000ff;">assert</span> (<span style="color: #228b22;">qmckl_context_destroy</span>(<span style="color: #a0522d;">context</span>) == QMCKL_SUCCESS);
|
||||
@ -1848,7 +1848,7 @@ with Sherman-Morrison and update splitting. Please look at the performance recco
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 08:33</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 09:50</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-10-13 Thu 08:33 -->
|
||||
<!-- 2022-10-13 Thu 09:50 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Data for Tests</title>
|
||||
@ -233,27 +233,27 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org935c06f">1. CHBrClF</a>
|
||||
<li><a href="#org05c7e6b">1. CHBrClF</a>
|
||||
<ul>
|
||||
<li><a href="#org25ceff8">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org0a8623a">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#orga4b86af">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org4ca14cb">1.4. Electron coordinates</a></li>
|
||||
<li><a href="#org530e881">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org53debe9">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org2093636">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org377663c">1.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org351e019">2. N2</a>
|
||||
<li><a href="#org83bed0b">2. N2</a>
|
||||
<ul>
|
||||
<li><a href="#orgc207522">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org427d3b6">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org4db3a15">2.3. Jastrow related data</a></li>
|
||||
<li><a href="#orgb2ad853">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orgd7ec7f5">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#orgf0e97d5">2.3. Jastrow related data</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org935c06f" class="outline-2">
|
||||
<h2 id="org935c06f"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div id="outline-container-org05c7e6b" class="outline-2">
|
||||
<h2 id="org05c7e6b"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
This test is the all-electron Hartree-Fock wave function of CHClBr,
|
||||
@ -337,8 +337,8 @@ and with a high maximum angular momentum.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org25ceff8" class="outline-3">
|
||||
<h3 id="org25ceff8"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org530e881" class="outline-3">
|
||||
<h3 id="org530e881"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<pre class="example">
|
||||
5
|
||||
@ -368,8 +368,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0a8623a" class="outline-3">
|
||||
<h3 id="org0a8623a"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div id="outline-container-org53debe9" class="outline-3">
|
||||
<h3 id="org53debe9"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<pre class="example">
|
||||
HYDROGEN
|
||||
@ -1288,8 +1288,8 @@ F 1
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga4b86af" class="outline-3">
|
||||
<h3 id="orga4b86af"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org2093636" class="outline-3">
|
||||
<h3 id="org2093636"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">chbrclf_mo_num</span> ((<span style="color: #228b22;">int64_t</span>) 224)
|
||||
@ -60213,8 +60213,8 @@ F 1
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4ca14cb" class="outline-3">
|
||||
<h3 id="org4ca14cb"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org377663c" class="outline-3">
|
||||
<h3 id="org377663c"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
Electron coordinates are stored in atomic units in normal format.
|
||||
@ -60373,8 +60373,8 @@ Electron coordinates are stored in atomic units in normal format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org351e019" class="outline-2">
|
||||
<h2 id="org351e019"><span class="section-number-2">2</span> N2</h2>
|
||||
<div id="outline-container-org83bed0b" class="outline-2">
|
||||
<h2 id="org83bed0b"><span class="section-number-2">2</span> N2</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
This test is mainly for the Jastrow factor and was supplied by
|
||||
@ -60415,8 +60415,8 @@ treated by pseudopotentials thus excluded from the actual calculation.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc207522" class="outline-3">
|
||||
<h3 id="orgc207522"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-orgb2ad853" class="outline-3">
|
||||
<h3 id="orgb2ad853"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<pre class="example">
|
||||
2
|
||||
@ -60443,8 +60443,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org427d3b6" class="outline-3">
|
||||
<h3 id="org427d3b6"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div id="outline-container-orgd7ec7f5" class="outline-3">
|
||||
<h3 id="orgd7ec7f5"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
Electron coordinates are stored in atomic units in normal format.
|
||||
@ -60473,8 +60473,8 @@ Electron coordinates are stored in atomic units in normal format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4db3a15" class="outline-3">
|
||||
<h3 id="org4db3a15"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div id="outline-container-orgf0e97d5" class="outline-3">
|
||||
<h3 id="orgf0e97d5"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
This test is mainly for the Jastrow factor and was supplied by
|
||||
@ -60573,7 +60573,7 @@ Ramon Panades Baruetta.
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="date">Created: 2022-10-13 Thu 08:33</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 09:50</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-10-13 Thu 08:32 -->
|
||||
<!-- 2022-10-13 Thu 09:50 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>TREXIO I/O library</title>
|
||||
@ -311,53 +311,53 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgafc4157">1. Local functions</a>
|
||||
<li><a href="#org0b01f27">1. Local functions</a>
|
||||
<ul>
|
||||
<li><a href="#org133119c">1.1. Open file</a></li>
|
||||
<li><a href="#org54773fb">1.2. Electron</a></li>
|
||||
<li><a href="#org32342c2">1.3. Nucleus</a>
|
||||
<li><a href="#org6e67f16">1.1. Open file</a></li>
|
||||
<li><a href="#org7c93b5c">1.2. Electron</a></li>
|
||||
<li><a href="#orgfaa8519">1.3. Nucleus</a>
|
||||
<ul>
|
||||
<li><a href="#org7ae23b9">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#org38ebb29">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org58f2f57">1.3.3. Nuclear coordinates</a></li>
|
||||
<li><a href="#orgcd82775">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#org2fff542">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org8c34c2e">1.3.3. Nuclear coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org049cd3e">1.4. Basis set and AOs</a>
|
||||
<li><a href="#orga88f1e6">1.4. Basis set and AOs</a>
|
||||
<ul>
|
||||
<li><a href="#org3e92dcf">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#org435f81f">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#orga22920c">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#orge9ddf08">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org8d00696">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org6d1a52b">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#org62b7b57">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#orgf3551ef">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#org5228985">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#orgee339b3">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org34b9125">1.4.11. Exponents</a></li>
|
||||
<li><a href="#org7bdf6cf">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#org36222c4">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org0a795dc">1.4.14. AO Normalization</a></li>
|
||||
<li><a href="#orgbbdf797">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#org4ce94b2">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org2c89c31">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#orgd800f12">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org84ce5f7">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org109f003">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#org8aa2c16">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org89d3482">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#orge44360d">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#org6567cf2">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org5dcf5a6">1.4.11. Exponents</a></li>
|
||||
<li><a href="#orgbef7b89">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#org42985b7">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org5fb6487">1.4.14. AO Normalization</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8440db3">1.5. Molecular orbitals</a>
|
||||
<li><a href="#org75a32af">1.5. Molecular orbitals</a>
|
||||
<ul>
|
||||
<li><a href="#org7f57ea7">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#org4580c6d">1.5.2. MO coefficients</a></li>
|
||||
<li><a href="#org9fbca11">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#org83db398">1.5.2. MO coefficients</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgcc0ab35">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
<li><a href="#orgdc9c26f">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf7237a1">2. Read everything</a></li>
|
||||
<li><a href="#org81175ca">3. Test</a>
|
||||
<li><a href="#org1caea26">2. Read everything</a></li>
|
||||
<li><a href="#orgeb9f77b">3. Test</a>
|
||||
<ul>
|
||||
<li>
|
||||
<ul>
|
||||
<li><a href="#org0aff0c9">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org323725d">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#orgab46d91">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#orgcf0c42c">3.0.4. MO Basis</a></li>
|
||||
<li><a href="#org1c4b052">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org7b7e036">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#orge624051">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org83a35a1">3.0.4. MO Basis</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -366,8 +366,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgafc4157" class="outline-2">
|
||||
<h2 id="orgafc4157"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div id="outline-container-org0b01f27" class="outline-2">
|
||||
<h2 id="org0b01f27"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
Functions defined in this section are all local: they should not be
|
||||
@ -390,8 +390,8 @@ In the functions defined in this section, we use as local variables
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org133119c" class="outline-3">
|
||||
<h3 id="org133119c"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div id="outline-container-org6e67f16" class="outline-3">
|
||||
<h3 id="org6e67f16"><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
|
||||
@ -429,8 +429,8 @@ groups of data by passing the <code>trexio_t</code> handle.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org54773fb" class="outline-3">
|
||||
<h3 id="org54773fb"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div id="outline-container-org7c93b5c" class="outline-3">
|
||||
<h3 id="org7c93b5c"><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.
|
||||
@ -481,8 +481,8 @@ We read the number of up-spin and down-spin electrons.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org32342c2" class="outline-3">
|
||||
<h3 id="org32342c2"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div id="outline-container-orgfaa8519" class="outline-3">
|
||||
<h3 id="orgfaa8519"><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.
|
||||
@ -502,8 +502,8 @@ In this section we read the number of nuclei, the molecular geometry and nuclear
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7ae23b9" class="outline-4">
|
||||
<h4 id="org7ae23b9"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div id="outline-container-orgcd82775" class="outline-4">
|
||||
<h4 id="orgcd82775"><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;
|
||||
@ -526,8 +526,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org38ebb29" class="outline-4">
|
||||
<h4 id="org38ebb29"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div id="outline-container-org2fff542" class="outline-4">
|
||||
<h4 id="org2fff542"><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">{
|
||||
@ -567,8 +567,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org58f2f57" class="outline-4">
|
||||
<h4 id="org58f2f57"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div id="outline-container-org8c34c2e" class="outline-4">
|
||||
<h4 id="org8c34c2e"><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
|
||||
@ -623,8 +623,8 @@ in the TREXIO file (<code>'N'</code>), so it will be automatically transposed in
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org049cd3e" class="outline-3">
|
||||
<h3 id="org049cd3e"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div id="outline-container-orga88f1e6" class="outline-3">
|
||||
<h3 id="orga88f1e6"><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.
|
||||
@ -650,8 +650,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3e92dcf" class="outline-4">
|
||||
<h4 id="org3e92dcf"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div id="outline-container-orgbbdf797" class="outline-4">
|
||||
<h4 id="orgbbdf797"><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
|
||||
@ -682,8 +682,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org435f81f" class="outline-4">
|
||||
<h4 id="org435f81f"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div id="outline-container-org4ce94b2" class="outline-4">
|
||||
<h4 id="org4ce94b2"><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;
|
||||
@ -707,8 +707,8 @@ rc = qmckl_set_ao_basis_shell_num(context, shell_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga22920c" class="outline-4">
|
||||
<h4 id="orga22920c"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div id="outline-container-org2c89c31" class="outline-4">
|
||||
<h4 id="org2c89c31"><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;
|
||||
@ -732,8 +732,8 @@ rc = qmckl_set_ao_basis_prim_num(context, prim_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge9ddf08" class="outline-4">
|
||||
<h4 id="orge9ddf08"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div id="outline-container-orgd800f12" class="outline-4">
|
||||
<h4 id="orgd800f12"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div class="outline-text-4" id="text-1-4-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">ao_num</span> = 0LL;
|
||||
@ -757,8 +757,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8d00696" class="outline-4">
|
||||
<h4 id="org8d00696"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div id="outline-container-org84ce5f7" class="outline-4">
|
||||
<h4 id="org84ce5f7"><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">{
|
||||
@ -838,8 +838,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6d1a52b" class="outline-4">
|
||||
<h4 id="org6d1a52b"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div id="outline-container-org109f003" class="outline-4">
|
||||
<h4 id="org109f003"><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">{
|
||||
@ -924,8 +924,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org62b7b57" class="outline-4">
|
||||
<h4 id="org62b7b57"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div id="outline-container-org8aa2c16" class="outline-4">
|
||||
<h4 id="org8aa2c16"><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">{
|
||||
@ -970,8 +970,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf3551ef" class="outline-4">
|
||||
<h4 id="orgf3551ef"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
||||
<div id="outline-container-org89d3482" class="outline-4">
|
||||
<h4 id="org89d3482"><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">{
|
||||
@ -1055,8 +1055,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5228985" class="outline-4">
|
||||
<h4 id="org5228985"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
||||
<div id="outline-container-orge44360d" class="outline-4">
|
||||
<h4 id="orge44360d"><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">{
|
||||
@ -1136,8 +1136,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgee339b3" class="outline-4">
|
||||
<h4 id="orgee339b3"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
||||
<div id="outline-container-org6567cf2" class="outline-4">
|
||||
<h4 id="org6567cf2"><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">{
|
||||
@ -1182,8 +1182,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org34b9125" class="outline-4">
|
||||
<h4 id="org34b9125"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||
<div id="outline-container-org5dcf5a6" class="outline-4">
|
||||
<h4 id="org5dcf5a6"><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">{
|
||||
@ -1228,8 +1228,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7bdf6cf" class="outline-4">
|
||||
<h4 id="org7bdf6cf"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||
<div id="outline-container-orgbef7b89" class="outline-4">
|
||||
<h4 id="orgbef7b89"><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">{
|
||||
@ -1274,8 +1274,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org36222c4" class="outline-4">
|
||||
<h4 id="org36222c4"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
||||
<div id="outline-container-org42985b7" class="outline-4">
|
||||
<h4 id="org42985b7"><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">{
|
||||
@ -1320,8 +1320,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0a795dc" class="outline-4">
|
||||
<h4 id="org0a795dc"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||
<div id="outline-container-org5fb6487" class="outline-4">
|
||||
<h4 id="org5fb6487"><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">{
|
||||
@ -1376,8 +1376,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org8440db3" class="outline-3">
|
||||
<h3 id="org8440db3"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org75a32af" class="outline-3">
|
||||
<h3 id="org75a32af"><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.
|
||||
@ -1403,8 +1403,8 @@ In this section we read the MO coefficients.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7f57ea7" class="outline-4">
|
||||
<h4 id="org7f57ea7"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
||||
<div id="outline-container-org9fbca11" class="outline-4">
|
||||
<h4 id="org9fbca11"><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;
|
||||
@ -1427,8 +1427,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4580c6d" class="outline-4">
|
||||
<h4 id="org4580c6d"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||
<div id="outline-container-org83db398" class="outline-4">
|
||||
<h4 id="org83db398"><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">{
|
||||
@ -1477,12 +1477,12 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcc0ab35" class="outline-3">
|
||||
<h3 id="orgcc0ab35"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
<div id="outline-container-orgdc9c26f" class="outline-3">
|
||||
<h3 id="orgdc9c26f"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgf7237a1" class="outline-2">
|
||||
<h2 id="orgf7237a1"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div id="outline-container-org1caea26" class="outline-2">
|
||||
<h2 id="org1caea26"><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>
|
||||
@ -1557,8 +1557,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org81175ca" class="outline-2">
|
||||
<h2 id="org81175ca"><span class="section-number-2">3</span> Test</h2>
|
||||
<div id="outline-container-orgeb9f77b" class="outline-2">
|
||||
<h2 id="orgeb9f77b"><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
|
||||
@ -1582,8 +1582,8 @@ rc = qmckl_trexio_read(context, filename, 255);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0aff0c9" class="outline-4">
|
||||
<h4 id="org0aff0c9"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||
<div id="outline-container-org1c4b052" class="outline-4">
|
||||
<h4 id="org1c4b052"><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>);
|
||||
@ -1601,8 +1601,8 @@ rc = qmckl_get_electron_down_num(context, &dn_num);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org323725d" class="outline-4">
|
||||
<h4 id="org323725d"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||
<div id="outline-container-org7b7e036" class="outline-4">
|
||||
<h4 id="org7b7e036"><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>);
|
||||
@ -1642,8 +1642,8 @@ coord = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgab46d91" class="outline-4">
|
||||
<h4 id="orgab46d91"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||
<div id="outline-container-orge624051" class="outline-4">
|
||||
<h4 id="orge624051"><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>);
|
||||
@ -1751,8 +1751,8 @@ prim_factor = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcf0c42c" class="outline-4">
|
||||
<h4 id="orgcf0c42c"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div id="outline-container-org83a35a1" class="outline-4">
|
||||
<h4 id="org83a35a1"><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>);
|
||||
@ -1783,7 +1783,7 @@ charge = <span style="color: #008b8b;">NULL</span>;
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 08:32</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 09:50</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-10-13 Thu 08:32 -->
|
||||
<!-- 2022-10-13 Thu 09:50 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Verificarlo CI</title>
|
||||
@ -311,22 +311,22 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgd1b0422">1. Verificarlo probes</a>
|
||||
<li><a href="#org20b2293">1. Verificarlo probes</a>
|
||||
<ul>
|
||||
<li><a href="#org368bf24">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#orgf0dea29">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org0d514fc">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#orgef36297">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#orgc2ea1dc">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org96b90c8">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#orgab0b853">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org9f9e5fa">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#org02ff9b1">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org76e2c4b">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="#org70fb945">2. Fortran wrappers</a></li>
|
||||
<li><a href="#org9eda6f8">2. Fortran wrappers</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd1b0422" class="outline-2">
|
||||
<h2 id="orgd1b0422"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div id="outline-container-org20b2293" class="outline-2">
|
||||
<h2 id="org20b2293"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
This file contains utility functions to enable the Verificarlo
|
||||
@ -377,8 +377,8 @@ To learn more about Verificarlo CI :
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org368bf24" class="outline-3">
|
||||
<h3 id="org368bf24"><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-org96b90c8" class="outline-3">
|
||||
<h3 id="org96b90c8"><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>();
|
||||
@ -396,8 +396,8 @@ To learn more about Verificarlo CI :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf0dea29" class="outline-3">
|
||||
<h3 id="orgf0dea29"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div id="outline-container-orgab0b853" class="outline-3">
|
||||
<h3 id="orgab0b853"><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>
|
||||
@ -432,8 +432,8 @@ if <code>VFC_CI</code> is undefined, return <code>false</code> (no error)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0d514fc" class="outline-3">
|
||||
<h3 id="org0d514fc"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div id="outline-container-org9f9e5fa" class="outline-3">
|
||||
<h3 id="org9f9e5fa"><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>
|
||||
@ -473,8 +473,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgef36297" class="outline-3">
|
||||
<h3 id="orgef36297"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div id="outline-container-org02ff9b1" class="outline-3">
|
||||
<h3 id="org02ff9b1"><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>
|
||||
@ -514,8 +514,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc2ea1dc" class="outline-3">
|
||||
<h3 id="orgc2ea1dc"><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-org76e2c4b" class="outline-3">
|
||||
<h3 id="org76e2c4b"><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>();
|
||||
@ -534,8 +534,8 @@ and accuracy
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org70fb945" class="outline-2">
|
||||
<h2 id="org70fb945"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||
<div id="outline-container-org9eda6f8" class="outline-2">
|
||||
<h2 id="org9eda6f8"><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>(
|
||||
@ -659,7 +659,7 @@ and accuracy
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 08:32</p>
|
||||
<p class="date">Created: 2022-10-13 Thu 09:50</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