mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-11-03 12:43:57 +01:00
Deploying to gh-pages from @ TREX-CoE/qmckl@098b6deec3 🚀
This commit is contained in:
parent
ec57ef49a8
commit
c12b945a83
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-01-09 Tue 07:20 -->
|
<!-- 2024-01-11 Thu 13:34 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>QMCkl source code documentation</title>
|
<title>QMCkl source code documentation</title>
|
||||||
@ -375,7 +375,7 @@ and bug reports should be submitted at
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: TREX CoE</p>
|
<p class="author">Author: TREX CoE</p>
|
||||||
<p class="date">Created: 2024-01-09 Tue 07:20</p>
|
<p class="date">Created: 2024-01-11 Thu 13:34</p>
|
||||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
118
qmckl.html
118
qmckl.html
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-01-09 Tue 07:20 -->
|
<!-- 2024-01-11 Thu 13:34 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Introduction</title>
|
<title>Introduction</title>
|
||||||
@ -346,36 +346,36 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org98049a5">1. Installing QMCkl</a>
|
<li><a href="#org298065c">1. Installing QMCkl</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org4d096e2">1.1. Installing from the released tarball (for end users)</a></li>
|
<li><a href="#org91b61e2">1.1. Installing from the released tarball (for end users)</a></li>
|
||||||
<li><a href="#org26365f7">1.2. Installing from the source repository (for developers)</a></li>
|
<li><a href="#orgcd43115">1.2. Installing from the source repository (for developers)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgc659799">2. Using QMCkl</a></li>
|
<li><a href="#org57b4975">2. Using QMCkl</a></li>
|
||||||
<li><a href="#org45a56f5">3. Developing in QMCkl</a>
|
<li><a href="#orge7b6271">3. Developing in QMCkl</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org37142ce">3.1. Literate programming</a></li>
|
<li><a href="#orgb0fd173">3.1. Literate programming</a></li>
|
||||||
<li><a href="#orgdf9daa0">3.2. Source code editing</a></li>
|
<li><a href="#orgb87e788">3.2. Source code editing</a></li>
|
||||||
<li><a href="#orgaebd78a">3.3. Choice of the programming language</a></li>
|
<li><a href="#org8c13e1d">3.3. Choice of the programming language</a></li>
|
||||||
<li><a href="#org86c6b85">3.4. Coding rules</a></li>
|
<li><a href="#org7fbea1b">3.4. Coding rules</a></li>
|
||||||
<li><a href="#orgf176230">3.5. Design of the library</a></li>
|
<li><a href="#org2b9162b">3.5. Design of the library</a></li>
|
||||||
<li><a href="#org86e103a">3.6. Naming conventions</a></li>
|
<li><a href="#org6677339">3.6. Naming conventions</a></li>
|
||||||
<li><a href="#org8f8a40a">3.7. Application programming interface</a></li>
|
<li><a href="#org0d6e913">3.7. Application programming interface</a></li>
|
||||||
<li><a href="#org144cc4b">3.8. Global state</a></li>
|
<li><a href="#org4ed339a">3.8. Global state</a></li>
|
||||||
<li><a href="#org85de81e">3.9. Headers</a></li>
|
<li><a href="#org4ca23a9">3.9. Headers</a></li>
|
||||||
<li><a href="#org185bfec">3.10. Low-level functions</a></li>
|
<li><a href="#org13d8bd9">3.10. Low-level functions</a></li>
|
||||||
<li><a href="#orgefc28e5">3.11. High-level functions</a></li>
|
<li><a href="#orgf65f36f">3.11. High-level functions</a></li>
|
||||||
<li><a href="#org7f78b39">3.12. Numerical precision</a></li>
|
<li><a href="#org56b72fc">3.12. Numerical precision</a></li>
|
||||||
<li><a href="#org7cc15d8">3.13. Algorithms</a></li>
|
<li><a href="#orga16a16c">3.13. Algorithms</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org98049a5" class="outline-2">
|
<div id="outline-container-org298065c" class="outline-2">
|
||||||
<h2 id="org98049a5"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
<h2 id="org298065c"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
<p>
|
<p>
|
||||||
The latest version fo QMCkl can be downloaded
|
The latest version fo QMCkl can be downloaded
|
||||||
@ -384,8 +384,8 @@ The latest version fo QMCkl can be downloaded
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org4d096e2" class="outline-3">
|
<div id="outline-container-org91b61e2" class="outline-3">
|
||||||
<h3 id="org4d096e2"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
<h3 id="org91b61e2"><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">
|
<div class="outline-text-3" id="text-1-1">
|
||||||
<p>
|
<p>
|
||||||
QMCkl is built with GNU Autotools, so the usual
|
QMCkl is built with GNU Autotools, so the usual
|
||||||
@ -400,8 +400,8 @@ options are defined using <code>CFLAGS</code> and <code>FCFLAGS</code>.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org26365f7" class="outline-3">
|
<div id="outline-container-orgcd43115" class="outline-3">
|
||||||
<h3 id="org26365f7"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
<h3 id="orgcd43115"><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">
|
<div class="outline-text-3" id="text-1-2">
|
||||||
<p>
|
<p>
|
||||||
To compile from the source repository, additional dependencies are
|
To compile from the source repository, additional dependencies are
|
||||||
@ -422,8 +422,8 @@ to be executed first.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc659799" class="outline-2">
|
<div id="outline-container-org57b4975" class="outline-2">
|
||||||
<h2 id="orgc659799"><span class="section-number-2">2</span> Using QMCkl</h2>
|
<h2 id="org57b4975"><span class="section-number-2">2</span> Using QMCkl</h2>
|
||||||
<div class="outline-text-2" id="text-2">
|
<div class="outline-text-2" id="text-2">
|
||||||
<p>
|
<p>
|
||||||
The <code>qmckl.h</code> header file installed in the <code>${prefix}/include</code> directory
|
The <code>qmckl.h</code> header file installed in the <code>${prefix}/include</code> directory
|
||||||
@ -452,12 +452,12 @@ Both files are located in the <code>include/</code> directory.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org45a56f5" class="outline-2">
|
<div id="outline-container-orge7b6271" class="outline-2">
|
||||||
<h2 id="org45a56f5"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
<h2 id="orge7b6271"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
||||||
<div class="outline-text-2" id="text-3">
|
<div class="outline-text-2" id="text-3">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org37142ce" class="outline-3">
|
<div id="outline-container-orgb0fd173" class="outline-3">
|
||||||
<h3 id="org37142ce"><span class="section-number-3">3.1</span> Literate programming</h3>
|
<h3 id="orgb0fd173"><span class="section-number-3">3.1</span> Literate programming</h3>
|
||||||
<div class="outline-text-3" id="text-3-1">
|
<div class="outline-text-3" id="text-3-1">
|
||||||
<p>
|
<p>
|
||||||
In a traditional source code, most of the lines of source files of a program
|
In a traditional source code, most of the lines of source files of a program
|
||||||
@ -507,8 +507,8 @@ tarball contains the generated source code.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgdf9daa0" class="outline-3">
|
<div id="outline-container-orgb87e788" class="outline-3">
|
||||||
<h3 id="orgdf9daa0"><span class="section-number-3">3.2</span> Source code editing</h3>
|
<h3 id="orgb87e788"><span class="section-number-3">3.2</span> Source code editing</h3>
|
||||||
<div class="outline-text-3" id="text-3-2">
|
<div class="outline-text-3" id="text-3-2">
|
||||||
<p>
|
<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>.
|
For a tutorial on literate programming with org-mode, follow <a href="http://www.howardism.org/Technical/Emacs/literate-programming-tutorial.html">this link</a>.
|
||||||
@ -539,8 +539,8 @@ org-mode.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgaebd78a" class="outline-3">
|
<div id="outline-container-org8c13e1d" class="outline-3">
|
||||||
<h3 id="orgaebd78a"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
<h3 id="org8c13e1d"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
||||||
<div class="outline-text-3" id="text-3-3">
|
<div class="outline-text-3" id="text-3-3">
|
||||||
<p>
|
<p>
|
||||||
Most of the codes of the <a href="https://trex-coe.eu">TREX CoE</a> are written in Fortran with some
|
Most of the codes of the <a href="https://trex-coe.eu">TREX CoE</a> are written in Fortran with some
|
||||||
@ -604,8 +604,8 @@ For more guidelines on using Fortran to generate a C interface, see
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org86c6b85" class="outline-3">
|
<div id="outline-container-org7fbea1b" class="outline-3">
|
||||||
<h3 id="org86c6b85"><span class="section-number-3">3.4</span> Coding rules</h3>
|
<h3 id="org7fbea1b"><span class="section-number-3">3.4</span> Coding rules</h3>
|
||||||
<div class="outline-text-3" id="text-3-4">
|
<div class="outline-text-3" id="text-3-4">
|
||||||
<p>
|
<p>
|
||||||
The authors should follow the recommendations of the C99
|
The authors should follow the recommendations of the C99
|
||||||
@ -625,8 +625,8 @@ make cppcheck ; cat cppcheck.out
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf176230" class="outline-3">
|
<div id="outline-container-org2b9162b" class="outline-3">
|
||||||
<h3 id="orgf176230"><span class="section-number-3">3.5</span> Design of the library</h3>
|
<h3 id="org2b9162b"><span class="section-number-3">3.5</span> Design of the library</h3>
|
||||||
<div class="outline-text-3" id="text-3-5">
|
<div class="outline-text-3" id="text-3-5">
|
||||||
<p>
|
<p>
|
||||||
The proposed API should allow the library to: deal with memory transfers
|
The proposed API should allow the library to: deal with memory transfers
|
||||||
@ -637,8 +637,8 @@ functions (see below).
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org86e103a" class="outline-3">
|
<div id="outline-container-org6677339" class="outline-3">
|
||||||
<h3 id="org86e103a"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
<h3 id="org6677339"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
||||||
<div class="outline-text-3" id="text-3-6">
|
<div class="outline-text-3" id="text-3-6">
|
||||||
<p>
|
<p>
|
||||||
To avoid namespace collisions, we use <code>qmckl_</code> as a prefix for all exported
|
To avoid namespace collisions, we use <code>qmckl_</code> as a prefix for all exported
|
||||||
@ -659,8 +659,8 @@ form is allowed.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org8f8a40a" class="outline-3">
|
<div id="outline-container-org0d6e913" class="outline-3">
|
||||||
<h3 id="org8f8a40a"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
<h3 id="org0d6e913"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
||||||
<div class="outline-text-3" id="text-3-7">
|
<div class="outline-text-3" id="text-3-7">
|
||||||
<p>
|
<p>
|
||||||
In the C language, the number of bits used by the integer types can change
|
In the C language, the number of bits used by the integer types can change
|
||||||
@ -692,15 +692,15 @@ bindings in other languages in other repositories.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org144cc4b" class="outline-3">
|
<div id="outline-container-org4ed339a" class="outline-3">
|
||||||
<h3 id="org144cc4b"><span class="section-number-3">3.8</span> Global state</h3>
|
<h3 id="org4ed339a"><span class="section-number-3">3.8</span> Global state</h3>
|
||||||
<div class="outline-text-3" id="text-3-8">
|
<div class="outline-text-3" id="text-3-8">
|
||||||
<p>
|
<p>
|
||||||
Global variables should be avoided in the library, because it is
|
Global variables should be avoided in the library, because it is
|
||||||
possible that one single program needs to use multiple instances
|
possible that one single program needs to use multiple instances
|
||||||
of the library. To solve this problem we propose to use a pointer
|
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
|
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="org18ada23">=context=</a> contains the global
|
<code>qmckl_context_create</code> function. The <a id="org5f854b2">=context=</a> contains the global
|
||||||
state of the library, and is used as the first argument of many
|
state of the library, and is used as the first argument of many
|
||||||
QMCkl functions.
|
QMCkl functions.
|
||||||
</p>
|
</p>
|
||||||
@ -714,8 +714,8 @@ the state is done by setters and getters, prefixed by
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org85de81e" class="outline-3">
|
<div id="outline-container-org4ca23a9" class="outline-3">
|
||||||
<h3 id="org85de81e"><span class="section-number-3">3.9</span> Headers</h3>
|
<h3 id="org4ca23a9"><span class="section-number-3">3.9</span> Headers</h3>
|
||||||
<div class="outline-text-3" id="text-3-9">
|
<div class="outline-text-3" id="text-3-9">
|
||||||
<p>
|
<p>
|
||||||
A single <code>qmckl.h</code> header to be distributed by the library
|
A single <code>qmckl.h</code> header to be distributed by the library
|
||||||
@ -803,8 +803,8 @@ and the types definitions should be written in the <code>*fh_type.f90</code> fil
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org185bfec" class="outline-3">
|
<div id="outline-container-org13d8bd9" class="outline-3">
|
||||||
<h3 id="org185bfec"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
<h3 id="org13d8bd9"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
||||||
<div class="outline-text-3" id="text-3-10">
|
<div class="outline-text-3" id="text-3-10">
|
||||||
<p>
|
<p>
|
||||||
Low-level functions are very simple functions which are leaves of
|
Low-level functions are very simple functions which are leaves of
|
||||||
@ -813,14 +813,14 @@ the function call tree (they don't call any other QMCkl function).
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
These functions are <i>pure</i>, and unaware of the QMCkl
|
These functions are <i>pure</i>, and unaware of the QMCkl
|
||||||
<a href="#org18ada23"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
<a href="#org5f854b2"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||||
if they need temporary memory it should be provided in input.
|
if they need temporary memory it should be provided in input.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgefc28e5" class="outline-3">
|
<div id="outline-container-orgf65f36f" class="outline-3">
|
||||||
<h3 id="orgefc28e5"><span class="section-number-3">3.11</span> High-level functions</h3>
|
<h3 id="orgf65f36f"><span class="section-number-3">3.11</span> High-level functions</h3>
|
||||||
<div class="outline-text-3" id="text-3-11">
|
<div class="outline-text-3" id="text-3-11">
|
||||||
<p>
|
<p>
|
||||||
High-level functions are at the top of the function call tree.
|
High-level functions are at the top of the function call tree.
|
||||||
@ -832,8 +832,8 @@ temporary storage, to simplify the use of accelerators.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org7f78b39" class="outline-3">
|
<div id="outline-container-org56b72fc" class="outline-3">
|
||||||
<h3 id="org7f78b39"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
<h3 id="org56b72fc"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
||||||
<div class="outline-text-3" id="text-3-12">
|
<div class="outline-text-3" id="text-3-12">
|
||||||
<p>
|
<p>
|
||||||
The minimal number of bits of precision required for a function
|
The minimal number of bits of precision required for a function
|
||||||
@ -841,7 +841,7 @@ should be given as an input of low-level computational
|
|||||||
functions. This input will be used to define the values of the
|
functions. This input will be used to define the values of the
|
||||||
different thresholds that might be used to avoid computing
|
different thresholds that might be used to avoid computing
|
||||||
unnecessary noise. High-level functions will use the precision
|
unnecessary noise. High-level functions will use the precision
|
||||||
specified in the <a href="#org18ada23"><code>context</code></a> variable.
|
specified in the <a href="#org5f854b2"><code>context</code></a> variable.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@ -909,8 +909,8 @@ following points :
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org7cc15d8" class="outline-3">
|
<div id="outline-container-orga16a16c" class="outline-3">
|
||||||
<h3 id="org7cc15d8"><span class="section-number-3">3.13</span> Algorithms</h3>
|
<h3 id="orga16a16c"><span class="section-number-3">3.13</span> Algorithms</h3>
|
||||||
<div class="outline-text-3" id="text-3-13">
|
<div class="outline-text-3" id="text-3-13">
|
||||||
<p>
|
<p>
|
||||||
Reducing the scaling of an algorithm usually implies also reducing
|
Reducing the scaling of an algorithm usually implies also reducing
|
||||||
@ -926,7 +926,7 @@ implemented adapted to different problem sizes.
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: TREX CoE</p>
|
<p class="author">Author: TREX CoE</p>
|
||||||
<p class="date">Created: 2024-01-09 Tue 07:20</p>
|
<p class="date">Created: 2024-01-11 Thu 13:34</p>
|
||||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
240
qmckl_ao.html
240
qmckl_ao.html
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-01-09 Tue 07:20 -->
|
<!-- 2024-01-11 Thu 13:34 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Atomic Orbitals</title>
|
<title>Atomic Orbitals</title>
|
||||||
@ -346,62 +346,62 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org21fc7fb">1. Introduction</a></li>
|
<li><a href="#org11c24b9">1. Introduction</a></li>
|
||||||
<li><a href="#orgc7da124">2. Context</a>
|
<li><a href="#orgfa11289">2. Context</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgaf69372">2.1. Constant data</a>
|
<li><a href="#org96c5024">2.1. Constant data</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgf431365">2.1.1. Initialization functions</a>
|
<li><a href="#orgec029ff">2.1.1. Initialization functions</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgae8bd58">2.1.1.1. C interface</a></li>
|
<li><a href="#org9396260">2.1.1.1. C interface</a></li>
|
||||||
<li><a href="#org8a93398">2.1.1.2. Fortran interface</a></li>
|
<li><a href="#orge304495">2.1.1.2. Fortran interface</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org1ccfdf8">2.1.2. Access functions</a>
|
<li><a href="#orge38a448">2.1.2. Access functions</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgad66d58">2.1.2.1. C interface</a></li>
|
<li><a href="#org98480fb">2.1.2.1. C interface</a></li>
|
||||||
<li><a href="#org5ed9e54">2.1.2.2. Fortran interface</a></li>
|
<li><a href="#org384372d">2.1.2.2. Fortran interface</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org54a1186">2.2. Computed data</a>
|
<li><a href="#orgf1d2b84">2.2. Computed data</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgaa07aae">2.2.1. After initialization</a></li>
|
<li><a href="#org512e1f5">2.2.1. After initialization</a></li>
|
||||||
<li><a href="#orgc897e08">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
<li><a href="#orgb6932e7">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||||
<li><a href="#orgf6bd905">2.2.3. Access functions</a></li>
|
<li><a href="#org9b6ce05">2.2.3. Access functions</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgb1bc7a2">3. Radial part</a>
|
<li><a href="#org0963b7e">3. Radial part</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgf3e8b1d">3.1. General functions for Gaussian basis functions</a></li>
|
<li><a href="#org113b8b3">3.1. General functions for Gaussian basis functions</a></li>
|
||||||
<li><a href="#orgc03755f">3.2. Computation of primitives</a></li>
|
<li><a href="#org9934479">3.2. Computation of primitives</a></li>
|
||||||
<li><a href="#org5f19567">3.3. Computation of shells</a></li>
|
<li><a href="#org51dd70e">3.3. Computation of shells</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org8a09a7a">4. Polynomial part</a>
|
<li><a href="#orgcc04f93">4. Polynomial part</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org8fa8cb8">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
<li><a href="#org990b360">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||||
<li><a href="#org9a5c907">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
<li><a href="#org008e4d2">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org193daff">5. Combining radial and polynomial parts</a>
|
<li><a href="#org3f10cd8">5. Combining radial and polynomial parts</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgfbdb827">5.1. Determination of nucleus ranges</a></li>
|
<li><a href="#org0942c41">5.1. Determination of nucleus ranges</a></li>
|
||||||
<li><a href="#orgb1a2e00">5.2. Values only</a>
|
<li><a href="#orgc7d8b49">5.2. Values only</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgc6012b4">5.2.1. Unoptimized version</a></li>
|
<li><a href="#org4b2d015">5.2.1. Unoptimized version</a></li>
|
||||||
<li><a href="#orgaca3c9b">5.2.2. HPC version</a></li>
|
<li><a href="#org8cc4825">5.2.2. HPC version</a></li>
|
||||||
<li><a href="#org9c7c31f">5.2.3. Interfaces</a></li>
|
<li><a href="#orgc59811c">5.2.3. Interfaces</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org2255960">5.3. Value, gradients, Laplacian</a>
|
<li><a href="#orgcf39323">5.3. Value, gradients, Laplacian</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgc8e34bc">5.3.1. Reference version</a></li>
|
<li><a href="#org1215080">5.3.1. Reference version</a></li>
|
||||||
<li><a href="#orgdea186a">5.3.2. HPC version</a></li>
|
<li><a href="#orge6ad871">5.3.2. HPC version</a></li>
|
||||||
<li><a href="#orgc183942">5.3.3. Interfaces</a></li>
|
<li><a href="#org9885c72">5.3.3. Interfaces</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -410,8 +410,8 @@ for the JavaScript code in this tag.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org21fc7fb" class="outline-2">
|
<div id="outline-container-org11c24b9" class="outline-2">
|
||||||
<h2 id="org21fc7fb"><span class="section-number-2">1</span> Introduction</h2>
|
<h2 id="org11c24b9"><span class="section-number-2">1</span> Introduction</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
<p>
|
<p>
|
||||||
The atomic basis set is defined as a list of shells. Each shell \(s\) is
|
The atomic basis set is defined as a list of shells. Each shell \(s\) is
|
||||||
@ -464,19 +464,19 @@ gradients and Laplacian of the atomic basis functions.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc7da124" class="outline-2">
|
<div id="outline-container-orgfa11289" class="outline-2">
|
||||||
<h2 id="orgc7da124"><span class="section-number-2">2</span> Context</h2>
|
<h2 id="orgfa11289"><span class="section-number-2">2</span> Context</h2>
|
||||||
<div class="outline-text-2" id="text-2">
|
<div class="outline-text-2" id="text-2">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgaf69372" class="outline-3">
|
<div id="outline-container-org96c5024" class="outline-3">
|
||||||
<h3 id="orgaf69372"><span class="section-number-3">2.1</span> Constant data</h3>
|
<h3 id="org96c5024"><span class="section-number-3">2.1</span> Constant data</h3>
|
||||||
<div class="outline-text-3" id="text-2-1">
|
<div class="outline-text-3" id="text-2-1">
|
||||||
<p>
|
<p>
|
||||||
The following arrays are stored in the context, and need to be set
|
The following arrays are stored in the context, and need to be set
|
||||||
when initializing the library:
|
when initializing the library:
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table id="orgb66fc3d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org151e455" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -710,7 +710,7 @@ calling the functions:
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-C" id="org31e4052"><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="orgee9e8a5"><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> $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>,
|
<span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_ao_basis_$V$</span> ( <span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||||
@ -747,7 +747,7 @@ For array variables, use the rule:
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-C" id="org237ac51"><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="org33b63fb"><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> $type_of_V$ $V$,
|
||||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">size_max</span>);
|
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">size_max</span>);
|
||||||
|
|
||||||
@ -785,17 +785,17 @@ For array variables, use the rule:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf431365" class="outline-4">
|
<div id="outline-container-orgec029ff" class="outline-4">
|
||||||
<h4 id="orgf431365"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
<h4 id="orgec029ff"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-1">
|
<div class="outline-text-4" id="text-2-1-1">
|
||||||
<p>
|
<p>
|
||||||
<code>size_max</code> is the dimension of the input array, which should be
|
<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="#orgc7da124">2</a>.
|
equal of larger than the value given in the table of section <a href="#orgfa11289">2</a>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgae8bd58" class="outline-5">
|
<div id="outline-container-org9396260" class="outline-5">
|
||||||
<h5 id="orgae8bd58"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
<h5 id="org9396260"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
||||||
<div class="outline-text-5" id="text-2-1-1-1">
|
<div class="outline-text-5" id="text-2-1-1-1">
|
||||||
<p>
|
<p>
|
||||||
To set the basis set, all the following functions need to be
|
To set the basis set, all the following functions need to be
|
||||||
@ -919,8 +919,8 @@ called.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org8a93398" class="outline-5">
|
<div id="outline-container-orge304495" class="outline-5">
|
||||||
<h5 id="org8a93398"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
<h5 id="orge304495"><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="outline-text-5" id="text-2-1-1-2">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-f90"><span style="color: #a020f0;">interface</span>
|
<pre class="src src-f90"><span style="color: #a020f0;">interface</span>
|
||||||
@ -1103,17 +1103,17 @@ called.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org1ccfdf8" class="outline-4">
|
<div id="outline-container-orge38a448" class="outline-4">
|
||||||
<h4 id="org1ccfdf8"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
<h4 id="orge38a448"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-2">
|
<div class="outline-text-4" id="text-2-1-2">
|
||||||
<p>
|
<p>
|
||||||
<code>size_max</code> is the dimension of the input array, which should be
|
<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="#orgc7da124">2</a>.
|
equal of larger than the value given in the table of section <a href="#orgfa11289">2</a>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgad66d58" class="outline-5">
|
<div id="outline-container-org98480fb" class="outline-5">
|
||||||
<h5 id="orgad66d58"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
<h5 id="org98480fb"><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="outline-text-5" id="text-2-1-2-1">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||||
@ -1235,8 +1235,8 @@ function returns <code>true</code>.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org5ed9e54" class="outline-5">
|
<div id="outline-container-org384372d" class="outline-5">
|
||||||
<h5 id="org5ed9e54"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
<h5 id="org384372d"><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="outline-text-5" id="text-2-1-2-2">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-f90"><span style="color: #a020f0;">interface</span>
|
<pre class="src src-f90"><span style="color: #a020f0;">interface</span>
|
||||||
@ -1420,8 +1420,8 @@ function returns <code>true</code>.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org54a1186" class="outline-3">
|
<div id="outline-container-orgf1d2b84" class="outline-3">
|
||||||
<h3 id="org54a1186"><span class="section-number-3">2.2</span> Computed data</h3>
|
<h3 id="orgf1d2b84"><span class="section-number-3">2.2</span> Computed data</h3>
|
||||||
<div class="outline-text-3" id="text-2-2">
|
<div class="outline-text-3" id="text-2-2">
|
||||||
<p>
|
<p>
|
||||||
The following data is computed as described in the next sections:
|
The following data is computed as described in the next sections:
|
||||||
@ -1496,8 +1496,8 @@ The following data is computed as described in the next sections:
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgaa07aae" class="outline-4">
|
<div id="outline-container-org512e1f5" class="outline-4">
|
||||||
<h4 id="orgaa07aae"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
<h4 id="org512e1f5"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
||||||
<div class="outline-text-4" id="text-2-2-1">
|
<div class="outline-text-4" id="text-2-2-1">
|
||||||
<p>
|
<p>
|
||||||
When the basis set is completely entered, extra data structures may be
|
When the basis set is completely entered, extra data structures may be
|
||||||
@ -1511,8 +1511,8 @@ the context.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc897e08" class="outline-4">
|
<div id="outline-container-orgb6932e7" class="outline-4">
|
||||||
<h4 id="orgc897e08"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
<h4 id="orgb6932e7"><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">
|
<div class="outline-text-4" id="text-2-2-2">
|
||||||
<p>
|
<p>
|
||||||
For faster access, we provide extra arrays for the shell information as:
|
For faster access, we provide extra arrays for the shell information as:
|
||||||
@ -1542,8 +1542,8 @@ which is a matrix-vector product.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf6bd905" class="outline-4">
|
<div id="outline-container-org9b6ce05" class="outline-4">
|
||||||
<h4 id="orgf6bd905"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
<h4 id="org9b6ce05"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
||||||
<div class="outline-text-4" id="text-2-2-3">
|
<div class="outline-text-4" id="text-2-2-3">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||||
@ -1556,7 +1556,7 @@ which is a matrix-vector product.
|
|||||||
<p>
|
<p>
|
||||||
Returns the array of values, gradients an Laplacian of primitive
|
Returns the array of values, gradients an Laplacian of primitive
|
||||||
basis functions evaluated at the current coordinates.
|
basis functions evaluated at the current coordinates.
|
||||||
See section <a href="#orgc03755f">3.2</a>.
|
See section <a href="#org9934479">3.2</a>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
@ -1569,7 +1569,7 @@ See section <a href="#orgc03755f">3.2</a>.
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
Returns the array of values, gradients an Laplacian of contracted shells
|
Returns the array of values, gradients an Laplacian of contracted shells
|
||||||
evaluated at the current coordinates. See section <a href="#org5f19567">3.3</a>.
|
evaluated at the current coordinates. See section <a href="#org51dd70e">3.3</a>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
@ -1583,7 +1583,7 @@ evaluated at the current coordinates. See section <a href="#org5f19567">3.3</a>.
|
|||||||
<p>
|
<p>
|
||||||
Returns the array of values, gradients an Laplacian of the atomic orbitals
|
Returns the array of values, gradients an Laplacian of the atomic orbitals
|
||||||
evaluated at the current coordinates.
|
evaluated at the current coordinates.
|
||||||
See section <a href="#org193daff">5</a>.
|
See section <a href="#org3f10cd8">5</a>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@ -1608,7 +1608,7 @@ Uses the given array to compute the VGL.
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
Returns the array of values of the atomic orbitals evaluated at
|
Returns the array of values of the atomic orbitals evaluated at
|
||||||
the current coordinates. See section <a href="#org193daff">5</a>.
|
the current coordinates. See section <a href="#org3f10cd8">5</a>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@ -1627,12 +1627,12 @@ Uses the given array to compute the value.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgb1bc7a2" class="outline-2">
|
<div id="outline-container-org0963b7e" class="outline-2">
|
||||||
<h2 id="orgb1bc7a2"><span class="section-number-2">3</span> Radial part</h2>
|
<h2 id="org0963b7e"><span class="section-number-2">3</span> Radial part</h2>
|
||||||
<div class="outline-text-2" id="text-3">
|
<div class="outline-text-2" id="text-3">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgf3e8b1d" class="outline-3">
|
<div id="outline-container-org113b8b3" class="outline-3">
|
||||||
<h3 id="orgf3e8b1d"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
<h3 id="org113b8b3"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
||||||
<div class="outline-text-3" id="text-3-1">
|
<div class="outline-text-3" id="text-3-1">
|
||||||
<p>
|
<p>
|
||||||
<code>qmckl_ao_gaussian_vgl</code> computes the values, gradients and
|
<code>qmckl_ao_gaussian_vgl</code> computes the values, gradients and
|
||||||
@ -1806,10 +1806,10 @@ Requirements:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc03755f" class="outline-3">
|
<div id="outline-container-org9934479" class="outline-3">
|
||||||
<h3 id="orgc03755f"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
<h3 id="org9934479"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
||||||
<div class="outline-text-3" id="text-3-2">
|
<div class="outline-text-3" id="text-3-2">
|
||||||
<table id="org6fff49d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org1ef8ae4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1919,7 +1919,7 @@ Requirements:
|
|||||||
|
|
||||||
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl_constants</span>
|
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl_constants</span>
|
||||||
|
|
||||||
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl</span>, <span style="color: #a020f0;">only</span>: qmckl_get_numprec_epsilon
|
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl</span>, <span style="color: #a020f0;">only</span>: qmckl_get_numprec_precision
|
||||||
<span style="color: #a020f0;">implicit</span> <span style="color: #228b22;">none</span>
|
<span style="color: #a020f0;">implicit</span> <span style="color: #228b22;">none</span>
|
||||||
<span style="color: #228b22;">integer</span> (qmckl_context), <span style="color: #a020f0;">intent</span>(in) , <span style="color: #a020f0;">value</span> ::<span style="color: #a0522d;"> context</span>
|
<span style="color: #228b22;">integer</span> (qmckl_context), <span style="color: #a020f0;">intent</span>(in) , <span style="color: #a020f0;">value</span> ::<span style="color: #a0522d;"> context</span>
|
||||||
<span style="color: #228b22;">integer</span> (<span style="color: #008b8b;">c_int64_t</span>) , <span style="color: #a020f0;">intent</span>(in) , <span style="color: #a020f0;">value</span> ::<span style="color: #a0522d;"> prim_num</span>
|
<span style="color: #228b22;">integer</span> (<span style="color: #008b8b;">c_int64_t</span>) , <span style="color: #a020f0;">intent</span>(in) , <span style="color: #a020f0;">value</span> ::<span style="color: #a0522d;"> prim_num</span>
|
||||||
@ -1938,7 +1938,8 @@ Requirements:
|
|||||||
info = QMCKL_SUCCESS
|
info = QMCKL_SUCCESS
|
||||||
|
|
||||||
! <span style="color: #b22222;">Don't compute exponentials when the result will be almost zero.</span>
|
! <span style="color: #b22222;">Don't compute exponentials when the result will be almost zero.</span>
|
||||||
cutoff = -dlog(qmckl_get_numprec_epsilon(context))
|
cutoff = qmckl_get_numprec_precision(context)
|
||||||
|
cutoff = dlog(2.d0**(cutoff-2))
|
||||||
|
|
||||||
<span style="color: #a020f0;">do</span> inucl=1,nucl_num
|
<span style="color: #a020f0;">do</span> inucl=1,nucl_num
|
||||||
! <span style="color: #b22222;">C is zero-based, so shift bounds by one</span>
|
! <span style="color: #b22222;">C is zero-based, so shift bounds by one</span>
|
||||||
@ -1971,10 +1972,10 @@ Requirements:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org5f19567" class="outline-3">
|
<div id="outline-container-org51dd70e" class="outline-3">
|
||||||
<h3 id="org5f19567"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
<h3 id="org51dd70e"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
||||||
<div class="outline-text-3" id="text-3-3">
|
<div class="outline-text-3" id="text-3-3">
|
||||||
<table id="org595ec2e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org351f22b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -2132,7 +2133,7 @@ Requirements:
|
|||||||
|
|
||||||
<span style="color: #a020f0;">use</span>, <span style="color: #a020f0;">intrinsic</span> :: <span style="color: #0000ff;">iso_c_binding</span>
|
<span style="color: #a020f0;">use</span>, <span style="color: #a020f0;">intrinsic</span> :: <span style="color: #0000ff;">iso_c_binding</span>
|
||||||
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl_constants</span>
|
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl_constants</span>
|
||||||
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl</span>, <span style="color: #a020f0;">only</span>: qmckl_get_numprec_epsilon
|
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl</span>, <span style="color: #a020f0;">only</span>: qmckl_get_numprec_precision
|
||||||
|
|
||||||
<span style="color: #a020f0;">implicit</span> <span style="color: #228b22;">none</span>
|
<span style="color: #a020f0;">implicit</span> <span style="color: #228b22;">none</span>
|
||||||
<span style="color: #228b22;">integer</span> (qmckl_context), <span style="color: #a020f0;">intent</span>(in) , <span style="color: #a020f0;">value</span> ::<span style="color: #a0522d;"> context</span>
|
<span style="color: #228b22;">integer</span> (qmckl_context), <span style="color: #a020f0;">intent</span>(in) , <span style="color: #a020f0;">value</span> ::<span style="color: #a0522d;"> context</span>
|
||||||
@ -2160,7 +2161,8 @@ Requirements:
|
|||||||
info = QMCKL_SUCCESS
|
info = QMCKL_SUCCESS
|
||||||
|
|
||||||
! <span style="color: #b22222;">Don't compute exponentials when the result will be almost zero.</span>
|
! <span style="color: #b22222;">Don't compute exponentials when the result will be almost zero.</span>
|
||||||
cutoff = -dlog(qmckl_get_numprec_epsilon(context))
|
cutoff = qmckl_get_numprec_precision(context)
|
||||||
|
cutoff = dlog(2.d0**(cutoff-2))
|
||||||
|
|
||||||
<span style="color: #a020f0;">do</span> ipoint = 1, point_num
|
<span style="color: #a020f0;">do</span> ipoint = 1, point_num
|
||||||
|
|
||||||
@ -2230,8 +2232,8 @@ Requirements:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org8a09a7a" class="outline-2">
|
<div id="outline-container-orgcc04f93" class="outline-2">
|
||||||
<h2 id="org8a09a7a"><span class="section-number-2">4</span> Polynomial part</h2>
|
<h2 id="orgcc04f93"><span class="section-number-2">4</span> Polynomial part</h2>
|
||||||
<div class="outline-text-2" id="text-4">
|
<div class="outline-text-2" id="text-4">
|
||||||
<p>
|
<p>
|
||||||
Going from the atomic basis set to AOs implies a systematic
|
Going from the atomic basis set to AOs implies a systematic
|
||||||
@ -2251,8 +2253,8 @@ f & : & f_{xxx}, f_{xxy}, f_{xxz}, f_{xyy}, f_{xyz}, f_{xzz}, f_{yyy}, f_{yyz},
|
|||||||
\end{eqnarray}
|
\end{eqnarray}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org8fa8cb8" class="outline-3">
|
<div id="outline-container-org990b360" class="outline-3">
|
||||||
<h3 id="org8fa8cb8"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
<h3 id="org990b360"><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">
|
<div class="outline-text-3" id="text-4-1">
|
||||||
<p>
|
<p>
|
||||||
The <code>qmckl_ao_power</code> function computes all the powers of the <code>n</code>
|
The <code>qmckl_ao_power</code> function computes all the powers of the <code>n</code>
|
||||||
@ -2264,7 +2266,7 @@ the \(n\) points:
|
|||||||
\[ P_{ik} = X_i^k \]
|
\[ P_{ik} = X_i^k \]
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table id="org10f7be0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org4ce3952" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -2407,8 +2409,8 @@ Requirements:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org9a5c907" class="outline-3">
|
<div id="outline-container-org008e4d2" class="outline-3">
|
||||||
<h3 id="org9a5c907"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
<h3 id="org008e4d2"><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">
|
<div class="outline-text-3" id="text-4-2">
|
||||||
<p>
|
<p>
|
||||||
A polynomial is centered on a nucleus \(\mathbf{R}_i\)
|
A polynomial is centered on a nucleus \(\mathbf{R}_i\)
|
||||||
@ -2453,7 +2455,7 @@ Laplacians at a given point in space, of all polynomials with an
|
|||||||
angular momentum up to <code>lmax</code>.
|
angular momentum up to <code>lmax</code>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table id="orga9a4f95" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgb541a77" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -3248,12 +3250,12 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org193daff" class="outline-2">
|
<div id="outline-container-org3f10cd8" class="outline-2">
|
||||||
<h2 id="org193daff"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
<h2 id="org3f10cd8"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
||||||
<div class="outline-text-2" id="text-5">
|
<div class="outline-text-2" id="text-5">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgfbdb827" class="outline-3">
|
<div id="outline-container-org0942c41" class="outline-3">
|
||||||
<h3 id="orgfbdb827"><span class="section-number-3">5.1</span> Determination of nucleus ranges</h3>
|
<h3 id="org0942c41"><span class="section-number-3">5.1</span> Determination of nucleus ranges</h3>
|
||||||
<div class="outline-text-3" id="text-5-1">
|
<div class="outline-text-3" id="text-5-1">
|
||||||
<p>
|
<p>
|
||||||
The range of a nucleus is defined as the distance beyond which all
|
The range of a nucleus is defined as the distance beyond which all
|
||||||
@ -3291,7 +3293,7 @@ of bits of precision (1-53), a range is given.
|
|||||||
<span style="color: #a020f0;">bind</span>(C) <span style="color: #a020f0;">result</span>(info)
|
<span style="color: #a020f0;">bind</span>(C) <span style="color: #a020f0;">result</span>(info)
|
||||||
<span style="color: #a020f0;">use</span>, <span style="color: #a020f0;">intrinsic</span> :: <span style="color: #0000ff;">iso_c_binding</span>
|
<span style="color: #a020f0;">use</span>, <span style="color: #a020f0;">intrinsic</span> :: <span style="color: #0000ff;">iso_c_binding</span>
|
||||||
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl_constants</span>
|
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl_constants</span>
|
||||||
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl</span>, <span style="color: #a020f0;">only</span>: qmckl_ao_polynomial_vgl, qmckl_get_numprec_epsilon
|
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl</span>, <span style="color: #a020f0;">only</span>: qmckl_ao_polynomial_vgl, qmckl_get_numprec_precision
|
||||||
<span style="color: #a020f0;">implicit</span> <span style="color: #228b22;">none</span>
|
<span style="color: #a020f0;">implicit</span> <span style="color: #228b22;">none</span>
|
||||||
<span style="color: #228b22;">integer</span> (qmckl_context), <span style="color: #a020f0;">intent</span>(in) , <span style="color: #a020f0;">value</span> ::<span style="color: #a0522d;"> context</span>
|
<span style="color: #228b22;">integer</span> (qmckl_context), <span style="color: #a020f0;">intent</span>(in) , <span style="color: #a020f0;">value</span> ::<span style="color: #a0522d;"> context</span>
|
||||||
<span style="color: #228b22;">integer</span> (<span style="color: #008b8b;">c_int64_t</span>) , <span style="color: #a020f0;">intent</span>(in) , <span style="color: #a020f0;">value</span> ::<span style="color: #a0522d;"> ao_num</span>
|
<span style="color: #228b22;">integer</span> (<span style="color: #008b8b;">c_int64_t</span>) , <span style="color: #a020f0;">intent</span>(in) , <span style="color: #a020f0;">value</span> ::<span style="color: #a0522d;"> ao_num</span>
|
||||||
@ -3420,14 +3422,14 @@ of bits of precision (1-53), a range is given.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgb1a2e00" class="outline-3">
|
<div id="outline-container-orgc7d8b49" class="outline-3">
|
||||||
<h3 id="orgb1a2e00"><span class="section-number-3">5.2</span> Values only</h3>
|
<h3 id="orgc7d8b49"><span class="section-number-3">5.2</span> Values only</h3>
|
||||||
<div class="outline-text-3" id="text-5-2">
|
<div class="outline-text-3" id="text-5-2">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgc6012b4" class="outline-4">
|
<div id="outline-container-org4b2d015" class="outline-4">
|
||||||
<h4 id="orgc6012b4"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
<h4 id="org4b2d015"><span class="section-number-4">5.2.1</span> Unoptimized version</h4>
|
||||||
<div class="outline-text-4" id="text-5-2-1">
|
<div class="outline-text-4" id="text-5-2-1">
|
||||||
<table id="orgd196a6f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org24c3e4f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -3564,7 +3566,7 @@ of bits of precision (1-53), a range is given.
|
|||||||
<span style="color: #a020f0;">bind</span>(C) <span style="color: #a020f0;">result</span>(info)
|
<span style="color: #a020f0;">bind</span>(C) <span style="color: #a020f0;">result</span>(info)
|
||||||
<span style="color: #a020f0;">use</span>, <span style="color: #a020f0;">intrinsic</span> :: <span style="color: #0000ff;">iso_c_binding</span>
|
<span style="color: #a020f0;">use</span>, <span style="color: #a020f0;">intrinsic</span> :: <span style="color: #0000ff;">iso_c_binding</span>
|
||||||
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl_constants</span>
|
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl_constants</span>
|
||||||
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl</span>, <span style="color: #a020f0;">only</span>: qmckl_ao_polynomial_vgl, qmckl_get_numprec_epsilon
|
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl</span>, <span style="color: #a020f0;">only</span>: qmckl_ao_polynomial_vgl, qmckl_get_numprec_precision
|
||||||
<span style="color: #a020f0;">implicit</span> <span style="color: #228b22;">none</span>
|
<span style="color: #a020f0;">implicit</span> <span style="color: #228b22;">none</span>
|
||||||
<span style="color: #228b22;">integer</span> (qmckl_context), <span style="color: #a020f0;">intent</span>(in) , <span style="color: #a020f0;">value</span> ::<span style="color: #a0522d;"> context</span>
|
<span style="color: #228b22;">integer</span> (qmckl_context), <span style="color: #a020f0;">intent</span>(in) , <span style="color: #a020f0;">value</span> ::<span style="color: #a0522d;"> context</span>
|
||||||
<span style="color: #228b22;">integer</span> (<span style="color: #008b8b;">c_int64_t</span>) , <span style="color: #a020f0;">intent</span>(in) , <span style="color: #a020f0;">value</span> ::<span style="color: #a0522d;"> ao_num</span>
|
<span style="color: #228b22;">integer</span> (<span style="color: #008b8b;">c_int64_t</span>) , <span style="color: #a020f0;">intent</span>(in) , <span style="color: #a020f0;">value</span> ::<span style="color: #a0522d;"> ao_num</span>
|
||||||
@ -3616,7 +3618,8 @@ of bits of precision (1-53), a range is given.
|
|||||||
info = QMCKL_SUCCESS
|
info = QMCKL_SUCCESS
|
||||||
|
|
||||||
! <span style="color: #b22222;">Don't compute polynomials when the radial part is zero.</span>
|
! <span style="color: #b22222;">Don't compute polynomials when the radial part is zero.</span>
|
||||||
cutoff = -dlog(qmckl_get_numprec_epsilon(context))
|
cutoff = qmckl_get_numprec_precision(context)
|
||||||
|
cutoff = dlog(2.d0**(cutoff-2))
|
||||||
|
|
||||||
<span style="color: #a020f0;">do</span> ipoint = 1, point_num
|
<span style="color: #a020f0;">do</span> ipoint = 1, point_num
|
||||||
e_coord(1) = coord(ipoint,1)
|
e_coord(1) = coord(ipoint,1)
|
||||||
@ -3667,10 +3670,10 @@ of bits of precision (1-53), a range is given.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgaca3c9b" class="outline-4">
|
<div id="outline-container-org8cc4825" class="outline-4">
|
||||||
<h4 id="orgaca3c9b"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
<h4 id="org8cc4825"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
||||||
<div class="outline-text-4" id="text-5-2-2">
|
<div class="outline-text-4" id="text-5-2-2">
|
||||||
<table id="org0ba30ed" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org6ab71fe" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -3828,8 +3831,8 @@ of bits of precision (1-53), a range is given.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org9c7c31f" class="outline-4">
|
<div id="outline-container-orgc59811c" class="outline-4">
|
||||||
<h4 id="org9c7c31f"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
<h4 id="orgc59811c"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
||||||
<div class="outline-text-4" id="text-5-2-3">
|
<div class="outline-text-4" id="text-5-2-3">
|
||||||
<div class="org-src-container">
|
<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> (
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_compute_ao_value_doc</span> (
|
||||||
@ -3878,14 +3881,14 @@ of bits of precision (1-53), a range is given.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org2255960" class="outline-3">
|
<div id="outline-container-orgcf39323" class="outline-3">
|
||||||
<h3 id="org2255960"><span class="section-number-3">5.3</span> Value, gradients, Laplacian</h3>
|
<h3 id="orgcf39323"><span class="section-number-3">5.3</span> Value, gradients, Laplacian</h3>
|
||||||
<div class="outline-text-3" id="text-5-3">
|
<div class="outline-text-3" id="text-5-3">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgc8e34bc" class="outline-4">
|
<div id="outline-container-org1215080" class="outline-4">
|
||||||
<h4 id="orgc8e34bc"><span class="section-number-4">5.3.1</span> Reference version</h4>
|
<h4 id="org1215080"><span class="section-number-4">5.3.1</span> Reference version</h4>
|
||||||
<div class="outline-text-4" id="text-5-3-1">
|
<div class="outline-text-4" id="text-5-3-1">
|
||||||
<table id="org45bd183" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org6cf3dd3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -4022,7 +4025,7 @@ of bits of precision (1-53), a range is given.
|
|||||||
<span style="color: #a020f0;">bind</span>(C) <span style="color: #a020f0;">result</span>(info)
|
<span style="color: #a020f0;">bind</span>(C) <span style="color: #a020f0;">result</span>(info)
|
||||||
<span style="color: #a020f0;">use</span>, <span style="color: #a020f0;">intrinsic</span> :: <span style="color: #0000ff;">iso_c_binding</span>
|
<span style="color: #a020f0;">use</span>, <span style="color: #a020f0;">intrinsic</span> :: <span style="color: #0000ff;">iso_c_binding</span>
|
||||||
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl_constants</span>
|
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl_constants</span>
|
||||||
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl</span>, <span style="color: #a020f0;">only</span> : qmckl_ao_polynomial_vgl, qmckl_get_numprec_epsilon
|
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl</span>, <span style="color: #a020f0;">only</span> : qmckl_ao_polynomial_vgl, qmckl_get_numprec_precision
|
||||||
<span style="color: #a020f0;">implicit</span> <span style="color: #228b22;">none</span>
|
<span style="color: #a020f0;">implicit</span> <span style="color: #228b22;">none</span>
|
||||||
<span style="color: #228b22;">integer</span> (qmckl_context), <span style="color: #a020f0;">intent</span>(in) , <span style="color: #a020f0;">value</span> ::<span style="color: #a0522d;"> context</span>
|
<span style="color: #228b22;">integer</span> (qmckl_context), <span style="color: #a020f0;">intent</span>(in) , <span style="color: #a020f0;">value</span> ::<span style="color: #a0522d;"> context</span>
|
||||||
<span style="color: #228b22;">integer</span> (<span style="color: #008b8b;">c_int64_t</span>) , <span style="color: #a020f0;">intent</span>(in) , <span style="color: #a020f0;">value</span> ::<span style="color: #a0522d;"> ao_num</span>
|
<span style="color: #228b22;">integer</span> (<span style="color: #008b8b;">c_int64_t</span>) , <span style="color: #a020f0;">intent</span>(in) , <span style="color: #a020f0;">value</span> ::<span style="color: #a0522d;"> ao_num</span>
|
||||||
@ -4073,7 +4076,8 @@ of bits of precision (1-53), a range is given.
|
|||||||
info = QMCKL_SUCCESS
|
info = QMCKL_SUCCESS
|
||||||
|
|
||||||
! <span style="color: #b22222;">Don't compute polynomials when the radial part is zero.</span>
|
! <span style="color: #b22222;">Don't compute polynomials when the radial part is zero.</span>
|
||||||
cutoff = -dlog(qmckl_get_numprec_epsilon(context))
|
cutoff = qmckl_get_numprec_precision(context)
|
||||||
|
cutoff = dlog(2.d0**(cutoff-2))
|
||||||
|
|
||||||
<span style="color: #a020f0;">do</span> ipoint = 1, point_num
|
<span style="color: #a020f0;">do</span> ipoint = 1, point_num
|
||||||
e_coord(1) = coord(ipoint,1)
|
e_coord(1) = coord(ipoint,1)
|
||||||
@ -4153,10 +4157,10 @@ of bits of precision (1-53), a range is given.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgdea186a" class="outline-4">
|
<div id="outline-container-orge6ad871" class="outline-4">
|
||||||
<h4 id="orgdea186a"><span class="section-number-4">5.3.2</span> HPC version</h4>
|
<h4 id="orge6ad871"><span class="section-number-4">5.3.2</span> HPC version</h4>
|
||||||
<div class="outline-text-4" id="text-5-3-2">
|
<div class="outline-text-4" id="text-5-3-2">
|
||||||
<table id="org375e4f3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgc5851af" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -4315,8 +4319,8 @@ of bits of precision (1-53), a range is given.
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-orgc183942" class="outline-4">
|
<div id="outline-container-org9885c72" class="outline-4">
|
||||||
<h4 id="orgc183942"><span class="section-number-4">5.3.3</span> Interfaces</h4>
|
<h4 id="org9885c72"><span class="section-number-4">5.3.3</span> Interfaces</h4>
|
||||||
<div class="outline-text-4" id="text-5-3-3">
|
<div class="outline-text-4" id="text-5-3-3">
|
||||||
<div class="org-src-container">
|
<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> (
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_compute_ao_vgl_doc</span> (
|
||||||
@ -4368,7 +4372,7 @@ of bits of precision (1-53), a range is given.
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: TREX CoE</p>
|
<p class="author">Author: TREX CoE</p>
|
||||||
<p class="date">Created: 2024-01-09 Tue 07:20</p>
|
<p class="date">Created: 2024-01-11 Thu 13:34</p>
|
||||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
184
qmckl_blas.html
184
qmckl_blas.html
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-01-09 Tue 07:20 -->
|
<!-- 2024-01-11 Thu 13:34 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>BLAS functions</title>
|
<title>BLAS functions</title>
|
||||||
@ -346,56 +346,56 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org391430d">-</a></li>
|
<li><a href="#org17cf70e">-</a></li>
|
||||||
<li><a href="#org9674863">1. Data types</a>
|
<li><a href="#orgdcea43c">1. Data types</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org4954244">1.1. Vector</a></li>
|
<li><a href="#org7eabff5">1.1. Vector</a></li>
|
||||||
<li><a href="#org1ec7467">1.2. Matrix</a></li>
|
<li><a href="#orgb48d39a">1.2. Matrix</a></li>
|
||||||
<li><a href="#org66209d6">1.3. Tensor</a></li>
|
<li><a href="#org303101d">1.3. Tensor</a></li>
|
||||||
<li><a href="#org77d034f">1.4. Reshaping</a>
|
<li><a href="#orgdc95972">1.4. Reshaping</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgf8187e5">1.4.1. Vector -> Matrix</a></li>
|
<li><a href="#orgb76d4ba">1.4.1. Vector -> Matrix</a></li>
|
||||||
<li><a href="#org3caec0a">1.4.2. Vector -> Tensor</a></li>
|
<li><a href="#org3fed486">1.4.2. Vector -> Tensor</a></li>
|
||||||
<li><a href="#orgc425ec0">1.4.3. Matrix -> Vector</a></li>
|
<li><a href="#org68176c0">1.4.3. Matrix -> Vector</a></li>
|
||||||
<li><a href="#org5c85f3b">1.4.4. Matrix -> Tensor</a></li>
|
<li><a href="#org448eef3">1.4.4. Matrix -> Tensor</a></li>
|
||||||
<li><a href="#orgb65ced3">1.4.5. Tensor -> Vector</a></li>
|
<li><a href="#orgf0a3a41">1.4.5. Tensor -> Vector</a></li>
|
||||||
<li><a href="#orgd0889d2">1.4.6. Tensor -> Matrix</a></li>
|
<li><a href="#org75e4c15">1.4.6. Tensor -> Matrix</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org35a37b3">1.5. Access macros</a></li>
|
<li><a href="#orgf321c9d">1.5. Access macros</a></li>
|
||||||
<li><a href="#org294ab8e">1.6. Set all elements</a>
|
<li><a href="#orgbd6d2a3">1.6. Set all elements</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org3362fd5">1.6.1. Vector</a></li>
|
<li><a href="#org7aab516">1.6.1. Vector</a></li>
|
||||||
<li><a href="#org81af898">1.6.2. Matrix</a></li>
|
<li><a href="#orgae07978">1.6.2. Matrix</a></li>
|
||||||
<li><a href="#orgddd96fd">1.6.3. Tensor</a></li>
|
<li><a href="#orge9f59dd">1.6.3. Tensor</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org0761f3e">1.7. Copy to/from to <code>double*</code></a></li>
|
<li><a href="#org82c9cdb">1.7. Copy to/from to <code>double*</code></a></li>
|
||||||
<li><a href="#orga532af7">1.8. Allocate and copy to <code>double*</code></a></li>
|
<li><a href="#org6d55db7">1.8. Allocate and copy to <code>double*</code></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgcfac69c">2. Matrix operations</a>
|
<li><a href="#orgf5957fd">2. Matrix operations</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org5daa417">2.1. <code>qmckl_dgemm</code></a></li>
|
<li><a href="#org04ea30c">2.1. <code>qmckl_dgemm</code></a></li>
|
||||||
<li><a href="#orgaf6c7c6">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
<li><a href="#org058b7d5">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||||
<li><a href="#org95ec930">2.3. <code>qmckl_matmul</code></a></li>
|
<li><a href="#orgaf526a0">2.3. <code>qmckl_matmul</code></a></li>
|
||||||
<li><a href="#orgc7af985">2.4. <code>qmckl_adjugate</code></a></li>
|
<li><a href="#org960234d">2.4. <code>qmckl_adjugate</code></a></li>
|
||||||
<li><a href="#orga42244c">2.5. <code>qmckl_adjugate_safe</code></a>
|
<li><a href="#org16aece7">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org146fd13">2.5.1. C interface</a></li>
|
<li><a href="#orgba8f20f">2.5.1. C interface</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org8638cb7">2.6. <code>qmckl_transpose</code></a></li>
|
<li><a href="#orge2fb46d">2.6. <code>qmckl_transpose</code></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgfa5d12c">3. Utilities</a></li>
|
<li><a href="#org6a72b3a">3. Utilities</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org391430d" class="outline-2">
|
<div id="outline-container-org17cf70e" class="outline-2">
|
||||||
<h2 id="org391430d">-</h2>
|
<h2 id="org17cf70e">-</h2>
|
||||||
<div class="outline-text-2" id="text-org391430d">
|
<div class="outline-text-2" id="text-org17cf70e">
|
||||||
<p>
|
<p>
|
||||||
Basic linear algebra data types and operations are described in this file.
|
Basic linear algebra data types and operations are described in this file.
|
||||||
The data types are private, so that HPC implementations can use
|
The data types are private, so that HPC implementations can use
|
||||||
@ -409,12 +409,12 @@ are not intended to be passed to external codes.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org9674863" class="outline-2">
|
<div id="outline-container-orgdcea43c" class="outline-2">
|
||||||
<h2 id="org9674863"><span class="section-number-2">1</span> Data types</h2>
|
<h2 id="orgdcea43c"><span class="section-number-2">1</span> Data types</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org4954244" class="outline-3">
|
<div id="outline-container-org7eabff5" class="outline-3">
|
||||||
<h3 id="org4954244"><span class="section-number-3">1.1</span> Vector</h3>
|
<h3 id="org7eabff5"><span class="section-number-3">1.1</span> Vector</h3>
|
||||||
<div class="outline-text-3" id="text-1-1">
|
<div class="outline-text-3" id="text-1-1">
|
||||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
@ -468,8 +468,8 @@ Allocates a new vector. If the allocation failed the size is zero.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org1ec7467" class="outline-3">
|
<div id="outline-container-orgb48d39a" class="outline-3">
|
||||||
<h3 id="org1ec7467"><span class="section-number-3">1.2</span> Matrix</h3>
|
<h3 id="orgb48d39a"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||||
<div class="outline-text-3" id="text-1-2">
|
<div class="outline-text-3" id="text-1-2">
|
||||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
@ -529,8 +529,8 @@ Allocates a new matrix. If the allocation failed the sizes are zero.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org66209d6" class="outline-3">
|
<div id="outline-container-org303101d" class="outline-3">
|
||||||
<h3 id="org66209d6"><span class="section-number-3">1.3</span> Tensor</h3>
|
<h3 id="org303101d"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||||
<div class="outline-text-3" id="text-1-3">
|
<div class="outline-text-3" id="text-1-3">
|
||||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
@ -597,16 +597,16 @@ is zero.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org77d034f" class="outline-3">
|
<div id="outline-container-orgdc95972" class="outline-3">
|
||||||
<h3 id="org77d034f"><span class="section-number-3">1.4</span> Reshaping</h3>
|
<h3 id="orgdc95972"><span class="section-number-3">1.4</span> Reshaping</h3>
|
||||||
<div class="outline-text-3" id="text-1-4">
|
<div class="outline-text-3" id="text-1-4">
|
||||||
<p>
|
<p>
|
||||||
Reshaping occurs in-place and the pointer to the data is copied.
|
Reshaping occurs in-place and the pointer to the data is copied.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf8187e5" class="outline-4">
|
<div id="outline-container-orgb76d4ba" class="outline-4">
|
||||||
<h4 id="orgf8187e5"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
<h4 id="orgb76d4ba"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||||
<div class="outline-text-4" id="text-1-4-1">
|
<div class="outline-text-4" id="text-1-4-1">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||||
@ -622,8 +622,8 @@ Reshapes a vector into a matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org3caec0a" class="outline-4">
|
<div id="outline-container-org3fed486" class="outline-4">
|
||||||
<h4 id="org3caec0a"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
<h4 id="org3fed486"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||||
<div class="outline-text-4" id="text-1-4-2">
|
<div class="outline-text-4" id="text-1-4-2">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||||
@ -639,8 +639,8 @@ Reshapes a vector into a tensor.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc425ec0" class="outline-4">
|
<div id="outline-container-org68176c0" class="outline-4">
|
||||||
<h4 id="orgc425ec0"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
<h4 id="org68176c0"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||||
<div class="outline-text-4" id="text-1-4-3">
|
<div class="outline-text-4" id="text-1-4-3">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||||
@ -654,8 +654,8 @@ Reshapes a matrix into a vector.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org5c85f3b" class="outline-4">
|
<div id="outline-container-org448eef3" class="outline-4">
|
||||||
<h4 id="org5c85f3b"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
<h4 id="org448eef3"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||||
<div class="outline-text-4" id="text-1-4-4">
|
<div class="outline-text-4" id="text-1-4-4">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||||
@ -671,8 +671,8 @@ Reshapes a matrix into a tensor.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgb65ced3" class="outline-4">
|
<div id="outline-container-orgf0a3a41" class="outline-4">
|
||||||
<h4 id="orgb65ced3"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
<h4 id="orgf0a3a41"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||||
<div class="outline-text-4" id="text-1-4-5">
|
<div class="outline-text-4" id="text-1-4-5">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||||
@ -686,8 +686,8 @@ Reshapes a tensor into a vector.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd0889d2" class="outline-4">
|
<div id="outline-container-org75e4c15" class="outline-4">
|
||||||
<h4 id="orgd0889d2"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
<h4 id="org75e4c15"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||||
<div class="outline-text-4" id="text-1-4-6">
|
<div class="outline-text-4" id="text-1-4-6">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||||
@ -704,8 +704,8 @@ Reshapes a tensor into a vector.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org35a37b3" class="outline-3">
|
<div id="outline-container-orgf321c9d" class="outline-3">
|
||||||
<h3 id="org35a37b3"><span class="section-number-3">1.5</span> Access macros</h3>
|
<h3 id="orgf321c9d"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||||
<div class="outline-text-3" id="text-1-5">
|
<div class="outline-text-3" id="text-1-5">
|
||||||
<p>
|
<p>
|
||||||
Macros are provided to ease the access to vectors, matrices and
|
Macros are provided to ease the access to vectors, matrices and
|
||||||
@ -730,12 +730,12 @@ For example:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org294ab8e" class="outline-3">
|
<div id="outline-container-orgbd6d2a3" class="outline-3">
|
||||||
<h3 id="org294ab8e"><span class="section-number-3">1.6</span> Set all elements</h3>
|
<h3 id="orgbd6d2a3"><span class="section-number-3">1.6</span> Set all elements</h3>
|
||||||
<div class="outline-text-3" id="text-1-6">
|
<div class="outline-text-3" id="text-1-6">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org3362fd5" class="outline-4">
|
<div id="outline-container-org7aab516" class="outline-4">
|
||||||
<h4 id="org3362fd5"><span class="section-number-4">1.6.1</span> Vector</h4>
|
<h4 id="org7aab516"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||||
<div class="outline-text-4" id="text-1-6-1">
|
<div class="outline-text-4" id="text-1-6-1">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||||
@ -745,8 +745,8 @@ For example:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org81af898" class="outline-4">
|
<div id="outline-container-orgae07978" class="outline-4">
|
||||||
<h4 id="org81af898"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
<h4 id="orgae07978"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||||
<div class="outline-text-4" id="text-1-6-2">
|
<div class="outline-text-4" id="text-1-6-2">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||||
@ -756,8 +756,8 @@ For example:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgddd96fd" class="outline-4">
|
<div id="outline-container-orge9f59dd" class="outline-4">
|
||||||
<h4 id="orgddd96fd"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
<h4 id="orge9f59dd"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||||
<div class="outline-text-4" id="text-1-6-3">
|
<div class="outline-text-4" id="text-1-6-3">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||||
@ -768,8 +768,8 @@ For example:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0761f3e" class="outline-3">
|
<div id="outline-container-org82c9cdb" class="outline-3">
|
||||||
<h3 id="org0761f3e"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
<h3 id="org82c9cdb"><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="outline-text-3" id="text-1-7">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||||
@ -851,8 +851,8 @@ Converts a <code>double*</code> to a tensor.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga532af7" class="outline-3">
|
<div id="outline-container-org6d55db7" class="outline-3">
|
||||||
<h3 id="orga532af7"><span class="section-number-3">1.8</span> Allocate and copy to <code>double*</code></h3>
|
<h3 id="org6d55db7"><span class="section-number-3">1.8</span> Allocate and copy to <code>double*</code></h3>
|
||||||
<div class="outline-text-3" id="text-1-8">
|
<div class="outline-text-3" id="text-1-8">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">double</span>* <span style="color: #0000ff;">qmckl_alloc_double_of_vector</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
<pre class="src src-c"><span style="color: #228b22;">double</span>* <span style="color: #0000ff;">qmckl_alloc_double_of_vector</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||||
@ -876,12 +876,12 @@ Converts a <code>double*</code> to a tensor.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgcfac69c" class="outline-2">
|
<div id="outline-container-orgf5957fd" class="outline-2">
|
||||||
<h2 id="orgcfac69c"><span class="section-number-2">2</span> Matrix operations</h2>
|
<h2 id="orgf5957fd"><span class="section-number-2">2</span> Matrix operations</h2>
|
||||||
<div class="outline-text-2" id="text-2">
|
<div class="outline-text-2" id="text-2">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org5daa417" class="outline-3">
|
<div id="outline-container-org04ea30c" class="outline-3">
|
||||||
<h3 id="org5daa417"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
<h3 id="org04ea30c"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||||
<div class="outline-text-3" id="text-2-1">
|
<div class="outline-text-3" id="text-2-1">
|
||||||
<p>
|
<p>
|
||||||
Matrix multiplication with a BLAS interface:
|
Matrix multiplication with a BLAS interface:
|
||||||
@ -893,7 +893,7 @@ Matrix multiplication with a BLAS interface:
|
|||||||
\]
|
\]
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table id="orgd425c16" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org84f053c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1052,8 +1052,8 @@ Requirements:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgaf6c7c6" class="outline-3">
|
<div id="outline-container-org058b7d5" class="outline-3">
|
||||||
<h3 id="orgaf6c7c6"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
<h3 id="org058b7d5"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
||||||
<div class="outline-text-3" id="text-2-2">
|
<div class="outline-text-3" id="text-2-2">
|
||||||
<p>
|
<p>
|
||||||
"Size-safe" proxy function with the same functionality as <code>qmckl_dgemm</code>
|
"Size-safe" proxy function with the same functionality as <code>qmckl_dgemm</code>
|
||||||
@ -1062,7 +1062,7 @@ are required primarily for the Python API, where compatibility with
|
|||||||
NumPy arrays implies that sizes of the input and output arrays are provided.
|
NumPy arrays implies that sizes of the input and output arrays are provided.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table id="org22437d0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org3f7482d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1248,8 +1248,8 @@ Requirements:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org95ec930" class="outline-3">
|
<div id="outline-container-orgaf526a0" class="outline-3">
|
||||||
<h3 id="org95ec930"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
<h3 id="orgaf526a0"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
||||||
<div class="outline-text-3" id="text-2-3">
|
<div class="outline-text-3" id="text-2-3">
|
||||||
<p>
|
<p>
|
||||||
Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||||
@ -1261,7 +1261,7 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
|||||||
\]
|
\]
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table id="org16deb6d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org65af36d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1355,8 +1355,8 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc7af985" class="outline-3">
|
<div id="outline-container-org960234d" class="outline-3">
|
||||||
<h3 id="orgc7af985"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
<h3 id="org960234d"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
||||||
<div class="outline-text-3" id="text-2-4">
|
<div class="outline-text-3" id="text-2-4">
|
||||||
<p>
|
<p>
|
||||||
Given a matrix \(\mathbf{A}\), the adjugate matrix
|
Given a matrix \(\mathbf{A}\), the adjugate matrix
|
||||||
@ -1374,7 +1374,7 @@ of \(\mathbf{A}\).
|
|||||||
See also: <a href="https://en.wikipedia.org/wiki/Adjugate_matrix">https://en.wikipedia.org/wiki/Adjugate_matrix</a>
|
See also: <a href="https://en.wikipedia.org/wiki/Adjugate_matrix">https://en.wikipedia.org/wiki/Adjugate_matrix</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table id="orgae881e1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org7b4e381" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1570,8 +1570,8 @@ determinant with the inverse:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga42244c" class="outline-3">
|
<div id="outline-container-org16aece7" class="outline-3">
|
||||||
<h3 id="orga42244c"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
<h3 id="org16aece7"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
||||||
<div class="outline-text-3" id="text-2-5">
|
<div class="outline-text-3" id="text-2-5">
|
||||||
<p>
|
<p>
|
||||||
"Size-safe" proxy function with the same functionality as <code>qmckl_adjugate</code>
|
"Size-safe" proxy function with the same functionality as <code>qmckl_adjugate</code>
|
||||||
@ -1581,7 +1581,7 @@ NumPy arrays implies that sizes of the input and output arrays are provided.
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
<table id="orgb1e1b70" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgf7bf8ed" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1703,13 +1703,13 @@ LAPACK library.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org146fd13" class="outline-4">
|
<div id="outline-container-orgba8f20f" class="outline-4">
|
||||||
<h4 id="org146fd13"><span class="section-number-4">2.5.1</span> C interface</h4>
|
<h4 id="orgba8f20f"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org8638cb7" class="outline-3">
|
<div id="outline-container-orge2fb46d" class="outline-3">
|
||||||
<h3 id="org8638cb7"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
<h3 id="orge2fb46d"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
||||||
<div class="outline-text-3" id="text-2-6">
|
<div class="outline-text-3" id="text-2-6">
|
||||||
<p>
|
<p>
|
||||||
Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
||||||
@ -1770,8 +1770,8 @@ Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgfa5d12c" class="outline-2">
|
<div id="outline-container-org6a72b3a" class="outline-2">
|
||||||
<h2 id="orgfa5d12c"><span class="section-number-2">3</span> Utilities</h2>
|
<h2 id="org6a72b3a"><span class="section-number-2">3</span> Utilities</h2>
|
||||||
<div class="outline-text-2" id="text-3">
|
<div class="outline-text-2" id="text-3">
|
||||||
<p>
|
<p>
|
||||||
Trick to make MKL efficient on AMD
|
Trick to make MKL efficient on AMD
|
||||||
@ -1789,7 +1789,7 @@ Trick to make MKL efficient on AMD
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: TREX CoE</p>
|
<p class="author">Author: TREX CoE</p>
|
||||||
<p class="date">Created: 2024-01-09 Tue 07:20</p>
|
<p class="date">Created: 2024-01-11 Thu 13:34</p>
|
||||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-01-09 Tue 07:20 -->
|
<!-- 2024-01-11 Thu 13:34 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Context</title>
|
<title>Context</title>
|
||||||
@ -324,21 +324,21 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgabce465">1. Context handling</a>
|
<li><a href="#org2e4ed62">1. Context handling</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org137295f">1.1. Data structure</a></li>
|
<li><a href="#org0ffbc49">1.1. Data structure</a></li>
|
||||||
<li><a href="#orga4ee292">1.2. Creation</a></li>
|
<li><a href="#orge4daf47">1.2. Creation</a></li>
|
||||||
<li><a href="#orgab31a6d">1.3. Locking</a></li>
|
<li><a href="#org1e2e706">1.3. Locking</a></li>
|
||||||
<li><a href="#orgc55f18a">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
<li><a href="#org8ae36af">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||||
<li><a href="#org0c35c4e">1.5. Destroy</a></li>
|
<li><a href="#org187371b">1.5. Destroy</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgabce465" class="outline-2">
|
<div id="outline-container-org2e4ed62" class="outline-2">
|
||||||
<h2 id="orgabce465"><span class="section-number-2">1</span> Context handling</h2>
|
<h2 id="org2e4ed62"><span class="section-number-2">1</span> Context handling</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
<p>
|
<p>
|
||||||
The context variable is a handle for the state of the library,
|
The context variable is a handle for the state of the library,
|
||||||
@ -351,7 +351,7 @@ A value of <code>QMCKL_NULL_CONTEXT</code> for the context is equivalent to a
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c" id="orge64478d"><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="org043b013"><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
|
<span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">QMCKL_NULL_CONTEXT</span> (qmckl_context) 0
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
@ -369,8 +369,8 @@ and <code>ctx</code> is a <code>qmckl_context_struct*</code> pointer.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org137295f" class="outline-3">
|
<div id="outline-container-org0ffbc49" class="outline-3">
|
||||||
<h3 id="org137295f"><span class="section-number-3">1.1</span> Data structure</h3>
|
<h3 id="org0ffbc49"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||||
<div class="outline-text-3" id="text-1-1">
|
<div class="outline-text-3" id="text-1-1">
|
||||||
<p>
|
<p>
|
||||||
The qmckl<sub>extra</sub> pointer lets the other implementation of the library
|
The qmckl<sub>extra</sub> pointer lets the other implementation of the library
|
||||||
@ -406,7 +406,7 @@ to be recomputed. The date is incremented when the context is touched.
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
When a new element is added to the context, the functions
|
When a new element is added to the context, the functions
|
||||||
<a href="#orga4ee292"><code>qmckl_context_create</code></a> <a href="#org0c35c4e"><code>qmckl_context_destroy</code></a> and <a href="#orgc55f18a"><code>qmckl_context_copy</code></a>
|
<a href="#orge4daf47"><code>qmckl_context_create</code></a> <a href="#org187371b"><code>qmckl_context_destroy</code></a> and <a href="#org8ae36af"><code>qmckl_context_copy</code></a>
|
||||||
should be updated in order to make deep copies.
|
should be updated in order to make deep copies.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@ -427,8 +427,8 @@ This has the effect to increment the date of the context.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga4ee292" class="outline-3">
|
<div id="outline-container-orge4daf47" class="outline-3">
|
||||||
<h3 id="orga4ee292"><span class="section-number-3">1.2</span> Creation</h3>
|
<h3 id="orge4daf47"><span class="section-number-3">1.2</span> Creation</h3>
|
||||||
<div class="outline-text-3" id="text-1-2">
|
<div class="outline-text-3" id="text-1-2">
|
||||||
<p>
|
<p>
|
||||||
To create a new context, <code>qmckl_context_create()</code> should be used.
|
To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||||
@ -445,8 +445,8 @@ To create a new context, <code>qmckl_context_create()</code> should be used.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgab31a6d" class="outline-3">
|
<div id="outline-container-org1e2e706" class="outline-3">
|
||||||
<h3 id="orgab31a6d"><span class="section-number-3">1.3</span> Locking</h3>
|
<h3 id="org1e2e706"><span class="section-number-3">1.3</span> Locking</h3>
|
||||||
<div class="outline-text-3" id="text-1-3">
|
<div class="outline-text-3" id="text-1-3">
|
||||||
<p>
|
<p>
|
||||||
For thread safety, the context may be locked/unlocked. The lock is
|
For thread safety, the context may be locked/unlocked. The lock is
|
||||||
@ -462,8 +462,8 @@ number of times the thread has locked it is saved in the
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgc55f18a" class="outline-3">
|
<div id="outline-container-org8ae36af" class="outline-3">
|
||||||
<h3 id="orgc55f18a"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
<h3 id="org8ae36af"><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">
|
<div class="outline-text-3" id="text-1-4">
|
||||||
<p>
|
<p>
|
||||||
<code>qmckl_context_copy</code> makes a deep copy of a context. It returns
|
<code>qmckl_context_copy</code> makes a deep copy of a context. It returns
|
||||||
@ -471,8 +471,8 @@ number of times the thread has locked it is saved in the
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org0c35c4e" class="outline-3">
|
<div id="outline-container-org187371b" class="outline-3">
|
||||||
<h3 id="org0c35c4e"><span class="section-number-3">1.5</span> Destroy</h3>
|
<h3 id="org187371b"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||||
<div class="outline-text-3" id="text-1-5">
|
<div class="outline-text-3" id="text-1-5">
|
||||||
<p>
|
<p>
|
||||||
The context is destroyed with <code>qmckl_context_destroy</code>, leaving the ancestors untouched.
|
The context is destroyed with <code>qmckl_context_destroy</code>, leaving the ancestors untouched.
|
||||||
@ -490,7 +490,7 @@ It frees the context, and returns the previous context.
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: TREX CoE</p>
|
<p class="author">Author: TREX CoE</p>
|
||||||
<p class="date">Created: 2024-01-09 Tue 07:20</p>
|
<p class="date">Created: 2024-01-11 Thu 13:34</p>
|
||||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-01-09 Tue 07:20 -->
|
<!-- 2024-01-11 Thu 13:34 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Slater Determinant</title>
|
<title>Slater Determinant</title>
|
||||||
@ -324,32 +324,32 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org9b45740">1. Context</a>
|
<li><a href="#org3a2d48b">1. Context</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgc3ad230">1.1. Data structure</a></li>
|
<li><a href="#orge7ddef1">1.1. Data structure</a></li>
|
||||||
<li><a href="#org567f1c6">1.2. Access functions</a></li>
|
<li><a href="#org3f20fa8">1.2. Access functions</a></li>
|
||||||
<li><a href="#org0b8b5ff">1.3. Initialization functions</a></li>
|
<li><a href="#org8ebb280">1.3. Initialization functions</a></li>
|
||||||
<li><a href="#orge8a86fb">1.4. Fortran Interfaces</a></li>
|
<li><a href="#org0de3c15">1.4. Fortran Interfaces</a></li>
|
||||||
<li><a href="#org4ceca61">1.5. Test</a></li>
|
<li><a href="#orgbd330b7">1.5. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org74482a3">2. Computation</a>
|
<li><a href="#orge5047e3">2. Computation</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org9ade114">2.1. Determinant matrix</a>
|
<li><a href="#org69de20f">2.1. Determinant matrix</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgbd2bd78">2.1.1. Get</a></li>
|
<li><a href="#org282d549">2.1.1. Get</a></li>
|
||||||
<li><a href="#org8d6d4d5">2.1.2. Provide</a></li>
|
<li><a href="#orgcd626bc">2.1.2. Provide</a></li>
|
||||||
<li><a href="#orgf3497dc">2.1.3. Compute alpha</a></li>
|
<li><a href="#orga07ec3e">2.1.3. Compute alpha</a></li>
|
||||||
<li><a href="#org14088f7">2.1.4. Compute beta</a></li>
|
<li><a href="#org9413f8d">2.1.4. Compute beta</a></li>
|
||||||
<li><a href="#orgc75f6c2">2.1.5. Test</a></li>
|
<li><a href="#org0846f43">2.1.5. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgc8ed64b">2.2. Inverse of Determinant matrix</a>
|
<li><a href="#org538e556">2.2. Inverse of Determinant matrix</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org25d233b">2.2.1. Get</a></li>
|
<li><a href="#org293877e">2.2.1. Get</a></li>
|
||||||
<li><a href="#orgd61c65c">2.2.2. Provide</a></li>
|
<li><a href="#org74e9f44">2.2.2. Provide</a></li>
|
||||||
<li><a href="#org16de6f0">2.2.3. Compute alpha</a></li>
|
<li><a href="#org033f4e1">2.2.3. Compute alpha</a></li>
|
||||||
<li><a href="#org71c8566">2.2.4. Compute beta</a></li>
|
<li><a href="#orgbd88969">2.2.4. Compute beta</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -358,8 +358,8 @@ for the JavaScript code in this tag.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org9b45740" class="outline-2">
|
<div id="outline-container-org3a2d48b" class="outline-2">
|
||||||
<h2 id="org9b45740"><span class="section-number-2">1</span> Context</h2>
|
<h2 id="org3a2d48b"><span class="section-number-2">1</span> Context</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
<p>
|
<p>
|
||||||
The following arrays are stored in the context:
|
The following arrays are stored in the context:
|
||||||
@ -535,8 +535,8 @@ Computed data:
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc3ad230" class="outline-3">
|
<div id="outline-container-orge7ddef1" class="outline-3">
|
||||||
<h3 id="orgc3ad230"><span class="section-number-3">1.1</span> Data structure</h3>
|
<h3 id="orge7ddef1"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||||
<div class="outline-text-3" id="text-1-1">
|
<div class="outline-text-3" id="text-1-1">
|
||||||
<div class="org-src-container">
|
<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> {
|
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_determinant_struct</span> {
|
||||||
@ -604,8 +604,8 @@ this mechanism.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org567f1c6" class="outline-3">
|
<div id="outline-container-org3f20fa8" class="outline-3">
|
||||||
<h3 id="org567f1c6"><span class="section-number-3">1.2</span> Access functions</h3>
|
<h3 id="org3f20fa8"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||||
<div class="outline-text-3" id="text-1-2">
|
<div class="outline-text-3" id="text-1-2">
|
||||||
<p>
|
<p>
|
||||||
When all the data for the slater determinants have been provided, the following
|
When all the data for the slater determinants have been provided, the following
|
||||||
@ -619,8 +619,8 @@ function returns <code>true</code>.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0b8b5ff" class="outline-3">
|
<div id="outline-container-org8ebb280" class="outline-3">
|
||||||
<h3 id="org0b8b5ff"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
<h3 id="org8ebb280"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||||
<div class="outline-text-3" id="text-1-3">
|
<div class="outline-text-3" id="text-1-3">
|
||||||
<p>
|
<p>
|
||||||
To set the basis set, all the following functions need to be
|
To set the basis set, all the following functions need to be
|
||||||
@ -643,24 +643,24 @@ computed to accelerate the calculations.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orge8a86fb" class="outline-3">
|
<div id="outline-container-org0de3c15" class="outline-3">
|
||||||
<h3 id="orge8a86fb"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
<h3 id="org0de3c15"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org4ceca61" class="outline-3">
|
<div id="outline-container-orgbd330b7" class="outline-3">
|
||||||
<h3 id="org4ceca61"><span class="section-number-3">1.5</span> Test</h3>
|
<h3 id="orgbd330b7"><span class="section-number-3">1.5</span> Test</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org74482a3" class="outline-2">
|
<div id="outline-container-orge5047e3" class="outline-2">
|
||||||
<h2 id="org74482a3"><span class="section-number-2">2</span> Computation</h2>
|
<h2 id="orge5047e3"><span class="section-number-2">2</span> Computation</h2>
|
||||||
<div class="outline-text-2" id="text-2">
|
<div class="outline-text-2" id="text-2">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org9ade114" class="outline-3">
|
<div id="outline-container-org69de20f" class="outline-3">
|
||||||
<h3 id="org9ade114"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
<h3 id="org69de20f"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
||||||
<div class="outline-text-3" id="text-2-1">
|
<div class="outline-text-3" id="text-2-1">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgbd2bd78" class="outline-4">
|
<div id="outline-container-org282d549" class="outline-4">
|
||||||
<h4 id="orgbd2bd78"><span class="section-number-4">2.1.1</span> Get</h4>
|
<h4 id="org282d549"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-1">
|
<div class="outline-text-4" id="text-2-1-1">
|
||||||
<div class="org-src-container">
|
<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>);
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_det_vgl_alpha</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">det_vgl_alpha</span>);
|
||||||
@ -670,14 +670,14 @@ computed to accelerate the calculations.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org8d6d4d5" class="outline-4">
|
<div id="outline-container-orgcd626bc" class="outline-4">
|
||||||
<h4 id="org8d6d4d5"><span class="section-number-4">2.1.2</span> Provide</h4>
|
<h4 id="orgcd626bc"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf3497dc" class="outline-4">
|
<div id="outline-container-orga07ec3e" class="outline-4">
|
||||||
<h4 id="orgf3497dc"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
<h4 id="orga07ec3e"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-3">
|
<div class="outline-text-4" id="text-2-1-3">
|
||||||
<table id="org5dabc71" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org52f1812" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -851,10 +851,10 @@ computed to accelerate the calculations.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org14088f7" class="outline-4">
|
<div id="outline-container-org9413f8d" class="outline-4">
|
||||||
<h4 id="org14088f7"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
<h4 id="org9413f8d"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-4">
|
<div class="outline-text-4" id="text-2-1-4">
|
||||||
<table id="orgeaf5ff6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgb86c9ed" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1028,18 +1028,18 @@ computed to accelerate the calculations.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc75f6c2" class="outline-4">
|
<div id="outline-container-org0846f43" class="outline-4">
|
||||||
<h4 id="orgc75f6c2"><span class="section-number-4">2.1.5</span> Test</h4>
|
<h4 id="org0846f43"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc8ed64b" class="outline-3">
|
<div id="outline-container-org538e556" class="outline-3">
|
||||||
<h3 id="orgc8ed64b"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
<h3 id="org538e556"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
||||||
<div class="outline-text-3" id="text-2-2">
|
<div class="outline-text-3" id="text-2-2">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org25d233b" class="outline-4">
|
<div id="outline-container-org293877e" class="outline-4">
|
||||||
<h4 id="org25d233b"><span class="section-number-4">2.2.1</span> Get</h4>
|
<h4 id="org293877e"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||||
<div class="outline-text-4" id="text-2-2-1">
|
<div class="outline-text-4" id="text-2-2-1">
|
||||||
<div class="org-src-container">
|
<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>);
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_det_inv_matrix_alpha</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">det_inv_matrix_alpha</span>);
|
||||||
@ -1053,14 +1053,14 @@ computed to accelerate the calculations.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd61c65c" class="outline-4">
|
<div id="outline-container-org74e9f44" class="outline-4">
|
||||||
<h4 id="orgd61c65c"><span class="section-number-4">2.2.2</span> Provide</h4>
|
<h4 id="org74e9f44"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org16de6f0" class="outline-4">
|
<div id="outline-container-org033f4e1" class="outline-4">
|
||||||
<h4 id="org16de6f0"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
<h4 id="org033f4e1"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
||||||
<div class="outline-text-4" id="text-2-2-3">
|
<div class="outline-text-4" id="text-2-2-3">
|
||||||
<table id="orge708432" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org178ad2e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1222,10 +1222,10 @@ computed to accelerate the calculations.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org71c8566" class="outline-4">
|
<div id="outline-container-orgbd88969" class="outline-4">
|
||||||
<h4 id="org71c8566"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
<h4 id="orgbd88969"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
||||||
<div class="outline-text-4" id="text-2-2-4">
|
<div class="outline-text-4" id="text-2-2-4">
|
||||||
<table id="org7cb3ee8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orge57e37e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1392,7 +1392,7 @@ computed to accelerate the calculations.
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: TREX CoE</p>
|
<p class="author">Author: TREX CoE</p>
|
||||||
<p class="date">Created: 2024-01-09 Tue 07:20</p>
|
<p class="date">Created: 2024-01-11 Thu 13:34</p>
|
||||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-01-09 Tue 07:20 -->
|
<!-- 2024-01-11 Thu 13:34 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Inter-particle distances</title>
|
<title>Inter-particle distances</title>
|
||||||
@ -346,54 +346,54 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgc2fed14">1. Squared distance</a>
|
<li><a href="#orgb0865d5">1. Squared distance</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgaf79cfb">1.1. <code>qmckl_distance_sq</code></a>
|
<li><a href="#orgba9f1e6">1.1. <code>qmckl_distance_sq</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgb30d767">1.1.1. Performance</a></li>
|
<li><a href="#orgf663206">1.1.1. Performance</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgeec116f">2. Distance</a>
|
<li><a href="#orgb3489d3">2. Distance</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org6788d1e">2.1. <code>qmckl_distance</code></a>
|
<li><a href="#orgc5e6835">2.1. <code>qmckl_distance</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org1e84fec">2.1.1. Requirements</a></li>
|
<li><a href="#orgd8fcbfd">2.1.1. Requirements</a></li>
|
||||||
<li><a href="#orgbebdef5">2.1.2. C header</a></li>
|
<li><a href="#orga0beb62">2.1.2. C header</a></li>
|
||||||
<li><a href="#org8a9f33b">2.1.3. Source</a></li>
|
<li><a href="#orgb28887b">2.1.3. Source</a></li>
|
||||||
<li><a href="#org0b9d582">2.1.4. Performance</a></li>
|
<li><a href="#orge8dc24c">2.1.4. Performance</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org3f9b700">3. Rescaled Distance</a>
|
<li><a href="#orgfe8ae4f">3. Rescaled Distance</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org871bf19">3.1. <code>qmckl_distance_rescaled</code></a>
|
<li><a href="#org9e88f4f">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org13627aa">3.1.1. Requirements</a></li>
|
<li><a href="#org366db9f">3.1.1. Requirements</a></li>
|
||||||
<li><a href="#orga0657e6">3.1.2. C header</a></li>
|
<li><a href="#orga9f35de">3.1.2. C header</a></li>
|
||||||
<li><a href="#org5da98c1">3.1.3. Source</a></li>
|
<li><a href="#org7cda8c7">3.1.3. Source</a></li>
|
||||||
<li><a href="#org6d93b21">3.1.4. Performance</a></li>
|
<li><a href="#orgebd6ebf">3.1.4. Performance</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgc3f7487">4. Rescaled Distance Derivatives</a>
|
<li><a href="#orgc4e7bdb">4. Rescaled Distance Derivatives</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgc389a1a">4.1. <code>qmckl_distance_rescaled_gl</code></a></li>
|
<li><a href="#org650bfac">4.1. <code>qmckl_distance_rescaled_gl</code></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc2fed14" class="outline-2">
|
<div id="outline-container-orgb0865d5" class="outline-2">
|
||||||
<h2 id="orgc2fed14"><span class="section-number-2">1</span> Squared distance</h2>
|
<h2 id="orgb0865d5"><span class="section-number-2">1</span> Squared distance</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgaf79cfb" class="outline-3">
|
<div id="outline-container-orgba9f1e6" class="outline-3">
|
||||||
<h3 id="orgaf79cfb"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
<h3 id="orgba9f1e6"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||||
<div class="outline-text-3" id="text-1-1">
|
<div class="outline-text-3" id="text-1-1">
|
||||||
<p>
|
<p>
|
||||||
<code>qmckl_distance_sq</code> computes the matrix of the squared distances
|
<code>qmckl_distance_sq</code> computes the matrix of the squared distances
|
||||||
@ -406,7 +406,7 @@ between all pairs of points in two sets, one point within each set:
|
|||||||
\]
|
\]
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table id="orgc5df88a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgba99750" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -679,8 +679,8 @@ Requirements:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgb30d767" class="outline-4">
|
<div id="outline-container-orgf663206" class="outline-4">
|
||||||
<h4 id="orgb30d767"><span class="section-number-4">1.1.1</span> Performance</h4>
|
<h4 id="orgf663206"><span class="section-number-4">1.1.1</span> Performance</h4>
|
||||||
<div class="outline-text-4" id="text-1-1-1">
|
<div class="outline-text-4" id="text-1-1-1">
|
||||||
<p>
|
<p>
|
||||||
This function is more efficient when <code>A</code> and <code>B</code> are
|
This function is more efficient when <code>A</code> and <code>B</code> are
|
||||||
@ -690,12 +690,12 @@ transposed.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgeec116f" class="outline-2">
|
<div id="outline-container-orgb3489d3" class="outline-2">
|
||||||
<h2 id="orgeec116f"><span class="section-number-2">2</span> Distance</h2>
|
<h2 id="orgb3489d3"><span class="section-number-2">2</span> Distance</h2>
|
||||||
<div class="outline-text-2" id="text-2">
|
<div class="outline-text-2" id="text-2">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org6788d1e" class="outline-3">
|
<div id="outline-container-orgc5e6835" class="outline-3">
|
||||||
<h3 id="org6788d1e"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
<h3 id="orgc5e6835"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||||
<div class="outline-text-3" id="text-2-1">
|
<div class="outline-text-3" id="text-2-1">
|
||||||
<p>
|
<p>
|
||||||
<code>qmckl_distance</code> computes the matrix of the distances between all
|
<code>qmckl_distance</code> computes the matrix of the distances between all
|
||||||
@ -713,7 +713,7 @@ If the input array is normal (<code>'N'</code>), the xyz coordinates are in
|
|||||||
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table id="orgc3cea52" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orga9f1a8b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -814,8 +814,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org1e84fec" class="outline-4">
|
<div id="outline-container-orgd8fcbfd" class="outline-4">
|
||||||
<h4 id="org1e84fec"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
<h4 id="orgd8fcbfd"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-1">
|
<div class="outline-text-4" id="text-2-1-1">
|
||||||
<ul class="org-ul">
|
<ul class="org-ul">
|
||||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||||
@ -833,8 +833,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgbebdef5" class="outline-4">
|
<div id="outline-container-orga0beb62" class="outline-4">
|
||||||
<h4 id="orgbebdef5"><span class="section-number-4">2.1.2</span> C header</h4>
|
<h4 id="orga0beb62"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-2">
|
<div class="outline-text-4" id="text-2-1-2">
|
||||||
<div class="org-src-container">
|
<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> (
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance</span> (
|
||||||
@ -854,8 +854,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org8a9f33b" class="outline-4">
|
<div id="outline-container-orgb28887b" class="outline-4">
|
||||||
<h4 id="org8a9f33b"><span class="section-number-4">2.1.3</span> Source</h4>
|
<h4 id="orgb28887b"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-3">
|
<div class="outline-text-4" id="text-2-1-3">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-f90"><span style="color: #a020f0;">function</span> <span style="color: #0000ff;">qmckl_distance</span>(context, transa, transb, m, n, <span style="color: #a020f0;">&</span>
|
<pre class="src src-f90"><span style="color: #a020f0;">function</span> <span style="color: #0000ff;">qmckl_distance</span>(context, transa, transb, m, n, <span style="color: #a020f0;">&</span>
|
||||||
@ -1006,8 +1006,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0b9d582" class="outline-4">
|
<div id="outline-container-orge8dc24c" class="outline-4">
|
||||||
<h4 id="org0b9d582"><span class="section-number-4">2.1.4</span> Performance</h4>
|
<h4 id="orge8dc24c"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-4">
|
<div class="outline-text-4" id="text-2-1-4">
|
||||||
<p>
|
<p>
|
||||||
This function is more efficient when <code>A</code> and <code>B</code> are transposed.
|
This function is more efficient when <code>A</code> and <code>B</code> are transposed.
|
||||||
@ -1017,12 +1017,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org3f9b700" class="outline-2">
|
<div id="outline-container-orgfe8ae4f" class="outline-2">
|
||||||
<h2 id="org3f9b700"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
<h2 id="orgfe8ae4f"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||||
<div class="outline-text-2" id="text-3">
|
<div class="outline-text-2" id="text-3">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org871bf19" class="outline-3">
|
<div id="outline-container-org9e88f4f" class="outline-3">
|
||||||
<h3 id="org871bf19"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
<h3 id="org9e88f4f"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||||
<div class="outline-text-3" id="text-3-1">
|
<div class="outline-text-3" id="text-3-1">
|
||||||
<p>
|
<p>
|
||||||
<code>qmckl_distance_rescaled</code> computes the matrix of the rescaled distances between all
|
<code>qmckl_distance_rescaled</code> computes the matrix of the rescaled distances between all
|
||||||
@ -1040,7 +1040,7 @@ If the input array is normal (<code>'N'</code>), the xyz coordinates are in
|
|||||||
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table id="org565aa60" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org9b13456" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1148,8 +1148,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org13627aa" class="outline-4">
|
<div id="outline-container-org366db9f" class="outline-4">
|
||||||
<h4 id="org13627aa"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
<h4 id="org366db9f"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||||
<div class="outline-text-4" id="text-3-1-1">
|
<div class="outline-text-4" id="text-3-1-1">
|
||||||
<ul class="org-ul">
|
<ul class="org-ul">
|
||||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||||
@ -1167,8 +1167,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga0657e6" class="outline-4">
|
<div id="outline-container-orga9f35de" class="outline-4">
|
||||||
<h4 id="orga0657e6"><span class="section-number-4">3.1.2</span> C header</h4>
|
<h4 id="orga9f35de"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||||
<div class="outline-text-4" id="text-3-1-2">
|
<div class="outline-text-4" id="text-3-1-2">
|
||||||
<div class="org-src-container">
|
<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> (
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance_rescaled</span> (
|
||||||
@ -1189,8 +1189,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org5da98c1" class="outline-4">
|
<div id="outline-container-org7cda8c7" class="outline-4">
|
||||||
<h4 id="org5da98c1"><span class="section-number-4">3.1.3</span> Source</h4>
|
<h4 id="org7cda8c7"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||||
<div class="outline-text-4" id="text-3-1-3">
|
<div class="outline-text-4" id="text-3-1-3">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-f90"><span style="color: #a020f0;">function</span> <span style="color: #0000ff;">qmckl_distance_rescaled</span>(context, transa, transb, m, n, <span style="color: #a020f0;">&</span>
|
<pre class="src src-f90"><span style="color: #a020f0;">function</span> <span style="color: #0000ff;">qmckl_distance_rescaled</span>(context, transa, transb, m, n, <span style="color: #a020f0;">&</span>
|
||||||
@ -1344,8 +1344,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org6d93b21" class="outline-4">
|
<div id="outline-container-orgebd6ebf" class="outline-4">
|
||||||
<h4 id="org6d93b21"><span class="section-number-4">3.1.4</span> Performance</h4>
|
<h4 id="orgebd6ebf"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||||
<div class="outline-text-4" id="text-3-1-4">
|
<div class="outline-text-4" id="text-3-1-4">
|
||||||
<p>
|
<p>
|
||||||
This function is more efficient when <code>A</code> and <code>B</code> are transposed.
|
This function is more efficient when <code>A</code> and <code>B</code> are transposed.
|
||||||
@ -1354,12 +1354,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgc3f7487" class="outline-2">
|
<div id="outline-container-orgc4e7bdb" class="outline-2">
|
||||||
<h2 id="orgc3f7487"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
<h2 id="orgc4e7bdb"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||||
<div class="outline-text-2" id="text-4">
|
<div class="outline-text-2" id="text-4">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgc389a1a" class="outline-3">
|
<div id="outline-container-org650bfac" class="outline-3">
|
||||||
<h3 id="orgc389a1a"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_gl</code></h3>
|
<h3 id="org650bfac"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_gl</code></h3>
|
||||||
<div class="outline-text-3" id="text-4-1">
|
<div class="outline-text-3" id="text-4-1">
|
||||||
<p>
|
<p>
|
||||||
<code>qmckl_distance_rescaled_gl</code> computes the matrix of the gradient and Laplacian of the
|
<code>qmckl_distance_rescaled_gl</code> computes the matrix of the gradient and Laplacian of the
|
||||||
@ -1414,7 +1414,7 @@ If the input array is normal (<code>'N'</code>), the xyz coordinates are in
|
|||||||
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table id="org93e2178" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgcdc8383" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1735,7 +1735,7 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: TREX CoE</p>
|
<p class="author">Author: TREX CoE</p>
|
||||||
<p class="date">Created: 2024-01-09 Tue 07:20</p>
|
<p class="date">Created: 2024-01-11 Thu 13:34</p>
|
||||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-01-09 Tue 07:20 -->
|
<!-- 2024-01-11 Thu 13:34 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Electrons</title>
|
<title>Electrons</title>
|
||||||
@ -346,59 +346,59 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org5e65112">1. Context</a>
|
<li><a href="#org19c5e80">1. Context</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgff1a506">1.1. Data structure</a></li>
|
<li><a href="#orgc6ae9bb">1.1. Data structure</a></li>
|
||||||
<li><a href="#org568dbb6">1.2. Initialization functions</a></li>
|
<li><a href="#org60f9a83">1.2. Initialization functions</a></li>
|
||||||
<li><a href="#org0a34f63">1.3. Access functions</a>
|
<li><a href="#org608f785">1.3. Access functions</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgdcb57a4">1.3.1. Number of electrons</a></li>
|
<li><a href="#org3f2ae20">1.3.1. Number of electrons</a></li>
|
||||||
<li><a href="#org21f5b07">1.3.2. Number of walkers</a></li>
|
<li><a href="#org77aae0e">1.3.2. Number of walkers</a></li>
|
||||||
<li><a href="#org2737af0">1.3.3. Electron coordinates</a></li>
|
<li><a href="#org67fad11">1.3.3. Electron coordinates</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgdb1f3ff">1.4. Test</a></li>
|
<li><a href="#org34eef43">1.4. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org9bd713c">2. Computation</a>
|
<li><a href="#orgd3281d9">2. Computation</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orga04ec1f">2.1. Electron-electron distances</a>
|
<li><a href="#org5570605">2.1. Electron-electron distances</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org73c8473">2.1.1. Get</a></li>
|
<li><a href="#orgd03c64e">2.1.1. Get</a></li>
|
||||||
<li><a href="#org0ff52ca">2.1.2. Compute</a></li>
|
<li><a href="#org3ed32a0">2.1.2. Compute</a></li>
|
||||||
<li><a href="#org37ce671">2.1.3. Test</a></li>
|
<li><a href="#orgae98f43">2.1.3. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org5713dc9">2.2. Electron-electron potential</a>
|
<li><a href="#org88bfcd6">2.2. Electron-electron potential</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orge823c32">2.2.1. Get</a></li>
|
<li><a href="#org3ff7936">2.2.1. Get</a></li>
|
||||||
<li><a href="#org59a5e26">2.2.2. Compute</a></li>
|
<li><a href="#org91169e1">2.2.2. Compute</a></li>
|
||||||
<li><a href="#org43328fb">2.2.3. Test</a></li>
|
<li><a href="#orge988f4d">2.2.3. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org7574ac5">2.3. Electron-nucleus distances</a>
|
<li><a href="#org016ae04">2.3. Electron-nucleus distances</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgb1f2385">2.3.1. Get</a></li>
|
<li><a href="#orgaeff776">2.3.1. Get</a></li>
|
||||||
<li><a href="#org57a6b4c">2.3.2. Compute</a></li>
|
<li><a href="#org665f98a">2.3.2. Compute</a></li>
|
||||||
<li><a href="#org3a745f4">2.3.3. Test</a></li>
|
<li><a href="#org767b554">2.3.3. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgad0b1b8">2.4. Electron-nucleus potential</a>
|
<li><a href="#orgb5c55d2">2.4. Electron-nucleus potential</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org502a667">2.4.1. Get</a></li>
|
<li><a href="#org82f7efc">2.4.1. Get</a></li>
|
||||||
<li><a href="#org911d269">2.4.2. Compute</a></li>
|
<li><a href="#orgbc0ed1f">2.4.2. Compute</a></li>
|
||||||
<li><a href="#org3f25f88">2.4.3. Test</a></li>
|
<li><a href="#org600235e">2.4.3. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org57c3cd1">2.5. Generate initial coordinates</a></li>
|
<li><a href="#org813b9cd">2.5. Generate initial coordinates</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org5e65112" class="outline-2">
|
<div id="outline-container-org19c5e80" class="outline-2">
|
||||||
<h2 id="org5e65112"><span class="section-number-2">1</span> Context</h2>
|
<h2 id="org19c5e80"><span class="section-number-2">1</span> Context</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
<p>
|
<p>
|
||||||
The following data stored in the context:
|
The following data stored in the context:
|
||||||
@ -539,8 +539,8 @@ Computed data:
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgff1a506" class="outline-3">
|
<div id="outline-container-orgc6ae9bb" class="outline-3">
|
||||||
<h3 id="orgff1a506"><span class="section-number-3">1.1</span> Data structure</h3>
|
<h3 id="orgc6ae9bb"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||||
<div class="outline-text-3" id="text-1-1">
|
<div class="outline-text-3" id="text-1-1">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">
|
<pre class="src src-c">
|
||||||
@ -609,8 +609,8 @@ this mechanism.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org568dbb6" class="outline-3">
|
<div id="outline-container-org60f9a83" class="outline-3">
|
||||||
<h3 id="org568dbb6"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
<h3 id="org60f9a83"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||||
<div class="outline-text-3" id="text-1-2">
|
<div class="outline-text-3" id="text-1-2">
|
||||||
<p>
|
<p>
|
||||||
To set the data relative to the electrons in the context, the
|
To set the data relative to the electrons in the context, the
|
||||||
@ -683,8 +683,8 @@ in the context.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0a34f63" class="outline-3">
|
<div id="outline-container-org608f785" class="outline-3">
|
||||||
<h3 id="org0a34f63"><span class="section-number-3">1.3</span> Access functions</h3>
|
<h3 id="org608f785"><span class="section-number-3">1.3</span> Access functions</h3>
|
||||||
<div class="outline-text-3" id="text-1-3">
|
<div class="outline-text-3" id="text-1-3">
|
||||||
<p>
|
<p>
|
||||||
Access functions return <code>QMCKL_SUCCESS</code> when the data has been
|
Access functions return <code>QMCKL_SUCCESS</code> when the data has been
|
||||||
@ -696,12 +696,12 @@ contains the requested data. Otherwise, this variable is untouched.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgdcb57a4" class="outline-4">
|
<div id="outline-container-org3f2ae20" class="outline-4">
|
||||||
<h4 id="orgdcb57a4"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
<h4 id="org3f2ae20"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org21f5b07" class="outline-4">
|
<div id="outline-container-org77aae0e" class="outline-4">
|
||||||
<h4 id="org21f5b07"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
<h4 id="org77aae0e"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
||||||
<div class="outline-text-4" id="text-1-3-2">
|
<div class="outline-text-4" id="text-1-3-2">
|
||||||
<p>
|
<p>
|
||||||
A walker is a set of electron coordinates that are arguments of
|
A walker is a set of electron coordinates that are arguments of
|
||||||
@ -710,8 +710,8 @@ the wave function. <code>walk_num</code> is the number of walkers.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org2737af0" class="outline-4">
|
<div id="outline-container-org67fad11" class="outline-4">
|
||||||
<h4 id="org2737af0"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
<h4 id="org67fad11"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
||||||
<div class="outline-text-4" id="text-1-3-3">
|
<div class="outline-text-4" id="text-1-3-3">
|
||||||
<p>
|
<p>
|
||||||
Returns the current electron coordinates. The pointer is assumed
|
Returns the current electron coordinates. The pointer is assumed
|
||||||
@ -776,8 +776,8 @@ current points.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgdb1f3ff" class="outline-3">
|
<div id="outline-container-org34eef43" class="outline-3">
|
||||||
<h3 id="orgdb1f3ff"><span class="section-number-3">1.4</span> Test</h3>
|
<h3 id="org34eef43"><span class="section-number-3">1.4</span> Test</h3>
|
||||||
<div class="outline-text-3" id="text-1-4">
|
<div class="outline-text-3" id="text-1-4">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data</span> */
|
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data</span> */
|
||||||
@ -856,8 +856,8 @@ rc = qmckl_get_electron_coord (context, <span style="color: #8b2252;">'N'</span>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org9bd713c" class="outline-2">
|
<div id="outline-container-orgd3281d9" class="outline-2">
|
||||||
<h2 id="org9bd713c"><span class="section-number-2">2</span> Computation</h2>
|
<h2 id="orgd3281d9"><span class="section-number-2">2</span> Computation</h2>
|
||||||
<div class="outline-text-2" id="text-2">
|
<div class="outline-text-2" id="text-2">
|
||||||
<p>
|
<p>
|
||||||
The computed data is stored in the context so that it can be reused
|
The computed data is stored in the context so that it can be reused
|
||||||
@ -870,12 +870,12 @@ current date is stored.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga04ec1f" class="outline-3">
|
<div id="outline-container-org5570605" class="outline-3">
|
||||||
<h3 id="orga04ec1f"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
<h3 id="org5570605"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||||
<div class="outline-text-3" id="text-2-1">
|
<div class="outline-text-3" id="text-2-1">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org73c8473" class="outline-4">
|
<div id="outline-container-orgd03c64e" class="outline-4">
|
||||||
<h4 id="org73c8473"><span class="section-number-4">2.1.1</span> Get</h4>
|
<h4 id="orgd03c64e"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-1">
|
<div class="outline-text-4" id="text-2-1-1">
|
||||||
<div class="org-src-container">
|
<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>);
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_ee_distance</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">distance</span>);
|
||||||
@ -884,10 +884,10 @@ current date is stored.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0ff52ca" class="outline-4">
|
<div id="outline-container-org3ed32a0" class="outline-4">
|
||||||
<h4 id="org0ff52ca"><span class="section-number-4">2.1.2</span> Compute</h4>
|
<h4 id="org3ed32a0"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-2">
|
<div class="outline-text-4" id="text-2-1-2">
|
||||||
<table id="orga6c0b49" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org8a153b0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -992,8 +992,8 @@ current date is stored.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org37ce671" class="outline-4">
|
<div id="outline-container-orgae98f43" class="outline-4">
|
||||||
<h4 id="org37ce671"><span class="section-number-4">2.1.3</span> Test</h4>
|
<h4 id="orgae98f43"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-3">
|
<div class="outline-text-4" id="text-2-1-3">
|
||||||
<div class="org-src-container">
|
<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>));
|
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_electron_provided</span>(<span style="color: #a0522d;">context</span>));
|
||||||
@ -1027,8 +1027,8 @@ rc = qmckl_get_electron_ee_distance(context, ee_distance);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org5713dc9" class="outline-3">
|
<div id="outline-container-org88bfcd6" class="outline-3">
|
||||||
<h3 id="org5713dc9"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
<h3 id="org88bfcd6"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
||||||
<div class="outline-text-3" id="text-2-2">
|
<div class="outline-text-3" id="text-2-2">
|
||||||
<p>
|
<p>
|
||||||
<code>ee_potential</code> is given by
|
<code>ee_potential</code> is given by
|
||||||
@ -1046,8 +1046,8 @@ distance.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orge823c32" class="outline-4">
|
<div id="outline-container-org3ff7936" class="outline-4">
|
||||||
<h4 id="orge823c32"><span class="section-number-4">2.2.1</span> Get</h4>
|
<h4 id="org3ff7936"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||||
<div class="outline-text-4" id="text-2-2-1">
|
<div class="outline-text-4" id="text-2-2-1">
|
||||||
<div class="org-src-container">
|
<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>);
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_ee_potential</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">ee_potential</span>);
|
||||||
@ -1056,10 +1056,10 @@ distance.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org59a5e26" class="outline-4">
|
<div id="outline-container-org91169e1" class="outline-4">
|
||||||
<h4 id="org59a5e26"><span class="section-number-4">2.2.2</span> Compute</h4>
|
<h4 id="org91169e1"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||||
<div class="outline-text-4" id="text-2-2-2">
|
<div class="outline-text-4" id="text-2-2-2">
|
||||||
<table id="orge0ece75" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgbd098df" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1175,8 +1175,8 @@ distance.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org43328fb" class="outline-4">
|
<div id="outline-container-orge988f4d" class="outline-4">
|
||||||
<h4 id="org43328fb"><span class="section-number-4">2.2.3</span> Test</h4>
|
<h4 id="orge988f4d"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||||
<div class="outline-text-4" id="text-2-2-3">
|
<div class="outline-text-4" id="text-2-2-3">
|
||||||
<div class="org-src-container">
|
<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];
|
<pre class="src src-c"><span style="color: #228b22;">double</span> <span style="color: #a0522d;">ee_potential</span>[walk_num];
|
||||||
@ -1188,12 +1188,12 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org7574ac5" class="outline-3">
|
<div id="outline-container-org016ae04" class="outline-3">
|
||||||
<h3 id="org7574ac5"><span class="section-number-3">2.3</span> Electron-nucleus distances</h3>
|
<h3 id="org016ae04"><span class="section-number-3">2.3</span> Electron-nucleus distances</h3>
|
||||||
<div class="outline-text-3" id="text-2-3">
|
<div class="outline-text-3" id="text-2-3">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgb1f2385" class="outline-4">
|
<div id="outline-container-orgaeff776" class="outline-4">
|
||||||
<h4 id="orgb1f2385"><span class="section-number-4">2.3.1</span> Get</h4>
|
<h4 id="orgaeff776"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||||
<div class="outline-text-4" id="text-2-3-1">
|
<div class="outline-text-4" id="text-2-3-1">
|
||||||
<div class="org-src-container">
|
<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>);
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_distance</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">distance</span>);
|
||||||
@ -1202,10 +1202,10 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org57a6b4c" class="outline-4">
|
<div id="outline-container-org665f98a" class="outline-4">
|
||||||
<h4 id="org57a6b4c"><span class="section-number-4">2.3.2</span> Compute</h4>
|
<h4 id="org665f98a"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||||
<div class="outline-text-4" id="text-2-3-2">
|
<div class="outline-text-4" id="text-2-3-2">
|
||||||
<table id="org5e498da" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgd5a7b2b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1312,8 +1312,8 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org3a745f4" class="outline-4">
|
<div id="outline-container-org767b554" class="outline-4">
|
||||||
<h4 id="org3a745f4"><span class="section-number-4">2.3.3</span> Test</h4>
|
<h4 id="org767b554"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||||
<div class="outline-text-4" id="text-2-3-3">
|
<div class="outline-text-4" id="text-2-3-3">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">
|
<pre class="src src-c">
|
||||||
@ -1361,8 +1361,8 @@ rc = qmckl_get_electron_en_distance(context, &(en_distance[0][0][0]));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgad0b1b8" class="outline-3">
|
<div id="outline-container-orgb5c55d2" class="outline-3">
|
||||||
<h3 id="orgad0b1b8"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
<h3 id="orgb5c55d2"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
||||||
<div class="outline-text-3" id="text-2-4">
|
<div class="outline-text-3" id="text-2-4">
|
||||||
<p>
|
<p>
|
||||||
<code>en_potential</code> stores the <code>en</code> potential energy
|
<code>en_potential</code> stores the <code>en</code> potential energy
|
||||||
@ -1380,8 +1380,8 @@ distance and \[Z_A\] is the nuclear charge.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org502a667" class="outline-4">
|
<div id="outline-container-org82f7efc" class="outline-4">
|
||||||
<h4 id="org502a667"><span class="section-number-4">2.4.1</span> Get</h4>
|
<h4 id="org82f7efc"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||||
<div class="outline-text-4" id="text-2-4-1">
|
<div class="outline-text-4" id="text-2-4-1">
|
||||||
<div class="org-src-container">
|
<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>);
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_potential</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">en_potential</span>);
|
||||||
@ -1390,10 +1390,10 @@ distance and \[Z_A\] is the nuclear charge.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org911d269" class="outline-4">
|
<div id="outline-container-orgbc0ed1f" class="outline-4">
|
||||||
<h4 id="org911d269"><span class="section-number-4">2.4.2</span> Compute</h4>
|
<h4 id="orgbc0ed1f"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||||
<div class="outline-text-4" id="text-2-4-2">
|
<div class="outline-text-4" id="text-2-4-2">
|
||||||
<table id="org46081a9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org7bc3854" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1527,8 +1527,8 @@ distance and \[Z_A\] is the nuclear charge.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org3f25f88" class="outline-4">
|
<div id="outline-container-org600235e" class="outline-4">
|
||||||
<h4 id="org3f25f88"><span class="section-number-4">2.4.3</span> Test</h4>
|
<h4 id="org600235e"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||||
<div class="outline-text-4" id="text-2-4-3">
|
<div class="outline-text-4" id="text-2-4-3">
|
||||||
<div class="org-src-container">
|
<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];
|
<pre class="src src-c"><span style="color: #228b22;">double</span> <span style="color: #a0522d;">en_potential</span>[walk_num];
|
||||||
@ -1541,14 +1541,14 @@ rc = qmckl_get_electron_en_potential(context, &(en_potential[0]));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org57c3cd1" class="outline-3">
|
<div id="outline-container-org813b9cd" class="outline-3">
|
||||||
<h3 id="org57c3cd1"><span class="section-number-3">2.5</span> Generate initial coordinates</h3>
|
<h3 id="org813b9cd"><span class="section-number-3">2.5</span> Generate initial coordinates</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: TREX CoE</p>
|
<p class="author">Author: TREX CoE</p>
|
||||||
<p class="date">Created: 2024-01-09 Tue 07:20</p>
|
<p class="date">Created: 2024-01-11 Thu 13:34</p>
|
||||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-01-09 Tue 07:20 -->
|
<!-- 2024-01-11 Thu 13:34 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Error handling</title>
|
<title>Error handling</title>
|
||||||
@ -324,29 +324,29 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org110626b">-</a></li>
|
<li><a href="#org7328bb0">-</a></li>
|
||||||
<li><a href="#org3dfee39">1. Decoding errors</a></li>
|
<li><a href="#org7358462">1. Decoding errors</a></li>
|
||||||
<li><a href="#orgbab7efd">2. Data structure in context</a></li>
|
<li><a href="#org62610b6">2. Data structure in context</a></li>
|
||||||
<li><a href="#org84ec6c5">3. Updating errors in the context</a></li>
|
<li><a href="#orga313bc1">3. Updating errors in the context</a></li>
|
||||||
<li><a href="#org53c67b5">4. Get the error</a></li>
|
<li><a href="#org5489127">4. Get the error</a></li>
|
||||||
<li><a href="#org646abad">5. Failing</a></li>
|
<li><a href="#org0f6ce43">5. Failing</a></li>
|
||||||
<li><a href="#org6c3d73b">6. Last error</a>
|
<li><a href="#orgfebe933">6. Last error</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgcf133e3">6.1. Fortran inteface</a></li>
|
<li><a href="#org85d81da">6.1. Fortran inteface</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org6272aa7">7. Helper functions for debugging</a>
|
<li><a href="#org6c21922">7. Helper functions for debugging</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org3451f30">7.1. Fortran inteface</a></li>
|
<li><a href="#orga8d2d99">7.1. Fortran inteface</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org110626b" class="outline-2">
|
<div id="outline-container-org7328bb0" class="outline-2">
|
||||||
<h2 id="org110626b">-</h2>
|
<h2 id="org7328bb0">-</h2>
|
||||||
<div class="outline-text-2" id="text-org110626b">
|
<div class="outline-text-2" id="text-org7328bb0">
|
||||||
<p>
|
<p>
|
||||||
The library should never make the calling programs abort, nor
|
The library should never make the calling programs abort, nor
|
||||||
perform any input/output operations. This decision has to be taken
|
perform any input/output operations. This decision has to be taken
|
||||||
@ -357,7 +357,7 @@ by the developer of the code calling the library.
|
|||||||
All the functions return with an exit code, defined as
|
All the functions return with an exit code, defined as
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c" id="org321ee21"><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="org63dbf18"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int32_t</span> <span style="color: #228b22;">qmckl_exit_code</span>;
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -374,7 +374,7 @@ error code is returned to the program.
|
|||||||
Here is the complete list of exit codes.
|
Here is the complete list of exit codes.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table id="orgec6477e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orga552432" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -582,8 +582,8 @@ string is assumed to be large enough to contain the error message
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org3dfee39" class="outline-2">
|
<div id="outline-container-org7358462" class="outline-2">
|
||||||
<h2 id="org3dfee39"><span class="section-number-2">1</span> Decoding errors</h2>
|
<h2 id="org7358462"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
<p>
|
<p>
|
||||||
To decode the error messages, <code>qmckl_string_of_error</code> converts an
|
To decode the error messages, <code>qmckl_string_of_error</code> converts an
|
||||||
@ -601,8 +601,8 @@ The text strings are extracted from the previous table.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgbab7efd" class="outline-2">
|
<div id="outline-container-org62610b6" class="outline-2">
|
||||||
<h2 id="orgbab7efd"><span class="section-number-2">2</span> Data structure in context</h2>
|
<h2 id="org62610b6"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||||
<div class="outline-text-2" id="text-2">
|
<div class="outline-text-2" id="text-2">
|
||||||
<p>
|
<p>
|
||||||
The strings are declared internally with a maximum fixed size to avoid
|
The strings are declared internally with a maximum fixed size to avoid
|
||||||
@ -625,8 +625,8 @@ dynamic memory allocation.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org84ec6c5" class="outline-2">
|
<div id="outline-container-orga313bc1" class="outline-2">
|
||||||
<h2 id="org84ec6c5"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
<h2 id="orga313bc1"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||||
<div class="outline-text-2" id="text-3">
|
<div class="outline-text-2" id="text-3">
|
||||||
<p>
|
<p>
|
||||||
The error is updated in the context using <code>qmckl_set_error</code>.
|
The error is updated in the context using <code>qmckl_set_error</code>.
|
||||||
@ -645,8 +645,8 @@ explaining the error. The exit code can't be <code>QMCKL_SUCCESS</code>.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org53c67b5" class="outline-2">
|
<div id="outline-container-org5489127" class="outline-2">
|
||||||
<h2 id="org53c67b5"><span class="section-number-2">4</span> Get the error</h2>
|
<h2 id="org5489127"><span class="section-number-2">4</span> Get the error</h2>
|
||||||
<div class="outline-text-2" id="text-4">
|
<div class="outline-text-2" id="text-4">
|
||||||
<p>
|
<p>
|
||||||
Upon error, the error type and message can be obtained from the
|
Upon error, the error type and message can be obtained from the
|
||||||
@ -665,8 +665,8 @@ function name and message is mandatory.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org646abad" class="outline-2">
|
<div id="outline-container-org0f6ce43" class="outline-2">
|
||||||
<h2 id="org646abad"><span class="section-number-2">5</span> Failing</h2>
|
<h2 id="org0f6ce43"><span class="section-number-2">5</span> Failing</h2>
|
||||||
<div class="outline-text-2" id="text-5">
|
<div class="outline-text-2" id="text-5">
|
||||||
<p>
|
<p>
|
||||||
To make a function fail, the <code>qmckl_failwith</code> function should be
|
To make a function fail, the <code>qmckl_failwith</code> function should be
|
||||||
@ -703,8 +703,8 @@ For example, this function can be used as
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org6c3d73b" class="outline-2">
|
<div id="outline-container-orgfebe933" class="outline-2">
|
||||||
<h2 id="org6c3d73b"><span class="section-number-2">6</span> Last error</h2>
|
<h2 id="orgfebe933"><span class="section-number-2">6</span> Last error</h2>
|
||||||
<div class="outline-text-2" id="text-6">
|
<div class="outline-text-2" id="text-6">
|
||||||
<p>
|
<p>
|
||||||
Returns a string describing the last error, using <code>qmckl_get_error</code>.
|
Returns a string describing the last error, using <code>qmckl_get_error</code>.
|
||||||
@ -716,13 +716,13 @@ Returns a string describing the last error, using <code>qmckl_get_error</code>.
|
|||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgcf133e3" class="outline-3">
|
<div id="outline-container-org85d81da" class="outline-3">
|
||||||
<h3 id="orgcf133e3"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
<h3 id="org85d81da"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org6272aa7" class="outline-2">
|
<div id="outline-container-org6c21922" class="outline-2">
|
||||||
<h2 id="org6272aa7"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
<h2 id="org6c21922"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
||||||
<div class="outline-text-2" id="text-7">
|
<div class="outline-text-2" id="text-7">
|
||||||
<p>
|
<p>
|
||||||
The following function prints to <code>stderr</code> an error message is the return code is
|
The following function prints to <code>stderr</code> an error message is the return code is
|
||||||
@ -748,14 +748,14 @@ It should be used as:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org3451f30" class="outline-3">
|
<div id="outline-container-orga8d2d99" class="outline-3">
|
||||||
<h3 id="org3451f30"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
<h3 id="orga8d2d99"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: TREX CoE</p>
|
<p class="author">Author: TREX CoE</p>
|
||||||
<p class="date">Created: 2024-01-09 Tue 07:20</p>
|
<p class="date">Created: 2024-01-11 Thu 13:34</p>
|
||||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-01-09 Tue 07:20 -->
|
<!-- 2024-01-11 Thu 13:34 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Code examples</title>
|
<title>Code examples</title>
|
||||||
@ -346,25 +346,25 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgb6a2f6a">1. Overlap matrix in the MO basis</a>
|
<li><a href="#org70aa569">1. Overlap matrix in the MO basis</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org289d296">1.1. Python</a></li>
|
<li><a href="#orgbcf7b06">1.1. Python</a></li>
|
||||||
<li><a href="#orgf473537">1.2. C</a></li>
|
<li><a href="#org45938b7">1.2. C</a></li>
|
||||||
<li><a href="#org852d69c">1.3. Fortran</a></li>
|
<li><a href="#org81d01aa">1.3. Fortran</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgd18858a">2. Fortran</a>
|
<li><a href="#org52bc82d">2. Fortran</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgee75a18">2.1. Checking errors</a></li>
|
<li><a href="#orge7f7a93">2.1. Checking errors</a></li>
|
||||||
<li><a href="#orgba822e1">2.2. Computing an atomic orbital on a grid</a></li>
|
<li><a href="#org9d9682a">2.2. Computing an atomic orbital on a grid</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgb6a2f6a" class="outline-2">
|
<div id="outline-container-org70aa569" class="outline-2">
|
||||||
<h2 id="orgb6a2f6a"><span class="section-number-2">1</span> Overlap matrix in the MO basis</h2>
|
<h2 id="org70aa569"><span class="section-number-2">1</span> Overlap matrix in the MO basis</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
<p>
|
<p>
|
||||||
The focal point of this example is the numerical evaluation of the overlap
|
The focal point of this example is the numerical evaluation of the overlap
|
||||||
@ -417,8 +417,8 @@ code.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org289d296" class="outline-3">
|
<div id="outline-container-orgbcf7b06" class="outline-3">
|
||||||
<h3 id="org289d296"><span class="section-number-3">1.1</span> Python</h3>
|
<h3 id="orgbcf7b06"><span class="section-number-3">1.1</span> Python</h3>
|
||||||
<div class="outline-text-3" id="text-1-1">
|
<div class="outline-text-3" id="text-1-1">
|
||||||
<p>
|
<p>
|
||||||
In this example, we will compute numerically the overlap
|
In this example, we will compute numerically the overlap
|
||||||
@ -593,8 +593,8 @@ and finally we compute the overlap between all the MOs as
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf473537" class="outline-3">
|
<div id="outline-container-org45938b7" class="outline-3">
|
||||||
<h3 id="orgf473537"><span class="section-number-3">1.2</span> C</h3>
|
<h3 id="org45938b7"><span class="section-number-3">1.2</span> C</h3>
|
||||||
<div class="outline-text-3" id="text-1-2">
|
<div class="outline-text-3" id="text-1-2">
|
||||||
<p>
|
<p>
|
||||||
In this example, electron-nucleus cusp fitting is added.
|
In this example, electron-nucleus cusp fitting is added.
|
||||||
@ -922,8 +922,8 @@ and finally we compute the overlap between all the MOs as
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-org852d69c" class="outline-3">
|
<div id="outline-container-org81d01aa" class="outline-3">
|
||||||
<h3 id="org852d69c"><span class="section-number-3">1.3</span> Fortran</h3>
|
<h3 id="org81d01aa"><span class="section-number-3">1.3</span> Fortran</h3>
|
||||||
<div class="outline-text-3" id="text-1-3">
|
<div class="outline-text-3" id="text-1-3">
|
||||||
<p>
|
<p>
|
||||||
Here is the same piece of code translated in Fortran
|
Here is the same piece of code translated in Fortran
|
||||||
@ -1099,12 +1099,12 @@ Here is the same piece of code translated in Fortran
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgd18858a" class="outline-2">
|
<div id="outline-container-org52bc82d" class="outline-2">
|
||||||
<h2 id="orgd18858a"><span class="section-number-2">2</span> Fortran</h2>
|
<h2 id="org52bc82d"><span class="section-number-2">2</span> Fortran</h2>
|
||||||
<div class="outline-text-2" id="text-2">
|
<div class="outline-text-2" id="text-2">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgee75a18" class="outline-3">
|
<div id="outline-container-orge7f7a93" class="outline-3">
|
||||||
<h3 id="orgee75a18"><span class="section-number-3">2.1</span> Checking errors</h3>
|
<h3 id="orge7f7a93"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||||
<div class="outline-text-3" id="text-2-1">
|
<div class="outline-text-3" id="text-2-1">
|
||||||
<p>
|
<p>
|
||||||
All QMCkl functions return an error code. A convenient way to handle
|
All QMCkl functions return an error code. A convenient way to handle
|
||||||
@ -1113,7 +1113,7 @@ error in text format and exits the program.
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-f90" id="org5134ea9"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
<pre class="src src-f90" id="orgd5efae6"><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;">use</span> <span style="color: #0000ff;">qmckl</span>
|
||||||
<span style="color: #a020f0;">implicit</span> <span style="color: #228b22;">none</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>
|
<span style="color: #228b22;">integer</span>(qmckl_exit_code), <span style="color: #a020f0;">intent</span>(in) ::<span style="color: #a0522d;"> rc</span>
|
||||||
@ -1131,8 +1131,8 @@ error in text format and exits the program.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgba822e1" class="outline-3">
|
<div id="outline-container-org9d9682a" class="outline-3">
|
||||||
<h3 id="orgba822e1"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
<h3 id="org9d9682a"><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">
|
<div class="outline-text-3" id="text-2-2">
|
||||||
<p>
|
<p>
|
||||||
The following program, in Fortran, computes the values of an atomic
|
The following program, in Fortran, computes the values of an atomic
|
||||||
@ -1351,7 +1351,7 @@ We finally print the value and Laplacian of the AO:
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: TREX CoE</p>
|
<p class="author">Author: TREX CoE</p>
|
||||||
<p class="date">Created: 2024-01-09 Tue 07:20</p>
|
<p class="date">Created: 2024-01-11 Thu 13:34</p>
|
||||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</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">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-01-09 Tue 07:20 -->
|
<!-- 2024-01-11 Thu 13:34 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Local Energy</title>
|
<title>Local Energy</title>
|
||||||
@ -346,44 +346,44 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgbab7030">1. Context</a>
|
<li><a href="#org36bd0f7">1. Context</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org267a011">1.1. Data structure</a></li>
|
<li><a href="#orge1582fd">1.1. Data structure</a></li>
|
||||||
<li><a href="#org4c50544">1.2. Access functions</a></li>
|
<li><a href="#org8d7b141">1.2. Access functions</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orge7e7b1e">2. Computation</a>
|
<li><a href="#orgd0bd5a6">2. Computation</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org8d9aa09">2.1. Kinetic energy</a>
|
<li><a href="#org597a0f7">2.1. Kinetic energy</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org0a65aa3">2.1.1. Get</a></li>
|
<li><a href="#orgb08ebd5">2.1.1. Get</a></li>
|
||||||
<li><a href="#org4d76910">2.1.2. Provide</a></li>
|
<li><a href="#orgfe9daef">2.1.2. Provide</a></li>
|
||||||
<li><a href="#org2ffafa1">2.1.3. Compute kinetic enregy</a></li>
|
<li><a href="#org2f17336">2.1.3. Compute kinetic enregy</a></li>
|
||||||
<li><a href="#org04c6767">2.1.4. Test</a></li>
|
<li><a href="#orgbee54ba">2.1.4. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org5e471f9">2.2. Potential energy</a>
|
<li><a href="#org48f9896">2.2. Potential energy</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org5a4161a">2.2.1. Get</a></li>
|
<li><a href="#orgd35d624">2.2.1. Get</a></li>
|
||||||
<li><a href="#org3ac5cba">2.2.2. Provide</a></li>
|
<li><a href="#orgb38b90e">2.2.2. Provide</a></li>
|
||||||
<li><a href="#org29afc0b">2.2.3. Compute potential enregy</a></li>
|
<li><a href="#orga6ee467">2.2.3. Compute potential enregy</a></li>
|
||||||
<li><a href="#org0e168c6">2.2.4. Test</a></li>
|
<li><a href="#org702b273">2.2.4. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org4755598">2.3. Local energy</a>
|
<li><a href="#orgdb3d491">2.3. Local energy</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgeae0bdc">2.3.1. Get</a></li>
|
<li><a href="#org589b343">2.3.1. Get</a></li>
|
||||||
<li><a href="#orgdc21632">2.3.2. Provide</a></li>
|
<li><a href="#org0cd588f">2.3.2. Provide</a></li>
|
||||||
<li><a href="#org89085ee">2.3.3. Compute local enregy</a></li>
|
<li><a href="#org2251b40">2.3.3. Compute local enregy</a></li>
|
||||||
<li><a href="#orgfc8ae1e">2.3.4. Test</a></li>
|
<li><a href="#org6adeec5">2.3.4. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org458e6fc">2.4. Drift vector</a>
|
<li><a href="#orgb9ca021">2.4. Drift vector</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgcb15aaa">2.4.1. Get</a></li>
|
<li><a href="#orgd19d46a">2.4.1. Get</a></li>
|
||||||
<li><a href="#orgd64c6de">2.4.2. Provide</a></li>
|
<li><a href="#org4d7436e">2.4.2. Provide</a></li>
|
||||||
<li><a href="#org02899f9">2.4.3. Compute drift vector</a></li>
|
<li><a href="#orgd3f15e5">2.4.3. Compute drift vector</a></li>
|
||||||
<li><a href="#org97b4c3f">2.4.4. Test</a></li>
|
<li><a href="#orgdb5ee78">2.4.4. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -392,8 +392,8 @@ for the JavaScript code in this tag.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgbab7030" class="outline-2">
|
<div id="outline-container-org36bd0f7" class="outline-2">
|
||||||
<h2 id="orgbab7030"><span class="section-number-2">1</span> Context</h2>
|
<h2 id="org36bd0f7"><span class="section-number-2">1</span> Context</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
<p>
|
<p>
|
||||||
The following arrays are stored in the context:
|
The following arrays are stored in the context:
|
||||||
@ -466,8 +466,8 @@ Computed data:
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org267a011" class="outline-3">
|
<div id="outline-container-orge1582fd" class="outline-3">
|
||||||
<h3 id="org267a011"><span class="section-number-3">1.1</span> Data structure</h3>
|
<h3 id="orge1582fd"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||||
<div class="outline-text-3" id="text-1-1">
|
<div class="outline-text-3" id="text-1-1">
|
||||||
<div class="org-src-container">
|
<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> {
|
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_local_energy_struct</span> {
|
||||||
@ -501,8 +501,8 @@ this mechanism.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org4c50544" class="outline-3">
|
<div id="outline-container-org8d7b141" class="outline-3">
|
||||||
<h3 id="org4c50544"><span class="section-number-3">1.2</span> Access functions</h3>
|
<h3 id="org8d7b141"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||||
<div class="outline-text-3" id="text-1-2">
|
<div class="outline-text-3" id="text-1-2">
|
||||||
<p>
|
<p>
|
||||||
When all the data for the local energy have been provided, the following
|
When all the data for the local energy have been provided, the following
|
||||||
@ -517,12 +517,12 @@ function returns <code>true</code>.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orge7e7b1e" class="outline-2">
|
<div id="outline-container-orgd0bd5a6" class="outline-2">
|
||||||
<h2 id="orge7e7b1e"><span class="section-number-2">2</span> Computation</h2>
|
<h2 id="orgd0bd5a6"><span class="section-number-2">2</span> Computation</h2>
|
||||||
<div class="outline-text-2" id="text-2">
|
<div class="outline-text-2" id="text-2">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org8d9aa09" class="outline-3">
|
<div id="outline-container-org597a0f7" class="outline-3">
|
||||||
<h3 id="org8d9aa09"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
<h3 id="org597a0f7"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
||||||
<div class="outline-text-3" id="text-2-1">
|
<div class="outline-text-3" id="text-2-1">
|
||||||
<p>
|
<p>
|
||||||
Where the kinetic energy is given as:
|
Where the kinetic energy is given as:
|
||||||
@ -546,8 +546,8 @@ case is given as follows:
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0a65aa3" class="outline-4">
|
<div id="outline-container-orgb08ebd5" class="outline-4">
|
||||||
<h4 id="org0a65aa3"><span class="section-number-4">2.1.1</span> Get</h4>
|
<h4 id="orgb08ebd5"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-1">
|
<div class="outline-text-4" id="text-2-1-1">
|
||||||
<div class="org-src-container">
|
<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>);
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_kinetic_energy</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">kinetic_energy</span>);
|
||||||
@ -556,14 +556,14 @@ case is given as follows:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org4d76910" class="outline-4">
|
<div id="outline-container-orgfe9daef" class="outline-4">
|
||||||
<h4 id="org4d76910"><span class="section-number-4">2.1.2</span> Provide</h4>
|
<h4 id="orgfe9daef"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org2ffafa1" class="outline-4">
|
<div id="outline-container-org2f17336" class="outline-4">
|
||||||
<h4 id="org2ffafa1"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
<h4 id="org2f17336"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-3">
|
<div class="outline-text-4" id="text-2-1-3">
|
||||||
<table id="org51312be" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgae91626" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -792,12 +792,12 @@ case is given as follows:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org04c6767" class="outline-4">
|
<div id="outline-container-orgbee54ba" class="outline-4">
|
||||||
<h4 id="org04c6767"><span class="section-number-4">2.1.4</span> Test</h4>
|
<h4 id="orgbee54ba"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org5e471f9" class="outline-3">
|
<div id="outline-container-org48f9896" class="outline-3">
|
||||||
<h3 id="org5e471f9"><span class="section-number-3">2.2</span> Potential energy</h3>
|
<h3 id="org48f9896"><span class="section-number-3">2.2</span> Potential energy</h3>
|
||||||
<div class="outline-text-3" id="text-2-2">
|
<div class="outline-text-3" id="text-2-2">
|
||||||
<p>
|
<p>
|
||||||
The potential energy is the sum of all the following terms
|
The potential energy is the sum of all the following terms
|
||||||
@ -833,8 +833,8 @@ contributions.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org5a4161a" class="outline-4">
|
<div id="outline-container-orgd35d624" class="outline-4">
|
||||||
<h4 id="org5a4161a"><span class="section-number-4">2.2.1</span> Get</h4>
|
<h4 id="orgd35d624"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||||
<div class="outline-text-4" id="text-2-2-1">
|
<div class="outline-text-4" id="text-2-2-1">
|
||||||
<div class="org-src-container">
|
<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>);
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_potential_energy</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">potential_energy</span>);
|
||||||
@ -843,14 +843,14 @@ contributions.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org3ac5cba" class="outline-4">
|
<div id="outline-container-orgb38b90e" class="outline-4">
|
||||||
<h4 id="org3ac5cba"><span class="section-number-4">2.2.2</span> Provide</h4>
|
<h4 id="orgb38b90e"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org29afc0b" class="outline-4">
|
<div id="outline-container-orga6ee467" class="outline-4">
|
||||||
<h4 id="org29afc0b"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
<h4 id="orga6ee467"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
||||||
<div class="outline-text-4" id="text-2-2-3">
|
<div class="outline-text-4" id="text-2-2-3">
|
||||||
<table id="org157fdcf" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org9414e66" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -977,12 +977,12 @@ contributions.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0e168c6" class="outline-4">
|
<div id="outline-container-org702b273" class="outline-4">
|
||||||
<h4 id="org0e168c6"><span class="section-number-4">2.2.4</span> Test</h4>
|
<h4 id="org702b273"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org4755598" class="outline-3">
|
<div id="outline-container-orgdb3d491" class="outline-3">
|
||||||
<h3 id="org4755598"><span class="section-number-3">2.3</span> Local energy</h3>
|
<h3 id="orgdb3d491"><span class="section-number-3">2.3</span> Local energy</h3>
|
||||||
<div class="outline-text-3" id="text-2-3">
|
<div class="outline-text-3" id="text-2-3">
|
||||||
<p>
|
<p>
|
||||||
The local energy is the sum of kinetic and potential energies.
|
The local energy is the sum of kinetic and potential energies.
|
||||||
@ -996,8 +996,8 @@ E_L = KE + PE
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-orgeae0bdc" class="outline-4">
|
<div id="outline-container-org589b343" class="outline-4">
|
||||||
<h4 id="orgeae0bdc"><span class="section-number-4">2.3.1</span> Get</h4>
|
<h4 id="org589b343"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||||
<div class="outline-text-4" id="text-2-3-1">
|
<div class="outline-text-4" id="text-2-3-1">
|
||||||
<div class="org-src-container">
|
<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>);
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_local_energy</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">local_energy</span>, <span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">size_max</span>);
|
||||||
@ -1006,14 +1006,14 @@ E_L = KE + PE
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgdc21632" class="outline-4">
|
<div id="outline-container-org0cd588f" class="outline-4">
|
||||||
<h4 id="orgdc21632"><span class="section-number-4">2.3.2</span> Provide</h4>
|
<h4 id="org0cd588f"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org89085ee" class="outline-4">
|
<div id="outline-container-org2251b40" class="outline-4">
|
||||||
<h4 id="org89085ee"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
<h4 id="org2251b40"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
||||||
<div class="outline-text-4" id="text-2-3-3">
|
<div class="outline-text-4" id="text-2-3-3">
|
||||||
<table id="org5a265c5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgad7c1df" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1109,12 +1109,12 @@ E_L = KE + PE
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgfc8ae1e" class="outline-4">
|
<div id="outline-container-org6adeec5" class="outline-4">
|
||||||
<h4 id="orgfc8ae1e"><span class="section-number-4">2.3.4</span> Test</h4>
|
<h4 id="org6adeec5"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org458e6fc" class="outline-3">
|
<div id="outline-container-orgb9ca021" class="outline-3">
|
||||||
<h3 id="org458e6fc"><span class="section-number-3">2.4</span> Drift vector</h3>
|
<h3 id="orgb9ca021"><span class="section-number-3">2.4</span> Drift vector</h3>
|
||||||
<div class="outline-text-3" id="text-2-4">
|
<div class="outline-text-3" id="text-2-4">
|
||||||
<p>
|
<p>
|
||||||
The drift vector is calculated as the ration of the gradient
|
The drift vector is calculated as the ration of the gradient
|
||||||
@ -1128,8 +1128,8 @@ with the determinant of the wavefunction.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgcb15aaa" class="outline-4">
|
<div id="outline-container-orgd19d46a" class="outline-4">
|
||||||
<h4 id="orgcb15aaa"><span class="section-number-4">2.4.1</span> Get</h4>
|
<h4 id="orgd19d46a"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||||
<div class="outline-text-4" id="text-2-4-1">
|
<div class="outline-text-4" id="text-2-4-1">
|
||||||
<div class="org-src-container">
|
<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>);
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_drift_vector</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">drift_vector</span>);
|
||||||
@ -1138,14 +1138,14 @@ with the determinant of the wavefunction.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd64c6de" class="outline-4">
|
<div id="outline-container-org4d7436e" class="outline-4">
|
||||||
<h4 id="orgd64c6de"><span class="section-number-4">2.4.2</span> Provide</h4>
|
<h4 id="org4d7436e"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org02899f9" class="outline-4">
|
<div id="outline-container-orgd3f15e5" class="outline-4">
|
||||||
<h4 id="org02899f9"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
<h4 id="orgd3f15e5"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
||||||
<div class="outline-text-4" id="text-2-4-3">
|
<div class="outline-text-4" id="text-2-4-3">
|
||||||
<table id="orgdb690fe" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org784af93" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1366,15 +1366,15 @@ with the determinant of the wavefunction.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org97b4c3f" class="outline-4">
|
<div id="outline-container-orgdb5ee78" class="outline-4">
|
||||||
<h4 id="org97b4c3f"><span class="section-number-4">2.4.4</span> Test</h4>
|
<h4 id="orgdb5ee78"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: TREX CoE</p>
|
<p class="author">Author: TREX CoE</p>
|
||||||
<p class="date">Created: 2024-01-09 Tue 07:20</p>
|
<p class="date">Created: 2024-01-11 Thu 13:34</p>
|
||||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-01-09 Tue 07:20 -->
|
<!-- 2024-01-11 Thu 13:34 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Memory management</title>
|
<title>Memory management</title>
|
||||||
@ -324,16 +324,16 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org333085e">1. Memory data structure for the context</a></li>
|
<li><a href="#org0457ab4">1. Memory data structure for the context</a></li>
|
||||||
<li><a href="#org2194e7d">2. Passing info to allocation routines</a></li>
|
<li><a href="#org2bb64f2">2. Passing info to allocation routines</a></li>
|
||||||
<li><a href="#orgc0586af">3. Allocation/deallocation functions</a></li>
|
<li><a href="#orgda8a353">3. Allocation/deallocation functions</a></li>
|
||||||
<li><a href="#org01b7a6c">4. Get the size of a memory block</a></li>
|
<li><a href="#org4aab6c1">4. Get the size of a memory block</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org333085e" class="outline-2">
|
<div id="outline-container-org0457ab4" class="outline-2">
|
||||||
<h2 id="org333085e"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
<h2 id="org0457ab4"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
<p>
|
<p>
|
||||||
Every time a new block of memory is allocated, the information
|
Every time a new block of memory is allocated, the information
|
||||||
@ -375,8 +375,8 @@ array, and the number of allocated blocks.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org2194e7d" class="outline-2">
|
<div id="outline-container-org2bb64f2" class="outline-2">
|
||||||
<h2 id="org2194e7d"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
<h2 id="org2bb64f2"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||||
<div class="outline-text-2" id="text-2">
|
<div class="outline-text-2" id="text-2">
|
||||||
<p>
|
<p>
|
||||||
Passing information to the allocation routine should be done by
|
Passing information to the allocation routine should be done by
|
||||||
@ -385,8 +385,8 @@ passing an instance of a <code>qmckl_memory_info_struct</code>.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc0586af" class="outline-2">
|
<div id="outline-container-orgda8a353" class="outline-2">
|
||||||
<h2 id="orgc0586af"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
<h2 id="orgda8a353"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||||
<div class="outline-text-2" id="text-3">
|
<div class="outline-text-2" id="text-3">
|
||||||
<p>
|
<p>
|
||||||
Memory allocation inside the library should be done with
|
Memory allocation inside the library should be done with
|
||||||
@ -645,8 +645,8 @@ successful deallocation of the memory block.</li>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org01b7a6c" class="outline-2">
|
<div id="outline-container-org4aab6c1" class="outline-2">
|
||||||
<h2 id="org01b7a6c"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
<h2 id="org4aab6c1"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
||||||
<div class="outline-text-2" id="text-4">
|
<div class="outline-text-2" id="text-4">
|
||||||
<p>
|
<p>
|
||||||
All the blocks allocated with <code>qmckl_malloc</code> keep track of how many
|
All the blocks allocated with <code>qmckl_malloc</code> keep track of how many
|
||||||
@ -741,7 +741,7 @@ rc = qmckl_context_destroy(context);
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: TREX CoE</p>
|
<p class="author">Author: TREX CoE</p>
|
||||||
<p class="date">Created: 2024-01-09 Tue 07:20</p>
|
<p class="date">Created: 2024-01-11 Thu 13:34</p>
|
||||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
192
qmckl_mo.html
192
qmckl_mo.html
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-01-09 Tue 07:20 -->
|
<!-- 2024-01-11 Thu 13:34 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Molecular Orbitals</title>
|
<title>Molecular Orbitals</title>
|
||||||
@ -346,72 +346,72 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org7186b91">1. Context</a>
|
<li><a href="#org29e0dfb">1. Context</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgf90455c">1.1. Data structure</a></li>
|
<li><a href="#org772d212">1.1. Data structure</a></li>
|
||||||
<li><a href="#org6fbbf6b">1.2. Initialization functions</a></li>
|
<li><a href="#orgdf6f395">1.2. Initialization functions</a></li>
|
||||||
<li><a href="#org6ba70cd">1.3. Cusp adjsutment functions</a></li>
|
<li><a href="#org57828b9">1.3. Cusp adjsutment functions</a></li>
|
||||||
<li><a href="#orgfa57ca6">1.4. Access functions</a>
|
<li><a href="#orge8a4171">1.4. Access functions</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org9707911">1.4.1. Fortran interfaces</a></li>
|
<li><a href="#orgc3e6b9c">1.4.1. Fortran interfaces</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgccfecdd">1.5. Update</a>
|
<li><a href="#org51cee35">1.5. Update</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org655a068">1.5.1. Fortran interface</a></li>
|
<li><a href="#org02d1196">1.5.1. Fortran interface</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orga194f0e">2. Computation</a>
|
<li><a href="#org8a62170">2. Computation</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgdcaff35">2.1. Parameters of the cusp-correction functions</a></li>
|
<li><a href="#org2139203">2.1. Parameters of the cusp-correction functions</a></li>
|
||||||
<li><a href="#org4db9c37">2.2. Computation of MOs: values only</a>
|
<li><a href="#orgb41532e">2.2. Computation of MOs: values only</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org21dc506">2.2.1. Get</a></li>
|
<li><a href="#orgad9fc80">2.2.1. Get</a></li>
|
||||||
<li><a href="#org46524e6">2.2.2. Provide</a></li>
|
<li><a href="#org0f645c1">2.2.2. Provide</a></li>
|
||||||
<li><a href="#org2316118">2.2.3. Compute</a></li>
|
<li><a href="#orgec9c75d">2.2.3. Compute</a></li>
|
||||||
<li><a href="#orge944c56">2.2.4. HPC version</a>
|
<li><a href="#org57744eb">2.2.4. HPC version</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org372a0ed">2.2.4.1. Single-precision</a></li>
|
<li><a href="#org1cfa1ee">2.2.4.1. Single-precision</a></li>
|
||||||
<li><a href="#org36a23f7">2.2.4.2. Double-precision</a></li>
|
<li><a href="#org8181593">2.2.4.2. Double-precision</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgf538c42">2.3. Computation of MOs: values, gradient, Laplacian</a>
|
<li><a href="#org36f6dda">2.3. Computation of MOs: values, gradient, Laplacian</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org13be620">2.3.1. Get</a></li>
|
<li><a href="#org5853fd2">2.3.1. Get</a></li>
|
||||||
<li><a href="#org170a90f">2.3.2. Provide</a></li>
|
<li><a href="#orgafecd0c">2.3.2. Provide</a></li>
|
||||||
<li><a href="#org013c975">2.3.3. Compute</a></li>
|
<li><a href="#org93abbc9">2.3.3. Compute</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orga4e27ea">2.4. Computation of cusp-corrected MOs: values only</a>
|
<li><a href="#orgbfeb5ba">2.4. Computation of cusp-corrected MOs: values only</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org6c13f9b">2.4.1. Compute</a></li>
|
<li><a href="#org4d6f593">2.4.1. Compute</a></li>
|
||||||
<li><a href="#orga91d82f">2.4.2. HPC version</a></li>
|
<li><a href="#orgb4239f4">2.4.2. HPC version</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgd8c7b5b">2.5. Computation of cusp-corrected MOs: values, gradient, Laplacian</a>
|
<li><a href="#org1e6c832">2.5. Computation of cusp-corrected MOs: values, gradient, Laplacian</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org0775657">2.5.1. Compute</a></li>
|
<li><a href="#org09567b3">2.5.1. Compute</a></li>
|
||||||
<li><a href="#org27491c1">2.5.2. HPC version</a></li>
|
<li><a href="#org72eb717">2.5.2. HPC version</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgb3034a5">2.6. Rescaling of MO coefficients</a>
|
<li><a href="#orge54261b">2.6. Rescaling of MO coefficients</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org04e2d2c">2.6.1. Fortran interface</a></li>
|
<li><a href="#orge6de3ec">2.6.1. Fortran interface</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org269a076">2.7. Test</a></li>
|
<li><a href="#org6dd014c">2.7. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org7186b91" class="outline-2">
|
<div id="outline-container-org29e0dfb" class="outline-2">
|
||||||
<h2 id="org7186b91"><span class="section-number-2">1</span> Context</h2>
|
<h2 id="org29e0dfb"><span class="section-number-2">1</span> Context</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
<p>
|
<p>
|
||||||
The following arrays are stored in the context:
|
The following arrays are stored in the context:
|
||||||
@ -490,8 +490,8 @@ Computed data:
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf90455c" class="outline-3">
|
<div id="outline-container-org772d212" class="outline-3">
|
||||||
<h3 id="orgf90455c"><span class="section-number-3">1.1</span> Data structure</h3>
|
<h3 id="org772d212"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||||
<div class="outline-text-3" id="text-1-1">
|
<div class="outline-text-3" id="text-1-1">
|
||||||
<div class="org-src-container">
|
<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> {
|
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_mo_basis_struct</span> {
|
||||||
@ -548,8 +548,8 @@ this mechanism.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org6fbbf6b" class="outline-3">
|
<div id="outline-container-orgdf6f395" class="outline-3">
|
||||||
<h3 id="org6fbbf6b"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
<h3 id="orgdf6f395"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
||||||
<div class="outline-text-3" id="text-1-2">
|
<div class="outline-text-3" id="text-1-2">
|
||||||
<p>
|
<p>
|
||||||
To set the basis set, all the following functions need to be
|
To set the basis set, all the following functions need to be
|
||||||
@ -570,8 +570,8 @@ computed to accelerate the calculations.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org6ba70cd" class="outline-3">
|
<div id="outline-container-org57828b9" class="outline-3">
|
||||||
<h3 id="org6ba70cd"><span class="section-number-3">1.3</span> Cusp adjsutment functions</h3>
|
<h3 id="org57828b9"><span class="section-number-3">1.3</span> Cusp adjsutment functions</h3>
|
||||||
<div class="outline-text-3" id="text-1-3">
|
<div class="outline-text-3" id="text-1-3">
|
||||||
<p>
|
<p>
|
||||||
To activate the cusp adjustment, the user must enter the radius of
|
To activate the cusp adjustment, the user must enter the radius of
|
||||||
@ -586,8 +586,8 @@ of the non-\(s\) AOs at the center.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgfa57ca6" class="outline-3">
|
<div id="outline-container-orge8a4171" class="outline-3">
|
||||||
<h3 id="orgfa57ca6"><span class="section-number-3">1.4</span> Access functions</h3>
|
<h3 id="orge8a4171"><span class="section-number-3">1.4</span> Access functions</h3>
|
||||||
<div class="outline-text-3" id="text-1-4">
|
<div class="outline-text-3" id="text-1-4">
|
||||||
<p>
|
<p>
|
||||||
When all the data for the AOs have been provided, the following
|
When all the data for the AOs have been provided, the following
|
||||||
@ -600,13 +600,13 @@ function returns <code>true</code>.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org9707911" class="outline-4">
|
<div id="outline-container-orgc3e6b9c" class="outline-4">
|
||||||
<h4 id="org9707911"><span class="section-number-4">1.4.1</span> Fortran interfaces</h4>
|
<h4 id="orgc3e6b9c"><span class="section-number-4">1.4.1</span> Fortran interfaces</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgccfecdd" class="outline-3">
|
<div id="outline-container-org51cee35" class="outline-3">
|
||||||
<h3 id="orgccfecdd"><span class="section-number-3">1.5</span> Update</h3>
|
<h3 id="org51cee35"><span class="section-number-3">1.5</span> Update</h3>
|
||||||
<div class="outline-text-3" id="text-1-5">
|
<div class="outline-text-3" id="text-1-5">
|
||||||
<p>
|
<p>
|
||||||
It may be desirable to remove certain molecular orbitals (MOs) that
|
It may be desirable to remove certain molecular orbitals (MOs) that
|
||||||
@ -633,25 +633,25 @@ calculation. If the integer is non-zero, the MO will be kept.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org655a068" class="outline-4">
|
<div id="outline-container-org02d1196" class="outline-4">
|
||||||
<h4 id="org655a068"><span class="section-number-4">1.5.1</span> Fortran interface</h4>
|
<h4 id="org02d1196"><span class="section-number-4">1.5.1</span> Fortran interface</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga194f0e" class="outline-2">
|
<div id="outline-container-org8a62170" class="outline-2">
|
||||||
<h2 id="orga194f0e"><span class="section-number-2">2</span> Computation</h2>
|
<h2 id="org8a62170"><span class="section-number-2">2</span> Computation</h2>
|
||||||
<div class="outline-text-2" id="text-2">
|
<div class="outline-text-2" id="text-2">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgdcaff35" class="outline-3">
|
<div id="outline-container-org2139203" class="outline-3">
|
||||||
<h3 id="orgdcaff35"><span class="section-number-3">2.1</span> Parameters of the cusp-correction functions</h3>
|
<h3 id="org2139203"><span class="section-number-3">2.1</span> Parameters of the cusp-correction functions</h3>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org4db9c37" class="outline-3">
|
<div id="outline-container-orgb41532e" class="outline-3">
|
||||||
<h3 id="org4db9c37"><span class="section-number-3">2.2</span> Computation of MOs: values only</h3>
|
<h3 id="orgb41532e"><span class="section-number-3">2.2</span> Computation of MOs: values only</h3>
|
||||||
<div class="outline-text-3" id="text-2-2">
|
<div class="outline-text-3" id="text-2-2">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org21dc506" class="outline-4">
|
<div id="outline-container-orgad9fc80" class="outline-4">
|
||||||
<h4 id="org21dc506"><span class="section-number-4">2.2.1</span> Get</h4>
|
<h4 id="orgad9fc80"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||||
<div class="outline-text-4" id="text-2-2-1">
|
<div class="outline-text-4" id="text-2-2-1">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||||
@ -675,8 +675,8 @@ Uses the given array to compute the values.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org46524e6" class="outline-4">
|
<div id="outline-container-org0f645c1" class="outline-4">
|
||||||
<h4 id="org46524e6"><span class="section-number-4">2.2.2</span> Provide</h4>
|
<h4 id="org0f645c1"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||||
<div class="outline-text-4" id="text-2-2-2">
|
<div class="outline-text-4" id="text-2-2-2">
|
||||||
<div class="org-src-container">
|
<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>);
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_provide_mo_basis_mo_value</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>);
|
||||||
@ -761,10 +761,10 @@ Uses the given array to compute the values.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org2316118" class="outline-4">
|
<div id="outline-container-orgec9c75d" class="outline-4">
|
||||||
<h4 id="org2316118"><span class="section-number-4">2.2.3</span> Compute</h4>
|
<h4 id="orgec9c75d"><span class="section-number-4">2.2.3</span> Compute</h4>
|
||||||
<div class="outline-text-4" id="text-2-2-3">
|
<div class="outline-text-4" id="text-2-2-3">
|
||||||
<table id="orgf553733" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orga00e9e6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -919,8 +919,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orge944c56" class="outline-4">
|
<div id="outline-container-org57744eb" class="outline-4">
|
||||||
<h4 id="orge944c56"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
<h4 id="org57744eb"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
||||||
<div class="outline-text-4" id="text-2-2-4">
|
<div class="outline-text-4" id="text-2-2-4">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||||
@ -947,8 +947,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-org372a0ed" class="outline-5">
|
<div id="outline-container-org1cfa1ee" class="outline-5">
|
||||||
<h5 id="org372a0ed"><span class="section-number-5">2.2.4.1</span> Single-precision</h5>
|
<h5 id="org1cfa1ee"><span class="section-number-5">2.2.4.1</span> Single-precision</h5>
|
||||||
<div class="outline-text-5" id="text-2-2-4-1">
|
<div class="outline-text-5" id="text-2-2-4-1">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||||
@ -1063,8 +1063,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org36a23f7" class="outline-5">
|
<div id="outline-container-org8181593" class="outline-5">
|
||||||
<h5 id="org36a23f7"><span class="section-number-5">2.2.4.2</span> Double-precision</h5>
|
<h5 id="org8181593"><span class="section-number-5">2.2.4.2</span> Double-precision</h5>
|
||||||
<div class="outline-text-5" id="text-2-2-4-2">
|
<div class="outline-text-5" id="text-2-2-4-2">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||||
@ -1173,12 +1173,12 @@ matrix multiplication instead of a dgemm, as exposed in
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf538c42" class="outline-3">
|
<div id="outline-container-org36f6dda" class="outline-3">
|
||||||
<h3 id="orgf538c42"><span class="section-number-3">2.3</span> Computation of MOs: values, gradient, Laplacian</h3>
|
<h3 id="org36f6dda"><span class="section-number-3">2.3</span> Computation of MOs: values, gradient, Laplacian</h3>
|
||||||
<div class="outline-text-3" id="text-2-3">
|
<div class="outline-text-3" id="text-2-3">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org13be620" class="outline-4">
|
<div id="outline-container-org5853fd2" class="outline-4">
|
||||||
<h4 id="org13be620"><span class="section-number-4">2.3.1</span> Get</h4>
|
<h4 id="org5853fd2"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||||
<div class="outline-text-4" id="text-2-3-1">
|
<div class="outline-text-4" id="text-2-3-1">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||||
@ -1202,8 +1202,8 @@ Uses the given array to compute the VGL.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org170a90f" class="outline-4">
|
<div id="outline-container-orgafecd0c" class="outline-4">
|
||||||
<h4 id="org170a90f"><span class="section-number-4">2.3.2</span> Provide</h4>
|
<h4 id="orgafecd0c"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||||
<div class="outline-text-4" id="text-2-3-2">
|
<div class="outline-text-4" id="text-2-3-2">
|
||||||
<div class="org-src-container">
|
<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>);
|
<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>);
|
||||||
@ -1287,10 +1287,10 @@ Uses the given array to compute the VGL.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org013c975" class="outline-4">
|
<div id="outline-container-org93abbc9" class="outline-4">
|
||||||
<h4 id="org013c975"><span class="section-number-4">2.3.3</span> Compute</h4>
|
<h4 id="org93abbc9"><span class="section-number-4">2.3.3</span> Compute</h4>
|
||||||
<div class="outline-text-4" id="text-2-3-3">
|
<div class="outline-text-4" id="text-2-3-3">
|
||||||
<table id="orgba3e5e0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org3ba554a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1464,14 +1464,14 @@ matrix multiplication instead of a dgemm, as exposed in
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga4e27ea" class="outline-3">
|
<div id="outline-container-orgbfeb5ba" class="outline-3">
|
||||||
<h3 id="orga4e27ea"><span class="section-number-3">2.4</span> Computation of cusp-corrected MOs: values only</h3>
|
<h3 id="orgbfeb5ba"><span class="section-number-3">2.4</span> Computation of cusp-corrected MOs: values only</h3>
|
||||||
<div class="outline-text-3" id="text-2-4">
|
<div class="outline-text-3" id="text-2-4">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org6c13f9b" class="outline-4">
|
<div id="outline-container-org4d6f593" class="outline-4">
|
||||||
<h4 id="org6c13f9b"><span class="section-number-4">2.4.1</span> Compute</h4>
|
<h4 id="org4d6f593"><span class="section-number-4">2.4.1</span> Compute</h4>
|
||||||
<div class="outline-text-4" id="text-2-4-1">
|
<div class="outline-text-4" id="text-2-4-1">
|
||||||
<table id="orgc52e8c0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org6d79da2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1710,8 +1710,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga91d82f" class="outline-4">
|
<div id="outline-container-orgb4239f4" class="outline-4">
|
||||||
<h4 id="orga91d82f"><span class="section-number-4">2.4.2</span> HPC version</h4>
|
<h4 id="orgb4239f4"><span class="section-number-4">2.4.2</span> HPC version</h4>
|
||||||
<div class="outline-text-4" id="text-2-4-2">
|
<div class="outline-text-4" id="text-2-4-2">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||||
@ -1851,14 +1851,14 @@ IVDEP
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd8c7b5b" class="outline-3">
|
<div id="outline-container-org1e6c832" class="outline-3">
|
||||||
<h3 id="orgd8c7b5b"><span class="section-number-3">2.5</span> Computation of cusp-corrected MOs: values, gradient, Laplacian</h3>
|
<h3 id="org1e6c832"><span class="section-number-3">2.5</span> Computation of cusp-corrected MOs: values, gradient, Laplacian</h3>
|
||||||
<div class="outline-text-3" id="text-2-5">
|
<div class="outline-text-3" id="text-2-5">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org0775657" class="outline-4">
|
<div id="outline-container-org09567b3" class="outline-4">
|
||||||
<h4 id="org0775657"><span class="section-number-4">2.5.1</span> Compute</h4>
|
<h4 id="org09567b3"><span class="section-number-4">2.5.1</span> Compute</h4>
|
||||||
<div class="outline-text-4" id="text-2-5-1">
|
<div class="outline-text-4" id="text-2-5-1">
|
||||||
<table id="org829788f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgbdbb95c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -2154,8 +2154,8 @@ IVDEP
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org27491c1" class="outline-4">
|
<div id="outline-container-org72eb717" class="outline-4">
|
||||||
<h4 id="org27491c1"><span class="section-number-4">2.5.2</span> HPC version</h4>
|
<h4 id="org72eb717"><span class="section-number-4">2.5.2</span> HPC version</h4>
|
||||||
<div class="outline-text-4" id="text-2-5-2">
|
<div class="outline-text-4" id="text-2-5-2">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_HPC
|
||||||
@ -2356,8 +2356,8 @@ IVDEP
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgb3034a5" class="outline-3">
|
<div id="outline-container-orge54261b" class="outline-3">
|
||||||
<h3 id="orgb3034a5"><span class="section-number-3">2.6</span> Rescaling of MO coefficients</h3>
|
<h3 id="orge54261b"><span class="section-number-3">2.6</span> Rescaling of MO coefficients</h3>
|
||||||
<div class="outline-text-3" id="text-2-6">
|
<div class="outline-text-3" id="text-2-6">
|
||||||
<p>
|
<p>
|
||||||
When evaluating Slater determinants, the value of the determinants
|
When evaluating Slater determinants, the value of the determinants
|
||||||
@ -2374,19 +2374,19 @@ correct range.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org04e2d2c" class="outline-4">
|
<div id="outline-container-orge6de3ec" class="outline-4">
|
||||||
<h4 id="org04e2d2c"><span class="section-number-4">2.6.1</span> Fortran interface</h4>
|
<h4 id="orge6de3ec"><span class="section-number-4">2.6.1</span> Fortran interface</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org269a076" class="outline-3">
|
<div id="outline-container-org6dd014c" class="outline-3">
|
||||||
<h3 id="org269a076"><span class="section-number-3">2.7</span> Test</h3>
|
<h3 id="org6dd014c"><span class="section-number-3">2.7</span> Test</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: TREX CoE</p>
|
<p class="author">Author: TREX CoE</p>
|
||||||
<p class="date">Created: 2024-01-09 Tue 07:20</p>
|
<p class="date">Created: 2024-01-11 Thu 13:34</p>
|
||||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-01-09 Tue 07:20 -->
|
<!-- 2024-01-11 Thu 13:34 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Nucleus</title>
|
<title>Nucleus</title>
|
||||||
@ -346,28 +346,28 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org9034fd7">1. Context</a>
|
<li><a href="#org522ee6f">1. Context</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org0962649">1.1. Data structure</a></li>
|
<li><a href="#org8acf59e">1.1. Data structure</a></li>
|
||||||
<li><a href="#org6d995a3">1.2. Access functions</a></li>
|
<li><a href="#org370a5e5">1.2. Access functions</a></li>
|
||||||
<li><a href="#org3afaf9c">1.3. Initialization functions</a></li>
|
<li><a href="#org377bd36">1.3. Initialization functions</a></li>
|
||||||
<li><a href="#orgb5b451b">1.4. Test</a></li>
|
<li><a href="#orgca97b86">1.4. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgd06fd89">2. Computation</a>
|
<li><a href="#org9094213">2. Computation</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orga3f80ae">2.1. Nucleus-nucleus distances</a>
|
<li><a href="#orgcd5390f">2.1. Nucleus-nucleus distances</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org4143879">2.1.1. Get</a></li>
|
<li><a href="#org6b13f28">2.1.1. Get</a></li>
|
||||||
<li><a href="#orgb8c8588">2.1.2. Compute</a></li>
|
<li><a href="#org5af53b7">2.1.2. Compute</a></li>
|
||||||
<li><a href="#orge425b45">2.1.3. Test</a></li>
|
<li><a href="#orgbd980ac">2.1.3. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orga799f63">2.2. Nuclear repulsion energy</a>
|
<li><a href="#orgee3eb05">2.2. Nuclear repulsion energy</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orga652e72">2.2.1. Get</a></li>
|
<li><a href="#org37c20fd">2.2.1. Get</a></li>
|
||||||
<li><a href="#orge494dc3">2.2.2. Compute</a></li>
|
<li><a href="#orgc9fe3c3">2.2.2. Compute</a></li>
|
||||||
<li><a href="#orgc65579a">2.2.3. Test</a></li>
|
<li><a href="#org94ce348">2.2.3. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -376,8 +376,8 @@ for the JavaScript code in this tag.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org9034fd7" class="outline-2">
|
<div id="outline-container-org522ee6f" class="outline-2">
|
||||||
<h2 id="org9034fd7"><span class="section-number-2">1</span> Context</h2>
|
<h2 id="org522ee6f"><span class="section-number-2">1</span> Context</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
<p>
|
<p>
|
||||||
The following data stored in the context:
|
The following data stored in the context:
|
||||||
@ -474,8 +474,8 @@ Computed data:
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0962649" class="outline-3">
|
<div id="outline-container-org8acf59e" class="outline-3">
|
||||||
<h3 id="org0962649"><span class="section-number-3">1.1</span> Data structure</h3>
|
<h3 id="org8acf59e"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||||
<div class="outline-text-3" id="text-1-1">
|
<div class="outline-text-3" id="text-1-1">
|
||||||
<div class="org-src-container">
|
<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> {
|
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_nucleus_struct</span> {
|
||||||
@ -529,8 +529,8 @@ this mechanism.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org6d995a3" class="outline-3">
|
<div id="outline-container-org370a5e5" class="outline-3">
|
||||||
<h3 id="org6d995a3"><span class="section-number-3">1.2</span> Access functions</h3>
|
<h3 id="org370a5e5"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||||
<div class="outline-text-3" id="text-1-2">
|
<div class="outline-text-3" id="text-1-2">
|
||||||
<p>
|
<p>
|
||||||
When all the data relative to nuclei have been set, the following
|
When all the data relative to nuclei have been set, the following
|
||||||
@ -544,8 +544,8 @@ function returns <code>true</code>.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org3afaf9c" class="outline-3">
|
<div id="outline-container-org377bd36" class="outline-3">
|
||||||
<h3 id="org3afaf9c"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
<h3 id="org377bd36"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||||
<div class="outline-text-3" id="text-1-3">
|
<div class="outline-text-3" id="text-1-3">
|
||||||
<p>
|
<p>
|
||||||
To set the data relative to the nuclei in the context, the
|
To set the data relative to the nuclei in the context, the
|
||||||
@ -591,8 +591,8 @@ are be given in atomic units.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgb5b451b" class="outline-3">
|
<div id="outline-container-orgca97b86" class="outline-3">
|
||||||
<h3 id="orgb5b451b"><span class="section-number-3">1.4</span> Test</h3>
|
<h3 id="orgca97b86"><span class="section-number-3">1.4</span> Test</h3>
|
||||||
<div class="outline-text-3" id="text-1-4">
|
<div class="outline-text-3" id="text-1-4">
|
||||||
<div class="org-src-container">
|
<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;
|
<pre class="src src-c"><span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">nucl_charge</span> = chbrclf_charge;
|
||||||
@ -661,8 +661,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2, chbrclf_nucl_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd06fd89" class="outline-2">
|
<div id="outline-container-org9094213" class="outline-2">
|
||||||
<h2 id="orgd06fd89"><span class="section-number-2">2</span> Computation</h2>
|
<h2 id="org9094213"><span class="section-number-2">2</span> Computation</h2>
|
||||||
<div class="outline-text-2" id="text-2">
|
<div class="outline-text-2" id="text-2">
|
||||||
<p>
|
<p>
|
||||||
The computed data is stored in the context so that it can be reused
|
The computed data is stored in the context so that it can be reused
|
||||||
@ -675,12 +675,12 @@ current date is stored.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga3f80ae" class="outline-3">
|
<div id="outline-container-orgcd5390f" class="outline-3">
|
||||||
<h3 id="orga3f80ae"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
<h3 id="orgcd5390f"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||||
<div class="outline-text-3" id="text-2-1">
|
<div class="outline-text-3" id="text-2-1">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org4143879" class="outline-4">
|
<div id="outline-container-org6b13f28" class="outline-4">
|
||||||
<h4 id="org4143879"><span class="section-number-4">2.1.1</span> Get</h4>
|
<h4 id="org6b13f28"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-1">
|
<div class="outline-text-4" id="text-2-1-1">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||||
@ -692,10 +692,10 @@ current date is stored.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgb8c8588" class="outline-4">
|
<div id="outline-container-org5af53b7" class="outline-4">
|
||||||
<h4 id="orgb8c8588"><span class="section-number-4">2.1.2</span> Compute</h4>
|
<h4 id="org5af53b7"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-2">
|
<div class="outline-text-4" id="text-2-1-2">
|
||||||
<table id="org8a33f46" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org0db6249" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -773,8 +773,8 @@ current date is stored.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orge425b45" class="outline-4">
|
<div id="outline-container-orgbd980ac" class="outline-4">
|
||||||
<h4 id="orge425b45"><span class="section-number-4">2.1.3</span> Test</h4>
|
<h4 id="orgbd980ac"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-3">
|
<div class="outline-text-4" id="text-2-1-3">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data</span> */
|
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data</span> */
|
||||||
@ -793,8 +793,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga799f63" class="outline-3">
|
<div id="outline-container-orgee3eb05" class="outline-3">
|
||||||
<h3 id="orga799f63"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
<h3 id="orgee3eb05"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
||||||
<div class="outline-text-3" id="text-2-2">
|
<div class="outline-text-3" id="text-2-2">
|
||||||
<p>
|
<p>
|
||||||
\[
|
\[
|
||||||
@ -803,8 +803,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga652e72" class="outline-4">
|
<div id="outline-container-org37c20fd" class="outline-4">
|
||||||
<h4 id="orga652e72"><span class="section-number-4">2.2.1</span> Get</h4>
|
<h4 id="org37c20fd"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||||
<div class="outline-text-4" id="text-2-2-1">
|
<div class="outline-text-4" id="text-2-2-1">
|
||||||
<div class="org-src-container">
|
<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>);
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_nucleus_repulsion</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">energy</span>);
|
||||||
@ -813,10 +813,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orge494dc3" class="outline-4">
|
<div id="outline-container-orgc9fe3c3" class="outline-4">
|
||||||
<h4 id="orge494dc3"><span class="section-number-4">2.2.2</span> Compute</h4>
|
<h4 id="orgc9fe3c3"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||||
<div class="outline-text-4" id="text-2-2-2">
|
<div class="outline-text-4" id="text-2-2-2">
|
||||||
<table id="org18fa1ec" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org602523f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -906,8 +906,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance, chbrclf_nucl_num*chbrclf_n
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc65579a" class="outline-4">
|
<div id="outline-container-org94ce348" class="outline-4">
|
||||||
<h4 id="orgc65579a"><span class="section-number-4">2.2.3</span> Test</h4>
|
<h4 id="org94ce348"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||||
<div class="outline-text-4" id="text-2-2-3">
|
<div class="outline-text-4" id="text-2-2-3">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data</span> */
|
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data</span> */
|
||||||
@ -927,7 +927,7 @@ rc = qmckl_get_nucleus_repulsion(context, &rep);
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: TREX CoE</p>
|
<p class="author">Author: TREX CoE</p>
|
||||||
<p class="date">Created: 2024-01-09 Tue 07:20</p>
|
<p class="date">Created: 2024-01-11 Thu 13:34</p>
|
||||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-01-09 Tue 07:20 -->
|
<!-- 2024-01-11 Thu 13:34 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>‎</title>
|
<title>‎</title>
|
||||||
@ -345,18 +345,18 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org0af112e">1. Control of the numerical precision</a></li>
|
<li><a href="#orgdd1afba">1. Control of the numerical precision</a></li>
|
||||||
<li><a href="#orgf783026">2. Precision</a></li>
|
<li><a href="#orgeffa65a">2. Precision</a></li>
|
||||||
<li><a href="#org2e77d1b">3. Range</a></li>
|
<li><a href="#org69ec04d">3. Range</a></li>
|
||||||
<li><a href="#org4d49690">4. Helper functions</a>
|
<li><a href="#org0c2bd43">4. Helper functions</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org4984ce5">4.1. Epsilon</a></li>
|
<li><a href="#orgce93842">4.1. Epsilon</a></li>
|
||||||
<li><a href="#org0ceda11">4.2. Testing the number of unchanged bits</a></li>
|
<li><a href="#org9ce56d1">4.2. Testing the number of unchanged bits</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org788f5d9">5. Approximate functions</a>
|
<li><a href="#orga3dc421">5. Approximate functions</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgd7cc8eb">5.1. Exponential</a></li>
|
<li><a href="#orgda329a7">5.1. Exponential</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -366,8 +366,8 @@ for the JavaScript code in this tag.
|
|||||||
3+TITLE: Numerical precision
|
3+TITLE: Numerical precision
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div id="outline-container-org0af112e" class="outline-2">
|
<div id="outline-container-orgdd1afba" class="outline-2">
|
||||||
<h2 id="org0af112e"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
<h2 id="orgdd1afba"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
<p>
|
<p>
|
||||||
Controlling numerical precision enables optimizations. Here, the
|
Controlling numerical precision enables optimizations. Here, the
|
||||||
@ -378,7 +378,7 @@ Arithmetic (IEEE 754),
|
|||||||
sign bit) and <i>range</i> refers to the number of exponent bits.
|
sign bit) and <i>range</i> refers to the number of exponent bits.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table id="orga2f0907" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgd876825" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -422,8 +422,8 @@ integer. The update functions return <code>QMCKL_SUCCESS</code> or
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf783026" class="outline-2">
|
<div id="outline-container-orgeffa65a" class="outline-2">
|
||||||
<h2 id="orgf783026"><span class="section-number-2">2</span> Precision</h2>
|
<h2 id="orgeffa65a"><span class="section-number-2">2</span> Precision</h2>
|
||||||
<div class="outline-text-2" id="text-2">
|
<div class="outline-text-2" id="text-2">
|
||||||
<p>
|
<p>
|
||||||
<code>qmckl_context_set_numprec_precision</code> modifies the parameter for the
|
<code>qmckl_context_set_numprec_precision</code> modifies the parameter for the
|
||||||
@ -510,8 +510,8 @@ numerical precision in the context.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org2e77d1b" class="outline-2">
|
<div id="outline-container-org69ec04d" class="outline-2">
|
||||||
<h2 id="org2e77d1b"><span class="section-number-2">3</span> Range</h2>
|
<h2 id="org69ec04d"><span class="section-number-2">3</span> Range</h2>
|
||||||
<div class="outline-text-2" id="text-3">
|
<div class="outline-text-2" id="text-3">
|
||||||
<p>
|
<p>
|
||||||
<code>qmckl_set_numprec_range</code> modifies the parameter for the numerical
|
<code>qmckl_set_numprec_range</code> modifies the parameter for the numerical
|
||||||
@ -586,12 +586,12 @@ range in a given context.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org4d49690" class="outline-2">
|
<div id="outline-container-org0c2bd43" class="outline-2">
|
||||||
<h2 id="org4d49690"><span class="section-number-2">4</span> Helper functions</h2>
|
<h2 id="org0c2bd43"><span class="section-number-2">4</span> Helper functions</h2>
|
||||||
<div class="outline-text-2" id="text-4">
|
<div class="outline-text-2" id="text-4">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org4984ce5" class="outline-3">
|
<div id="outline-container-orgce93842" class="outline-3">
|
||||||
<h3 id="org4984ce5"><span class="section-number-3">4.1</span> Epsilon</h3>
|
<h3 id="orgce93842"><span class="section-number-3">4.1</span> Epsilon</h3>
|
||||||
<div class="outline-text-3" id="text-4-1">
|
<div class="outline-text-3" id="text-4-1">
|
||||||
<p>
|
<p>
|
||||||
<code>qmckl_get_numprec_epsilon</code> returns \(\epsilon = 2^{1-n}\) where <code>n</code> is the precision.
|
<code>qmckl_get_numprec_epsilon</code> returns \(\epsilon = 2^{1-n}\) where <code>n</code> is the precision.
|
||||||
@ -610,8 +610,8 @@ We need to remove the sign bit from the precision.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org0ceda11" class="outline-3">
|
<div id="outline-container-org9ce56d1" class="outline-3">
|
||||||
<h3 id="org0ceda11"><span class="section-number-3">4.2</span> Testing the number of unchanged bits</h3>
|
<h3 id="org9ce56d1"><span class="section-number-3">4.2</span> Testing the number of unchanged bits</h3>
|
||||||
<div class="outline-text-3" id="text-4-2">
|
<div class="outline-text-3" id="text-4-2">
|
||||||
<p>
|
<p>
|
||||||
To test that a given approximation keeps a given number of bits
|
To test that a given approximation keeps a given number of bits
|
||||||
@ -681,12 +681,12 @@ numbers differ.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org788f5d9" class="outline-2">
|
<div id="outline-container-orga3dc421" class="outline-2">
|
||||||
<h2 id="org788f5d9"><span class="section-number-2">5</span> Approximate functions</h2>
|
<h2 id="orga3dc421"><span class="section-number-2">5</span> Approximate functions</h2>
|
||||||
<div class="outline-text-2" id="text-5">
|
<div class="outline-text-2" id="text-5">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgd7cc8eb" class="outline-3">
|
<div id="outline-container-orgda329a7" class="outline-3">
|
||||||
<h3 id="orgd7cc8eb"><span class="section-number-3">5.1</span> Exponential</h3>
|
<h3 id="orgda329a7"><span class="section-number-3">5.1</span> Exponential</h3>
|
||||||
<div class="outline-text-3" id="text-5-1">
|
<div class="outline-text-3" id="text-5-1">
|
||||||
<p>
|
<p>
|
||||||
Fast exponential function, adapted from Johan Rade's implementation
|
Fast exponential function, adapted from Johan Rade's implementation
|
||||||
@ -741,7 +741,7 @@ N. Schraudolph, "A Fast, Compact Approximation of the Exponential Function",
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: TREX CoE</p>
|
<p class="author">Author: TREX CoE</p>
|
||||||
<p class="date">Created: 2024-01-09 Tue 07:20</p>
|
<p class="date">Created: 2024-01-11 Thu 13:34</p>
|
||||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-01-09 Tue 07:20 -->
|
<!-- 2024-01-11 Thu 13:34 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Point</title>
|
<title>Point</title>
|
||||||
@ -346,25 +346,25 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org960c05e">1. Context</a>
|
<li><a href="#orgc80afc9">1. Context</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org5ec145b">1.1. Data structure</a></li>
|
<li><a href="#orgd49e5a0">1.1. Data structure</a></li>
|
||||||
<li><a href="#org081e736">1.2. Access functions</a>
|
<li><a href="#orge275583">1.2. Access functions</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org5364916">1.2.1. Number of points</a></li>
|
<li><a href="#orgcb4a228">1.2.1. Number of points</a></li>
|
||||||
<li><a href="#org1020d99">1.2.2. Point coordinates</a></li>
|
<li><a href="#org49130fa">1.2.2. Point coordinates</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgca4460f">1.3. Initialization functions</a></li>
|
<li><a href="#org0640f90">1.3. Initialization functions</a></li>
|
||||||
<li><a href="#org0fd9f0c">1.4. Test</a></li>
|
<li><a href="#orgc23e767">1.4. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org960c05e" class="outline-2">
|
<div id="outline-container-orgc80afc9" class="outline-2">
|
||||||
<h2 id="org960c05e"><span class="section-number-2">1</span> Context</h2>
|
<h2 id="orgc80afc9"><span class="section-number-2">1</span> Context</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
<p>
|
<p>
|
||||||
The following data stored in the context:
|
The following data stored in the context:
|
||||||
@ -414,8 +414,8 @@ corresponds to the 3 × <code>num</code> matrix.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org5ec145b" class="outline-3">
|
<div id="outline-container-orgd49e5a0" class="outline-3">
|
||||||
<h3 id="org5ec145b"><span class="section-number-3">1.1</span> Data structure</h3>
|
<h3 id="orgd49e5a0"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||||
<div class="outline-text-3" id="text-1-1">
|
<div class="outline-text-3" id="text-1-1">
|
||||||
<div class="org-src-container">
|
<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> {
|
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_point_struct</span> {
|
||||||
@ -451,8 +451,8 @@ corresponds to the 3 × <code>num</code> matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org081e736" class="outline-3">
|
<div id="outline-container-orge275583" class="outline-3">
|
||||||
<h3 id="org081e736"><span class="section-number-3">1.2</span> Access functions</h3>
|
<h3 id="orge275583"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||||
<div class="outline-text-3" id="text-1-2">
|
<div class="outline-text-3" id="text-1-2">
|
||||||
<p>
|
<p>
|
||||||
Access functions return <code>QMCKL_SUCCESS</code> when the data has been
|
Access functions return <code>QMCKL_SUCCESS</code> when the data has been
|
||||||
@ -463,8 +463,8 @@ contains the requested data. Otherwise, this variable is untouched.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org5364916" class="outline-4">
|
<div id="outline-container-orgcb4a228" class="outline-4">
|
||||||
<h4 id="org5364916"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
<h4 id="orgcb4a228"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
||||||
<div class="outline-text-4" id="text-1-2-1">
|
<div class="outline-text-4" id="text-1-2-1">
|
||||||
<p>
|
<p>
|
||||||
Returns the number of points stored in the context.
|
Returns the number of points stored in the context.
|
||||||
@ -486,8 +486,8 @@ Returns the number of points stored in the context.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org1020d99" class="outline-4">
|
<div id="outline-container-org49130fa" class="outline-4">
|
||||||
<h4 id="org1020d99"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
<h4 id="org49130fa"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
||||||
<div class="outline-text-4" id="text-1-2-2">
|
<div class="outline-text-4" id="text-1-2-2">
|
||||||
<p>
|
<p>
|
||||||
Returns the point coordinates as sequences of (x,y,z).
|
Returns the point coordinates as sequences of (x,y,z).
|
||||||
@ -515,8 +515,8 @@ The pointer is assumed to point on a memory block of size
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-orgca4460f" class="outline-3">
|
<div id="outline-container-org0640f90" class="outline-3">
|
||||||
<h3 id="orgca4460f"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
<h3 id="org0640f90"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||||
<div class="outline-text-3" id="text-1-3">
|
<div class="outline-text-3" id="text-1-3">
|
||||||
<p>
|
<p>
|
||||||
When the data is set in the context, if the arrays are large
|
When the data is set in the context, if the arrays are large
|
||||||
@ -655,8 +655,8 @@ Copy a sequence of <code>num</code> points \((x,y,z)\) into the context.
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-org0fd9f0c" class="outline-3">
|
<div id="outline-container-orgc23e767" class="outline-3">
|
||||||
<h3 id="org0fd9f0c"><span class="section-number-3">1.4</span> Test</h3>
|
<h3 id="orgc23e767"><span class="section-number-3">1.4</span> Test</h3>
|
||||||
<div class="outline-text-3" id="text-1-4">
|
<div class="outline-text-3" id="text-1-4">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data</span> */
|
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data</span> */
|
||||||
@ -715,7 +715,7 @@ rc = qmckl_get_point (context, <span style="color: #8b2252;">'N'</span>, coord3,
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: TREX CoE</p>
|
<p class="author">Author: TREX CoE</p>
|
||||||
<p class="date">Created: 2024-01-09 Tue 07:20</p>
|
<p class="date">Created: 2024-01-11 Thu 13:34</p>
|
||||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-01-09 Tue 07:20 -->
|
<!-- 2024-01-11 Thu 13:34 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Sherman-Morrison-Woodbury</title>
|
<title>Sherman-Morrison-Woodbury</title>
|
||||||
@ -346,118 +346,118 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgc6e46f5">1. Headers</a></li>
|
<li><a href="#org3068025">1. Headers</a></li>
|
||||||
<li><a href="#org9aeb01c">2. Naïve Sherman-Morrison</a>
|
<li><a href="#orgb704605">2. Naïve Sherman-Morrison</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orge607e86">2.1. <code>qmckl_sm_naive</code></a>
|
<li><a href="#orgc7db8c4">2.1. <code>qmckl_sm_naive</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org709c90f">2.1.1. Introduction</a></li>
|
<li><a href="#org92468cb">2.1.1. Introduction</a></li>
|
||||||
<li><a href="#org432247f">2.1.2. API</a></li>
|
<li><a href="#orgf6c1f4e">2.1.2. API</a></li>
|
||||||
<li><a href="#org4410d21">2.1.3. Requirements</a></li>
|
<li><a href="#org7ebeafe">2.1.3. Requirements</a></li>
|
||||||
<li><a href="#org1ed3f85">2.1.4. Pedagogical kernel source (in Fortran)</a>
|
<li><a href="#orgff3123d">2.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgccdc8c2">2.1.4.1. C interface (not directly exposed)</a></li>
|
<li><a href="#orgcde210b">2.1.4.1. C interface (not directly exposed)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgd5a0981">2.1.5. C headers (exposed in qmckl.h)</a></li>
|
<li><a href="#org31a23ef">2.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||||
<li><a href="#orgd5c8d77">2.1.6. C sources</a></li>
|
<li><a href="#orgdb6adb9">2.1.6. C sources</a></li>
|
||||||
<li><a href="#org008f1e4">2.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
<li><a href="#org52b210a">2.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||||
<li><a href="#org280a353">2.1.8. Performance</a></li>
|
<li><a href="#orga339361">2.1.8. Performance</a></li>
|
||||||
<li><a href="#org679d7d3">2.1.9. Tests</a></li>
|
<li><a href="#orgbd710be">2.1.9. Tests</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org66e819b">3. Sherman-Morrison with Slagel Splitting (core)</a>
|
<li><a href="#org0ad72ed">3. Sherman-Morrison with Slagel Splitting (core)</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org3145b90">3.1. <code>qmckl_sm_splitting_core</code></a>
|
<li><a href="#orgf5c9400">3.1. <code>qmckl_sm_splitting_core</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgaaa37f0">3.1.1. Introduction</a></li>
|
<li><a href="#org0aee0ee">3.1.1. Introduction</a></li>
|
||||||
<li><a href="#orgac836f2">3.1.2. API</a></li>
|
<li><a href="#orgf14c59f">3.1.2. API</a></li>
|
||||||
<li><a href="#orga630fdc">3.1.3. Requirements</a></li>
|
<li><a href="#org2fb77e4">3.1.3. Requirements</a></li>
|
||||||
<li><a href="#orge5b131b">3.1.4. Pedagogical kernel source (in Fortran)</a>
|
<li><a href="#org2f14f8e">3.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org42dbe50">3.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
<li><a href="#orgb21b299">3.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org245cce6">3.1.5. C headers (exposed in qmckl.h)</a></li>
|
<li><a href="#orgd1645c5">3.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||||
<li><a href="#org68c207d">3.1.6. C sources</a></li>
|
<li><a href="#org6707c2a">3.1.6. C sources</a></li>
|
||||||
<li><a href="#orgdcab0cf">3.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
<li><a href="#orga3db302">3.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||||
<li><a href="#org2901a0a">3.1.8. Performance</a></li>
|
<li><a href="#org827aa5a">3.1.8. Performance</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgce22a6a">4. Woodbury 2x2</a>
|
<li><a href="#org62d5eef">4. Woodbury 2x2</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org030a1b3">4.1. <code>qmckl_woodbury_2x2</code></a>
|
<li><a href="#org8d41b32">4.1. <code>qmckl_woodbury_2x2</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgd58cc16">4.1.1. Introduction</a></li>
|
<li><a href="#org8a45e9b">4.1.1. Introduction</a></li>
|
||||||
<li><a href="#orge8d9fb1">4.1.2. API</a></li>
|
<li><a href="#org43cd79b">4.1.2. API</a></li>
|
||||||
<li><a href="#orgade39bd">4.1.3. Requirements</a></li>
|
<li><a href="#orged1e3f8">4.1.3. Requirements</a></li>
|
||||||
<li><a href="#orgfe6bf97">4.1.4. Pedagogical kernel source (in Fortran)</a>
|
<li><a href="#orgb531058">4.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgcf03f2f">4.1.4.1. C interface (not directly exposed)</a></li>
|
<li><a href="#org27a2822">4.1.4.1. C interface (not directly exposed)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orga05866f">4.1.5. C headers (exposed in qmckl.h)</a></li>
|
<li><a href="#orgbfe6d82">4.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||||
<li><a href="#orgba336fe">4.1.6. C sources</a></li>
|
<li><a href="#orgc5d1c91">4.1.6. C sources</a></li>
|
||||||
<li><a href="#org4e8479b">4.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
<li><a href="#org2a5fe4c">4.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||||
<li><a href="#org162f059">4.1.8. Performance</a></li>
|
<li><a href="#orgc2ff480">4.1.8. Performance</a></li>
|
||||||
<li><a href="#orgb52be07">4.1.9. Tests</a></li>
|
<li><a href="#orgbb11ec2">4.1.9. Tests</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org03b3087">5. Woodbury 3x3</a>
|
<li><a href="#orgf9f3ce4">5. Woodbury 3x3</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org19d5f1f">5.1. <code>qmckl_woodbury_3x3</code></a>
|
<li><a href="#orga2b9485">5.1. <code>qmckl_woodbury_3x3</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgb928790">5.1.1. Introduction</a></li>
|
<li><a href="#org4e14272">5.1.1. Introduction</a></li>
|
||||||
<li><a href="#orgac5390d">5.1.2. API</a></li>
|
<li><a href="#org9668fda">5.1.2. API</a></li>
|
||||||
<li><a href="#orgd670c86">5.1.3. Requirements</a></li>
|
<li><a href="#org7978008">5.1.3. Requirements</a></li>
|
||||||
<li><a href="#orgdbd0139">5.1.4. Pedagogical kernel source (in Fortran)</a>
|
<li><a href="#org6ff14a6">5.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org91fb00c">5.1.4.1. C interface (not directly exposed)</a></li>
|
<li><a href="#org49f1c56">5.1.4.1. C interface (not directly exposed)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orge7a0ba3">5.1.5. C headers (exposed in qmckl.h)</a></li>
|
<li><a href="#orgdf04fd1">5.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||||
<li><a href="#org0651076">5.1.6. C sources</a></li>
|
<li><a href="#org9ef3612">5.1.6. C sources</a></li>
|
||||||
<li><a href="#org5f72441">5.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
<li><a href="#org9b79434">5.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||||
<li><a href="#org4668176">5.1.8. Performance</a></li>
|
<li><a href="#org27e0c3f">5.1.8. Performance</a></li>
|
||||||
<li><a href="#orgddab051">5.1.9. Tests</a></li>
|
<li><a href="#orgbb2436a">5.1.9. Tests</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgd42e663">6. Sherman-Morrison with Slagel Splitting</a>
|
<li><a href="#org763f61f">6. Sherman-Morrison with Slagel Splitting</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgfff2266">6.1. <code>qmckl_sm_splitting</code></a>
|
<li><a href="#org33b3d88">6.1. <code>qmckl_sm_splitting</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org12516ca">6.1.1. Introduction</a></li>
|
<li><a href="#org22ea80c">6.1.1. Introduction</a></li>
|
||||||
<li><a href="#org67a4578">6.1.2. API</a></li>
|
<li><a href="#orgbc86feb">6.1.2. API</a></li>
|
||||||
<li><a href="#org358d3a9">6.1.3. Requirements</a></li>
|
<li><a href="#org591c1a7">6.1.3. Requirements</a></li>
|
||||||
<li><a href="#orgf7dd741">6.1.4. Pedagogical kernel source (in Fortran)</a>
|
<li><a href="#org73338a3">6.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org75b7357">6.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
<li><a href="#orgbee1082">6.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org363817e">6.1.5. C headers (exposed in qmckl.h)</a></li>
|
<li><a href="#org447e437">6.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||||
<li><a href="#orgbfc148f">6.1.6. C source</a></li>
|
<li><a href="#org18e5381">6.1.6. C source</a></li>
|
||||||
<li><a href="#org8d11b71">6.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
<li><a href="#org44d0d14">6.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||||
<li><a href="#org4f9cc81">6.1.8. Performance…</a></li>
|
<li><a href="#org4981af5">6.1.8. Performance…</a></li>
|
||||||
<li><a href="#orgcc5073c">6.1.9. Test</a></li>
|
<li><a href="#org20d083d">6.1.9. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgc08599f">7. End of files</a></li>
|
<li><a href="#orgc0bf504">7. End of files</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc6e46f5" class="outline-2">
|
<div id="outline-container-org3068025" class="outline-2">
|
||||||
<h2 id="orgc6e46f5"><span class="section-number-2">1</span> Headers</h2>
|
<h2 id="org3068025"><span class="section-number-2">1</span> Headers</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;">"qmckl.h"</span>
|
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;">"qmckl.h"</span>
|
||||||
@ -479,17 +479,17 @@ This is the range that determines the how many high performance kernel instantce
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org9aeb01c" class="outline-2">
|
<div id="outline-container-orgb704605" class="outline-2">
|
||||||
<h2 id="org9aeb01c"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
<h2 id="orgb704605"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
||||||
<div class="outline-text-2" id="text-2">
|
<div class="outline-text-2" id="text-2">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orge607e86" class="outline-3">
|
<div id="outline-container-orgc7db8c4" class="outline-3">
|
||||||
<h3 id="orge607e86"><span class="section-number-3">2.1</span> <code>qmckl_sm_naive</code></h3>
|
<h3 id="orgc7db8c4"><span class="section-number-3">2.1</span> <code>qmckl_sm_naive</code></h3>
|
||||||
<div class="outline-text-3" id="text-2-1">
|
<div class="outline-text-3" id="text-2-1">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org709c90f" class="outline-4">
|
<div id="outline-container-org92468cb" class="outline-4">
|
||||||
<h4 id="org709c90f"><span class="section-number-4">2.1.1</span> Introduction</h4>
|
<h4 id="org92468cb"><span class="section-number-4">2.1.1</span> Introduction</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-1">
|
<div class="outline-text-4" id="text-2-1-1">
|
||||||
<p>
|
<p>
|
||||||
This is the simplest of the available Sherman-Morrison-Woodbury kernels. It applies rank-1 updates one by one in
|
This is the simplest of the available Sherman-Morrison-Woodbury kernels. It applies rank-1 updates one by one in
|
||||||
@ -539,10 +539,10 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org432247f" class="outline-4">
|
<div id="outline-container-orgf6c1f4e" class="outline-4">
|
||||||
<h4 id="org432247f"><span class="section-number-4">2.1.2</span> API</h4>
|
<h4 id="orgf6c1f4e"><span class="section-number-4">2.1.2</span> API</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-2">
|
<div class="outline-text-4" id="text-2-1-2">
|
||||||
<table id="orgacc264c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org4f6b05b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -630,8 +630,8 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org4410d21" class="outline-4">
|
<div id="outline-container-org7ebeafe" class="outline-4">
|
||||||
<h4 id="org4410d21"><span class="section-number-4">2.1.3</span> Requirements</h4>
|
<h4 id="org7ebeafe"><span class="section-number-4">2.1.3</span> Requirements</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-3">
|
<div class="outline-text-4" id="text-2-1-3">
|
||||||
<ul class="org-ul">
|
<ul class="org-ul">
|
||||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||||
@ -647,8 +647,8 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org1ed3f85" class="outline-4">
|
<div id="outline-container-orgff3123d" class="outline-4">
|
||||||
<h4 id="org1ed3f85"><span class="section-number-4">2.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
<h4 id="orgff3123d"><span class="section-number-4">2.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-4">
|
<div class="outline-text-4" id="text-2-1-4">
|
||||||
<p>
|
<p>
|
||||||
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
||||||
@ -742,8 +742,8 @@ not be used in real workloads.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgccdc8c2" class="outline-5">
|
<div id="outline-container-orgcde210b" class="outline-5">
|
||||||
<h5 id="orgccdc8c2"><span class="section-number-5">2.1.4.1</span> C interface (not directly exposed)</h5>
|
<h5 id="orgcde210b"><span class="section-number-5">2.1.4.1</span> C interface (not directly exposed)</h5>
|
||||||
<div class="outline-text-5" id="text-2-1-4-1">
|
<div class="outline-text-5" id="text-2-1-4-1">
|
||||||
<p>
|
<p>
|
||||||
The following Fortran function <code>qmckl_sm_naive_doc</code> makes sure
|
The following Fortran function <code>qmckl_sm_naive_doc</code> makes sure
|
||||||
@ -755,8 +755,8 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd5a0981" class="outline-4">
|
<div id="outline-container-org31a23ef" class="outline-4">
|
||||||
<h4 id="orgd5a0981"><span class="section-number-4">2.1.5</span> C headers (exposed in qmckl.h)</h4>
|
<h4 id="org31a23ef"><span class="section-number-4">2.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-5">
|
<div class="outline-text-4" id="text-2-1-5">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_naive</span> (
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_naive</span> (
|
||||||
@ -802,8 +802,8 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd5c8d77" class="outline-4">
|
<div id="outline-container-orgdb6adb9" class="outline-4">
|
||||||
<h4 id="orgd5c8d77"><span class="section-number-4">2.1.6</span> C sources</h4>
|
<h4 id="orgdb6adb9"><span class="section-number-4">2.1.6</span> C sources</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-6">
|
<div class="outline-text-4" id="text-2-1-6">
|
||||||
<p>
|
<p>
|
||||||
Common includes and macros used by all the Sherman-Morrison-Woodbury kernels.
|
Common includes and macros used by all the Sherman-Morrison-Woodbury kernels.
|
||||||
@ -905,7 +905,7 @@ multiple of <code>SIMD_LENGTH</code>.
|
|||||||
<code>qmckl_exit_code qmckl_sm_naive_{Dim}</code> is a C function-template that is used to genereate instances of C fucntions based on the range given above. The advantage of this method is that for each of these instances all the dimensions and loop-bounds are known at compile time, allowing the compiler to optimize more aggressively.
|
<code>qmckl_exit_code qmckl_sm_naive_{Dim}</code> is a C function-template that is used to genereate instances of C fucntions based on the range given above. The advantage of this method is that for each of these instances all the dimensions and loop-bounds are known at compile time, allowing the compiler to optimize more aggressively.
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c" id="org48672bf"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_sm_naive_</span>{Dim}(
|
<pre class="src src-c" id="org24d9f9e"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_sm_naive_</span>{Dim}(
|
||||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span> <span style="color: #a0522d;">N_updates</span>,
|
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span> <span style="color: #a0522d;">N_updates</span>,
|
||||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
||||||
@ -981,7 +981,7 @@ multiple of <code>SIMD_LENGTH</code>.
|
|||||||
This is the kernel generator written in Python. It uses the kernel generator range and templates defined above to generate the C kernel instances.
|
This is the kernel generator written in Python. It uses the kernel generator range and templates defined above to generate the C kernel instances.
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python" id="orgece40bd"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
<pre class="src src-python" id="org9646920"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||||
<span style="color: #8b2252;">static inline qmckl_exit_code qmckl_sm_naive_{Dim}(</span>
|
<span style="color: #8b2252;">static inline qmckl_exit_code qmckl_sm_naive_{Dim}(</span>
|
||||||
<span style="color: #8b2252;"> const qmckl_context context,</span>
|
<span style="color: #8b2252;"> const qmckl_context context,</span>
|
||||||
<span style="color: #8b2252;"> const uint64_t N_updates,</span>
|
<span style="color: #8b2252;"> const uint64_t N_updates,</span>
|
||||||
@ -1065,7 +1065,7 @@ This is the kernel generator written in Python. It uses the kernel generator ran
|
|||||||
Python script that generated C switch cases that call individual kernel instances.
|
Python script that generated C switch cases that call individual kernel instances.
|
||||||
</p>
|
</p>
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python" id="org1c92a5d"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
<pre class="src src-python" id="orgdb3b01f"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||||
<span style="color: #8b2252;">case {Dim}: </span>
|
<span style="color: #8b2252;">case {Dim}: </span>
|
||||||
<span style="color: #8b2252;"> return qmckl_sm_naive_{Dim}(context,</span>
|
<span style="color: #8b2252;"> return qmckl_sm_naive_{Dim}(context,</span>
|
||||||
<span style="color: #8b2252;"> N_updates,</span>
|
<span style="color: #8b2252;"> N_updates,</span>
|
||||||
@ -2705,14 +2705,14 @@ Python script that generated C switch cases that call individual kernel instance
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org008f1e4" class="outline-4">
|
<div id="outline-container-org52b210a" class="outline-4">
|
||||||
<h4 id="org008f1e4"><span class="section-number-4">2.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
<h4 id="org52b210a"><span class="section-number-4">2.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-7">
|
<div class="outline-text-4" id="text-2-1-7">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org280a353" class="outline-4">
|
<div id="outline-container-orga339361" class="outline-4">
|
||||||
<h4 id="org280a353"><span class="section-number-4">2.1.8</span> Performance</h4>
|
<h4 id="orga339361"><span class="section-number-4">2.1.8</span> Performance</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-8">
|
<div class="outline-text-4" id="text-2-1-8">
|
||||||
<p>
|
<p>
|
||||||
This function performs best when there is only 1 rank-1 update in the update cycle. It is
|
This function performs best when there is only 1 rank-1 update in the update cycle. It is
|
||||||
@ -2721,8 +2721,8 @@ can never resolve a situation where applying the update causes singular behaviou
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org679d7d3" class="outline-4">
|
<div id="outline-container-orgbd710be" class="outline-4">
|
||||||
<h4 id="org679d7d3"><span class="section-number-4">2.1.9</span> Tests</h4>
|
<h4 id="orgbd710be"><span class="section-number-4">2.1.9</span> Tests</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-9">
|
<div class="outline-text-4" id="text-2-1-9">
|
||||||
<p>
|
<p>
|
||||||
The tests for the kernels are executed on datasets that are extracted from a run of
|
The tests for the kernels are executed on datasets that are extracted from a run of
|
||||||
@ -2790,17 +2790,17 @@ rc = QMCKL_SUCCESS;
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-org66e819b" class="outline-2">
|
<div id="outline-container-org0ad72ed" class="outline-2">
|
||||||
<h2 id="org66e819b"><span class="section-number-2">3</span> Sherman-Morrison with Slagel Splitting (core)</h2>
|
<h2 id="org0ad72ed"><span class="section-number-2">3</span> Sherman-Morrison with Slagel Splitting (core)</h2>
|
||||||
<div class="outline-text-2" id="text-3">
|
<div class="outline-text-2" id="text-3">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org3145b90" class="outline-3">
|
<div id="outline-container-orgf5c9400" class="outline-3">
|
||||||
<h3 id="org3145b90"><span class="section-number-3">3.1</span> <code>qmckl_sm_splitting_core</code></h3>
|
<h3 id="orgf5c9400"><span class="section-number-3">3.1</span> <code>qmckl_sm_splitting_core</code></h3>
|
||||||
<div class="outline-text-3" id="text-3-1">
|
<div class="outline-text-3" id="text-3-1">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgaaa37f0" class="outline-4">
|
<div id="outline-container-org0aee0ee" class="outline-4">
|
||||||
<h4 id="orgaaa37f0"><span class="section-number-4">3.1.1</span> Introduction</h4>
|
<h4 id="org0aee0ee"><span class="section-number-4">3.1.1</span> Introduction</h4>
|
||||||
<div class="outline-text-4" id="text-3-1-1">
|
<div class="outline-text-4" id="text-3-1-1">
|
||||||
<p>
|
<p>
|
||||||
<code>qmckl_sm_splitting_core</code> is the inner core part of 'Sherman-Morrison with update splitting' in the next section.
|
<code>qmckl_sm_splitting_core</code> is the inner core part of 'Sherman-Morrison with update splitting' in the next section.
|
||||||
@ -2828,10 +2828,10 @@ If the determinant is passed it will only be partially updated if there were any
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgac836f2" class="outline-4">
|
<div id="outline-container-orgf14c59f" class="outline-4">
|
||||||
<h4 id="orgac836f2"><span class="section-number-4">3.1.2</span> API</h4>
|
<h4 id="orgf14c59f"><span class="section-number-4">3.1.2</span> API</h4>
|
||||||
<div class="outline-text-4" id="text-3-1-2">
|
<div class="outline-text-4" id="text-3-1-2">
|
||||||
<table id="orgc221050" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgfb92bec" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -2940,8 +2940,8 @@ If the determinant is passed it will only be partially updated if there were any
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga630fdc" class="outline-4">
|
<div id="outline-container-org2fb77e4" class="outline-4">
|
||||||
<h4 id="orga630fdc"><span class="section-number-4">3.1.3</span> Requirements</h4>
|
<h4 id="org2fb77e4"><span class="section-number-4">3.1.3</span> Requirements</h4>
|
||||||
<div class="outline-text-4" id="text-3-1-3">
|
<div class="outline-text-4" id="text-3-1-3">
|
||||||
<ul class="org-ul">
|
<ul class="org-ul">
|
||||||
<li><code>LDS >= 2</code></li>
|
<li><code>LDS >= 2</code></li>
|
||||||
@ -2958,8 +2958,8 @@ If the determinant is passed it will only be partially updated if there were any
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orge5b131b" class="outline-4">
|
<div id="outline-container-org2f14f8e" class="outline-4">
|
||||||
<h4 id="orge5b131b"><span class="section-number-4">3.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
<h4 id="org2f14f8e"><span class="section-number-4">3.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||||
<div class="outline-text-4" id="text-3-1-4">
|
<div class="outline-text-4" id="text-3-1-4">
|
||||||
<p>
|
<p>
|
||||||
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
||||||
@ -3075,8 +3075,8 @@ not be used in real workloads.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org42dbe50" class="outline-5">
|
<div id="outline-container-orgb21b299" class="outline-5">
|
||||||
<h5 id="org42dbe50"><span class="section-number-5">3.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
<h5 id="orgb21b299"><span class="section-number-5">3.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||||
<div class="outline-text-5" id="text-3-1-4-1">
|
<div class="outline-text-5" id="text-3-1-4-1">
|
||||||
<p>
|
<p>
|
||||||
The function <code>qmckl_sm_splitting_core_doc</code> makes sure that
|
The function <code>qmckl_sm_splitting_core_doc</code> makes sure that
|
||||||
@ -3089,8 +3089,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org245cce6" class="outline-4">
|
<div id="outline-container-orgd1645c5" class="outline-4">
|
||||||
<h4 id="org245cce6"><span class="section-number-4">3.1.5</span> C headers (exposed in qmckl.h)</h4>
|
<h4 id="orgd1645c5"><span class="section-number-4">3.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||||
<div class="outline-text-4" id="text-3-1-5">
|
<div class="outline-text-4" id="text-3-1-5">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_splitting_core</span> (
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_splitting_core</span> (
|
||||||
@ -3145,8 +3145,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org68c207d" class="outline-4">
|
<div id="outline-container-org6707c2a" class="outline-4">
|
||||||
<h4 id="org68c207d"><span class="section-number-4">3.1.6</span> C sources</h4>
|
<h4 id="org6707c2a"><span class="section-number-4">3.1.6</span> C sources</h4>
|
||||||
<div class="outline-text-4" id="text-3-1-6">
|
<div class="outline-text-4" id="text-3-1-6">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_splitting_core_hpc</span>(
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_splitting_core_hpc</span>(
|
||||||
@ -3235,7 +3235,7 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c" id="orgbda1313"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_sm_splitting_core_</span>{Dim}(
|
<pre class="src src-c" id="orgb3b14fe"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_sm_splitting_core_</span>{Dim}(
|
||||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||||
<span style="color: #228b22;">uint64_t</span> <span style="color: #a0522d;">N_updates</span>,
|
<span style="color: #228b22;">uint64_t</span> <span style="color: #a0522d;">N_updates</span>,
|
||||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
||||||
@ -3319,7 +3319,7 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python" id="org7a902fe"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
<pre class="src src-python" id="orga2fd9c1"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||||
<span style="color: #8b2252;">static inline qmckl_exit_code qmckl_sm_splitting_core_{Dim}(</span>
|
<span style="color: #8b2252;">static inline qmckl_exit_code qmckl_sm_splitting_core_{Dim}(</span>
|
||||||
<span style="color: #8b2252;"> const qmckl_context context,</span>
|
<span style="color: #8b2252;"> const qmckl_context context,</span>
|
||||||
<span style="color: #8b2252;"> uint64_t N_updates,</span>
|
<span style="color: #8b2252;"> uint64_t N_updates,</span>
|
||||||
@ -3411,7 +3411,7 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python" id="org927bcdc"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
<pre class="src src-python" id="org97dba9a"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||||
<span style="color: #8b2252;">case {Dim}: {</span>
|
<span style="color: #8b2252;">case {Dim}: {</span>
|
||||||
<span style="color: #8b2252;"> return qmckl_sm_splitting_core_{Dim}(</span>
|
<span style="color: #8b2252;"> return qmckl_sm_splitting_core_{Dim}(</span>
|
||||||
<span style="color: #8b2252;"> context,</span>
|
<span style="color: #8b2252;"> context,</span>
|
||||||
@ -5379,14 +5379,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgdcab0cf" class="outline-4">
|
<div id="outline-container-orga3db302" class="outline-4">
|
||||||
<h4 id="orgdcab0cf"><span class="section-number-4">3.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
<h4 id="orga3db302"><span class="section-number-4">3.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||||
<div class="outline-text-4" id="text-3-1-7">
|
<div class="outline-text-4" id="text-3-1-7">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org2901a0a" class="outline-4">
|
<div id="outline-container-org827aa5a" class="outline-4">
|
||||||
<h4 id="org2901a0a"><span class="section-number-4">3.1.8</span> Performance</h4>
|
<h4 id="org827aa5a"><span class="section-number-4">3.1.8</span> Performance</h4>
|
||||||
<div class="outline-text-4" id="text-3-1-8">
|
<div class="outline-text-4" id="text-3-1-8">
|
||||||
<p>
|
<p>
|
||||||
This function cannot be used by itself and is used in Sherman-Morrison with update splitting and Woodbury 3x3 and 2x2
|
This function cannot be used by itself and is used in Sherman-Morrison with update splitting and Woodbury 3x3 and 2x2
|
||||||
@ -5398,17 +5398,17 @@ with Sherman-Morrison and update splitting. Please look at the performance recco
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-orgce22a6a" class="outline-2">
|
<div id="outline-container-org62d5eef" class="outline-2">
|
||||||
<h2 id="orgce22a6a"><span class="section-number-2">4</span> Woodbury 2x2</h2>
|
<h2 id="org62d5eef"><span class="section-number-2">4</span> Woodbury 2x2</h2>
|
||||||
<div class="outline-text-2" id="text-4">
|
<div class="outline-text-2" id="text-4">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org030a1b3" class="outline-3">
|
<div id="outline-container-org8d41b32" class="outline-3">
|
||||||
<h3 id="org030a1b3"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_2x2</code></h3>
|
<h3 id="org8d41b32"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_2x2</code></h3>
|
||||||
<div class="outline-text-3" id="text-4-1">
|
<div class="outline-text-3" id="text-4-1">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd58cc16" class="outline-4">
|
<div id="outline-container-org8a45e9b" class="outline-4">
|
||||||
<h4 id="orgd58cc16"><span class="section-number-4">4.1.1</span> Introduction</h4>
|
<h4 id="org8a45e9b"><span class="section-number-4">4.1.1</span> Introduction</h4>
|
||||||
<div class="outline-text-4" id="text-4-1-1">
|
<div class="outline-text-4" id="text-4-1-1">
|
||||||
<p>
|
<p>
|
||||||
The Woodbury 2x2 kernel. It is used to apply two rank-1 updates at once. The formula used in
|
The Woodbury 2x2 kernel. It is used to apply two rank-1 updates at once. The formula used in
|
||||||
@ -5432,10 +5432,10 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orge8d9fb1" class="outline-4">
|
<div id="outline-container-org43cd79b" class="outline-4">
|
||||||
<h4 id="orge8d9fb1"><span class="section-number-4">4.1.2</span> API</h4>
|
<h4 id="org43cd79b"><span class="section-number-4">4.1.2</span> API</h4>
|
||||||
<div class="outline-text-4" id="text-4-1-2">
|
<div class="outline-text-4" id="text-4-1-2">
|
||||||
<table id="orgc079004" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgc658030" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -5516,8 +5516,8 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgade39bd" class="outline-4">
|
<div id="outline-container-orged1e3f8" class="outline-4">
|
||||||
<h4 id="orgade39bd"><span class="section-number-4">4.1.3</span> Requirements</h4>
|
<h4 id="orged1e3f8"><span class="section-number-4">4.1.3</span> Requirements</h4>
|
||||||
<div class="outline-text-4" id="text-4-1-3">
|
<div class="outline-text-4" id="text-4-1-3">
|
||||||
<ul class="org-ul">
|
<ul class="org-ul">
|
||||||
<li><code>context</code> is not <code>qmckl_null_context</code></li>
|
<li><code>context</code> is not <code>qmckl_null_context</code></li>
|
||||||
@ -5531,8 +5531,8 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgfe6bf97" class="outline-4">
|
<div id="outline-container-orgb531058" class="outline-4">
|
||||||
<h4 id="orgfe6bf97"><span class="section-number-4">4.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
<h4 id="orgb531058"><span class="section-number-4">4.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||||
<div class="outline-text-4" id="text-4-1-4">
|
<div class="outline-text-4" id="text-4-1-4">
|
||||||
<p>
|
<p>
|
||||||
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
||||||
@ -5668,8 +5668,8 @@ not be used in real workloads.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgcf03f2f" class="outline-5">
|
<div id="outline-container-org27a2822" class="outline-5">
|
||||||
<h5 id="orgcf03f2f"><span class="section-number-5">4.1.4.1</span> C interface (not directly exposed)</h5>
|
<h5 id="org27a2822"><span class="section-number-5">4.1.4.1</span> C interface (not directly exposed)</h5>
|
||||||
<div class="outline-text-5" id="text-4-1-4-1">
|
<div class="outline-text-5" id="text-4-1-4-1">
|
||||||
<p>
|
<p>
|
||||||
The function <code>qmckl_sm_splitting_core_doc</code> makes sure that
|
The function <code>qmckl_sm_splitting_core_doc</code> makes sure that
|
||||||
@ -5682,8 +5682,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga05866f" class="outline-4">
|
<div id="outline-container-orgbfe6d82" class="outline-4">
|
||||||
<h4 id="orga05866f"><span class="section-number-4">4.1.5</span> C headers (exposed in qmckl.h)</h4>
|
<h4 id="orgbfe6d82"><span class="section-number-4">4.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||||
<div class="outline-text-4" id="text-4-1-5">
|
<div class="outline-text-4" id="text-4-1-5">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_2x2</span> (
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_2x2</span> (
|
||||||
@ -5726,8 +5726,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgba336fe" class="outline-4">
|
<div id="outline-container-orgc5d1c91" class="outline-4">
|
||||||
<h4 id="orgba336fe"><span class="section-number-4">4.1.6</span> C sources</h4>
|
<h4 id="orgc5d1c91"><span class="section-number-4">4.1.6</span> C sources</h4>
|
||||||
<div class="outline-text-4" id="text-4-1-6">
|
<div class="outline-text-4" id="text-4-1-6">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_2x2_hpc</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_2x2_hpc</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||||
@ -5817,7 +5817,7 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c" id="orgf606718"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_woodbury_2x2_</span>{Dim}(
|
<pre class="src src-c" id="orgfa6c298"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_woodbury_2x2_</span>{Dim}(
|
||||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
||||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span>* <span style="color: #a0522d;">__restrict</span> Updates_index,
|
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span>* <span style="color: #a0522d;">__restrict</span> Updates_index,
|
||||||
@ -7767,14 +7767,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org4e8479b" class="outline-4">
|
<div id="outline-container-org2a5fe4c" class="outline-4">
|
||||||
<h4 id="org4e8479b"><span class="section-number-4">4.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
<h4 id="org2a5fe4c"><span class="section-number-4">4.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||||
<div class="outline-text-4" id="text-4-1-7">
|
<div class="outline-text-4" id="text-4-1-7">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org162f059" class="outline-4">
|
<div id="outline-container-orgc2ff480" class="outline-4">
|
||||||
<h4 id="org162f059"><span class="section-number-4">4.1.8</span> Performance</h4>
|
<h4 id="orgc2ff480"><span class="section-number-4">4.1.8</span> Performance</h4>
|
||||||
<div class="outline-text-4" id="text-4-1-8">
|
<div class="outline-text-4" id="text-4-1-8">
|
||||||
<p>
|
<p>
|
||||||
This function is most efficient when used in cases where there are only 2 rank-1 updates and
|
This function is most efficient when used in cases where there are only 2 rank-1 updates and
|
||||||
@ -7783,8 +7783,8 @@ it is sure they will not result in a singular matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgb52be07" class="outline-4">
|
<div id="outline-container-orgbb11ec2" class="outline-4">
|
||||||
<h4 id="orgb52be07"><span class="section-number-4">4.1.9</span> Tests</h4>
|
<h4 id="orgbb11ec2"><span class="section-number-4">4.1.9</span> Tests</h4>
|
||||||
<div class="outline-text-4" id="text-4-1-9">
|
<div class="outline-text-4" id="text-4-1-9">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(Updates2 != <span style="color: #008b8b;">NULL</span>);
|
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(Updates2 != <span style="color: #008b8b;">NULL</span>);
|
||||||
@ -7821,17 +7821,17 @@ rc = QMCKL_SUCCESS;
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-org03b3087" class="outline-2">
|
<div id="outline-container-orgf9f3ce4" class="outline-2">
|
||||||
<h2 id="org03b3087"><span class="section-number-2">5</span> Woodbury 3x3</h2>
|
<h2 id="orgf9f3ce4"><span class="section-number-2">5</span> Woodbury 3x3</h2>
|
||||||
<div class="outline-text-2" id="text-5">
|
<div class="outline-text-2" id="text-5">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org19d5f1f" class="outline-3">
|
<div id="outline-container-orga2b9485" class="outline-3">
|
||||||
<h3 id="org19d5f1f"><span class="section-number-3">5.1</span> <code>qmckl_woodbury_3x3</code></h3>
|
<h3 id="orga2b9485"><span class="section-number-3">5.1</span> <code>qmckl_woodbury_3x3</code></h3>
|
||||||
<div class="outline-text-3" id="text-5-1">
|
<div class="outline-text-3" id="text-5-1">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgb928790" class="outline-4">
|
<div id="outline-container-org4e14272" class="outline-4">
|
||||||
<h4 id="orgb928790"><span class="section-number-4">5.1.1</span> Introduction</h4>
|
<h4 id="org4e14272"><span class="section-number-4">5.1.1</span> Introduction</h4>
|
||||||
<div class="outline-text-4" id="text-5-1-1">
|
<div class="outline-text-4" id="text-5-1-1">
|
||||||
<p>
|
<p>
|
||||||
The Woodbury 3x3 kernel. It is used to apply two rank-1 updates at once. The formula used in
|
The Woodbury 3x3 kernel. It is used to apply two rank-1 updates at once. The formula used in
|
||||||
@ -7855,10 +7855,10 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgac5390d" class="outline-4">
|
<div id="outline-container-org9668fda" class="outline-4">
|
||||||
<h4 id="orgac5390d"><span class="section-number-4">5.1.2</span> API</h4>
|
<h4 id="org9668fda"><span class="section-number-4">5.1.2</span> API</h4>
|
||||||
<div class="outline-text-4" id="text-5-1-2">
|
<div class="outline-text-4" id="text-5-1-2">
|
||||||
<table id="orgdc6bdbc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org4d75314" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -7939,8 +7939,8 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd670c86" class="outline-4">
|
<div id="outline-container-org7978008" class="outline-4">
|
||||||
<h4 id="orgd670c86"><span class="section-number-4">5.1.3</span> Requirements</h4>
|
<h4 id="org7978008"><span class="section-number-4">5.1.3</span> Requirements</h4>
|
||||||
<div class="outline-text-4" id="text-5-1-3">
|
<div class="outline-text-4" id="text-5-1-3">
|
||||||
<ul class="org-ul">
|
<ul class="org-ul">
|
||||||
<li><code>context</code> is not <code>qmckl_null_context</code></li>
|
<li><code>context</code> is not <code>qmckl_null_context</code></li>
|
||||||
@ -7954,8 +7954,8 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgdbd0139" class="outline-4">
|
<div id="outline-container-org6ff14a6" class="outline-4">
|
||||||
<h4 id="orgdbd0139"><span class="section-number-4">5.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
<h4 id="org6ff14a6"><span class="section-number-4">5.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||||
<div class="outline-text-4" id="text-5-1-4">
|
<div class="outline-text-4" id="text-5-1-4">
|
||||||
<p>
|
<p>
|
||||||
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
||||||
@ -8100,8 +8100,8 @@ not be used in real workloads.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org91fb00c" class="outline-5">
|
<div id="outline-container-org49f1c56" class="outline-5">
|
||||||
<h5 id="org91fb00c"><span class="section-number-5">5.1.4.1</span> C interface (not directly exposed)</h5>
|
<h5 id="org49f1c56"><span class="section-number-5">5.1.4.1</span> C interface (not directly exposed)</h5>
|
||||||
<div class="outline-text-5" id="text-5-1-4-1">
|
<div class="outline-text-5" id="text-5-1-4-1">
|
||||||
<p>
|
<p>
|
||||||
The function <code>qmckl_sm_splitting_core_doc</code> makes sure that
|
The function <code>qmckl_sm_splitting_core_doc</code> makes sure that
|
||||||
@ -8114,8 +8114,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orge7a0ba3" class="outline-4">
|
<div id="outline-container-orgdf04fd1" class="outline-4">
|
||||||
<h4 id="orge7a0ba3"><span class="section-number-4">5.1.5</span> C headers (exposed in qmckl.h)</h4>
|
<h4 id="orgdf04fd1"><span class="section-number-4">5.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||||
<div class="outline-text-4" id="text-5-1-5">
|
<div class="outline-text-4" id="text-5-1-5">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_3x3</span> (
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_3x3</span> (
|
||||||
@ -8158,8 +8158,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0651076" class="outline-4">
|
<div id="outline-container-org9ef3612" class="outline-4">
|
||||||
<h4 id="org0651076"><span class="section-number-4">5.1.6</span> C sources</h4>
|
<h4 id="org9ef3612"><span class="section-number-4">5.1.6</span> C sources</h4>
|
||||||
<div class="outline-text-4" id="text-5-1-6">
|
<div class="outline-text-4" id="text-5-1-6">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_3x3_hpc</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_3x3_hpc</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||||
@ -8269,7 +8269,7 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c" id="org48cc4d7"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_woodbury_3x3_</span>{Dim}(
|
<pre class="src src-c" id="org2842b9b"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_woodbury_3x3_</span>{Dim}(
|
||||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
||||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span>* <span style="color: #a0522d;">__restrict</span> Updates_index,
|
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span>* <span style="color: #a0522d;">__restrict</span> Updates_index,
|
||||||
@ -10639,14 +10639,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org5f72441" class="outline-4">
|
<div id="outline-container-org9b79434" class="outline-4">
|
||||||
<h4 id="org5f72441"><span class="section-number-4">5.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
<h4 id="org9b79434"><span class="section-number-4">5.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||||
<div class="outline-text-4" id="text-5-1-7">
|
<div class="outline-text-4" id="text-5-1-7">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org4668176" class="outline-4">
|
<div id="outline-container-org27e0c3f" class="outline-4">
|
||||||
<h4 id="org4668176"><span class="section-number-4">5.1.8</span> Performance</h4>
|
<h4 id="org27e0c3f"><span class="section-number-4">5.1.8</span> Performance</h4>
|
||||||
<div class="outline-text-4" id="text-5-1-8">
|
<div class="outline-text-4" id="text-5-1-8">
|
||||||
<p>
|
<p>
|
||||||
This function is most efficient when used in cases where there are only 3 rank-1 updates and
|
This function is most efficient when used in cases where there are only 3 rank-1 updates and
|
||||||
@ -10655,8 +10655,8 @@ it is sure they will not result in a singular matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgddab051" class="outline-4">
|
<div id="outline-container-orgbb2436a" class="outline-4">
|
||||||
<h4 id="orgddab051"><span class="section-number-4">5.1.9</span> Tests</h4>
|
<h4 id="orgbb2436a"><span class="section-number-4">5.1.9</span> Tests</h4>
|
||||||
<div class="outline-text-4" id="text-5-1-9">
|
<div class="outline-text-4" id="text-5-1-9">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(Updates3 != <span style="color: #008b8b;">NULL</span>);
|
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(Updates3 != <span style="color: #008b8b;">NULL</span>);
|
||||||
@ -10693,17 +10693,17 @@ rc = QMCKL_SUCCESS;
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-orgd42e663" class="outline-2">
|
<div id="outline-container-org763f61f" class="outline-2">
|
||||||
<h2 id="orgd42e663"><span class="section-number-2">6</span> Sherman-Morrison with Slagel Splitting</h2>
|
<h2 id="org763f61f"><span class="section-number-2">6</span> Sherman-Morrison with Slagel Splitting</h2>
|
||||||
<div class="outline-text-2" id="text-6">
|
<div class="outline-text-2" id="text-6">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgfff2266" class="outline-3">
|
<div id="outline-container-org33b3d88" class="outline-3">
|
||||||
<h3 id="orgfff2266"><span class="section-number-3">6.1</span> <code>qmckl_sm_splitting</code></h3>
|
<h3 id="org33b3d88"><span class="section-number-3">6.1</span> <code>qmckl_sm_splitting</code></h3>
|
||||||
<div class="outline-text-3" id="text-6-1">
|
<div class="outline-text-3" id="text-6-1">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org12516ca" class="outline-4">
|
<div id="outline-container-org22ea80c" class="outline-4">
|
||||||
<h4 id="org12516ca"><span class="section-number-4">6.1.1</span> Introduction</h4>
|
<h4 id="org22ea80c"><span class="section-number-4">6.1.1</span> Introduction</h4>
|
||||||
<div class="outline-text-4" id="text-6-1-1">
|
<div class="outline-text-4" id="text-6-1-1">
|
||||||
<p>
|
<p>
|
||||||
This is a variation on the 'Naive' Sherman-Morrison kernel. Whenever the denominator \(1+v_j^T S^{-1} u_j\) in
|
This is a variation on the 'Naive' Sherman-Morrison kernel. Whenever the denominator \(1+v_j^T S^{-1} u_j\) in
|
||||||
@ -10727,10 +10727,10 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org67a4578" class="outline-4">
|
<div id="outline-container-orgbc86feb" class="outline-4">
|
||||||
<h4 id="org67a4578"><span class="section-number-4">6.1.2</span> API</h4>
|
<h4 id="orgbc86feb"><span class="section-number-4">6.1.2</span> API</h4>
|
||||||
<div class="outline-text-4" id="text-6-1-2">
|
<div class="outline-text-4" id="text-6-1-2">
|
||||||
<table id="org0405687" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org42536aa" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -10818,8 +10818,8 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org358d3a9" class="outline-4">
|
<div id="outline-container-org591c1a7" class="outline-4">
|
||||||
<h4 id="org358d3a9"><span class="section-number-4">6.1.3</span> Requirements</h4>
|
<h4 id="org591c1a7"><span class="section-number-4">6.1.3</span> Requirements</h4>
|
||||||
<div class="outline-text-4" id="text-6-1-3">
|
<div class="outline-text-4" id="text-6-1-3">
|
||||||
<ul class="org-ul">
|
<ul class="org-ul">
|
||||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||||
@ -10834,8 +10834,8 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf7dd741" class="outline-4">
|
<div id="outline-container-org73338a3" class="outline-4">
|
||||||
<h4 id="orgf7dd741"><span class="section-number-4">6.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
<h4 id="org73338a3"><span class="section-number-4">6.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||||
<div class="outline-text-4" id="text-6-1-4">
|
<div class="outline-text-4" id="text-6-1-4">
|
||||||
<p>
|
<p>
|
||||||
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
||||||
@ -10914,8 +10914,8 @@ not be used in real workloads.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org75b7357" class="outline-5">
|
<div id="outline-container-orgbee1082" class="outline-5">
|
||||||
<h5 id="org75b7357"><span class="section-number-5">6.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
<h5 id="orgbee1082"><span class="section-number-5">6.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||||
<div class="outline-text-5" id="text-6-1-4-1">
|
<div class="outline-text-5" id="text-6-1-4-1">
|
||||||
<p>
|
<p>
|
||||||
The following Fortran function <code>qmckl_sm_splitting_core_doc</code> makes sure
|
The following Fortran function <code>qmckl_sm_splitting_core_doc</code> makes sure
|
||||||
@ -10928,8 +10928,8 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org363817e" class="outline-4">
|
<div id="outline-container-org447e437" class="outline-4">
|
||||||
<h4 id="org363817e"><span class="section-number-4">6.1.5</span> C headers (exposed in qmckl.h)</h4>
|
<h4 id="org447e437"><span class="section-number-4">6.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||||
<div class="outline-text-4" id="text-6-1-5">
|
<div class="outline-text-4" id="text-6-1-5">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_splitting</span> (
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_splitting</span> (
|
||||||
@ -10975,11 +10975,11 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgbfc148f" class="outline-4">
|
<div id="outline-container-org18e5381" class="outline-4">
|
||||||
<h4 id="orgbfc148f"><span class="section-number-4">6.1.6</span> C source</h4>
|
<h4 id="org18e5381"><span class="section-number-4">6.1.6</span> C source</h4>
|
||||||
<div class="outline-text-4" id="text-6-1-6">
|
<div class="outline-text-4" id="text-6-1-6">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python" id="org3c1ea1f"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
<pre class="src src-python" id="org2362059"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
||||||
<span style="color: #8b2252;">case {Dim}: {</span>
|
<span style="color: #8b2252;">case {Dim}: {</span>
|
||||||
<span style="color: #8b2252;"> rc = qmckl_sm_splitting_core_{Dim}(</span>
|
<span style="color: #8b2252;"> rc = qmckl_sm_splitting_core_{Dim}(</span>
|
||||||
<span style="color: #8b2252;"> context,</span>
|
<span style="color: #8b2252;"> context,</span>
|
||||||
@ -11382,14 +11382,14 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org8d11b71" class="outline-4">
|
<div id="outline-container-org44d0d14" class="outline-4">
|
||||||
<h4 id="org8d11b71"><span class="section-number-4">6.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
<h4 id="org44d0d14"><span class="section-number-4">6.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||||
<div class="outline-text-4" id="text-6-1-7">
|
<div class="outline-text-4" id="text-6-1-7">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org4f9cc81" class="outline-4">
|
<div id="outline-container-org4981af5" class="outline-4">
|
||||||
<h4 id="org4f9cc81"><span class="section-number-4">6.1.8</span> Performance…</h4>
|
<h4 id="org4981af5"><span class="section-number-4">6.1.8</span> Performance…</h4>
|
||||||
<div class="outline-text-4" id="text-6-1-8">
|
<div class="outline-text-4" id="text-6-1-8">
|
||||||
<p>
|
<p>
|
||||||
This kernel performs best when there are 2 or more rank-1 update cycles and fail-rate is high.
|
This kernel performs best when there are 2 or more rank-1 update cycles and fail-rate is high.
|
||||||
@ -11397,8 +11397,8 @@ This kernel performs best when there are 2 or more rank-1 update cycles and fail
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgcc5073c" class="outline-4">
|
<div id="outline-container-org20d083d" class="outline-4">
|
||||||
<h4 id="orgcc5073c"><span class="section-number-4">6.1.9</span> Test</h4>
|
<h4 id="org20d083d"><span class="section-number-4">6.1.9</span> Test</h4>
|
||||||
<div class="outline-text-4" id="text-6-1-9">
|
<div class="outline-text-4" id="text-6-1-9">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(Updates3 != <span style="color: #008b8b;">NULL</span>);
|
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(Updates3 != <span style="color: #008b8b;">NULL</span>);
|
||||||
@ -11436,8 +11436,8 @@ rc = QMCKL_SUCCESS;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-orgc08599f" class="outline-2">
|
<div id="outline-container-orgc0bf504" class="outline-2">
|
||||||
<h2 id="orgc08599f"><span class="section-number-2">7</span> End of files</h2>
|
<h2 id="orgc0bf504"><span class="section-number-2">7</span> End of files</h2>
|
||||||
<div class="outline-text-2" id="text-7">
|
<div class="outline-text-2" id="text-7">
|
||||||
<div class="org-src-container">
|
<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);
|
<pre class="src src-c"><span style="color: #0000ff;">assert</span> (<span style="color: #228b22;">qmckl_context_destroy</span>(<span style="color: #a0522d;">context</span>) == QMCKL_SUCCESS);
|
||||||
@ -11451,7 +11451,7 @@ rc = QMCKL_SUCCESS;
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: TREX CoE</p>
|
<p class="author">Author: TREX CoE</p>
|
||||||
<p class="date">Created: 2024-01-09 Tue 07:20</p>
|
<p class="date">Created: 2024-01-11 Thu 13:34</p>
|
||||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-01-09 Tue 07:20 -->
|
<!-- 2024-01-11 Thu 13:34 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Data for Tests</title>
|
<title>Data for Tests</title>
|
||||||
@ -246,27 +246,27 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orge157b48">1. CHBrClF</a>
|
<li><a href="#org8197d3e">1. CHBrClF</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org4f2e9d5">1.1. XYZ coordinates</a></li>
|
<li><a href="#org3155788">1.1. XYZ coordinates</a></li>
|
||||||
<li><a href="#org1123fb6">1.2. Atomic basis set</a></li>
|
<li><a href="#orga63acfc">1.2. Atomic basis set</a></li>
|
||||||
<li><a href="#orge9bc628">1.3. Molecular orbitals</a></li>
|
<li><a href="#orgaf83447">1.3. Molecular orbitals</a></li>
|
||||||
<li><a href="#orga5f2ae2">1.4. Electron coordinates</a></li>
|
<li><a href="#orgb3678a8">1.4. Electron coordinates</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org7fcd6bc">2. N2</a>
|
<li><a href="#org25ac6a0">2. N2</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgc11d1a0">2.1. XYZ coordinates</a></li>
|
<li><a href="#org41e5020">2.1. XYZ coordinates</a></li>
|
||||||
<li><a href="#orgbf6664f">2.2. Electron coordinates</a></li>
|
<li><a href="#org3ba2f52">2.2. Electron coordinates</a></li>
|
||||||
<li><a href="#org56b1eb6">2.3. Jastrow related data</a></li>
|
<li><a href="#orgd6d362a">2.3. Jastrow related data</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orge157b48" class="outline-2">
|
<div id="outline-container-org8197d3e" class="outline-2">
|
||||||
<h2 id="orge157b48"><span class="section-number-2">1</span> CHBrClF</h2>
|
<h2 id="org8197d3e"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
<p>
|
<p>
|
||||||
This test is the all-electron Hartree-Fock wave function of CHClBr,
|
This test is the all-electron Hartree-Fock wave function of CHClBr,
|
||||||
@ -350,8 +350,8 @@ and with a high maximum angular momentum.
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-org4f2e9d5" class="outline-3">
|
<div id="outline-container-org3155788" class="outline-3">
|
||||||
<h3 id="org4f2e9d5"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
<h3 id="org3155788"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||||
<div class="outline-text-3" id="text-1-1">
|
<div class="outline-text-3" id="text-1-1">
|
||||||
<pre class="example">
|
<pre class="example">
|
||||||
5
|
5
|
||||||
@ -381,8 +381,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org1123fb6" class="outline-3">
|
<div id="outline-container-orga63acfc" class="outline-3">
|
||||||
<h3 id="org1123fb6"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
<h3 id="orga63acfc"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||||
<div class="outline-text-3" id="text-1-2">
|
<div class="outline-text-3" id="text-1-2">
|
||||||
<pre class="example">
|
<pre class="example">
|
||||||
HYDROGEN
|
HYDROGEN
|
||||||
@ -1301,8 +1301,8 @@ F 1
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orge9bc628" class="outline-3">
|
<div id="outline-container-orgaf83447" class="outline-3">
|
||||||
<h3 id="orge9bc628"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
<h3 id="orgaf83447"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
||||||
<div class="outline-text-3" id="text-1-3">
|
<div class="outline-text-3" id="text-1-3">
|
||||||
<div class="org-src-container">
|
<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)
|
<pre class="src src-c"><span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">chbrclf_mo_num</span> ((<span style="color: #228b22;">int64_t</span>) 224)
|
||||||
@ -60226,8 +60226,8 @@ F 1
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga5f2ae2" class="outline-3">
|
<div id="outline-container-orgb3678a8" class="outline-3">
|
||||||
<h3 id="orga5f2ae2"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
<h3 id="orgb3678a8"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||||
<div class="outline-text-3" id="text-1-4">
|
<div class="outline-text-3" id="text-1-4">
|
||||||
<p>
|
<p>
|
||||||
Electron coordinates are stored in atomic units in normal format.
|
Electron coordinates are stored in atomic units in normal format.
|
||||||
@ -60386,8 +60386,8 @@ Electron coordinates are stored in atomic units in normal format.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org7fcd6bc" class="outline-2">
|
<div id="outline-container-org25ac6a0" class="outline-2">
|
||||||
<h2 id="org7fcd6bc"><span class="section-number-2">2</span> N2</h2>
|
<h2 id="org25ac6a0"><span class="section-number-2">2</span> N2</h2>
|
||||||
<div class="outline-text-2" id="text-2">
|
<div class="outline-text-2" id="text-2">
|
||||||
<p>
|
<p>
|
||||||
This test is mainly for the Jastrow factor and was supplied by
|
This test is mainly for the Jastrow factor and was supplied by
|
||||||
@ -60428,8 +60428,8 @@ treated by pseudopotentials thus excluded from the actual calculation.
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc11d1a0" class="outline-3">
|
<div id="outline-container-org41e5020" class="outline-3">
|
||||||
<h3 id="orgc11d1a0"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
<h3 id="org41e5020"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
||||||
<div class="outline-text-3" id="text-2-1">
|
<div class="outline-text-3" id="text-2-1">
|
||||||
<pre class="example">
|
<pre class="example">
|
||||||
2
|
2
|
||||||
@ -60456,8 +60456,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgbf6664f" class="outline-3">
|
<div id="outline-container-org3ba2f52" class="outline-3">
|
||||||
<h3 id="orgbf6664f"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
<h3 id="org3ba2f52"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
||||||
<div class="outline-text-3" id="text-2-2">
|
<div class="outline-text-3" id="text-2-2">
|
||||||
<p>
|
<p>
|
||||||
Electron coordinates are stored in atomic units in normal format.
|
Electron coordinates are stored in atomic units in normal format.
|
||||||
@ -60486,8 +60486,8 @@ Electron coordinates are stored in atomic units in normal format.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org56b1eb6" class="outline-3">
|
<div id="outline-container-orgd6d362a" class="outline-3">
|
||||||
<h3 id="org56b1eb6"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
<h3 id="orgd6d362a"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
||||||
<div class="outline-text-3" id="text-2-3">
|
<div class="outline-text-3" id="text-2-3">
|
||||||
<p>
|
<p>
|
||||||
This test is mainly for the Jastrow factor and was supplied by
|
This test is mainly for the Jastrow factor and was supplied by
|
||||||
@ -60586,7 +60586,7 @@ Ramon Panades Baruetta.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="date">Created: 2024-01-09 Tue 07:20</p>
|
<p class="date">Created: 2024-01-11 Thu 13:34</p>
|
||||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-01-09 Tue 07:20 -->
|
<!-- 2024-01-11 Thu 13:34 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>TREXIO I/O library</title>
|
<title>TREXIO I/O library</title>
|
||||||
@ -324,53 +324,53 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgbe9d71b">1. Local functions</a>
|
<li><a href="#org3b00552">1. Local functions</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orga458563">1.1. Open file</a></li>
|
<li><a href="#org94d799d">1.1. Open file</a></li>
|
||||||
<li><a href="#org46abe95">1.2. Electron</a></li>
|
<li><a href="#org5c1da69">1.2. Electron</a></li>
|
||||||
<li><a href="#org61dc4f1">1.3. Nucleus</a>
|
<li><a href="#org1a5436c">1.3. Nucleus</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org38f784c">1.3.1. Number of nuclei</a></li>
|
<li><a href="#orgd09e5a1">1.3.1. Number of nuclei</a></li>
|
||||||
<li><a href="#org7fa2fd8">1.3.2. Nuclear charges</a></li>
|
<li><a href="#org031d753">1.3.2. Nuclear charges</a></li>
|
||||||
<li><a href="#orgab09171">1.3.3. Nuclear coordinates</a></li>
|
<li><a href="#org6154a92">1.3.3. Nuclear coordinates</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org2af3d98">1.4. Basis set and AOs</a>
|
<li><a href="#org54c0719">1.4. Basis set and AOs</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org5183ae6">1.4.1. Basis set type</a></li>
|
<li><a href="#orga7755b4">1.4.1. Basis set type</a></li>
|
||||||
<li><a href="#org64c08ff">1.4.2. Number of shells</a></li>
|
<li><a href="#org51fd3bf">1.4.2. Number of shells</a></li>
|
||||||
<li><a href="#org0b94fd7">1.4.3. Number of primitives</a></li>
|
<li><a href="#orgf79915f">1.4.3. Number of primitives</a></li>
|
||||||
<li><a href="#org00de29e">1.4.4. Number of atomic orbitals</a></li>
|
<li><a href="#org0c3a4ab">1.4.4. Number of atomic orbitals</a></li>
|
||||||
<li><a href="#org2647dfa">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
<li><a href="#org1af8ab9">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||||
<li><a href="#orgfeaeed3">1.4.6. Number of shells per nucleus</a></li>
|
<li><a href="#orgb57953e">1.4.6. Number of shells per nucleus</a></li>
|
||||||
<li><a href="#org362de35">1.4.7. Angular momentum</a></li>
|
<li><a href="#org7a73603">1.4.7. Angular momentum</a></li>
|
||||||
<li><a href="#org45c3a1a">1.4.8. Number of primitives per shell</a></li>
|
<li><a href="#orgf25ddcd">1.4.8. Number of primitives per shell</a></li>
|
||||||
<li><a href="#orgadcce53">1.4.9. Indices of the primitives</a></li>
|
<li><a href="#orgac7923b">1.4.9. Indices of the primitives</a></li>
|
||||||
<li><a href="#org56acbd3">1.4.10. Normalization of the shells</a></li>
|
<li><a href="#org1ce49fa">1.4.10. Normalization of the shells</a></li>
|
||||||
<li><a href="#orgf62c917">1.4.11. Exponents</a></li>
|
<li><a href="#org0cc6b17">1.4.11. Exponents</a></li>
|
||||||
<li><a href="#org998ab04">1.4.12. Coefficients</a></li>
|
<li><a href="#org8193c9d">1.4.12. Coefficients</a></li>
|
||||||
<li><a href="#orgb5609b4">1.4.13. Normalization of the primitivies</a></li>
|
<li><a href="#org1ef1465">1.4.13. Normalization of the primitivies</a></li>
|
||||||
<li><a href="#orgd5a219c">1.4.14. AO Normalization</a></li>
|
<li><a href="#orgf9d39fb">1.4.14. AO Normalization</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org418ee56">1.5. Molecular orbitals</a>
|
<li><a href="#org5189c3e">1.5. Molecular orbitals</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org32e528f">1.5.1. Number of MOs</a></li>
|
<li><a href="#orgf358bdb">1.5.1. Number of MOs</a></li>
|
||||||
<li><a href="#org61a456e">1.5.2. MO coefficients</a></li>
|
<li><a href="#org0694652">1.5.2. MO coefficients</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orga32d6bb">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
<li><a href="#org1646bf4">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org4ca0cde">2. Read everything</a></li>
|
<li><a href="#org1b4a493">2. Read everything</a></li>
|
||||||
<li><a href="#orga8eb4cf">3. Test</a>
|
<li><a href="#orgfc36892">3. Test</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org7378838">3.0.1. Electrons</a></li>
|
<li><a href="#org6e4ac1a">3.0.1. Electrons</a></li>
|
||||||
<li><a href="#org60c6401">3.0.2. Nuclei</a></li>
|
<li><a href="#org2f51d79">3.0.2. Nuclei</a></li>
|
||||||
<li><a href="#org1505c1c">3.0.3. Atomic basis</a></li>
|
<li><a href="#org1235475">3.0.3. Atomic basis</a></li>
|
||||||
<li><a href="#orgdf10677">3.0.4. MO Basis</a></li>
|
<li><a href="#orgcc25b95">3.0.4. MO Basis</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -379,8 +379,8 @@ for the JavaScript code in this tag.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgbe9d71b" class="outline-2">
|
<div id="outline-container-org3b00552" class="outline-2">
|
||||||
<h2 id="orgbe9d71b"><span class="section-number-2">1</span> Local functions</h2>
|
<h2 id="org3b00552"><span class="section-number-2">1</span> Local functions</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
<p>
|
<p>
|
||||||
Functions defined in this section are all local: they should not be
|
Functions defined in this section are all local: they should not be
|
||||||
@ -403,8 +403,8 @@ In the functions defined in this section, we use as local variables
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga458563" class="outline-3">
|
<div id="outline-container-org94d799d" class="outline-3">
|
||||||
<h3 id="orga458563"><span class="section-number-3">1.1</span> Open file</h3>
|
<h3 id="org94d799d"><span class="section-number-3">1.1</span> Open file</h3>
|
||||||
<div class="outline-text-3" id="text-1-1">
|
<div class="outline-text-3" id="text-1-1">
|
||||||
<p>
|
<p>
|
||||||
We first define a helper function to open a file by first trying to
|
We first define a helper function to open a file by first trying to
|
||||||
@ -442,8 +442,8 @@ groups of data by passing the <code>trexio_t</code> handle.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org46abe95" class="outline-3">
|
<div id="outline-container-org5c1da69" class="outline-3">
|
||||||
<h3 id="org46abe95"><span class="section-number-3">1.2</span> Electron</h3>
|
<h3 id="org5c1da69"><span class="section-number-3">1.2</span> Electron</h3>
|
||||||
<div class="outline-text-3" id="text-1-2">
|
<div class="outline-text-3" id="text-1-2">
|
||||||
<p>
|
<p>
|
||||||
In this section we read all the data into the electron data structure.
|
In this section we read all the data into the electron data structure.
|
||||||
@ -494,8 +494,8 @@ We read the number of up-spin and down-spin electrons.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org61dc4f1" class="outline-3">
|
<div id="outline-container-org1a5436c" class="outline-3">
|
||||||
<h3 id="org61dc4f1"><span class="section-number-3">1.3</span> Nucleus</h3>
|
<h3 id="org1a5436c"><span class="section-number-3">1.3</span> Nucleus</h3>
|
||||||
<div class="outline-text-3" id="text-1-3">
|
<div class="outline-text-3" id="text-1-3">
|
||||||
<p>
|
<p>
|
||||||
In this section we read the number of nuclei, the molecular geometry and nuclear charges.
|
In this section we read the number of nuclei, the molecular geometry and nuclear charges.
|
||||||
@ -515,8 +515,8 @@ In this section we read the number of nuclei, the molecular geometry and nuclear
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org38f784c" class="outline-4">
|
<div id="outline-container-orgd09e5a1" class="outline-4">
|
||||||
<h4 id="org38f784c"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
<h4 id="orgd09e5a1"><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="outline-text-4" id="text-1-3-1">
|
||||||
<div class="org-src-container">
|
<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;
|
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">nucleus_num</span> = 0L;
|
||||||
@ -539,8 +539,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org7fa2fd8" class="outline-4">
|
<div id="outline-container-org031d753" class="outline-4">
|
||||||
<h4 id="org7fa2fd8"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
<h4 id="org031d753"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
||||||
<div class="outline-text-4" id="text-1-3-2">
|
<div class="outline-text-4" id="text-1-3-2">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">{
|
<pre class="src src-c">{
|
||||||
@ -580,8 +580,8 @@ rc = qmckl_set_nucleus_num(context, nucleus_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgab09171" class="outline-4">
|
<div id="outline-container-org6154a92" class="outline-4">
|
||||||
<h4 id="orgab09171"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
<h4 id="org6154a92"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
||||||
<div class="outline-text-4" id="text-1-3-3">
|
<div class="outline-text-4" id="text-1-3-3">
|
||||||
<p>
|
<p>
|
||||||
Now, we read the molecular geometry. It is stored in normal format
|
Now, we read the molecular geometry. It is stored in normal format
|
||||||
@ -636,8 +636,8 @@ in the TREXIO file (<code>'N'</code>), so it will be automatically transposed in
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org2af3d98" class="outline-3">
|
<div id="outline-container-org54c0719" class="outline-3">
|
||||||
<h3 id="org2af3d98"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
<h3 id="org54c0719"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
||||||
<div class="outline-text-3" id="text-1-4">
|
<div class="outline-text-3" id="text-1-4">
|
||||||
<p>
|
<p>
|
||||||
In this section we read the atomic basis set and atomic orbitals.
|
In this section we read the atomic basis set and atomic orbitals.
|
||||||
@ -663,8 +663,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org5183ae6" class="outline-4">
|
<div id="outline-container-orga7755b4" class="outline-4">
|
||||||
<h4 id="org5183ae6"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
<h4 id="orga7755b4"><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="outline-text-4" id="text-1-4-1">
|
||||||
<div class="org-src-container">
|
<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
|
<pre class="src src-c"><span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">MAX_STR_LEN</span> 1024
|
||||||
@ -695,8 +695,8 @@ In this section we read the atomic basis set and atomic orbitals.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org64c08ff" class="outline-4">
|
<div id="outline-container-org51fd3bf" class="outline-4">
|
||||||
<h4 id="org64c08ff"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
<h4 id="org51fd3bf"><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="outline-text-4" id="text-1-4-2">
|
||||||
<div class="org-src-container">
|
<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;
|
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">shell_num</span> = 0L;
|
||||||
@ -720,8 +720,8 @@ rc = qmckl_set_ao_basis_shell_num(context, shell_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0b94fd7" class="outline-4">
|
<div id="outline-container-orgf79915f" class="outline-4">
|
||||||
<h4 id="org0b94fd7"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
<h4 id="orgf79915f"><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="outline-text-4" id="text-1-4-3">
|
||||||
<div class="org-src-container">
|
<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;
|
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">prim_num</span> = 0L;
|
||||||
@ -745,11 +745,11 @@ rc = qmckl_set_ao_basis_prim_num(context, prim_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org00de29e" class="outline-4">
|
<div id="outline-container-org0c3a4ab" class="outline-4">
|
||||||
<h4 id="org00de29e"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
<h4 id="org0c3a4ab"><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="outline-text-4" id="text-1-4-4">
|
||||||
<div class="org-src-container">
|
<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;
|
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">ao_num</span> = 0;
|
||||||
|
|
||||||
rcio = trexio_read_ao_num_64(file, &ao_num);
|
rcio = trexio_read_ao_num_64(file, &ao_num);
|
||||||
<span style="color: #a020f0;">if</span> (rcio != TREXIO_SUCCESS) {
|
<span style="color: #a020f0;">if</span> (rcio != TREXIO_SUCCESS) {
|
||||||
@ -770,8 +770,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org2647dfa" class="outline-4">
|
<div id="outline-container-org1af8ab9" class="outline-4">
|
||||||
<h4 id="org2647dfa"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
<h4 id="org1af8ab9"><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="outline-text-4" id="text-1-4-5">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">{
|
<pre class="src src-c">{
|
||||||
@ -851,8 +851,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgfeaeed3" class="outline-4">
|
<div id="outline-container-orgb57953e" class="outline-4">
|
||||||
<h4 id="orgfeaeed3"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
<h4 id="orgb57953e"><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="outline-text-4" id="text-1-4-6">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">{
|
<pre class="src src-c">{
|
||||||
@ -937,8 +937,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org362de35" class="outline-4">
|
<div id="outline-container-org7a73603" class="outline-4">
|
||||||
<h4 id="org362de35"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
<h4 id="org7a73603"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
||||||
<div class="outline-text-4" id="text-1-4-7">
|
<div class="outline-text-4" id="text-1-4-7">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">{
|
<pre class="src src-c">{
|
||||||
@ -983,8 +983,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org45c3a1a" class="outline-4">
|
<div id="outline-container-orgf25ddcd" class="outline-4">
|
||||||
<h4 id="org45c3a1a"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
<h4 id="orgf25ddcd"><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="outline-text-4" id="text-1-4-8">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">{
|
<pre class="src src-c">{
|
||||||
@ -1070,8 +1070,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgadcce53" class="outline-4">
|
<div id="outline-container-orgac7923b" class="outline-4">
|
||||||
<h4 id="orgadcce53"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
<h4 id="orgac7923b"><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="outline-text-4" id="text-1-4-9">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">{
|
<pre class="src src-c">{
|
||||||
@ -1151,8 +1151,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org56acbd3" class="outline-4">
|
<div id="outline-container-org1ce49fa" class="outline-4">
|
||||||
<h4 id="org56acbd3"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
<h4 id="org1ce49fa"><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="outline-text-4" id="text-1-4-10">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">{
|
<pre class="src src-c">{
|
||||||
@ -1197,8 +1197,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf62c917" class="outline-4">
|
<div id="outline-container-org0cc6b17" class="outline-4">
|
||||||
<h4 id="orgf62c917"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
<h4 id="org0cc6b17"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
||||||
<div class="outline-text-4" id="text-1-4-11">
|
<div class="outline-text-4" id="text-1-4-11">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">{
|
<pre class="src src-c">{
|
||||||
@ -1243,8 +1243,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org998ab04" class="outline-4">
|
<div id="outline-container-org8193c9d" class="outline-4">
|
||||||
<h4 id="org998ab04"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
<h4 id="org8193c9d"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
||||||
<div class="outline-text-4" id="text-1-4-12">
|
<div class="outline-text-4" id="text-1-4-12">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">{
|
<pre class="src src-c">{
|
||||||
@ -1289,8 +1289,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgb5609b4" class="outline-4">
|
<div id="outline-container-org1ef1465" class="outline-4">
|
||||||
<h4 id="orgb5609b4"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
<h4 id="org1ef1465"><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="outline-text-4" id="text-1-4-13">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">{
|
<pre class="src src-c">{
|
||||||
@ -1335,8 +1335,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd5a219c" class="outline-4">
|
<div id="outline-container-orgf9d39fb" class="outline-4">
|
||||||
<h4 id="orgd5a219c"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
<h4 id="orgf9d39fb"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
||||||
<div class="outline-text-4" id="text-1-4-14">
|
<div class="outline-text-4" id="text-1-4-14">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">{
|
<pre class="src src-c">{
|
||||||
@ -1391,8 +1391,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org418ee56" class="outline-3">
|
<div id="outline-container-org5189c3e" class="outline-3">
|
||||||
<h3 id="org418ee56"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
<h3 id="org5189c3e"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
||||||
<div class="outline-text-3" id="text-1-5">
|
<div class="outline-text-3" id="text-1-5">
|
||||||
<p>
|
<p>
|
||||||
In this section we read the MO coefficients.
|
In this section we read the MO coefficients.
|
||||||
@ -1418,8 +1418,8 @@ In this section we read the MO coefficients.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org32e528f" class="outline-4">
|
<div id="outline-container-orgf358bdb" class="outline-4">
|
||||||
<h4 id="org32e528f"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
<h4 id="orgf358bdb"><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="outline-text-4" id="text-1-5-1">
|
||||||
<div class="org-src-container">
|
<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;
|
<pre class="src src-c"><span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">mo_num</span> = 0L;
|
||||||
@ -1442,8 +1442,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org61a456e" class="outline-4">
|
<div id="outline-container-org0694652" class="outline-4">
|
||||||
<h4 id="org61a456e"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
<h4 id="org0694652"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
||||||
<div class="outline-text-4" id="text-1-5-2">
|
<div class="outline-text-4" id="text-1-5-2">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">{
|
<pre class="src src-c">{
|
||||||
@ -1492,12 +1492,12 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga32d6bb" class="outline-3">
|
<div id="outline-container-org1646bf4" class="outline-3">
|
||||||
<h3 id="orga32d6bb"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
<h3 id="org1646bf4"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org4ca0cde" class="outline-2">
|
<div id="outline-container-org1b4a493" class="outline-2">
|
||||||
<h2 id="org4ca0cde"><span class="section-number-2">2</span> Read everything</h2>
|
<h2 id="org1b4a493"><span class="section-number-2">2</span> Read everything</h2>
|
||||||
<div class="outline-text-2" id="text-2">
|
<div class="outline-text-2" id="text-2">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||||
@ -1572,8 +1572,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga8eb4cf" class="outline-2">
|
<div id="outline-container-orgfc36892" class="outline-2">
|
||||||
<h2 id="orga8eb4cf"><span class="section-number-2">3</span> Test</h2>
|
<h2 id="orgfc36892"><span class="section-number-2">3</span> Test</h2>
|
||||||
<div class="outline-text-2" id="text-3">
|
<div class="outline-text-2" id="text-3">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_TREXIO
|
<pre class="src src-c"><span style="color: #483d8b;">#ifdef</span> HAVE_TREXIO
|
||||||
@ -1597,8 +1597,8 @@ rc = qmckl_trexio_read(context, filename, 255);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org7378838" class="outline-4">
|
<div id="outline-container-org6e4ac1a" class="outline-4">
|
||||||
<h4 id="org7378838"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
<h4 id="org6e4ac1a"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
||||||
<div class="outline-text-4" id="text-3-0-1">
|
<div class="outline-text-4" id="text-3-0-1">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">printf(<span style="color: #8b2252;">"Electrons\n"</span>);
|
<pre class="src src-c">printf(<span style="color: #8b2252;">"Electrons\n"</span>);
|
||||||
@ -1616,8 +1616,8 @@ rc = qmckl_get_electron_down_num(context, &dn_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org60c6401" class="outline-4">
|
<div id="outline-container-org2f51d79" class="outline-4">
|
||||||
<h4 id="org60c6401"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
<h4 id="org2f51d79"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
||||||
<div class="outline-text-4" id="text-3-0-2">
|
<div class="outline-text-4" id="text-3-0-2">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">printf(<span style="color: #8b2252;">"Nuclei\n"</span>);
|
<pre class="src src-c">printf(<span style="color: #8b2252;">"Nuclei\n"</span>);
|
||||||
@ -1657,8 +1657,8 @@ coord = <span style="color: #008b8b;">NULL</span>;
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org1505c1c" class="outline-4">
|
<div id="outline-container-org1235475" class="outline-4">
|
||||||
<h4 id="org1505c1c"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
<h4 id="org1235475"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
||||||
<div class="outline-text-4" id="text-3-0-3">
|
<div class="outline-text-4" id="text-3-0-3">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">printf(<span style="color: #8b2252;">"Atomic basis\n"</span>);
|
<pre class="src src-c">printf(<span style="color: #8b2252;">"Atomic basis\n"</span>);
|
||||||
@ -1766,8 +1766,8 @@ prim_factor = <span style="color: #008b8b;">NULL</span>;
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgdf10677" class="outline-4">
|
<div id="outline-container-orgcc25b95" class="outline-4">
|
||||||
<h4 id="orgdf10677"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
<h4 id="orgcc25b95"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
||||||
<div class="outline-text-4" id="text-3-0-4">
|
<div class="outline-text-4" id="text-3-0-4">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c">printf(<span style="color: #8b2252;">"MOs\n"</span>);
|
<pre class="src src-c">printf(<span style="color: #8b2252;">"MOs\n"</span>);
|
||||||
@ -1798,7 +1798,7 @@ charge = <span style="color: #008b8b;">NULL</span>;
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: TREX CoE</p>
|
<p class="author">Author: TREX CoE</p>
|
||||||
<p class="date">Created: 2024-01-09 Tue 07:20</p>
|
<p class="date">Created: 2024-01-11 Thu 13:34</p>
|
||||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-01-09 Tue 07:20 -->
|
<!-- 2024-01-11 Thu 13:34 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Verificarlo CI</title>
|
<title>Verificarlo CI</title>
|
||||||
@ -324,22 +324,22 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgdc931d9">1. Verificarlo probes</a>
|
<li><a href="#orgb81ef43">1. Verificarlo probes</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org41d8377">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
<li><a href="#orge0ca346">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||||
<li><a href="#org0067ee4">1.2. Standard probe, without check</a></li>
|
<li><a href="#org65a5cad">1.2. Standard probe, without check</a></li>
|
||||||
<li><a href="#org6eb6000">1.3. Probe with absolute check</a></li>
|
<li><a href="#orgd79d2dc">1.3. Probe with absolute check</a></li>
|
||||||
<li><a href="#org8b84e74">1.4. Probe with relative check</a></li>
|
<li><a href="#org41b537d">1.4. Probe with relative check</a></li>
|
||||||
<li><a href="#org8f5bc3d">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
<li><a href="#org8835309">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org63441df">2. Fortran wrappers</a></li>
|
<li><a href="#org031fb4e">2. Fortran wrappers</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgdc931d9" class="outline-2">
|
<div id="outline-container-orgb81ef43" class="outline-2">
|
||||||
<h2 id="orgdc931d9"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
<h2 id="orgb81ef43"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
<p>
|
<p>
|
||||||
This file contains utility functions to enable the Verificarlo
|
This file contains utility functions to enable the Verificarlo
|
||||||
@ -390,8 +390,8 @@ To learn more about Verificarlo CI :
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-org41d8377" class="outline-3">
|
<div id="outline-container-orge0ca346" class="outline-3">
|
||||||
<h3 id="org41d8377"><span class="section-number-3">1.1</span> Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</h3>
|
<h3 id="orge0ca346"><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="outline-text-3" id="text-1-1">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">void</span> <span style="color: #0000ff;">qmckl_init_probes</span>();
|
<pre class="src src-c"><span style="color: #228b22;">void</span> <span style="color: #0000ff;">qmckl_init_probes</span>();
|
||||||
@ -409,8 +409,8 @@ To learn more about Verificarlo CI :
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0067ee4" class="outline-3">
|
<div id="outline-container-org65a5cad" class="outline-3">
|
||||||
<h3 id="org0067ee4"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
<h3 id="org65a5cad"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
||||||
<div class="outline-text-3" id="text-1-2">
|
<div class="outline-text-3" id="text-1-2">
|
||||||
<ul class="org-ul">
|
<ul class="org-ul">
|
||||||
<li>if <code>VFC_CI</code> is defined, place a standard probe</li>
|
<li>if <code>VFC_CI</code> is defined, place a standard probe</li>
|
||||||
@ -445,8 +445,8 @@ if <code>VFC_CI</code> is undefined, return <code>false</code> (no error)
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org6eb6000" class="outline-3">
|
<div id="outline-container-orgd79d2dc" class="outline-3">
|
||||||
<h3 id="org6eb6000"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
<h3 id="orgd79d2dc"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
||||||
<div class="outline-text-3" id="text-1-3">
|
<div class="outline-text-3" id="text-1-3">
|
||||||
<ul class="org-ul">
|
<ul class="org-ul">
|
||||||
<li>if <code>VFC_CI</code> is defined, place a probe with an absolute check</li>
|
<li>if <code>VFC_CI</code> is defined, place a probe with an absolute check</li>
|
||||||
@ -486,8 +486,8 @@ and accuracy
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org8b84e74" class="outline-3">
|
<div id="outline-container-org41b537d" class="outline-3">
|
||||||
<h3 id="org8b84e74"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
<h3 id="org41b537d"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
||||||
<div class="outline-text-3" id="text-1-4">
|
<div class="outline-text-3" id="text-1-4">
|
||||||
<ul class="org-ul">
|
<ul class="org-ul">
|
||||||
<li>if <code>VFC_CI</code> is defined, place a probe with a relative check</li>
|
<li>if <code>VFC_CI</code> is defined, place a probe with a relative check</li>
|
||||||
@ -527,8 +527,8 @@ and accuracy
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org8f5bc3d" class="outline-3">
|
<div id="outline-container-org8835309" class="outline-3">
|
||||||
<h3 id="org8f5bc3d"><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>
|
<h3 id="org8835309"><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="outline-text-3" id="text-1-5">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">void</span> <span style="color: #0000ff;">qmckl_dump_probes</span>();
|
<pre class="src src-c"><span style="color: #228b22;">void</span> <span style="color: #0000ff;">qmckl_dump_probes</span>();
|
||||||
@ -547,8 +547,8 @@ and accuracy
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org63441df" class="outline-2">
|
<div id="outline-container-org031fb4e" class="outline-2">
|
||||||
<h2 id="org63441df"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
<h2 id="org031fb4e"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
||||||
<div class="outline-text-2" id="text-2">
|
<div class="outline-text-2" id="text-2">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">bool</span> <span style="color: #0000ff;">qmckl_probe_f</span>(
|
<pre class="src src-c"><span style="color: #228b22;">bool</span> <span style="color: #0000ff;">qmckl_probe_f</span>(
|
||||||
@ -672,7 +672,7 @@ and accuracy
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: TREX CoE</p>
|
<p class="author">Author: TREX CoE</p>
|
||||||
<p class="date">Created: 2024-01-09 Tue 07:20</p>
|
<p class="date">Created: 2024-01-11 Thu 13:34</p>
|
||||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
Reference in New Issue
Block a user