mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2025-01-08 20:33:40 +01:00
Deploying to gh-pages from @ TREX-CoE/qmckl@68ea4ad588 🚀
This commit is contained in:
parent
27a359b646
commit
f5caa8c3e0
@ -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-11-16 Wed 22:03 -->
|
||||
<!-- 2022-11-16 Wed 22:11 -->
|
||||
<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-11-16 Wed 22:03</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 22:11</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-11-16 Wed 22:03 -->
|
||||
<!-- 2022-11-16 Wed 22:12 -->
|
||||
<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="#org83729d9">1. Installing QMCkl</a>
|
||||
<li><a href="#org7af0810">1. Installing QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#orgca35bff">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#orga62b7be">1.2. Installing from the source repository (for developers)</a></li>
|
||||
<li><a href="#org4cf6a22">1.1. Installing from the released tarball (for end users)</a></li>
|
||||
<li><a href="#org9b019c8">1.2. Installing from the source repository (for developers)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgaca2240">2. Using QMCkl</a></li>
|
||||
<li><a href="#org2e462a1">3. Developing in QMCkl</a>
|
||||
<li><a href="#org1b6625b">2. Using QMCkl</a></li>
|
||||
<li><a href="#org2267861">3. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#org6c20210">3.1. Literate programming</a></li>
|
||||
<li><a href="#org31e2b4c">3.2. Source code editing</a></li>
|
||||
<li><a href="#org22136a9">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org9ab0a86">3.4. Coding rules</a></li>
|
||||
<li><a href="#org391f208">3.5. Design of the library</a></li>
|
||||
<li><a href="#org7619b9e">3.6. Naming conventions</a></li>
|
||||
<li><a href="#org2c87ae4">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org2709375">3.8. Global state</a></li>
|
||||
<li><a href="#org803ad4e">3.9. Headers</a></li>
|
||||
<li><a href="#orgdebc4c7">3.10. Low-level functions</a></li>
|
||||
<li><a href="#org0a6c2f5">3.11. High-level functions</a></li>
|
||||
<li><a href="#org1e861a2">3.12. Numerical precision</a></li>
|
||||
<li><a href="#orgfed335c">3.13. Algorithms</a></li>
|
||||
<li><a href="#org26115d9">3.1. Literate programming</a></li>
|
||||
<li><a href="#org017c231">3.2. Source code editing</a></li>
|
||||
<li><a href="#orga04821a">3.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org43effe5">3.4. Coding rules</a></li>
|
||||
<li><a href="#org3e4d5ae">3.5. Design of the library</a></li>
|
||||
<li><a href="#org2c146a9">3.6. Naming conventions</a></li>
|
||||
<li><a href="#orgef1fcc6">3.7. Application programming interface</a></li>
|
||||
<li><a href="#org79287f1">3.8. Global state</a></li>
|
||||
<li><a href="#org591f986">3.9. Headers</a></li>
|
||||
<li><a href="#org9ac9595">3.10. Low-level functions</a></li>
|
||||
<li><a href="#org81ac9c4">3.11. High-level functions</a></li>
|
||||
<li><a href="#org4591146">3.12. Numerical precision</a></li>
|
||||
<li><a href="#org7d03c56">3.13. Algorithms</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org83729d9" class="outline-2">
|
||||
<h2 id="org83729d9"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||
<div id="outline-container-org7af0810" class="outline-2">
|
||||
<h2 id="org7af0810"><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-orgca35bff" class="outline-3">
|
||||
<h3 id="orgca35bff"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
||||
<div id="outline-container-org4cf6a22" class="outline-3">
|
||||
<h3 id="org4cf6a22"><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-orga62b7be" class="outline-3">
|
||||
<h3 id="orga62b7be"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
||||
<div id="outline-container-org9b019c8" class="outline-3">
|
||||
<h3 id="org9b019c8"><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-orgaca2240" class="outline-2">
|
||||
<h2 id="orgaca2240"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||
<div id="outline-container-org1b6625b" class="outline-2">
|
||||
<h2 id="org1b6625b"><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-org2e462a1" class="outline-2">
|
||||
<h2 id="org2e462a1"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-org2267861" class="outline-2">
|
||||
<h2 id="org2267861"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org6c20210" class="outline-3">
|
||||
<h3 id="org6c20210"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||
<div id="outline-container-org26115d9" class="outline-3">
|
||||
<h3 id="org26115d9"><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-org31e2b4c" class="outline-3">
|
||||
<h3 id="org31e2b4c"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||
<div id="outline-container-org017c231" class="outline-3">
|
||||
<h3 id="org017c231"><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-org22136a9" class="outline-3">
|
||||
<h3 id="org22136a9"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-orga04821a" class="outline-3">
|
||||
<h3 id="orga04821a"><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-org9ab0a86" class="outline-3">
|
||||
<h3 id="org9ab0a86"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||
<div id="outline-container-org43effe5" class="outline-3">
|
||||
<h3 id="org43effe5"><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-org391f208" class="outline-3">
|
||||
<h3 id="org391f208"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||
<div id="outline-container-org3e4d5ae" class="outline-3">
|
||||
<h3 id="org3e4d5ae"><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-org7619b9e" class="outline-3">
|
||||
<h3 id="org7619b9e"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-org2c146a9" class="outline-3">
|
||||
<h3 id="org2c146a9"><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-org2c87ae4" class="outline-3">
|
||||
<h3 id="org2c87ae4"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-orgef1fcc6" class="outline-3">
|
||||
<h3 id="orgef1fcc6"><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-org2709375" class="outline-3">
|
||||
<h3 id="org2709375"><span class="section-number-3">3.8</span> Global state</h3>
|
||||
<div id="outline-container-org79287f1" class="outline-3">
|
||||
<h3 id="org79287f1"><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="org0053269">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="org71f706c">=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-org803ad4e" class="outline-3">
|
||||
<h3 id="org803ad4e"><span class="section-number-3">3.9</span> Headers</h3>
|
||||
<div id="outline-container-org591f986" class="outline-3">
|
||||
<h3 id="org591f986"><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-orgdebc4c7" class="outline-3">
|
||||
<h3 id="orgdebc4c7"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-org9ac9595" class="outline-3">
|
||||
<h3 id="org9ac9595"><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="#org0053269"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#org71f706c"><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-org0a6c2f5" class="outline-3">
|
||||
<h3 id="org0a6c2f5"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||
<div id="outline-container-org81ac9c4" class="outline-3">
|
||||
<h3 id="org81ac9c4"><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-org1e861a2" class="outline-3">
|
||||
<h3 id="org1e861a2"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-org4591146" class="outline-3">
|
||||
<h3 id="org4591146"><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="#org0053269"><code>context</code></a> variable.
|
||||
specified in the <a href="#org71f706c"><code>context</code></a> variable.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -896,8 +896,8 @@ following points :
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfed335c" class="outline-3">
|
||||
<h3 id="orgfed335c"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||
<div id="outline-container-org7d03c56" class="outline-3">
|
||||
<h3 id="org7d03c56"><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-11-16 Wed 22:03</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 22:12</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
212
qmckl_ao.html
212
qmckl_ao.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-11-16 Wed 22:03 -->
|
||||
<!-- 2022-11-16 Wed 22:12 -->
|
||||
<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="#org54ce928">1. Introduction</a></li>
|
||||
<li><a href="#org70b2ae2">2. Context</a>
|
||||
<li><a href="#org0d9afe8">1. Introduction</a></li>
|
||||
<li><a href="#orgbd6cc8a">2. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org2f06260">2.1. Constant data</a>
|
||||
<li><a href="#org852fa4f">2.1. Constant data</a>
|
||||
<ul>
|
||||
<li><a href="#orge8ee439">2.1.1. Initialization functions</a>
|
||||
<li><a href="#orgb204958">2.1.1. Initialization functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgb3aa0a4">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org0d6c342">2.1.1.2. Fortran interface</a></li>
|
||||
<li><a href="#orga0db237">2.1.1.1. C interface</a></li>
|
||||
<li><a href="#org8b7ebb2">2.1.1.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6c330b7">2.1.2. Access functions</a>
|
||||
<li><a href="#org4fe90eb">2.1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org29178e7">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#orga3c6848">2.1.2.2. Fortran interface</a></li>
|
||||
<li><a href="#org4559fce">2.1.2.1. C interface</a></li>
|
||||
<li><a href="#org75ab0c3">2.1.2.2. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org123a257">2.2. Computed data</a>
|
||||
<li><a href="#org5cd7950">2.2. Computed data</a>
|
||||
<ul>
|
||||
<li><a href="#org1b150db">2.2.1. After initialization</a></li>
|
||||
<li><a href="#orgaf774b3">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#orge4880a0">2.2.3. Access functions</a></li>
|
||||
<li><a href="#org4429bff">2.2.1. After initialization</a></li>
|
||||
<li><a href="#org75b3fd1">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||
<li><a href="#orga3c22bc">2.2.3. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org09c5789">3. Radial part</a>
|
||||
<li><a href="#org9c9ea2f">3. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#org690cd1c">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org4da2ff5">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#orga657312">3.3. Computation of shells</a></li>
|
||||
<li><a href="#org7f7be82">3.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#orgd469338">3.2. Computation of primitives</a></li>
|
||||
<li><a href="#orgc0e363f">3.3. Computation of shells</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf1c8268">4. Polynomial part</a>
|
||||
<li><a href="#orgdbefc83">4. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#orga37c9db">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#orge4058f3">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
<li><a href="#org44cbee4">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||
<li><a href="#orgb697cad">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc79ac1f">5. Combining radial and polynomial parts</a>
|
||||
<li><a href="#org9be2bf8">5. Combining radial and polynomial parts</a>
|
||||
<ul>
|
||||
<li><a href="#org4931aae">5.1. Values only</a>
|
||||
<li><a href="#orgda5699d">5.1. Values only</a>
|
||||
<ul>
|
||||
<li><a href="#orgf254a64">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#org4dda8c5">5.1.2. HPC version</a></li>
|
||||
<li><a href="#org9c91296">5.1.3. Interfaces</a></li>
|
||||
<li><a href="#orgdfdae1b">5.1.1. Unoptimized version</a></li>
|
||||
<li><a href="#org9633f0a">5.1.2. HPC version</a></li>
|
||||
<li><a href="#orgdc7228e">5.1.3. Interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgeb3587a">5.2. Value, gradients, Laplacian</a>
|
||||
<li><a href="#org76cb85e">5.2. Value, gradients, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org00d2c29">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#orgf82133c">5.2.2. HPC version</a></li>
|
||||
<li><a href="#org3d731e0">5.2.3. Interfaces</a></li>
|
||||
<li><a href="#org595d063">5.2.1. Unoptimized version</a></li>
|
||||
<li><a href="#orgcf4f2c7">5.2.2. HPC version</a></li>
|
||||
<li><a href="#org60b7a5a">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-org54ce928" class="outline-2">
|
||||
<h2 id="org54ce928"><span class="section-number-2">1</span> Introduction</h2>
|
||||
<div id="outline-container-org0d9afe8" class="outline-2">
|
||||
<h2 id="org0d9afe8"><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-org70b2ae2" class="outline-2">
|
||||
<h2 id="org70b2ae2"><span class="section-number-2">2</span> Context</h2>
|
||||
<div id="outline-container-orgbd6cc8a" class="outline-2">
|
||||
<h2 id="orgbd6cc8a"><span class="section-number-2">2</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org2f06260" class="outline-3">
|
||||
<h3 id="org2f06260"><span class="section-number-3">2.1</span> Constant data</h3>
|
||||
<div id="outline-container-org852fa4f" class="outline-3">
|
||||
<h3 id="org852fa4f"><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="org824f798" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org91da051" 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="org8b51bc7"><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="org9028082"><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="org77eaf5f"><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="org545fab1"><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-orge8ee439" class="outline-4">
|
||||
<h4 id="orge8ee439"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
||||
<div id="outline-container-orgb204958" class="outline-4">
|
||||
<h4 id="orgb204958"><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="#org70b2ae2">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#orgbd6cc8a">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb3aa0a4" class="outline-5">
|
||||
<h5 id="orgb3aa0a4"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||
<div id="outline-container-orga0db237" class="outline-5">
|
||||
<h5 id="orga0db237"><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-org0d6c342" class="outline-5">
|
||||
<h5 id="org0d6c342"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org8b7ebb2" class="outline-5">
|
||||
<h5 id="org8b7ebb2"><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-org6c330b7" class="outline-4">
|
||||
<h4 id="org6c330b7"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
||||
<div id="outline-container-org4fe90eb" class="outline-4">
|
||||
<h4 id="org4fe90eb"><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="#org70b2ae2">2</a>.
|
||||
equal of larger than the value given in the table of section <a href="#orgbd6cc8a">2</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org29178e7" class="outline-5">
|
||||
<h5 id="org29178e7"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
||||
<div id="outline-container-org4559fce" class="outline-5">
|
||||
<h5 id="org4559fce"><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-orga3c6848" class="outline-5">
|
||||
<h5 id="orga3c6848"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
||||
<div id="outline-container-org75ab0c3" class="outline-5">
|
||||
<h5 id="org75ab0c3"><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-org123a257" class="outline-3">
|
||||
<h3 id="org123a257"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||
<div id="outline-container-org5cd7950" class="outline-3">
|
||||
<h3 id="org5cd7950"><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-org1b150db" class="outline-4">
|
||||
<h4 id="org1b150db"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||
<div id="outline-container-org4429bff" class="outline-4">
|
||||
<h4 id="org4429bff"><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-orgaf774b3" class="outline-4">
|
||||
<h4 id="orgaf774b3"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
||||
<div id="outline-container-org75b3fd1" class="outline-4">
|
||||
<h4 id="org75b3fd1"><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-orge4880a0" class="outline-4">
|
||||
<h4 id="orge4880a0"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||
<div id="outline-container-orga3c22bc" class="outline-4">
|
||||
<h4 id="orga3c22bc"><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="#org4da2ff5">3.2</a>.
|
||||
See section <a href="#orgd469338">3.2</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1495,7 +1495,7 @@ See section <a href="#org4da2ff5">3.2</a>.
|
||||
|
||||
<p>
|
||||
Returns the array of values, gradients an Laplacian of contracted shells
|
||||
evaluated at the current coordinates. See section <a href="#orga657312">3.3</a>.
|
||||
evaluated at the current coordinates. See section <a href="#orgc0e363f">3.3</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
@ -1509,7 +1509,7 @@ evaluated at the current coordinates. See section <a href="#orga657312">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="#orgc79ac1f">5</a>.
|
||||
See section <a href="#org9be2bf8">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="#orgc79ac1f">5</a>.
|
||||
the current coordinates. See section <a href="#org9be2bf8">5</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -1553,12 +1553,12 @@ Uses the given array to compute the value.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org09c5789" class="outline-2">
|
||||
<h2 id="org09c5789"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div id="outline-container-org9c9ea2f" class="outline-2">
|
||||
<h2 id="org9c9ea2f"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org690cd1c" class="outline-3">
|
||||
<h3 id="org690cd1c"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div id="outline-container-org7f7be82" class="outline-3">
|
||||
<h3 id="org7f7be82"><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-org4da2ff5" class="outline-3">
|
||||
<h3 id="org4da2ff5"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div id="outline-container-orgd469338" class="outline-3">
|
||||
<h3 id="orgd469338"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<table id="org26e56f7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org78afd09" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1891,10 +1891,10 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga657312" class="outline-3">
|
||||
<h3 id="orga657312"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div id="outline-container-orgc0e363f" class="outline-3">
|
||||
<h3 id="orgc0e363f"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||
<div class="outline-text-3" id="text-3-3">
|
||||
<table id="orgea3bc9b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org849f2ce" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2146,8 +2146,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf1c8268" class="outline-2">
|
||||
<h2 id="orgf1c8268"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||
<div id="outline-container-orgdbefc83" class="outline-2">
|
||||
<h2 id="orgdbefc83"><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-orga37c9db" class="outline-3">
|
||||
<h3 id="orga37c9db"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-org44cbee4" class="outline-3">
|
||||
<h3 id="org44cbee4"><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="orgb8cee02" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org97fd2a1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -2318,8 +2318,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge4058f3" class="outline-3">
|
||||
<h3 id="orge4058f3"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-orgb697cad" class="outline-3">
|
||||
<h3 id="orgb697cad"><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="orgb3568cc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org6db5b53" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3143,18 +3143,18 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc79ac1f" class="outline-2">
|
||||
<h2 id="orgc79ac1f"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||
<div id="outline-container-org9be2bf8" class="outline-2">
|
||||
<h2 id="org9be2bf8"><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-org4931aae" class="outline-3">
|
||||
<h3 id="org4931aae"><span class="section-number-3">5.1</span> Values only</h3>
|
||||
<div id="outline-container-orgda5699d" class="outline-3">
|
||||
<h3 id="orgda5699d"><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-orgf254a64" class="outline-4">
|
||||
<h4 id="orgf254a64"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-orgdfdae1b" class="outline-4">
|
||||
<h4 id="orgdfdae1b"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-1">
|
||||
<table id="orgff6d98a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgeb12142" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3390,10 +3390,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4dda8c5" class="outline-4">
|
||||
<h4 id="org4dda8c5"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div id="outline-container-org9633f0a" class="outline-4">
|
||||
<h4 id="org9633f0a"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-1-2">
|
||||
<table id="org4b959a7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1db1535" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3551,8 +3551,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9c91296" class="outline-4">
|
||||
<h4 id="org9c91296"><span class="section-number-4">5.1.3</span> Interfaces</h4>
|
||||
<div id="outline-container-orgdc7228e" class="outline-4">
|
||||
<h4 id="orgdc7228e"><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> (
|
||||
@ -3601,14 +3601,14 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeb3587a" class="outline-3">
|
||||
<h3 id="orgeb3587a"><span class="section-number-3">5.2</span> Value, gradients, Laplacian</h3>
|
||||
<div id="outline-container-org76cb85e" class="outline-3">
|
||||
<h3 id="org76cb85e"><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-org00d2c29" class="outline-4">
|
||||
<h4 id="org00d2c29"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div id="outline-container-org595d063" class="outline-4">
|
||||
<h4 id="org595d063"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-1">
|
||||
<table id="orgf89f744" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9d2fec2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -3873,10 +3873,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf82133c" class="outline-4">
|
||||
<h4 id="orgf82133c"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div id="outline-container-orgcf4f2c7" class="outline-4">
|
||||
<h4 id="orgcf4f2c7"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||
<div class="outline-text-4" id="text-5-2-2">
|
||||
<table id="org5595ce6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgdb750cd" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -4035,8 +4035,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org3d731e0" class="outline-4">
|
||||
<h4 id="org3d731e0"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||
<div id="outline-container-org60b7a5a" class="outline-4">
|
||||
<h4 id="org60b7a5a"><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> (
|
||||
@ -4088,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-11-16 Wed 22:03</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 22:12</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-11-16 Wed 22:03 -->
|
||||
<!-- 2022-11-16 Wed 22:12 -->
|
||||
<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="#org20856ac">-</a></li>
|
||||
<li><a href="#org2b9620b">1. Data types</a>
|
||||
<li><a href="#orgbf87917">-</a></li>
|
||||
<li><a href="#org460d0cc">1. Data types</a>
|
||||
<ul>
|
||||
<li><a href="#org4df568a">1.1. Vector</a></li>
|
||||
<li><a href="#org9e0ca16">1.2. Matrix</a></li>
|
||||
<li><a href="#orga473cb7">1.3. Tensor</a></li>
|
||||
<li><a href="#org940cbaf">1.4. Reshaping</a>
|
||||
<li><a href="#orgcb07658">1.1. Vector</a></li>
|
||||
<li><a href="#org830cd81">1.2. Matrix</a></li>
|
||||
<li><a href="#org4d38447">1.3. Tensor</a></li>
|
||||
<li><a href="#org3a50ad3">1.4. Reshaping</a>
|
||||
<ul>
|
||||
<li><a href="#orgd4ca83a">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#org16b3bdc">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#org027ce47">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#orgd97479e">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#org97ba0a6">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#orge39ffb0">1.4.6. Tensor -> Matrix</a></li>
|
||||
<li><a href="#org02a8c91">1.4.1. Vector -> Matrix</a></li>
|
||||
<li><a href="#org70c5695">1.4.2. Vector -> Tensor</a></li>
|
||||
<li><a href="#orge75fc7a">1.4.3. Matrix -> Vector</a></li>
|
||||
<li><a href="#orgba1202a">1.4.4. Matrix -> Tensor</a></li>
|
||||
<li><a href="#orgbd896a5">1.4.5. Tensor -> Vector</a></li>
|
||||
<li><a href="#org391e5e1">1.4.6. Tensor -> Matrix</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org07fce32">1.5. Access macros</a></li>
|
||||
<li><a href="#org0d2c995">1.6. Set all elements</a>
|
||||
<li><a href="#org9ca2d46">1.5. Access macros</a></li>
|
||||
<li><a href="#orgcf3292a">1.6. Set all elements</a>
|
||||
<ul>
|
||||
<li><a href="#orgbc8f2a1">1.6.1. Vector</a></li>
|
||||
<li><a href="#org463acd0">1.6.2. Matrix</a></li>
|
||||
<li><a href="#orgeeb6118">1.6.3. Tensor</a></li>
|
||||
<li><a href="#org80c1059">1.6.1. Vector</a></li>
|
||||
<li><a href="#orgb2b6689">1.6.2. Matrix</a></li>
|
||||
<li><a href="#orge83fc4a">1.6.3. Tensor</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge6cda66">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
<li><a href="#orgca7abb9">1.7. Copy to/from to <code>double*</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org40ad3b7">2. Matrix operations</a>
|
||||
<li><a href="#orgb0ef164">2. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#org524dfa9">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#org6a29584">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#org0bbfbb0">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org5858737">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#org264079e">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<li><a href="#org23ceba2">2.1. <code>qmckl_dgemm</code></a></li>
|
||||
<li><a href="#orgf4c3105">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||
<li><a href="#org148f0b8">2.3. <code>qmckl_matmul</code></a></li>
|
||||
<li><a href="#org824940b">2.4. <code>qmckl_adjugate</code></a></li>
|
||||
<li><a href="#org157a568">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||
<ul>
|
||||
<li><a href="#org3942212">2.5.1. C interface</a></li>
|
||||
<li><a href="#org8ad214f">2.5.1. C interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd712de8">2.6. <code>qmckl_transpose</code></a></li>
|
||||
<li><a href="#org75ad755">2.6. <code>qmckl_transpose</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org20856ac" class="outline-2">
|
||||
<h2 id="org20856ac">-</h2>
|
||||
<div class="outline-text-2" id="text-org20856ac">
|
||||
<div id="outline-container-orgbf87917" class="outline-2">
|
||||
<h2 id="orgbf87917">-</h2>
|
||||
<div class="outline-text-2" id="text-orgbf87917">
|
||||
<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-org2b9620b" class="outline-2">
|
||||
<h2 id="org2b9620b"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div id="outline-container-org460d0cc" class="outline-2">
|
||||
<h2 id="org460d0cc"><span class="section-number-2">1</span> Data types</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org4df568a" class="outline-3">
|
||||
<h3 id="org4df568a"><span class="section-number-3">1.1</span> Vector</h3>
|
||||
<div id="outline-container-orgcb07658" class="outline-3">
|
||||
<h3 id="orgcb07658"><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-org9e0ca16" class="outline-3">
|
||||
<h3 id="org9e0ca16"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||
<div id="outline-container-org830cd81" class="outline-3">
|
||||
<h3 id="org830cd81"><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-orga473cb7" class="outline-3">
|
||||
<h3 id="orga473cb7"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||
<div id="outline-container-org4d38447" class="outline-3">
|
||||
<h3 id="org4d38447"><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-org940cbaf" class="outline-3">
|
||||
<h3 id="org940cbaf"><span class="section-number-3">1.4</span> Reshaping</h3>
|
||||
<div id="outline-container-org3a50ad3" class="outline-3">
|
||||
<h3 id="org3a50ad3"><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-orgd4ca83a" class="outline-4">
|
||||
<h4 id="orgd4ca83a"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||
<div id="outline-container-org02a8c91" class="outline-4">
|
||||
<h4 id="org02a8c91"><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-org16b3bdc" class="outline-4">
|
||||
<h4 id="org16b3bdc"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||
<div id="outline-container-org70c5695" class="outline-4">
|
||||
<h4 id="org70c5695"><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-org027ce47" class="outline-4">
|
||||
<h4 id="org027ce47"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||
<div id="outline-container-orge75fc7a" class="outline-4">
|
||||
<h4 id="orge75fc7a"><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-orgd97479e" class="outline-4">
|
||||
<h4 id="orgd97479e"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||
<div id="outline-container-orgba1202a" class="outline-4">
|
||||
<h4 id="orgba1202a"><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-org97ba0a6" class="outline-4">
|
||||
<h4 id="org97ba0a6"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||
<div id="outline-container-orgbd896a5" class="outline-4">
|
||||
<h4 id="orgbd896a5"><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-orge39ffb0" class="outline-4">
|
||||
<h4 id="orge39ffb0"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||
<div id="outline-container-org391e5e1" class="outline-4">
|
||||
<h4 id="org391e5e1"><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-org07fce32" class="outline-3">
|
||||
<h3 id="org07fce32"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||
<div id="outline-container-org9ca2d46" class="outline-3">
|
||||
<h3 id="org9ca2d46"><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-org0d2c995" class="outline-3">
|
||||
<h3 id="org0d2c995"><span class="section-number-3">1.6</span> Set all elements</h3>
|
||||
<div id="outline-container-orgcf3292a" class="outline-3">
|
||||
<h3 id="orgcf3292a"><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-orgbc8f2a1" class="outline-4">
|
||||
<h4 id="orgbc8f2a1"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||
<div id="outline-container-org80c1059" class="outline-4">
|
||||
<h4 id="org80c1059"><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-org463acd0" class="outline-4">
|
||||
<h4 id="org463acd0"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||
<div id="outline-container-orgb2b6689" class="outline-4">
|
||||
<h4 id="orgb2b6689"><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-orgeeb6118" class="outline-4">
|
||||
<h4 id="orgeeb6118"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||
<div id="outline-container-orge83fc4a" class="outline-4">
|
||||
<h4 id="orge83fc4a"><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-orge6cda66" class="outline-3">
|
||||
<h3 id="orge6cda66"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||
<div id="outline-container-orgca7abb9" class="outline-3">
|
||||
<h3 id="orgca7abb9"><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-org40ad3b7" class="outline-2">
|
||||
<h2 id="org40ad3b7"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div id="outline-container-orgb0ef164" class="outline-2">
|
||||
<h2 id="orgb0ef164"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org524dfa9" class="outline-3">
|
||||
<h3 id="org524dfa9"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||
<div id="outline-container-org23ceba2" class="outline-3">
|
||||
<h3 id="org23ceba2"><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="orgcb3fd9f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7fc3d59" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1012,8 +1012,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6a29584" class="outline-3">
|
||||
<h3 id="org6a29584"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
||||
<div id="outline-container-orgf4c3105" class="outline-3">
|
||||
<h3 id="orgf4c3105"><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="org992bd7a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb3d7111" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1208,8 +1208,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0bbfbb0" class="outline-3">
|
||||
<h3 id="org0bbfbb0"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
||||
<div id="outline-container-org148f0b8" class="outline-3">
|
||||
<h3 id="org148f0b8"><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="orge9076b8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org9a488c3" 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-org5858737" class="outline-3">
|
||||
<h3 id="org5858737"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
||||
<div id="outline-container-org824940b" class="outline-3">
|
||||
<h3 id="org824940b"><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="orgadf63b6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0d7dce4" 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-org264079e" class="outline-3">
|
||||
<h3 id="org264079e"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
||||
<div id="outline-container-org157a568" class="outline-3">
|
||||
<h3 id="org157a568"><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="orge7bbd4f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org411c5f7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1663,13 +1663,13 @@ LAPACK library.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3942212" class="outline-4">
|
||||
<h4 id="org3942212"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
<div id="outline-container-org8ad214f" class="outline-4">
|
||||
<h4 id="org8ad214f"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd712de8" class="outline-3">
|
||||
<h3 id="orgd712de8"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
||||
<div id="outline-container-org75ad755" class="outline-3">
|
||||
<h3 id="org75ad755"><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-11-16 Wed 22:03</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 22:12</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-11-16 Wed 22:03 -->
|
||||
<!-- 2022-11-16 Wed 22:11 -->
|
||||
<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="#org620a914">1. Context handling</a>
|
||||
<li><a href="#orgecb1254">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#org4c42c9e">1.1. Data structure</a></li>
|
||||
<li><a href="#orga70a309">1.2. Creation</a></li>
|
||||
<li><a href="#org46782a5">1.3. Locking</a></li>
|
||||
<li><a href="#orga593609">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#orgf88bd52">1.5. Destroy</a></li>
|
||||
<li><a href="#org2b38c21">1.1. Data structure</a></li>
|
||||
<li><a href="#org91376bc">1.2. Creation</a></li>
|
||||
<li><a href="#orga5a2a5f">1.3. Locking</a></li>
|
||||
<li><a href="#orge3437cf">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org95ae664">1.5. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org620a914" class="outline-2">
|
||||
<h2 id="org620a914"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-orgecb1254" class="outline-2">
|
||||
<h2 id="orgecb1254"><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="org21847ee"><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="org7f1a9cb"><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-org4c42c9e" class="outline-3">
|
||||
<h3 id="org4c42c9e"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org2b38c21" class="outline-3">
|
||||
<h3 id="org2b38c21"><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="#orga70a309"><code>qmckl_context_create</code></a> <a href="#orgf88bd52"><code>qmckl_context_destroy</code></a> and <a href="#orga593609"><code>qmckl_context_copy</code></a>
|
||||
<a href="#org91376bc"><code>qmckl_context_create</code></a> <a href="#org95ae664"><code>qmckl_context_destroy</code></a> and <a href="#orge3437cf"><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-orga70a309" class="outline-3">
|
||||
<h3 id="orga70a309"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-org91376bc" class="outline-3">
|
||||
<h3 id="org91376bc"><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-org46782a5" class="outline-3">
|
||||
<h3 id="org46782a5"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-orga5a2a5f" class="outline-3">
|
||||
<h3 id="orga5a2a5f"><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-orga593609" class="outline-3">
|
||||
<h3 id="orga593609"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div id="outline-container-orge3437cf" class="outline-3">
|
||||
<h3 id="orge3437cf"><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-orgf88bd52" class="outline-3">
|
||||
<h3 id="orgf88bd52"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-org95ae664" class="outline-3">
|
||||
<h3 id="org95ae664"><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-11-16 Wed 22:03</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 22:11</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-11-16 Wed 22:03 -->
|
||||
<!-- 2022-11-16 Wed 22:11 -->
|
||||
<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="#orgcb3fe6b">1. Context</a>
|
||||
<li><a href="#org82132a4">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org80a15e8">1.1. Data structure</a></li>
|
||||
<li><a href="#org22bba46">1.2. Access functions</a></li>
|
||||
<li><a href="#org322d194">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org880ea5e">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#org76f4380">1.5. Test</a></li>
|
||||
<li><a href="#org2109ad7">1.1. Data structure</a></li>
|
||||
<li><a href="#org493d554">1.2. Access functions</a></li>
|
||||
<li><a href="#org5c19101">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org7b91a37">1.4. Fortran Interfaces</a></li>
|
||||
<li><a href="#orgfd65da5">1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org871f1b8">2. Computation</a>
|
||||
<li><a href="#org4bbde4c">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org7d50cf9">2.1. Determinant matrix</a>
|
||||
<li><a href="#org208ceab">2.1. Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#org2d3c680">2.1.1. Get</a></li>
|
||||
<li><a href="#org127ceb0">2.1.2. Provide</a></li>
|
||||
<li><a href="#org6ff052d">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#org4d02291">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#orge5a6484">2.1.5. Test</a></li>
|
||||
<li><a href="#orga88b7c6">2.1.1. Get</a></li>
|
||||
<li><a href="#orgd04772c">2.1.2. Provide</a></li>
|
||||
<li><a href="#org09e8d9c">2.1.3. Compute alpha</a></li>
|
||||
<li><a href="#org517f80b">2.1.4. Compute beta</a></li>
|
||||
<li><a href="#orgea9fe0f">2.1.5. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7e5bb95">2.2. Inverse of Determinant matrix</a>
|
||||
<li><a href="#orga734560">2.2. Inverse of Determinant matrix</a>
|
||||
<ul>
|
||||
<li><a href="#orga270e2c">2.2.1. Get</a></li>
|
||||
<li><a href="#org58da7cd">2.2.2. Provide</a></li>
|
||||
<li><a href="#org13f53e8">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#orgb2fbc5f">2.2.4. Compute beta</a></li>
|
||||
<li><a href="#orgcc686dd">2.2.1. Get</a></li>
|
||||
<li><a href="#orgbacd41d">2.2.2. Provide</a></li>
|
||||
<li><a href="#org161c4f5">2.2.3. Compute alpha</a></li>
|
||||
<li><a href="#org24effcb">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-orgcb3fe6b" class="outline-2">
|
||||
<h2 id="orgcb3fe6b"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org82132a4" class="outline-2">
|
||||
<h2 id="org82132a4"><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-org80a15e8" class="outline-3">
|
||||
<h3 id="org80a15e8"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org2109ad7" class="outline-3">
|
||||
<h3 id="org2109ad7"><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-org22bba46" class="outline-3">
|
||||
<h3 id="org22bba46"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org493d554" class="outline-3">
|
||||
<h3 id="org493d554"><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-org322d194" class="outline-3">
|
||||
<h3 id="org322d194"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org5c19101" class="outline-3">
|
||||
<h3 id="org5c19101"><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-org880ea5e" class="outline-3">
|
||||
<h3 id="org880ea5e"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
<div id="outline-container-org7b91a37" class="outline-3">
|
||||
<h3 id="org7b91a37"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||
</div>
|
||||
<div id="outline-container-org76f4380" class="outline-3">
|
||||
<h3 id="org76f4380"><span class="section-number-3">1.5</span> Test</h3>
|
||||
<div id="outline-container-orgfd65da5" class="outline-3">
|
||||
<h3 id="orgfd65da5"><span class="section-number-3">1.5</span> Test</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org871f1b8" class="outline-2">
|
||||
<h2 id="org871f1b8"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org4bbde4c" class="outline-2">
|
||||
<h2 id="org4bbde4c"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org7d50cf9" class="outline-3">
|
||||
<h3 id="org7d50cf9"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
||||
<div id="outline-container-org208ceab" class="outline-3">
|
||||
<h3 id="org208ceab"><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-org2d3c680" class="outline-4">
|
||||
<h4 id="org2d3c680"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orga88b7c6" class="outline-4">
|
||||
<h4 id="orga88b7c6"><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-org127ceb0" class="outline-4">
|
||||
<h4 id="org127ceb0"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-orgd04772c" class="outline-4">
|
||||
<h4 id="orgd04772c"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6ff052d" class="outline-4">
|
||||
<h4 id="org6ff052d"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org09e8d9c" class="outline-4">
|
||||
<h4 id="org09e8d9c"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="org98e22c1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1862640" 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-org4d02291" class="outline-4">
|
||||
<h4 id="org4d02291"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org517f80b" class="outline-4">
|
||||
<h4 id="org517f80b"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<table id="orgfe4c29e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org44de35f" 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-orge5a6484" class="outline-4">
|
||||
<h4 id="orge5a6484"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
<div id="outline-container-orgea9fe0f" class="outline-4">
|
||||
<h4 id="orgea9fe0f"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7e5bb95" class="outline-3">
|
||||
<h3 id="org7e5bb95"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
||||
<div id="outline-container-orga734560" class="outline-3">
|
||||
<h3 id="orga734560"><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-orga270e2c" class="outline-4">
|
||||
<h4 id="orga270e2c"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgcc686dd" class="outline-4">
|
||||
<h4 id="orgcc686dd"><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-org58da7cd" class="outline-4">
|
||||
<h4 id="org58da7cd"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-orgbacd41d" class="outline-4">
|
||||
<h4 id="orgbacd41d"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org13f53e8" class="outline-4">
|
||||
<h4 id="org13f53e8"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div id="outline-container-org161c4f5" class="outline-4">
|
||||
<h4 id="org161c4f5"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="orgbdcdff6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org15cf49c" 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-orgb2fbc5f" class="outline-4">
|
||||
<h4 id="orgb2fbc5f"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div id="outline-container-org24effcb" class="outline-4">
|
||||
<h4 id="org24effcb"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||
<div class="outline-text-4" id="text-2-2-4">
|
||||
<table id="org857fa95" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org57e133e" 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-11-16 Wed 22:03</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 22:11</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-11-16 Wed 22:03 -->
|
||||
<!-- 2022-11-16 Wed 22:12 -->
|
||||
<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="#org908bacd">1. Squared distance</a>
|
||||
<li><a href="#org110e36c">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#org2bf4e95">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#orgc0fa980">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgb3abf40">1.1.1. Performance</a></li>
|
||||
<li><a href="#orgf8269af">1.1.1. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge5c4d24">2. Distance</a>
|
||||
<li><a href="#orgf2a9ee6">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org2b0f049">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#orga79a501">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#org1bafdc6">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org0caf112">2.1.2. C header</a></li>
|
||||
<li><a href="#org361e4a2">2.1.3. Source</a></li>
|
||||
<li><a href="#org801acc8">2.1.4. Performance</a></li>
|
||||
<li><a href="#org65a0ef7">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org812e7d5">2.1.2. C header</a></li>
|
||||
<li><a href="#orgc02deb5">2.1.3. Source</a></li>
|
||||
<li><a href="#org6544981">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org65427cc">3. Rescaled Distance</a>
|
||||
<li><a href="#org32d3b46">3. Rescaled Distance</a>
|
||||
<ul>
|
||||
<li><a href="#orge304711">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<li><a href="#orga6aeed2">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<ul>
|
||||
<li><a href="#org68ff409">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orgda90e5d">3.1.2. C header</a></li>
|
||||
<li><a href="#orgfdf20e8">3.1.3. Source</a></li>
|
||||
<li><a href="#org5bb60d0">3.1.4. Performance</a></li>
|
||||
<li><a href="#org3d5b4e6">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org226244c">3.1.2. C header</a></li>
|
||||
<li><a href="#org9703411">3.1.3. Source</a></li>
|
||||
<li><a href="#org856e751">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org898fd7b">4. Rescaled Distance Derivatives</a>
|
||||
<li><a href="#orge178e20">4. Rescaled Distance Derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#orge590f3c">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a></li>
|
||||
<li><a href="#orgbc6dc93">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org908bacd" class="outline-2">
|
||||
<h2 id="org908bacd"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-org110e36c" class="outline-2">
|
||||
<h2 id="org110e36c"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org2bf4e95" class="outline-3">
|
||||
<h3 id="org2bf4e95"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-orgc0fa980" class="outline-3">
|
||||
<h3 id="orgc0fa980"><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="org84017a0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2e20ef8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -659,8 +659,8 @@ Requirements:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb3abf40" class="outline-4">
|
||||
<h4 id="orgb3abf40"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||
<div id="outline-container-orgf8269af" class="outline-4">
|
||||
<h4 id="orgf8269af"><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-orge5c4d24" class="outline-2">
|
||||
<h2 id="orge5c4d24"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-orgf2a9ee6" class="outline-2">
|
||||
<h2 id="orgf2a9ee6"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org2b0f049" class="outline-3">
|
||||
<h3 id="org2b0f049"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div id="outline-container-orga79a501" class="outline-3">
|
||||
<h3 id="orga79a501"><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="org75ae6e1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org66ce0a9" 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-org1bafdc6" class="outline-4">
|
||||
<h4 id="org1bafdc6"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org65a0ef7" class="outline-4">
|
||||
<h4 id="org65a0ef7"><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-org0caf112" class="outline-4">
|
||||
<h4 id="org0caf112"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-org812e7d5" class="outline-4">
|
||||
<h4 id="org812e7d5"><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-org361e4a2" class="outline-4">
|
||||
<h4 id="org361e4a2"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgc02deb5" class="outline-4">
|
||||
<h4 id="orgc02deb5"><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-org801acc8" class="outline-4">
|
||||
<h4 id="org801acc8"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org6544981" class="outline-4">
|
||||
<h4 id="org6544981"><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-org65427cc" class="outline-2">
|
||||
<h2 id="org65427cc"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div id="outline-container-org32d3b46" class="outline-2">
|
||||
<h2 id="org32d3b46"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orge304711" class="outline-3">
|
||||
<h3 id="orge304711"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div id="outline-container-orga6aeed2" class="outline-3">
|
||||
<h3 id="orga6aeed2"><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="orgc949f1b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgff52677" 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-org68ff409" class="outline-4">
|
||||
<h4 id="org68ff409"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org3d5b4e6" class="outline-4">
|
||||
<h4 id="org3d5b4e6"><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-orgda90e5d" class="outline-4">
|
||||
<h4 id="orgda90e5d"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-org226244c" class="outline-4">
|
||||
<h4 id="org226244c"><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-orgfdf20e8" class="outline-4">
|
||||
<h4 id="orgfdf20e8"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-org9703411" class="outline-4">
|
||||
<h4 id="org9703411"><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-org5bb60d0" class="outline-4">
|
||||
<h4 id="org5bb60d0"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org856e751" class="outline-4">
|
||||
<h4 id="org856e751"><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-org898fd7b" class="outline-2">
|
||||
<h2 id="org898fd7b"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div id="outline-container-orge178e20" class="outline-2">
|
||||
<h2 id="orge178e20"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-orge590f3c" class="outline-3">
|
||||
<h3 id="orge590f3c"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_deriv_e</code></h3>
|
||||
<div id="outline-container-orgbc6dc93" class="outline-3">
|
||||
<h3 id="orgbc6dc93"><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="org597257e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org473615d" 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-11-16 Wed 22:03</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 22:12</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-11-16 Wed 22:03 -->
|
||||
<!-- 2022-11-16 Wed 22:11 -->
|
||||
<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="#orga41a89f">1. Context</a>
|
||||
<li><a href="#org81afc82">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgaf25db7">1.1. Data structure</a></li>
|
||||
<li><a href="#orgced35f4">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org01f1731">1.3. Access functions</a>
|
||||
<li><a href="#org40c240e">1.1. Data structure</a></li>
|
||||
<li><a href="#org2a20f39">1.2. Initialization functions</a></li>
|
||||
<li><a href="#org4a31894">1.3. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgf3fb58e">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#org4486096">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#orgf44564a">1.3.3. Electron coordinates</a></li>
|
||||
<li><a href="#org486794b">1.3.1. Number of electrons</a></li>
|
||||
<li><a href="#org7baa8e5">1.3.2. Number of walkers</a></li>
|
||||
<li><a href="#orgb8e0c9b">1.3.3. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb24fd58">1.4. Test</a></li>
|
||||
<li><a href="#org3e9a608">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org238b30b">2. Computation</a>
|
||||
<li><a href="#orgfd85498">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgc2b9df2">2.1. Electron-electron distances</a>
|
||||
<li><a href="#orgef22bfa">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#org9444800">2.1.1. Get</a></li>
|
||||
<li><a href="#org76c2c8a">2.1.2. Compute</a></li>
|
||||
<li><a href="#org9abb2d6">2.1.3. Test</a></li>
|
||||
<li><a href="#orgcf2b56c">2.1.1. Get</a></li>
|
||||
<li><a href="#org3796ec1">2.1.2. Compute</a></li>
|
||||
<li><a href="#org044f71c">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org617fd37">2.2. Electron-electron potential</a>
|
||||
<li><a href="#org21cce83">2.2. Electron-electron potential</a>
|
||||
<ul>
|
||||
<li><a href="#orgca08467">2.2.1. Get</a></li>
|
||||
<li><a href="#orgbc3c5cb">2.2.2. Compute</a></li>
|
||||
<li><a href="#org2575212">2.2.3. Test</a></li>
|
||||
<li><a href="#orge4b19c0">2.2.1. Get</a></li>
|
||||
<li><a href="#orgfc8497b">2.2.2. Compute</a></li>
|
||||
<li><a href="#org1e42784">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org73ca948">2.3. Electron-nucleus distances</a>
|
||||
<li><a href="#org7d6dd2c">2.3. Electron-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org9064ae4">2.3.1. Get</a></li>
|
||||
<li><a href="#orgef0bbac">2.3.2. Compute</a></li>
|
||||
<li><a href="#org862932b">2.3.3. Test</a></li>
|
||||
<li><a href="#org2be2b7b">2.3.1. Get</a></li>
|
||||
<li><a href="#orgabb3cf3">2.3.2. Compute</a></li>
|
||||
<li><a href="#org612e81c">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org0532b1d">2.4. Electron-nucleus potential</a>
|
||||
<li><a href="#org39d58b1">2.4. Electron-nucleus potential</a>
|
||||
<ul>
|
||||
<li><a href="#org9a35ee4">2.4.1. Get</a></li>
|
||||
<li><a href="#org53b1a95">2.4.2. Compute</a></li>
|
||||
<li><a href="#org0c4e0ce">2.4.3. Test</a></li>
|
||||
<li><a href="#orged90cfb">2.4.1. Get</a></li>
|
||||
<li><a href="#orgd8f1c1e">2.4.2. Compute</a></li>
|
||||
<li><a href="#org9af87c1">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2ad5378">2.5. Generate initial coordinates</a></li>
|
||||
<li><a href="#orgc713c24">2.5. Generate initial coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga41a89f" class="outline-2">
|
||||
<h2 id="orga41a89f"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org81afc82" class="outline-2">
|
||||
<h2 id="org81afc82"><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-orgaf25db7" class="outline-3">
|
||||
<h3 id="orgaf25db7"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org40c240e" class="outline-3">
|
||||
<h3 id="org40c240e"><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-orgced35f4" class="outline-3">
|
||||
<h3 id="orgced35f4"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-org2a20f39" class="outline-3">
|
||||
<h3 id="org2a20f39"><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-org01f1731" class="outline-3">
|
||||
<h3 id="org01f1731"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div id="outline-container-org4a31894" class="outline-3">
|
||||
<h3 id="org4a31894"><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-orgf3fb58e" class="outline-4">
|
||||
<h4 id="orgf3fb58e"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
<div id="outline-container-org486794b" class="outline-4">
|
||||
<h4 id="org486794b"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4486096" class="outline-4">
|
||||
<h4 id="org4486096"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
||||
<div id="outline-container-org7baa8e5" class="outline-4">
|
||||
<h4 id="org7baa8e5"><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-orgf44564a" class="outline-4">
|
||||
<h4 id="orgf44564a"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
||||
<div id="outline-container-orgb8e0c9b" class="outline-4">
|
||||
<h4 id="orgb8e0c9b"><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-orgb24fd58" class="outline-3">
|
||||
<h3 id="orgb24fd58"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org3e9a608" class="outline-3">
|
||||
<h3 id="org3e9a608"><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-org238b30b" class="outline-2">
|
||||
<h2 id="org238b30b"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orgfd85498" class="outline-2">
|
||||
<h2 id="orgfd85498"><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-orgc2b9df2" class="outline-3">
|
||||
<h3 id="orgc2b9df2"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-orgef22bfa" class="outline-3">
|
||||
<h3 id="orgef22bfa"><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-org9444800" class="outline-4">
|
||||
<h4 id="org9444800"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orgcf2b56c" class="outline-4">
|
||||
<h4 id="orgcf2b56c"><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-org76c2c8a" class="outline-4">
|
||||
<h4 id="org76c2c8a"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org3796ec1" class="outline-4">
|
||||
<h4 id="org3796ec1"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orga6f66bf" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org126b6ec" 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-org9abb2d6" class="outline-4">
|
||||
<h4 id="org9abb2d6"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org044f71c" class="outline-4">
|
||||
<h4 id="org044f71c"><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-org617fd37" class="outline-3">
|
||||
<h3 id="org617fd37"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
||||
<div id="outline-container-org21cce83" class="outline-3">
|
||||
<h3 id="org21cce83"><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-orgca08467" class="outline-4">
|
||||
<h4 id="orgca08467"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orge4b19c0" class="outline-4">
|
||||
<h4 id="orge4b19c0"><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-orgbc3c5cb" class="outline-4">
|
||||
<h4 id="orgbc3c5cb"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-orgfc8497b" class="outline-4">
|
||||
<h4 id="orgfc8497b"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="org7be0174" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org59963ca" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1147,8 +1147,8 @@ distance.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2575212" class="outline-4">
|
||||
<h4 id="org2575212"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org1e42784" class="outline-4">
|
||||
<h4 id="org1e42784"><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-org73ca948" class="outline-3">
|
||||
<h3 id="org73ca948"><span class="section-number-3">2.3</span> Electron-nucleus distances</h3>
|
||||
<div id="outline-container-org7d6dd2c" class="outline-3">
|
||||
<h3 id="org7d6dd2c"><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-org9064ae4" class="outline-4">
|
||||
<h4 id="org9064ae4"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org2be2b7b" class="outline-4">
|
||||
<h4 id="org2be2b7b"><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-orgef0bbac" class="outline-4">
|
||||
<h4 id="orgef0bbac"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-orgabb3cf3" class="outline-4">
|
||||
<h4 id="orgabb3cf3"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org3e23015" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1bac627" 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-org862932b" class="outline-4">
|
||||
<h4 id="org862932b"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-org612e81c" class="outline-4">
|
||||
<h4 id="org612e81c"><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-org0532b1d" class="outline-3">
|
||||
<h3 id="org0532b1d"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
||||
<div id="outline-container-org39d58b1" class="outline-3">
|
||||
<h3 id="org39d58b1"><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-org9a35ee4" class="outline-4">
|
||||
<h4 id="org9a35ee4"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-orged90cfb" class="outline-4">
|
||||
<h4 id="orged90cfb"><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-org53b1a95" class="outline-4">
|
||||
<h4 id="org53b1a95"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-orgd8f1c1e" class="outline-4">
|
||||
<h4 id="orgd8f1c1e"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="org2b353d4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2a90611" 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-org0c4e0ce" class="outline-4">
|
||||
<h4 id="org0c4e0ce"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-org9af87c1" class="outline-4">
|
||||
<h4 id="org9af87c1"><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-org2ad5378" class="outline-3">
|
||||
<h3 id="org2ad5378"><span class="section-number-3">2.5</span> Generate initial coordinates</h3>
|
||||
<div id="outline-container-orgc713c24" class="outline-3">
|
||||
<h3 id="orgc713c24"><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-11-16 Wed 22:03</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 22:11</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-11-16 Wed 22:03 -->
|
||||
<!-- 2022-11-16 Wed 22:12 -->
|
||||
<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="#org8aeb186">-</a></li>
|
||||
<li><a href="#orgb198c30">1. Decoding errors</a></li>
|
||||
<li><a href="#org6399293">2. Data structure in context</a></li>
|
||||
<li><a href="#org0623e05">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org6db02de">4. Get the error</a></li>
|
||||
<li><a href="#org1d59da1">5. Failing</a></li>
|
||||
<li><a href="#org7d97fd0">6. Last error</a>
|
||||
<li><a href="#org9d9faf0">-</a></li>
|
||||
<li><a href="#org43697d4">1. Decoding errors</a></li>
|
||||
<li><a href="#org679db72">2. Data structure in context</a></li>
|
||||
<li><a href="#org08ef3e9">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org54eec95">4. Get the error</a></li>
|
||||
<li><a href="#org7013d95">5. Failing</a></li>
|
||||
<li><a href="#org5ddb175">6. Last error</a>
|
||||
<ul>
|
||||
<li><a href="#orgccbd568">6.1. Fortran inteface</a></li>
|
||||
<li><a href="#org7333eb6">6.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7e0d7c5">7. Helper functions for debugging</a>
|
||||
<li><a href="#orgae66796">7. Helper functions for debugging</a>
|
||||
<ul>
|
||||
<li><a href="#orgf4ea142">7.1. Fortran inteface</a></li>
|
||||
<li><a href="#org047effb">7.1. Fortran inteface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8aeb186" class="outline-2">
|
||||
<h2 id="org8aeb186">-</h2>
|
||||
<div class="outline-text-2" id="text-org8aeb186">
|
||||
<div id="outline-container-org9d9faf0" class="outline-2">
|
||||
<h2 id="org9d9faf0">-</h2>
|
||||
<div class="outline-text-2" id="text-org9d9faf0">
|
||||
<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="org94efe75"><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="org8a36ab9"><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="orge3f4da3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga591a58" 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-orgb198c30" class="outline-2">
|
||||
<h2 id="orgb198c30"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-org43697d4" class="outline-2">
|
||||
<h2 id="org43697d4"><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-org6399293" class="outline-2">
|
||||
<h2 id="org6399293"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-org679db72" class="outline-2">
|
||||
<h2 id="org679db72"><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-org0623e05" class="outline-2">
|
||||
<h2 id="org0623e05"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div id="outline-container-org08ef3e9" class="outline-2">
|
||||
<h2 id="org08ef3e9"><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-org6db02de" class="outline-2">
|
||||
<h2 id="org6db02de"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div id="outline-container-org54eec95" class="outline-2">
|
||||
<h2 id="org54eec95"><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-org1d59da1" class="outline-2">
|
||||
<h2 id="org1d59da1"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div id="outline-container-org7013d95" class="outline-2">
|
||||
<h2 id="org7013d95"><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-org7d97fd0" class="outline-2">
|
||||
<h2 id="org7d97fd0"><span class="section-number-2">6</span> Last error</h2>
|
||||
<div id="outline-container-org5ddb175" class="outline-2">
|
||||
<h2 id="org5ddb175"><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-orgccbd568" class="outline-3">
|
||||
<h3 id="orgccbd568"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-org7333eb6" class="outline-3">
|
||||
<h3 id="org7333eb6"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7e0d7c5" class="outline-2">
|
||||
<h2 id="org7e0d7c5"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
||||
<div id="outline-container-orgae66796" class="outline-2">
|
||||
<h2 id="orgae66796"><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-orgf4ea142" class="outline-3">
|
||||
<h3 id="orgf4ea142"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
||||
<div id="outline-container-org047effb" class="outline-3">
|
||||
<h3 id="org047effb"><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-11-16 Wed 22:03</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 22:12</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-11-16 Wed 22:03 -->
|
||||
<!-- 2022-11-16 Wed 22:11 -->
|
||||
<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="#org22501c3">1. Python</a>
|
||||
<li><a href="#orgf136361">1. Python</a>
|
||||
<ul>
|
||||
<li><a href="#orgd8f3464">1.1. Check numerically that MOs are orthonormal</a></li>
|
||||
<li><a href="#orgc3d5626">1.1. Check numerically that MOs are orthonormal</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf27042a">2. Fortran</a>
|
||||
<li><a href="#org67477c9">2. Fortran</a>
|
||||
<ul>
|
||||
<li><a href="#org907c7d2">2.1. Checking errors</a></li>
|
||||
<li><a href="#org8d50a6f">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
<li><a href="#orgb94449f">2.1. Checking errors</a></li>
|
||||
<li><a href="#orge3d6337">2.2. Computing an atomic orbital on a grid</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org22501c3" class="outline-2">
|
||||
<h2 id="org22501c3"><span class="section-number-2">1</span> Python</h2>
|
||||
<div id="outline-container-orgf136361" class="outline-2">
|
||||
<h2 id="orgf136361"><span class="section-number-2">1</span> Python</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-orgd8f3464" class="outline-3">
|
||||
<h3 id="orgd8f3464"><span class="section-number-3">1.1</span> Check numerically that MOs are orthonormal</h3>
|
||||
<div id="outline-container-orgc3d5626" class="outline-3">
|
||||
<h3 id="orgc3d5626"><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-orgf27042a" class="outline-2">
|
||||
<h2 id="orgf27042a"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div id="outline-container-org67477c9" class="outline-2">
|
||||
<h2 id="org67477c9"><span class="section-number-2">2</span> Fortran</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org907c7d2" class="outline-3">
|
||||
<h3 id="org907c7d2"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||
<div id="outline-container-orgb94449f" class="outline-3">
|
||||
<h3 id="orgb94449f"><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="orgcf4a080"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||
<pre class="src src-f90" id="orgf1ff935"><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-org8d50a6f" class="outline-3">
|
||||
<h3 id="org8d50a6f"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||
<div id="outline-container-orge3d6337" class="outline-3">
|
||||
<h3 id="orge3d6337"><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-11-16 Wed 22:03</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 22:11</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-11-16 Wed 22:03 -->
|
||||
<!-- 2022-11-16 Wed 22:12 -->
|
||||
<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="#org4100f24">1. Context</a>
|
||||
<li><a href="#orgfd0dbba">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org7426591">1.1. Data structure</a></li>
|
||||
<li><a href="#orge69538b">1.2. Access functions</a></li>
|
||||
<li><a href="#orgd71c821">1.1. Data structure</a></li>
|
||||
<li><a href="#orgb211cec">1.2. Access functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd84bf3b">2. Computation</a>
|
||||
<li><a href="#orgf8f3f3a">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgd1e403b">2.1. Kinetic energy</a>
|
||||
<li><a href="#orged4d535">2.1. Kinetic energy</a>
|
||||
<ul>
|
||||
<li><a href="#org6870328">2.1.1. Get</a></li>
|
||||
<li><a href="#orgd77e069">2.1.2. Provide</a></li>
|
||||
<li><a href="#org391c295">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#orgade5de7">2.1.4. Test</a></li>
|
||||
<li><a href="#orge164c7b">2.1.1. Get</a></li>
|
||||
<li><a href="#orgcf32424">2.1.2. Provide</a></li>
|
||||
<li><a href="#org3074592">2.1.3. Compute kinetic enregy</a></li>
|
||||
<li><a href="#orgfede70b">2.1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org164717c">2.2. Potential energy</a>
|
||||
<li><a href="#org34c3d12">2.2. Potential energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgbf582f8">2.2.1. Get</a></li>
|
||||
<li><a href="#orgad6031c">2.2.2. Provide</a></li>
|
||||
<li><a href="#org28196fc">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org239c4a8">2.2.4. Test</a></li>
|
||||
<li><a href="#org8cb81a3">2.2.1. Get</a></li>
|
||||
<li><a href="#org9ceecca">2.2.2. Provide</a></li>
|
||||
<li><a href="#orgbd6a11d">2.2.3. Compute potential enregy</a></li>
|
||||
<li><a href="#org6147042">2.2.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org195082b">2.3. Local energy</a>
|
||||
<li><a href="#org31a8275">2.3. Local energy</a>
|
||||
<ul>
|
||||
<li><a href="#org2a1fe22">2.3.1. Get</a></li>
|
||||
<li><a href="#org0f7bcab">2.3.2. Provide</a></li>
|
||||
<li><a href="#orgd841454">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#org18c3695">2.3.4. Test</a></li>
|
||||
<li><a href="#org5686e7a">2.3.1. Get</a></li>
|
||||
<li><a href="#orgf4e9269">2.3.2. Provide</a></li>
|
||||
<li><a href="#org23fd784">2.3.3. Compute local enregy</a></li>
|
||||
<li><a href="#orgda605c8">2.3.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6673ebe">2.4. Drift vector</a>
|
||||
<li><a href="#orgadb8c86">2.4. Drift vector</a>
|
||||
<ul>
|
||||
<li><a href="#orgdfa032c">2.4.1. Get</a></li>
|
||||
<li><a href="#org89d18fd">2.4.2. Provide</a></li>
|
||||
<li><a href="#org7d1df82">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org2107d44">2.4.4. Test</a></li>
|
||||
<li><a href="#orgf57669f">2.4.1. Get</a></li>
|
||||
<li><a href="#org57c4b19">2.4.2. Provide</a></li>
|
||||
<li><a href="#org4e1f677">2.4.3. Compute drift vector</a></li>
|
||||
<li><a href="#org253772c">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-org4100f24" class="outline-2">
|
||||
<h2 id="org4100f24"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgfd0dbba" class="outline-2">
|
||||
<h2 id="orgfd0dbba"><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-org7426591" class="outline-3">
|
||||
<h3 id="org7426591"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgd71c821" class="outline-3">
|
||||
<h3 id="orgd71c821"><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-orge69538b" class="outline-3">
|
||||
<h3 id="orge69538b"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgb211cec" class="outline-3">
|
||||
<h3 id="orgb211cec"><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-orgd84bf3b" class="outline-2">
|
||||
<h2 id="orgd84bf3b"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orgf8f3f3a" class="outline-2">
|
||||
<h2 id="orgf8f3f3a"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgd1e403b" class="outline-3">
|
||||
<h3 id="orgd1e403b"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||
<div id="outline-container-orged4d535" class="outline-3">
|
||||
<h3 id="orged4d535"><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-org6870328" class="outline-4">
|
||||
<h4 id="org6870328"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orge164c7b" class="outline-4">
|
||||
<h4 id="orge164c7b"><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-orgd77e069" class="outline-4">
|
||||
<h4 id="orgd77e069"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-orgcf32424" class="outline-4">
|
||||
<h4 id="orgcf32424"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org391c295" class="outline-4">
|
||||
<h4 id="org391c295"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
||||
<div id="outline-container-org3074592" class="outline-4">
|
||||
<h4 id="org3074592"><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="orgb00f45d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org29d21c1" 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-orgade5de7" class="outline-4">
|
||||
<h4 id="orgade5de7"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
<div id="outline-container-orgfede70b" class="outline-4">
|
||||
<h4 id="orgfede70b"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org164717c" class="outline-3">
|
||||
<h3 id="org164717c"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||
<div id="outline-container-org34c3d12" class="outline-3">
|
||||
<h3 id="org34c3d12"><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-orgbf582f8" class="outline-4">
|
||||
<h4 id="orgbf582f8"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org8cb81a3" class="outline-4">
|
||||
<h4 id="org8cb81a3"><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-orgad6031c" class="outline-4">
|
||||
<h4 id="orgad6031c"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-org9ceecca" class="outline-4">
|
||||
<h4 id="org9ceecca"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org28196fc" class="outline-4">
|
||||
<h4 id="org28196fc"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
||||
<div id="outline-container-orgbd6a11d" class="outline-4">
|
||||
<h4 id="orgbd6a11d"><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="orgc9a417b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7262a02" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -964,12 +964,12 @@ contributions.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org239c4a8" class="outline-4">
|
||||
<h4 id="org239c4a8"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
<div id="outline-container-org6147042" class="outline-4">
|
||||
<h4 id="org6147042"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org195082b" class="outline-3">
|
||||
<h3 id="org195082b"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||
<div id="outline-container-org31a8275" class="outline-3">
|
||||
<h3 id="org31a8275"><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-org2a1fe22" class="outline-4">
|
||||
<h4 id="org2a1fe22"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org5686e7a" class="outline-4">
|
||||
<h4 id="org5686e7a"><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-org0f7bcab" class="outline-4">
|
||||
<h4 id="org0f7bcab"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
<div id="outline-container-orgf4e9269" class="outline-4">
|
||||
<h4 id="orgf4e9269"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd841454" class="outline-4">
|
||||
<h4 id="orgd841454"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
||||
<div id="outline-container-org23fd784" class="outline-4">
|
||||
<h4 id="org23fd784"><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="org1580feb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7aa3dc5" 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-org18c3695" class="outline-4">
|
||||
<h4 id="org18c3695"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
<div id="outline-container-orgda605c8" class="outline-4">
|
||||
<h4 id="orgda605c8"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org6673ebe" class="outline-3">
|
||||
<h3 id="org6673ebe"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||
<div id="outline-container-orgadb8c86" class="outline-3">
|
||||
<h3 id="orgadb8c86"><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-orgdfa032c" class="outline-4">
|
||||
<h4 id="orgdfa032c"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-orgf57669f" class="outline-4">
|
||||
<h4 id="orgf57669f"><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-org89d18fd" class="outline-4">
|
||||
<h4 id="org89d18fd"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
<div id="outline-container-org57c4b19" class="outline-4">
|
||||
<h4 id="org57c4b19"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7d1df82" class="outline-4">
|
||||
<h4 id="org7d1df82"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
||||
<div id="outline-container-org4e1f677" class="outline-4">
|
||||
<h4 id="org4e1f677"><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="org58ebc8e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf7ef8fb" 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-org2107d44" class="outline-4">
|
||||
<h4 id="org2107d44"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
<div id="outline-container-org253772c" class="outline-4">
|
||||
<h4 id="org253772c"><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-11-16 Wed 22:03</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 22:12</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-11-16 Wed 22:03 -->
|
||||
<!-- 2022-11-16 Wed 22:12 -->
|
||||
<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="#orgf586e2f">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org1579f3d">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orgafd931b">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#org411a848">4. Get the size of a memory block</a></li>
|
||||
<li><a href="#org1ea2f8c">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org5d4f682">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orgced1994">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#orgf0869d1">4. Get the size of a memory block</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf586e2f" class="outline-2">
|
||||
<h2 id="orgf586e2f"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div id="outline-container-org1ea2f8c" class="outline-2">
|
||||
<h2 id="org1ea2f8c"><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-org1579f3d" class="outline-2">
|
||||
<h2 id="org1579f3d"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div id="outline-container-org5d4f682" class="outline-2">
|
||||
<h2 id="org5d4f682"><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-orgafd931b" class="outline-2">
|
||||
<h2 id="orgafd931b"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-orgced1994" class="outline-2">
|
||||
<h2 id="orgced1994"><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-org411a848" class="outline-2">
|
||||
<h2 id="org411a848"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
||||
<div id="outline-container-orgf0869d1" class="outline-2">
|
||||
<h2 id="orgf0869d1"><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-11-16 Wed 22:03</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 22:12</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-11-16 Wed 22:03 -->
|
||||
<!-- 2022-11-16 Wed 22:12 -->
|
||||
<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="#org7ecb298">1. Context</a>
|
||||
<li><a href="#org13ae38c">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org8a8d2ec">1.1. Data structure</a></li>
|
||||
<li><a href="#org4cd7405">1.2. Initialization functions</a></li>
|
||||
<li><a href="#orgea1621f">1.3. Access functions</a>
|
||||
<li><a href="#org0708c5c">1.1. Data structure</a></li>
|
||||
<li><a href="#org33968dc">1.2. Initialization functions</a></li>
|
||||
<li><a href="#orga2b2f46">1.3. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#orga20b21b">1.3.1. Fortran interfaces</a></li>
|
||||
<li><a href="#orgf758d4c">1.3.1. Fortran interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1cd92f2">1.4. Update</a>
|
||||
<li><a href="#orgad89ec7">1.4. Update</a>
|
||||
<ul>
|
||||
<li><a href="#orgfaf25b8">1.4.1. Fortran interface</a></li>
|
||||
<li><a href="#org00b0371">1.4.1. Fortran interface</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org527ea67">2. Computation</a>
|
||||
<li><a href="#orge5368ce">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org6fbfdca">2.1. Computation of MOs: values only</a>
|
||||
<li><a href="#org65c4bf5">2.1. Computation of MOs: values only</a>
|
||||
<ul>
|
||||
<li><a href="#org63c90a3">2.1.1. Get</a></li>
|
||||
<li><a href="#org667ad2d">2.1.2. Provide</a></li>
|
||||
<li><a href="#org0f40efa">2.1.3. Compute</a></li>
|
||||
<li><a href="#org46c4b38">2.1.4. HPC version</a></li>
|
||||
<li><a href="#orge79adfe">2.1.1. Get</a></li>
|
||||
<li><a href="#org93671e8">2.1.2. Provide</a></li>
|
||||
<li><a href="#org3b6fe8f">2.1.3. Compute</a></li>
|
||||
<li><a href="#org93f48a7">2.1.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org30b979f">2.2. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<li><a href="#orge5f5039">2.2. Computation of MOs: values, gradient, Laplacian</a>
|
||||
<ul>
|
||||
<li><a href="#org95ce2f2">2.2.1. Get</a></li>
|
||||
<li><a href="#orgac17e03">2.2.2. Provide</a></li>
|
||||
<li><a href="#org40832ab">2.2.3. Compute</a></li>
|
||||
<li><a href="#orgac0dbd9">2.2.4. HPC version</a></li>
|
||||
<li><a href="#org64e502f">2.2.1. Get</a></li>
|
||||
<li><a href="#orgf1f8dd2">2.2.2. Provide</a></li>
|
||||
<li><a href="#org0171795">2.2.3. Compute</a></li>
|
||||
<li><a href="#orgfa65839">2.2.4. HPC version</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd793efe">2.3. Test</a></li>
|
||||
<li><a href="#orgf5796bd">2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7ecb298" class="outline-2">
|
||||
<h2 id="org7ecb298"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org13ae38c" class="outline-2">
|
||||
<h2 id="org13ae38c"><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-org8a8d2ec" class="outline-3">
|
||||
<h3 id="org8a8d2ec"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org0708c5c" class="outline-3">
|
||||
<h3 id="org0708c5c"><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-org4cd7405" class="outline-3">
|
||||
<h3 id="org4cd7405"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||
<div id="outline-container-org33968dc" class="outline-3">
|
||||
<h3 id="org33968dc"><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-orgea1621f" class="outline-3">
|
||||
<h3 id="orgea1621f"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||
<div id="outline-container-orga2b2f46" class="outline-3">
|
||||
<h3 id="orga2b2f46"><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-orga20b21b" class="outline-4">
|
||||
<h4 id="orga20b21b"><span class="section-number-4">1.3.1</span> Fortran interfaces</h4>
|
||||
<div id="outline-container-orgf758d4c" class="outline-4">
|
||||
<h4 id="orgf758d4c"><span class="section-number-4">1.3.1</span> Fortran interfaces</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1cd92f2" class="outline-3">
|
||||
<h3 id="org1cd92f2"><span class="section-number-3">1.4</span> Update</h3>
|
||||
<div id="outline-container-orgad89ec7" class="outline-3">
|
||||
<h3 id="orgad89ec7"><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-orgfaf25b8" class="outline-4">
|
||||
<h4 id="orgfaf25b8"><span class="section-number-4">1.4.1</span> Fortran interface</h4>
|
||||
<div id="outline-container-org00b0371" class="outline-4">
|
||||
<h4 id="org00b0371"><span class="section-number-4">1.4.1</span> Fortran interface</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org527ea67" class="outline-2">
|
||||
<h2 id="org527ea67"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orge5368ce" class="outline-2">
|
||||
<h2 id="orge5368ce"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org6fbfdca" class="outline-3">
|
||||
<h3 id="org6fbfdca"><span class="section-number-3">2.1</span> Computation of MOs: values only</h3>
|
||||
<div id="outline-container-org65c4bf5" class="outline-3">
|
||||
<h3 id="org65c4bf5"><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-org63c90a3" class="outline-4">
|
||||
<h4 id="org63c90a3"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orge79adfe" class="outline-4">
|
||||
<h4 id="orge79adfe"><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-org667ad2d" class="outline-4">
|
||||
<h4 id="org667ad2d"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||
<div id="outline-container-org93671e8" class="outline-4">
|
||||
<h4 id="org93671e8"><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-org0f40efa" class="outline-4">
|
||||
<h4 id="org0f40efa"><span class="section-number-4">2.1.3</span> Compute</h4>
|
||||
<div id="outline-container-org3b6fe8f" class="outline-4">
|
||||
<h4 id="org3b6fe8f"><span class="section-number-4">2.1.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<table id="orgbe2b481" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3bfc584" 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-org46c4b38" class="outline-4">
|
||||
<h4 id="org46c4b38"><span class="section-number-4">2.1.4</span> HPC version</h4>
|
||||
<div id="outline-container-org93f48a7" class="outline-4">
|
||||
<h4 id="org93f48a7"><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-org30b979f" class="outline-3">
|
||||
<h3 id="org30b979f"><span class="section-number-3">2.2</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||
<div id="outline-container-orge5f5039" class="outline-3">
|
||||
<h3 id="orge5f5039"><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-org95ce2f2" class="outline-4">
|
||||
<h4 id="org95ce2f2"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org64e502f" class="outline-4">
|
||||
<h4 id="org64e502f"><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-orgac17e03" class="outline-4">
|
||||
<h4 id="orgac17e03"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||
<div id="outline-container-orgf1f8dd2" class="outline-4">
|
||||
<h4 id="orgf1f8dd2"><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-org40832ab" class="outline-4">
|
||||
<h4 id="org40832ab"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div id="outline-container-org0171795" class="outline-4">
|
||||
<h4 id="org0171795"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<table id="org7014408" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4525953" 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-orgac0dbd9" class="outline-4">
|
||||
<h4 id="orgac0dbd9"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
||||
<div id="outline-container-orgfa65839" class="outline-4">
|
||||
<h4 id="orgfa65839"><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-orgd793efe" class="outline-3">
|
||||
<h3 id="orgd793efe"><span class="section-number-3">2.3</span> Test</h3>
|
||||
<div id="outline-container-orgf5796bd" class="outline-3">
|
||||
<h3 id="orgf5796bd"><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-11-16 Wed 22:03</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 22:12</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-11-16 Wed 22:03 -->
|
||||
<!-- 2022-11-16 Wed 22:11 -->
|
||||
<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="#orgc6ff253">1. Context</a>
|
||||
<li><a href="#org343db21">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgf53c2ca">1.1. Data structure</a></li>
|
||||
<li><a href="#org82cb65b">1.2. Access functions</a></li>
|
||||
<li><a href="#org2a74832">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org4c650bf">1.4. Test</a></li>
|
||||
<li><a href="#orgd4ee976">1.1. Data structure</a></li>
|
||||
<li><a href="#orgc7de979">1.2. Access functions</a></li>
|
||||
<li><a href="#org3be745f">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org1fa85bb">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6140402">2. Computation</a>
|
||||
<li><a href="#org57e2134">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org17b2132">2.1. Nucleus-nucleus distances</a>
|
||||
<li><a href="#orgcbdbac3">2.1. Nucleus-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgb590841">2.1.1. Get</a></li>
|
||||
<li><a href="#org00ebd59">2.1.2. Compute</a></li>
|
||||
<li><a href="#org4bedc7a">2.1.3. Test</a></li>
|
||||
<li><a href="#orge0aa5f9">2.1.1. Get</a></li>
|
||||
<li><a href="#org83d98ee">2.1.2. Compute</a></li>
|
||||
<li><a href="#orga7db552">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org58e61fb">2.2. Nuclear repulsion energy</a>
|
||||
<li><a href="#org87d3ed4">2.2. Nuclear repulsion energy</a>
|
||||
<ul>
|
||||
<li><a href="#orgab98fa3">2.2.1. Get</a></li>
|
||||
<li><a href="#orgb30a78c">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgeb63166">2.2.3. Test</a></li>
|
||||
<li><a href="#org4df49f4">2.2.1. Get</a></li>
|
||||
<li><a href="#orgfbc4cf0">2.2.2. Compute</a></li>
|
||||
<li><a href="#org902ef03">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-orgc6ff253" class="outline-2">
|
||||
<h2 id="orgc6ff253"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org343db21" class="outline-2">
|
||||
<h2 id="org343db21"><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-orgf53c2ca" class="outline-3">
|
||||
<h3 id="orgf53c2ca"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgd4ee976" class="outline-3">
|
||||
<h3 id="orgd4ee976"><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-org82cb65b" class="outline-3">
|
||||
<h3 id="org82cb65b"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgc7de979" class="outline-3">
|
||||
<h3 id="orgc7de979"><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-org2a74832" class="outline-3">
|
||||
<h3 id="org2a74832"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org3be745f" class="outline-3">
|
||||
<h3 id="org3be745f"><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-org4c650bf" class="outline-3">
|
||||
<h3 id="org4c650bf"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org1fa85bb" class="outline-3">
|
||||
<h3 id="org1fa85bb"><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-org6140402" class="outline-2">
|
||||
<h2 id="org6140402"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org57e2134" class="outline-2">
|
||||
<h2 id="org57e2134"><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-org17b2132" class="outline-3">
|
||||
<h3 id="org17b2132"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div id="outline-container-orgcbdbac3" class="outline-3">
|
||||
<h3 id="orgcbdbac3"><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-orgb590841" class="outline-4">
|
||||
<h4 id="orgb590841"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-orge0aa5f9" class="outline-4">
|
||||
<h4 id="orge0aa5f9"><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-org00ebd59" class="outline-4">
|
||||
<h4 id="org00ebd59"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org83d98ee" class="outline-4">
|
||||
<h4 id="org83d98ee"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org8054a1e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb5ab209" 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-org4bedc7a" class="outline-4">
|
||||
<h4 id="org4bedc7a"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orga7db552" class="outline-4">
|
||||
<h4 id="orga7db552"><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-org58e61fb" class="outline-3">
|
||||
<h3 id="org58e61fb"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
||||
<div id="outline-container-org87d3ed4" class="outline-3">
|
||||
<h3 id="org87d3ed4"><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-orgab98fa3" class="outline-4">
|
||||
<h4 id="orgab98fa3"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org4df49f4" class="outline-4">
|
||||
<h4 id="org4df49f4"><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-orgb30a78c" class="outline-4">
|
||||
<h4 id="orgb30a78c"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-orgfbc4cf0" class="outline-4">
|
||||
<h4 id="orgfbc4cf0"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orgd51184f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8056323" 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-orgeb63166" class="outline-4">
|
||||
<h4 id="orgeb63166"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org902ef03" class="outline-4">
|
||||
<h4 id="org902ef03"><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-11-16 Wed 22:03</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 22:11</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-11-16 Wed 22:03 -->
|
||||
<!-- 2022-11-16 Wed 22:12 -->
|
||||
<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="#org1f39793">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#orgf72e621">2. Precision</a></li>
|
||||
<li><a href="#org0bddb8a">3. Range</a></li>
|
||||
<li><a href="#org9c426b5">4. Helper functions</a></li>
|
||||
<li><a href="#org219a320">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#orgd95706d">2. Precision</a></li>
|
||||
<li><a href="#org0e19805">3. Range</a></li>
|
||||
<li><a href="#org5cdb8be">4. Helper functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1f39793" class="outline-2">
|
||||
<h2 id="org1f39793"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-org219a320" class="outline-2">
|
||||
<h2 id="org219a320"><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="orgc41ccb4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org139c9ad" 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-orgf72e621" class="outline-2">
|
||||
<h2 id="orgf72e621"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-orgd95706d" class="outline-2">
|
||||
<h2 id="orgd95706d"><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-org0bddb8a" class="outline-2">
|
||||
<h2 id="org0bddb8a"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-org0e19805" class="outline-2">
|
||||
<h2 id="org0e19805"><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-org9c426b5" class="outline-2">
|
||||
<h2 id="org9c426b5"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-org5cdb8be" class="outline-2">
|
||||
<h2 id="org5cdb8be"><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-11-16 Wed 22:03</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 22:12</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-11-16 Wed 22:03 -->
|
||||
<!-- 2022-11-16 Wed 22:11 -->
|
||||
<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="#org6f742ae">1. Context</a>
|
||||
<li><a href="#org51617a9">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org0ac54b0">1.1. Data structure</a></li>
|
||||
<li><a href="#org426dbbf">1.2. Access functions</a>
|
||||
<li><a href="#org3528be8">1.1. Data structure</a></li>
|
||||
<li><a href="#orgd01e4d4">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org77bc5b8">1.2.1. Number of points</a></li>
|
||||
<li><a href="#org4e900c4">1.2.2. Point coordinates</a></li>
|
||||
<li><a href="#org29285d3">1.2.1. Number of points</a></li>
|
||||
<li><a href="#orgdff148b">1.2.2. Point coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3a70ade">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orga5423e9">1.4. Test</a></li>
|
||||
<li><a href="#orge8000f7">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org2f9067a">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6f742ae" class="outline-2">
|
||||
<h2 id="org6f742ae"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org51617a9" class="outline-2">
|
||||
<h2 id="org51617a9"><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-org0ac54b0" class="outline-3">
|
||||
<h3 id="org0ac54b0"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org3528be8" class="outline-3">
|
||||
<h3 id="org3528be8"><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-org426dbbf" class="outline-3">
|
||||
<h3 id="org426dbbf"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgd01e4d4" class="outline-3">
|
||||
<h3 id="orgd01e4d4"><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-org77bc5b8" class="outline-4">
|
||||
<h4 id="org77bc5b8"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||
<div id="outline-container-org29285d3" class="outline-4">
|
||||
<h4 id="org29285d3"><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-org4e900c4" class="outline-4">
|
||||
<h4 id="org4e900c4"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||
<div id="outline-container-orgdff148b" class="outline-4">
|
||||
<h4 id="orgdff148b"><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-org3a70ade" class="outline-3">
|
||||
<h3 id="org3a70ade"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orge8000f7" class="outline-3">
|
||||
<h3 id="orge8000f7"><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-orga5423e9" class="outline-3">
|
||||
<h3 id="orga5423e9"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org2f9067a" class="outline-3">
|
||||
<h3 id="org2f9067a"><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-11-16 Wed 22:03</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 22:11</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-11-16 Wed 22:03 -->
|
||||
<!-- 2022-11-16 Wed 22:12 -->
|
||||
<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="#org10aedcb">1. Headers</a></li>
|
||||
<li><a href="#orgd812f80">2. Naïve Sherman-Morrison</a>
|
||||
<li><a href="#org421b680">1. Headers</a></li>
|
||||
<li><a href="#org841966a">2. Naïve Sherman-Morrison</a>
|
||||
<ul>
|
||||
<li><a href="#org4a0dc72">2.1. <code>qmckl_sherman_morrison</code></a>
|
||||
<li><a href="#org1f00f58">2.1. <code>qmckl_sherman_morrison</code></a>
|
||||
<ul>
|
||||
<li><a href="#org4c7b5f8">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org2371048">2.1.2. C header</a></li>
|
||||
<li><a href="#org65dafb0">2.1.3. C source</a></li>
|
||||
<li><a href="#org1afdd56">2.1.4. Performance</a></li>
|
||||
<li><a href="#orgcd1ace7">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org2543e6c">2.1.2. C header</a></li>
|
||||
<li><a href="#orga97718d">2.1.3. C source</a></li>
|
||||
<li><a href="#org0bade37">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc9c9abb">3. Woodbury 2x2</a>
|
||||
<li><a href="#orgf24af17">3. Woodbury 2x2</a>
|
||||
<ul>
|
||||
<li><a href="#orga60a90b">3.1. <code>qmckl_woodbury_2</code></a>
|
||||
<li><a href="#orgbfe74ec">3.1. <code>qmckl_woodbury_2</code></a>
|
||||
<ul>
|
||||
<li><a href="#org6ca034a">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orga4f4f9c">3.1.2. C header</a></li>
|
||||
<li><a href="#org51e8fcf">3.1.3. C source</a></li>
|
||||
<li><a href="#org46b8ae7">3.1.4. Performance</a></li>
|
||||
<li><a href="#org8ac3f94">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org8be44e7">3.1.2. C header</a></li>
|
||||
<li><a href="#orgdefb9b4">3.1.3. C source</a></li>
|
||||
<li><a href="#org5abc814">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org13dde2a">4. Woodbury 3x3</a>
|
||||
<li><a href="#orgc309293">4. Woodbury 3x3</a>
|
||||
<ul>
|
||||
<li><a href="#orgeed1d47">4.1. <code>qmckl_woodbury_3</code></a>
|
||||
<li><a href="#org50fa4c9">4.1. <code>qmckl_woodbury_3</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgb7345fb">4.1.1. Requirements</a></li>
|
||||
<li><a href="#org115f2cc">4.1.2. C header</a></li>
|
||||
<li><a href="#org60722ec">4.1.3. C source</a></li>
|
||||
<li><a href="#org9b7c55d">4.1.4. Performance…</a></li>
|
||||
<li><a href="#orgd7f05e5">4.1.1. Requirements</a></li>
|
||||
<li><a href="#org5b7517b">4.1.2. C header</a></li>
|
||||
<li><a href="#org545fd8b">4.1.3. C source</a></li>
|
||||
<li><a href="#org19e69b3">4.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7b32b10">5. Sherman-Morrison with update splitting</a>
|
||||
<li><a href="#org73fcf46">5. Sherman-Morrison with update splitting</a>
|
||||
<ul>
|
||||
<li><a href="#orgef1105d">5.1. <code>qmckl_sherman_morrison_splitting</code></a>
|
||||
<li><a href="#org61339ae">5.1. <code>qmckl_sherman_morrison_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgad47c54">5.1.1. Requirements</a></li>
|
||||
<li><a href="#orgc83b763">5.1.2. C header</a></li>
|
||||
<li><a href="#orgab0f313">5.1.3. C source</a></li>
|
||||
<li><a href="#org29a840b">5.1.4. Performance…</a></li>
|
||||
<li><a href="#orgdb95fe3">5.1.1. Requirements</a></li>
|
||||
<li><a href="#org206d58b">5.1.2. C header</a></li>
|
||||
<li><a href="#orgafc6e71">5.1.3. C source</a></li>
|
||||
<li><a href="#org20ee433">5.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org41a1591">6. Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</a>
|
||||
<li><a href="#orgc23bb36">6. Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</a>
|
||||
<ul>
|
||||
<li><a href="#orgfa38e97">6.1. <code>qmckl_sherman_morrison_smw32s</code></a>
|
||||
<li><a href="#org35d8e4f">6.1. <code>qmckl_sherman_morrison_smw32s</code></a>
|
||||
<ul>
|
||||
<li><a href="#org8e34579">6.1.1. Requirements</a></li>
|
||||
<li><a href="#orgfd00547">6.1.2. C header</a></li>
|
||||
<li><a href="#orge49ff6d">6.1.3. C source</a></li>
|
||||
<li><a href="#org6cbce7b">6.1.4. Performance…</a></li>
|
||||
<li><a href="#orgccc015b">6.1.1. Requirements</a></li>
|
||||
<li><a href="#orgbd73af7">6.1.2. C header</a></li>
|
||||
<li><a href="#orgc2e0b4c">6.1.3. C source</a></li>
|
||||
<li><a href="#org8a5637f">6.1.4. Performance…</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc6a5f11">7. Helper Functions</a>
|
||||
<li><a href="#org8a30d5a">7. Helper Functions</a>
|
||||
<ul>
|
||||
<li><a href="#org43fb689">7.1. <code>qmckl_slagel_splitting</code></a>
|
||||
<li><a href="#orgbea8fa9">7.1. <code>qmckl_slagel_splitting</code></a>
|
||||
<ul>
|
||||
<li><a href="#org47b687a">7.1.1. Requirements</a></li>
|
||||
<li><a href="#orgfd67742">7.1.2. C header</a></li>
|
||||
<li><a href="#orgceae4d1">7.1.3. C source</a></li>
|
||||
<li><a href="#org40d95af">7.1.4. Performance</a></li>
|
||||
<li><a href="#org489741f">7.1.1. Requirements</a></li>
|
||||
<li><a href="#org59d6af9">7.1.2. C header</a></li>
|
||||
<li><a href="#org8a41159">7.1.3. C source</a></li>
|
||||
<li><a href="#org44fe37c">7.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb4f017d">8. End of files</a></li>
|
||||
<li><a href="#orgc722116">8. End of files</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org10aedcb" class="outline-2">
|
||||
<h2 id="org10aedcb"><span class="section-number-2">1</span> Headers</h2>
|
||||
<div id="outline-container-org421b680" class="outline-2">
|
||||
<h2 id="org421b680"><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-orgd812f80" class="outline-2">
|
||||
<h2 id="orgd812f80"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
||||
<div id="outline-container-org841966a" class="outline-2">
|
||||
<h2 id="org841966a"><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-org4a0dc72" class="outline-3">
|
||||
<h3 id="org4a0dc72"><span class="section-number-3">2.1</span> <code>qmckl_sherman_morrison</code></h3>
|
||||
<div id="outline-container-org1f00f58" class="outline-3">
|
||||
<h3 id="org1f00f58"><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="orgc29fc2e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc34765e" 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-org4c7b5f8" class="outline-4">
|
||||
<h4 id="org4c7b5f8"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgcd1ace7" class="outline-4">
|
||||
<h4 id="orgcd1ace7"><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-org2371048" class="outline-4">
|
||||
<h4 id="org2371048"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-org2543e6c" class="outline-4">
|
||||
<h4 id="org2543e6c"><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-org65dafb0" class="outline-4">
|
||||
<h4 id="org65dafb0"><span class="section-number-4">2.1.3</span> C source</h4>
|
||||
<div id="outline-container-orga97718d" class="outline-4">
|
||||
<h4 id="orga97718d"><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-org1afdd56" class="outline-4">
|
||||
<h4 id="org1afdd56"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org0bade37" class="outline-4">
|
||||
<h4 id="org0bade37"><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-orgc9c9abb" class="outline-2">
|
||||
<h2 id="orgc9c9abb"><span class="section-number-2">3</span> Woodbury 2x2</h2>
|
||||
<div id="outline-container-orgf24af17" class="outline-2">
|
||||
<h2 id="orgf24af17"><span class="section-number-2">3</span> Woodbury 2x2</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orga60a90b" class="outline-3">
|
||||
<h3 id="orga60a90b"><span class="section-number-3">3.1</span> <code>qmckl_woodbury_2</code></h3>
|
||||
<div id="outline-container-orgbfe74ec" class="outline-3">
|
||||
<h3 id="orgbfe74ec"><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="org4042113" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orge5419ed" 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-org6ca034a" class="outline-4">
|
||||
<h4 id="org6ca034a"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org8ac3f94" class="outline-4">
|
||||
<h4 id="org8ac3f94"><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-orga4f4f9c" class="outline-4">
|
||||
<h4 id="orga4f4f9c"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-org8be44e7" class="outline-4">
|
||||
<h4 id="org8be44e7"><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-org51e8fcf" class="outline-4">
|
||||
<h4 id="org51e8fcf"><span class="section-number-4">3.1.3</span> C source</h4>
|
||||
<div id="outline-container-orgdefb9b4" class="outline-4">
|
||||
<h4 id="orgdefb9b4"><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-org46b8ae7" class="outline-4">
|
||||
<h4 id="org46b8ae7"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org5abc814" class="outline-4">
|
||||
<h4 id="org5abc814"><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-org13dde2a" class="outline-2">
|
||||
<h2 id="org13dde2a"><span class="section-number-2">4</span> Woodbury 3x3</h2>
|
||||
<div id="outline-container-orgc309293" class="outline-2">
|
||||
<h2 id="orgc309293"><span class="section-number-2">4</span> Woodbury 3x3</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-orgeed1d47" class="outline-3">
|
||||
<h3 id="orgeed1d47"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_3</code></h3>
|
||||
<div id="outline-container-org50fa4c9" class="outline-3">
|
||||
<h3 id="org50fa4c9"><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="orgb219fd0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3eeba04" 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-orgb7345fb" class="outline-4">
|
||||
<h4 id="orgb7345fb"><span class="section-number-4">4.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgd7f05e5" class="outline-4">
|
||||
<h4 id="orgd7f05e5"><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-org115f2cc" class="outline-4">
|
||||
<h4 id="org115f2cc"><span class="section-number-4">4.1.2</span> C header</h4>
|
||||
<div id="outline-container-org5b7517b" class="outline-4">
|
||||
<h4 id="org5b7517b"><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-org60722ec" class="outline-4">
|
||||
<h4 id="org60722ec"><span class="section-number-4">4.1.3</span> C source</h4>
|
||||
<div id="outline-container-org545fd8b" class="outline-4">
|
||||
<h4 id="org545fd8b"><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-org9b7c55d" class="outline-4">
|
||||
<h4 id="org9b7c55d"><span class="section-number-4">4.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org19e69b3" class="outline-4">
|
||||
<h4 id="org19e69b3"><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-org7b32b10" class="outline-2">
|
||||
<h2 id="org7b32b10"><span class="section-number-2">5</span> Sherman-Morrison with update splitting</h2>
|
||||
<div id="outline-container-org73fcf46" class="outline-2">
|
||||
<h2 id="org73fcf46"><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-orgef1105d" class="outline-3">
|
||||
<h3 id="orgef1105d"><span class="section-number-3">5.1</span> <code>qmckl_sherman_morrison_splitting</code></h3>
|
||||
<div id="outline-container-org61339ae" class="outline-3">
|
||||
<h3 id="org61339ae"><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="org9d2bf43" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org082ca88" 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-orgad47c54" class="outline-4">
|
||||
<h4 id="orgad47c54"><span class="section-number-4">5.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgdb95fe3" class="outline-4">
|
||||
<h4 id="orgdb95fe3"><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-orgc83b763" class="outline-4">
|
||||
<h4 id="orgc83b763"><span class="section-number-4">5.1.2</span> C header</h4>
|
||||
<div id="outline-container-org206d58b" class="outline-4">
|
||||
<h4 id="org206d58b"><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-orgab0f313" class="outline-4">
|
||||
<h4 id="orgab0f313"><span class="section-number-4">5.1.3</span> C source</h4>
|
||||
<div id="outline-container-orgafc6e71" class="outline-4">
|
||||
<h4 id="orgafc6e71"><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-org29a840b" class="outline-4">
|
||||
<h4 id="org29a840b"><span class="section-number-4">5.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org20ee433" class="outline-4">
|
||||
<h4 id="org20ee433"><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-org41a1591" class="outline-2">
|
||||
<h2 id="org41a1591"><span class="section-number-2">6</span> Woodbury 3x3 and 2x2 with Sherman-Morrison and update splitting</h2>
|
||||
<div id="outline-container-orgc23bb36" class="outline-2">
|
||||
<h2 id="orgc23bb36"><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-orgfa38e97" class="outline-3">
|
||||
<h3 id="orgfa38e97"><span class="section-number-3">6.1</span> <code>qmckl_sherman_morrison_smw32s</code></h3>
|
||||
<div id="outline-container-org35d8e4f" class="outline-3">
|
||||
<h3 id="org35d8e4f"><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="org41cbf60" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7de609e" 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-org8e34579" class="outline-4">
|
||||
<h4 id="org8e34579"><span class="section-number-4">6.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgccc015b" class="outline-4">
|
||||
<h4 id="orgccc015b"><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-orgfd00547" class="outline-4">
|
||||
<h4 id="orgfd00547"><span class="section-number-4">6.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgbd73af7" class="outline-4">
|
||||
<h4 id="orgbd73af7"><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-orge49ff6d" class="outline-4">
|
||||
<h4 id="orge49ff6d"><span class="section-number-4">6.1.3</span> C source</h4>
|
||||
<div id="outline-container-orgc2e0b4c" class="outline-4">
|
||||
<h4 id="orgc2e0b4c"><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-org6cbce7b" class="outline-4">
|
||||
<h4 id="org6cbce7b"><span class="section-number-4">6.1.4</span> Performance…</h4>
|
||||
<div id="outline-container-org8a5637f" class="outline-4">
|
||||
<h4 id="org8a5637f"><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-orgc6a5f11" class="outline-2">
|
||||
<h2 id="orgc6a5f11"><span class="section-number-2">7</span> Helper Functions</h2>
|
||||
<div id="outline-container-org8a30d5a" class="outline-2">
|
||||
<h2 id="org8a30d5a"><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-org43fb689" class="outline-3">
|
||||
<h3 id="org43fb689"><span class="section-number-3">7.1</span> <code>qmckl_slagel_splitting</code></h3>
|
||||
<div id="outline-container-orgbea8fa9" class="outline-3">
|
||||
<h3 id="orgbea8fa9"><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="org7c318c1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org49b65c0" 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-org47b687a" class="outline-4">
|
||||
<h4 id="org47b687a"><span class="section-number-4">7.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org489741f" class="outline-4">
|
||||
<h4 id="org489741f"><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-orgfd67742" class="outline-4">
|
||||
<h4 id="orgfd67742"><span class="section-number-4">7.1.2</span> C header</h4>
|
||||
<div id="outline-container-org59d6af9" class="outline-4">
|
||||
<h4 id="org59d6af9"><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-orgceae4d1" class="outline-4">
|
||||
<h4 id="orgceae4d1"><span class="section-number-4">7.1.3</span> C source</h4>
|
||||
<div id="outline-container-org8a41159" class="outline-4">
|
||||
<h4 id="org8a41159"><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-org40d95af" class="outline-4">
|
||||
<h4 id="org40d95af"><span class="section-number-4">7.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org44fe37c" class="outline-4">
|
||||
<h4 id="org44fe37c"><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-orgb4f017d" class="outline-2">
|
||||
<h2 id="orgb4f017d"><span class="section-number-2">8</span> End of files</h2>
|
||||
<div id="outline-container-orgc722116" class="outline-2">
|
||||
<h2 id="orgc722116"><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-11-16 Wed 22:03</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 22:12</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-11-16 Wed 22:03 -->
|
||||
<!-- 2022-11-16 Wed 22:12 -->
|
||||
<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="#org1ded75a">1. CHBrClF</a>
|
||||
<li><a href="#org53088e9">1. CHBrClF</a>
|
||||
<ul>
|
||||
<li><a href="#org9f26d43">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org84bb44a">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org468452f">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#org694ca4a">1.4. Electron coordinates</a></li>
|
||||
<li><a href="#org2e3e9df">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orgcb7ee36">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org21c49c3">1.3. Molecular orbitals</a></li>
|
||||
<li><a href="#orgedbfc50">1.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2cfbd44">2. N2</a>
|
||||
<li><a href="#orged9b35d">2. N2</a>
|
||||
<ul>
|
||||
<li><a href="#org175ca84">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org51dfe23">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org2ab0511">2.3. Jastrow related data</a></li>
|
||||
<li><a href="#orge3c3f4f">2.1. XYZ coordinates</a></li>
|
||||
<li><a href="#orgd852af6">2.2. Electron coordinates</a></li>
|
||||
<li><a href="#org64b1fde">2.3. Jastrow related data</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1ded75a" class="outline-2">
|
||||
<h2 id="org1ded75a"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div id="outline-container-org53088e9" class="outline-2">
|
||||
<h2 id="org53088e9"><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-org9f26d43" class="outline-3">
|
||||
<h3 id="org9f26d43"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org2e3e9df" class="outline-3">
|
||||
<h3 id="org2e3e9df"><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-org84bb44a" class="outline-3">
|
||||
<h3 id="org84bb44a"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div id="outline-container-orgcb7ee36" class="outline-3">
|
||||
<h3 id="orgcb7ee36"><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-org468452f" class="outline-3">
|
||||
<h3 id="org468452f"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org21c49c3" class="outline-3">
|
||||
<h3 id="org21c49c3"><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-org694ca4a" class="outline-3">
|
||||
<h3 id="org694ca4a"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div id="outline-container-orgedbfc50" class="outline-3">
|
||||
<h3 id="orgedbfc50"><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-org2cfbd44" class="outline-2">
|
||||
<h2 id="org2cfbd44"><span class="section-number-2">2</span> N2</h2>
|
||||
<div id="outline-container-orged9b35d" class="outline-2">
|
||||
<h2 id="orged9b35d"><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-org175ca84" class="outline-3">
|
||||
<h3 id="org175ca84"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-orge3c3f4f" class="outline-3">
|
||||
<h3 id="orge3c3f4f"><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-org51dfe23" class="outline-3">
|
||||
<h3 id="org51dfe23"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||
<div id="outline-container-orgd852af6" class="outline-3">
|
||||
<h3 id="orgd852af6"><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-org2ab0511" class="outline-3">
|
||||
<h3 id="org2ab0511"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||
<div id="outline-container-org64b1fde" class="outline-3">
|
||||
<h3 id="org64b1fde"><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-11-16 Wed 22:03</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 22:12</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-11-16 Wed 22:03 -->
|
||||
<!-- 2022-11-16 Wed 22:12 -->
|
||||
<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="#org16cff72">1. Local functions</a>
|
||||
<li><a href="#orge0f00b4">1. Local functions</a>
|
||||
<ul>
|
||||
<li><a href="#orgbd25a97">1.1. Open file</a></li>
|
||||
<li><a href="#orga0e0740">1.2. Electron</a></li>
|
||||
<li><a href="#org652a976">1.3. Nucleus</a>
|
||||
<li><a href="#orge0021de">1.1. Open file</a></li>
|
||||
<li><a href="#org1c7e354">1.2. Electron</a></li>
|
||||
<li><a href="#orga414706">1.3. Nucleus</a>
|
||||
<ul>
|
||||
<li><a href="#orgec65b65">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#org27b574b">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#org0b4e227">1.3.3. Nuclear coordinates</a></li>
|
||||
<li><a href="#org67293bb">1.3.1. Number of nuclei</a></li>
|
||||
<li><a href="#orgb39f97b">1.3.2. Nuclear charges</a></li>
|
||||
<li><a href="#orga065965">1.3.3. Nuclear coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8c833df">1.4. Basis set and AOs</a>
|
||||
<li><a href="#org982e48e">1.4. Basis set and AOs</a>
|
||||
<ul>
|
||||
<li><a href="#org7220034">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#orgc24664e">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#org21c74ed">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#org764093f">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org4cae0f3">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#orga434286">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#org93873c1">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org40de5ce">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#org2643ed9">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#orgc462a74">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org4dc9b4d">1.4.11. Exponents</a></li>
|
||||
<li><a href="#orge592fa1">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#orgcd99af8">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#orge56a3e4">1.4.14. AO Normalization</a></li>
|
||||
<li><a href="#org2df8dd6">1.4.1. Basis set type</a></li>
|
||||
<li><a href="#orgf8e8d4c">1.4.2. Number of shells</a></li>
|
||||
<li><a href="#orgf8b54ef">1.4.3. Number of primitives</a></li>
|
||||
<li><a href="#org41fc8dc">1.4.4. Number of atomic orbitals</a></li>
|
||||
<li><a href="#org89c5e54">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||
<li><a href="#org2e1217b">1.4.6. Number of shells per nucleus</a></li>
|
||||
<li><a href="#orgdde904a">1.4.7. Angular momentum</a></li>
|
||||
<li><a href="#org1bb3248">1.4.8. Number of primitives per shell</a></li>
|
||||
<li><a href="#orgf15f4b0">1.4.9. Indices of the primitives</a></li>
|
||||
<li><a href="#org828a646">1.4.10. Normalization of the shells</a></li>
|
||||
<li><a href="#org6b5d36a">1.4.11. Exponents</a></li>
|
||||
<li><a href="#orgaaaf14e">1.4.12. Coefficients</a></li>
|
||||
<li><a href="#org3591aea">1.4.13. Normalization of the primitivies</a></li>
|
||||
<li><a href="#org6bb0fb1">1.4.14. AO Normalization</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb76925b">1.5. Molecular orbitals</a>
|
||||
<li><a href="#org69151a9">1.5. Molecular orbitals</a>
|
||||
<ul>
|
||||
<li><a href="#org35b928b">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#org4bb0e07">1.5.2. MO coefficients</a></li>
|
||||
<li><a href="#orge406a02">1.5.1. Number of MOs</a></li>
|
||||
<li><a href="#org10e6f9a">1.5.2. MO coefficients</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb26240f">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
<li><a href="#orgd479a3f">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgf89f45e">2. Read everything</a></li>
|
||||
<li><a href="#orgb01845a">3. Test</a>
|
||||
<li><a href="#org83deb33">2. Read everything</a></li>
|
||||
<li><a href="#org1e3cf02">3. Test</a>
|
||||
<ul>
|
||||
<li>
|
||||
<ul>
|
||||
<li><a href="#org15688f7">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org128023e">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#orgd8082ab">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org98e577b">3.0.4. MO Basis</a></li>
|
||||
<li><a href="#orgca2c55a">3.0.1. Electrons</a></li>
|
||||
<li><a href="#org44adf2a">3.0.2. Nuclei</a></li>
|
||||
<li><a href="#org135790f">3.0.3. Atomic basis</a></li>
|
||||
<li><a href="#org0dd1a81">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-org16cff72" class="outline-2">
|
||||
<h2 id="org16cff72"><span class="section-number-2">1</span> Local functions</h2>
|
||||
<div id="outline-container-orge0f00b4" class="outline-2">
|
||||
<h2 id="orge0f00b4"><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-orgbd25a97" class="outline-3">
|
||||
<h3 id="orgbd25a97"><span class="section-number-3">1.1</span> Open file</h3>
|
||||
<div id="outline-container-orge0021de" class="outline-3">
|
||||
<h3 id="orge0021de"><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-orga0e0740" class="outline-3">
|
||||
<h3 id="orga0e0740"><span class="section-number-3">1.2</span> Electron</h3>
|
||||
<div id="outline-container-org1c7e354" class="outline-3">
|
||||
<h3 id="org1c7e354"><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-org652a976" class="outline-3">
|
||||
<h3 id="org652a976"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||
<div id="outline-container-orga414706" class="outline-3">
|
||||
<h3 id="orga414706"><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-orgec65b65" class="outline-4">
|
||||
<h4 id="orgec65b65"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
||||
<div id="outline-container-org67293bb" class="outline-4">
|
||||
<h4 id="org67293bb"><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-org27b574b" class="outline-4">
|
||||
<h4 id="org27b574b"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||
<div id="outline-container-orgb39f97b" class="outline-4">
|
||||
<h4 id="orgb39f97b"><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-org0b4e227" class="outline-4">
|
||||
<h4 id="org0b4e227"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||
<div id="outline-container-orga065965" class="outline-4">
|
||||
<h4 id="orga065965"><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-org8c833df" class="outline-3">
|
||||
<h3 id="org8c833df"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||
<div id="outline-container-org982e48e" class="outline-3">
|
||||
<h3 id="org982e48e"><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-org7220034" class="outline-4">
|
||||
<h4 id="org7220034"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
||||
<div id="outline-container-org2df8dd6" class="outline-4">
|
||||
<h4 id="org2df8dd6"><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-orgc24664e" class="outline-4">
|
||||
<h4 id="orgc24664e"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
||||
<div id="outline-container-orgf8e8d4c" class="outline-4">
|
||||
<h4 id="orgf8e8d4c"><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-org21c74ed" class="outline-4">
|
||||
<h4 id="org21c74ed"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
||||
<div id="outline-container-orgf8b54ef" class="outline-4">
|
||||
<h4 id="orgf8b54ef"><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-org764093f" class="outline-4">
|
||||
<h4 id="org764093f"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
||||
<div id="outline-container-org41fc8dc" class="outline-4">
|
||||
<h4 id="org41fc8dc"><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-org4cae0f3" class="outline-4">
|
||||
<h4 id="org4cae0f3"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
||||
<div id="outline-container-org89c5e54" class="outline-4">
|
||||
<h4 id="org89c5e54"><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-orga434286" class="outline-4">
|
||||
<h4 id="orga434286"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
||||
<div id="outline-container-org2e1217b" class="outline-4">
|
||||
<h4 id="org2e1217b"><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-org93873c1" class="outline-4">
|
||||
<h4 id="org93873c1"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||
<div id="outline-container-orgdde904a" class="outline-4">
|
||||
<h4 id="orgdde904a"><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-org40de5ce" class="outline-4">
|
||||
<h4 id="org40de5ce"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
||||
<div id="outline-container-org1bb3248" class="outline-4">
|
||||
<h4 id="org1bb3248"><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-org2643ed9" class="outline-4">
|
||||
<h4 id="org2643ed9"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
||||
<div id="outline-container-orgf15f4b0" class="outline-4">
|
||||
<h4 id="orgf15f4b0"><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-orgc462a74" class="outline-4">
|
||||
<h4 id="orgc462a74"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
||||
<div id="outline-container-org828a646" class="outline-4">
|
||||
<h4 id="org828a646"><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-org4dc9b4d" class="outline-4">
|
||||
<h4 id="org4dc9b4d"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||
<div id="outline-container-org6b5d36a" class="outline-4">
|
||||
<h4 id="org6b5d36a"><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-orge592fa1" class="outline-4">
|
||||
<h4 id="orge592fa1"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||
<div id="outline-container-orgaaaf14e" class="outline-4">
|
||||
<h4 id="orgaaaf14e"><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-orgcd99af8" class="outline-4">
|
||||
<h4 id="orgcd99af8"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
||||
<div id="outline-container-org3591aea" class="outline-4">
|
||||
<h4 id="org3591aea"><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-orge56a3e4" class="outline-4">
|
||||
<h4 id="orge56a3e4"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||
<div id="outline-container-org6bb0fb1" class="outline-4">
|
||||
<h4 id="org6bb0fb1"><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-orgb76925b" class="outline-3">
|
||||
<h3 id="orgb76925b"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org69151a9" class="outline-3">
|
||||
<h3 id="org69151a9"><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-org35b928b" class="outline-4">
|
||||
<h4 id="org35b928b"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
||||
<div id="outline-container-orge406a02" class="outline-4">
|
||||
<h4 id="orge406a02"><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-org4bb0e07" class="outline-4">
|
||||
<h4 id="org4bb0e07"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||
<div id="outline-container-org10e6f9a" class="outline-4">
|
||||
<h4 id="org10e6f9a"><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-orgb26240f" class="outline-3">
|
||||
<h3 id="orgb26240f"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
<div id="outline-container-orgd479a3f" class="outline-3">
|
||||
<h3 id="orgd479a3f"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgf89f45e" class="outline-2">
|
||||
<h2 id="orgf89f45e"><span class="section-number-2">2</span> Read everything</h2>
|
||||
<div id="outline-container-org83deb33" class="outline-2">
|
||||
<h2 id="org83deb33"><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-orgb01845a" class="outline-2">
|
||||
<h2 id="orgb01845a"><span class="section-number-2">3</span> Test</h2>
|
||||
<div id="outline-container-org1e3cf02" class="outline-2">
|
||||
<h2 id="org1e3cf02"><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-org15688f7" class="outline-4">
|
||||
<h4 id="org15688f7"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||
<div id="outline-container-orgca2c55a" class="outline-4">
|
||||
<h4 id="orgca2c55a"><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-org128023e" class="outline-4">
|
||||
<h4 id="org128023e"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||
<div id="outline-container-org44adf2a" class="outline-4">
|
||||
<h4 id="org44adf2a"><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-orgd8082ab" class="outline-4">
|
||||
<h4 id="orgd8082ab"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||
<div id="outline-container-org135790f" class="outline-4">
|
||||
<h4 id="org135790f"><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-org98e577b" class="outline-4">
|
||||
<h4 id="org98e577b"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||
<div id="outline-container-org0dd1a81" class="outline-4">
|
||||
<h4 id="org0dd1a81"><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-11-16 Wed 22:03</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 22:12</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-11-16 Wed 22:03 -->
|
||||
<!-- 2022-11-16 Wed 22:12 -->
|
||||
<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="#orgf957646">1. Verificarlo probes</a>
|
||||
<li><a href="#org443ac4b">1. Verificarlo probes</a>
|
||||
<ul>
|
||||
<li><a href="#org0c83f8b">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org86503a4">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#orga8defcf">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#orgb246801">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org9424cbf">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#org5a1268e">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||
<li><a href="#orgcb59795">1.2. Standard probe, without check</a></li>
|
||||
<li><a href="#org5ab9935">1.3. Probe with absolute check</a></li>
|
||||
<li><a href="#orgd6476cc">1.4. Probe with relative check</a></li>
|
||||
<li><a href="#org18b6154">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="#org18daf7f">2. Fortran wrappers</a></li>
|
||||
<li><a href="#orged7c11a">2. Fortran wrappers</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf957646" class="outline-2">
|
||||
<h2 id="orgf957646"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||
<div id="outline-container-org443ac4b" class="outline-2">
|
||||
<h2 id="org443ac4b"><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-org0c83f8b" class="outline-3">
|
||||
<h3 id="org0c83f8b"><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-org5a1268e" class="outline-3">
|
||||
<h3 id="org5a1268e"><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-org86503a4" class="outline-3">
|
||||
<h3 id="org86503a4"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||
<div id="outline-container-orgcb59795" class="outline-3">
|
||||
<h3 id="orgcb59795"><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-orga8defcf" class="outline-3">
|
||||
<h3 id="orga8defcf"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||
<div id="outline-container-org5ab9935" class="outline-3">
|
||||
<h3 id="org5ab9935"><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-orgb246801" class="outline-3">
|
||||
<h3 id="orgb246801"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||
<div id="outline-container-orgd6476cc" class="outline-3">
|
||||
<h3 id="orgd6476cc"><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-org9424cbf" class="outline-3">
|
||||
<h3 id="org9424cbf"><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-org18b6154" class="outline-3">
|
||||
<h3 id="org18b6154"><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-org18daf7f" class="outline-2">
|
||||
<h2 id="org18daf7f"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||
<div id="outline-container-orged7c11a" class="outline-2">
|
||||
<h2 id="orged7c11a"><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-11-16 Wed 22:03</p>
|
||||
<p class="date">Created: 2022-11-16 Wed 22:12</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