mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-11-03 20:54:09 +01:00
Deploying to gh-pages from @ TREX-CoE/qmckl@e3f99d0030 🚀
This commit is contained in:
parent
6558c9bcab
commit
8edde3baed
@ -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>
|
||||||
<!-- 2023-05-24 Wed 23:14 -->
|
<!-- 2023-05-24 Wed 23:50 -->
|
||||||
<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: 2023-05-24 Wed 23:14</p>
|
<p class="date">Created: 2023-05-24 Wed 23:50</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>
|
||||||
<!-- 2023-05-24 Wed 23:14 -->
|
<!-- 2023-05-24 Wed 23:50 -->
|
||||||
<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="#org77ea1f3">1. Installing QMCkl</a>
|
<li><a href="#org6f8649a">1. Installing QMCkl</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgb113bf3">1.1. Installing from the released tarball (for end users)</a></li>
|
<li><a href="#orgc8461c9">1.1. Installing from the released tarball (for end users)</a></li>
|
||||||
<li><a href="#org9878a76">1.2. Installing from the source repository (for developers)</a></li>
|
<li><a href="#org0ec5919">1.2. Installing from the source repository (for developers)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orga8c6385">2. Using QMCkl</a></li>
|
<li><a href="#org4de98ff">2. Using QMCkl</a></li>
|
||||||
<li><a href="#orgb85ad6d">3. Developing in QMCkl</a>
|
<li><a href="#org994ed16">3. Developing in QMCkl</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org81b6701">3.1. Literate programming</a></li>
|
<li><a href="#org504f129">3.1. Literate programming</a></li>
|
||||||
<li><a href="#org29e5072">3.2. Source code editing</a></li>
|
<li><a href="#org095eb98">3.2. Source code editing</a></li>
|
||||||
<li><a href="#orgcfd52be">3.3. Choice of the programming language</a></li>
|
<li><a href="#org284eadc">3.3. Choice of the programming language</a></li>
|
||||||
<li><a href="#org9ae0372">3.4. Coding rules</a></li>
|
<li><a href="#org1b972b3">3.4. Coding rules</a></li>
|
||||||
<li><a href="#orga40be59">3.5. Design of the library</a></li>
|
<li><a href="#org542bed4">3.5. Design of the library</a></li>
|
||||||
<li><a href="#org343ccad">3.6. Naming conventions</a></li>
|
<li><a href="#org1b1e06f">3.6. Naming conventions</a></li>
|
||||||
<li><a href="#org6d0db36">3.7. Application programming interface</a></li>
|
<li><a href="#org62e95fb">3.7. Application programming interface</a></li>
|
||||||
<li><a href="#org74e3f50">3.8. Global state</a></li>
|
<li><a href="#orgc58b60b">3.8. Global state</a></li>
|
||||||
<li><a href="#org643cbe3">3.9. Headers</a></li>
|
<li><a href="#org5613a95">3.9. Headers</a></li>
|
||||||
<li><a href="#org9ffeff6">3.10. Low-level functions</a></li>
|
<li><a href="#orge29330b">3.10. Low-level functions</a></li>
|
||||||
<li><a href="#orga6fdea8">3.11. High-level functions</a></li>
|
<li><a href="#org3059aee">3.11. High-level functions</a></li>
|
||||||
<li><a href="#org2141939">3.12. Numerical precision</a></li>
|
<li><a href="#org5ed0f85">3.12. Numerical precision</a></li>
|
||||||
<li><a href="#org33926fd">3.13. Algorithms</a></li>
|
<li><a href="#orgdb9154c">3.13. Algorithms</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org77ea1f3" class="outline-2">
|
<div id="outline-container-org6f8649a" class="outline-2">
|
||||||
<h2 id="org77ea1f3"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
<h2 id="org6f8649a"><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-orgb113bf3" class="outline-3">
|
<div id="outline-container-orgc8461c9" class="outline-3">
|
||||||
<h3 id="orgb113bf3"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
<h3 id="orgc8461c9"><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-org9878a76" class="outline-3">
|
<div id="outline-container-org0ec5919" class="outline-3">
|
||||||
<h3 id="org9878a76"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
<h3 id="org0ec5919"><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-orga8c6385" class="outline-2">
|
<div id="outline-container-org4de98ff" class="outline-2">
|
||||||
<h2 id="orga8c6385"><span class="section-number-2">2</span> Using QMCkl</h2>
|
<h2 id="org4de98ff"><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-orgb85ad6d" class="outline-2">
|
<div id="outline-container-org994ed16" class="outline-2">
|
||||||
<h2 id="orgb85ad6d"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
<h2 id="org994ed16"><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-org81b6701" class="outline-3">
|
<div id="outline-container-org504f129" class="outline-3">
|
||||||
<h3 id="org81b6701"><span class="section-number-3">3.1</span> Literate programming</h3>
|
<h3 id="org504f129"><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-org29e5072" class="outline-3">
|
<div id="outline-container-org095eb98" class="outline-3">
|
||||||
<h3 id="org29e5072"><span class="section-number-3">3.2</span> Source code editing</h3>
|
<h3 id="org095eb98"><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-orgcfd52be" class="outline-3">
|
<div id="outline-container-org284eadc" class="outline-3">
|
||||||
<h3 id="orgcfd52be"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
<h3 id="org284eadc"><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-org9ae0372" class="outline-3">
|
<div id="outline-container-org1b972b3" class="outline-3">
|
||||||
<h3 id="org9ae0372"><span class="section-number-3">3.4</span> Coding rules</h3>
|
<h3 id="org1b972b3"><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-orga40be59" class="outline-3">
|
<div id="outline-container-org542bed4" class="outline-3">
|
||||||
<h3 id="orga40be59"><span class="section-number-3">3.5</span> Design of the library</h3>
|
<h3 id="org542bed4"><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-org343ccad" class="outline-3">
|
<div id="outline-container-org1b1e06f" class="outline-3">
|
||||||
<h3 id="org343ccad"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
<h3 id="org1b1e06f"><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-org6d0db36" class="outline-3">
|
<div id="outline-container-org62e95fb" class="outline-3">
|
||||||
<h3 id="org6d0db36"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
<h3 id="org62e95fb"><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-org74e3f50" class="outline-3">
|
<div id="outline-container-orgc58b60b" class="outline-3">
|
||||||
<h3 id="org74e3f50"><span class="section-number-3">3.8</span> Global state</h3>
|
<h3 id="orgc58b60b"><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="org33cad7a">=context=</a> contains the global
|
<code>qmckl_context_create</code> function. The <a id="org196b192">=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-org643cbe3" class="outline-3">
|
<div id="outline-container-org5613a95" class="outline-3">
|
||||||
<h3 id="org643cbe3"><span class="section-number-3">3.9</span> Headers</h3>
|
<h3 id="org5613a95"><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-org9ffeff6" class="outline-3">
|
<div id="outline-container-orge29330b" class="outline-3">
|
||||||
<h3 id="org9ffeff6"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
<h3 id="orge29330b"><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="#org33cad7a"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
<a href="#org196b192"><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-orga6fdea8" class="outline-3">
|
<div id="outline-container-org3059aee" class="outline-3">
|
||||||
<h3 id="orga6fdea8"><span class="section-number-3">3.11</span> High-level functions</h3>
|
<h3 id="org3059aee"><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-org2141939" class="outline-3">
|
<div id="outline-container-org5ed0f85" class="outline-3">
|
||||||
<h3 id="org2141939"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
<h3 id="org5ed0f85"><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="#org33cad7a"><code>context</code></a> variable.
|
specified in the <a href="#org196b192"><code>context</code></a> variable.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@ -909,8 +909,8 @@ following points :
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org33926fd" class="outline-3">
|
<div id="outline-container-orgdb9154c" class="outline-3">
|
||||||
<h3 id="org33926fd"><span class="section-number-3">3.13</span> Algorithms</h3>
|
<h3 id="orgdb9154c"><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: 2023-05-24 Wed 23:14</p>
|
<p class="date">Created: 2023-05-24 Wed 23:50</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>
|
||||||
|
212
qmckl_ao.html
212
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>
|
||||||
<!-- 2023-05-24 Wed 23:14 -->
|
<!-- 2023-05-24 Wed 23:50 -->
|
||||||
<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,61 +346,61 @@ 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="#org7868d61">1. Introduction</a></li>
|
<li><a href="#orgbf1029d">1. Introduction</a></li>
|
||||||
<li><a href="#org0c1ecef">2. Context</a>
|
<li><a href="#orgda2b51f">2. Context</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org81cf93d">2.1. Constant data</a>
|
<li><a href="#org56dc08a">2.1. Constant data</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgcfe4e2e">2.1.1. Initialization functions</a>
|
<li><a href="#orgccd1d51">2.1.1. Initialization functions</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org6a0e167">2.1.1.1. C interface</a></li>
|
<li><a href="#orgf3ebe5b">2.1.1.1. C interface</a></li>
|
||||||
<li><a href="#orgcc1231c">2.1.1.2. Fortran interface</a></li>
|
<li><a href="#org8091d1b">2.1.1.2. Fortran interface</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org1b38550">2.1.2. Access functions</a>
|
<li><a href="#org1766eae">2.1.2. Access functions</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org414c6ac">2.1.2.1. C interface</a></li>
|
<li><a href="#orgdc08a2c">2.1.2.1. C interface</a></li>
|
||||||
<li><a href="#org5eba267">2.1.2.2. Fortran interface</a></li>
|
<li><a href="#org71b305c">2.1.2.2. Fortran interface</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgf91a778">2.2. Computed data</a>
|
<li><a href="#org4c3f53c">2.2. Computed data</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgc895de3">2.2.1. After initialization</a></li>
|
<li><a href="#org9d90f5f">2.2.1. After initialization</a></li>
|
||||||
<li><a href="#orgdd70e8f">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
<li><a href="#orgd81d735">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||||
<li><a href="#org128deea">2.2.3. Access functions</a></li>
|
<li><a href="#orgdbda61a">2.2.3. Access functions</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgbe066c9">3. Radial part</a>
|
<li><a href="#orgc67267c">3. Radial part</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgd7dacde">3.1. General functions for Gaussian basis functions</a></li>
|
<li><a href="#org57b8778">3.1. General functions for Gaussian basis functions</a></li>
|
||||||
<li><a href="#org5a5a1f6">3.2. Computation of primitives</a></li>
|
<li><a href="#orgd7fef93">3.2. Computation of primitives</a></li>
|
||||||
<li><a href="#org21b99cc">3.3. Computation of shells</a></li>
|
<li><a href="#org2e51898">3.3. Computation of shells</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgf7a9e0a">4. Polynomial part</a>
|
<li><a href="#orgbdcafa8">4. Polynomial part</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org120a048">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
<li><a href="#org183c5d7">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||||
<li><a href="#orgfe5d83d">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
<li><a href="#orgde2943a">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orga0244d3">5. Combining radial and polynomial parts</a>
|
<li><a href="#org1f4b401">5. Combining radial and polynomial parts</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orga75e35f">5.1. Values only</a>
|
<li><a href="#org723854b">5.1. Values only</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org3f2f3dd">5.1.1. Unoptimized version</a></li>
|
<li><a href="#org69e8173">5.1.1. Unoptimized version</a></li>
|
||||||
<li><a href="#orgc4db926">5.1.2. HPC version</a></li>
|
<li><a href="#org1a11a85">5.1.2. HPC version</a></li>
|
||||||
<li><a href="#orgee038c5">5.1.3. Interfaces</a></li>
|
<li><a href="#orgb8dd068">5.1.3. Interfaces</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org066d0db">5.2. Value, gradients, Laplacian</a>
|
<li><a href="#org70fc224">5.2. Value, gradients, Laplacian</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgc83e8b0">5.2.1. Reference version</a></li>
|
<li><a href="#org8e6f9fb">5.2.1. Reference version</a></li>
|
||||||
<li><a href="#org1f77c16">5.2.2. HPC version</a></li>
|
<li><a href="#org0b2bd9c">5.2.2. HPC version</a></li>
|
||||||
<li><a href="#org873cd4b">5.2.3. Interfaces</a></li>
|
<li><a href="#org553295f">5.2.3. Interfaces</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -409,8 +409,8 @@ for the JavaScript code in this tag.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org7868d61" class="outline-2">
|
<div id="outline-container-orgbf1029d" class="outline-2">
|
||||||
<h2 id="org7868d61"><span class="section-number-2">1</span> Introduction</h2>
|
<h2 id="orgbf1029d"><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
|
||||||
@ -463,19 +463,19 @@ gradients and Laplacian of the atomic basis functions.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0c1ecef" class="outline-2">
|
<div id="outline-container-orgda2b51f" class="outline-2">
|
||||||
<h2 id="org0c1ecef"><span class="section-number-2">2</span> Context</h2>
|
<h2 id="orgda2b51f"><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-org81cf93d" class="outline-3">
|
<div id="outline-container-org56dc08a" class="outline-3">
|
||||||
<h3 id="org81cf93d"><span class="section-number-3">2.1</span> Constant data</h3>
|
<h3 id="org56dc08a"><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="org980f8ff" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org6c4403d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -709,7 +709,7 @@ calling the functions:
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-C" id="org05531ab"><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="org041d9e6"><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>,
|
||||||
@ -746,7 +746,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="orgb4ccc43"><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="org49a36fc"><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>);
|
||||||
|
|
||||||
@ -784,17 +784,17 @@ For array variables, use the rule:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgcfe4e2e" class="outline-4">
|
<div id="outline-container-orgccd1d51" class="outline-4">
|
||||||
<h4 id="orgcfe4e2e"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
<h4 id="orgccd1d51"><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="#org0c1ecef">2</a>.
|
equal of larger than the value given in the table of section <a href="#orgda2b51f">2</a>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org6a0e167" class="outline-5">
|
<div id="outline-container-orgf3ebe5b" class="outline-5">
|
||||||
<h5 id="org6a0e167"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
<h5 id="orgf3ebe5b"><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
|
||||||
@ -918,8 +918,8 @@ called.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgcc1231c" class="outline-5">
|
<div id="outline-container-org8091d1b" class="outline-5">
|
||||||
<h5 id="orgcc1231c"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
<h5 id="org8091d1b"><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>
|
||||||
@ -1102,17 +1102,17 @@ called.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org1b38550" class="outline-4">
|
<div id="outline-container-org1766eae" class="outline-4">
|
||||||
<h4 id="org1b38550"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
<h4 id="org1766eae"><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="#org0c1ecef">2</a>.
|
equal of larger than the value given in the table of section <a href="#orgda2b51f">2</a>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org414c6ac" class="outline-5">
|
<div id="outline-container-orgdc08a2c" class="outline-5">
|
||||||
<h5 id="org414c6ac"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
<h5 id="orgdc08a2c"><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>
|
||||||
@ -1234,8 +1234,8 @@ function returns <code>true</code>.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org5eba267" class="outline-5">
|
<div id="outline-container-org71b305c" class="outline-5">
|
||||||
<h5 id="org5eba267"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
<h5 id="org71b305c"><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>
|
||||||
@ -1419,8 +1419,8 @@ function returns <code>true</code>.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf91a778" class="outline-3">
|
<div id="outline-container-org4c3f53c" class="outline-3">
|
||||||
<h3 id="orgf91a778"><span class="section-number-3">2.2</span> Computed data</h3>
|
<h3 id="org4c3f53c"><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:
|
||||||
@ -1495,8 +1495,8 @@ The following data is computed as described in the next sections:
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc895de3" class="outline-4">
|
<div id="outline-container-org9d90f5f" class="outline-4">
|
||||||
<h4 id="orgc895de3"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
<h4 id="org9d90f5f"><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
|
||||||
@ -1510,8 +1510,8 @@ the context.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgdd70e8f" class="outline-4">
|
<div id="outline-container-orgd81d735" class="outline-4">
|
||||||
<h4 id="orgdd70e8f"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
<h4 id="orgd81d735"><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:
|
||||||
@ -1541,8 +1541,8 @@ which is a matrix-vector product.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org128deea" class="outline-4">
|
<div id="outline-container-orgdbda61a" class="outline-4">
|
||||||
<h4 id="org128deea"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
<h4 id="orgdbda61a"><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>
|
||||||
@ -1555,7 +1555,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="#org5a5a1f6">3.2</a>.
|
See section <a href="#orgd7fef93">3.2</a>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
@ -1568,7 +1568,7 @@ See section <a href="#org5a5a1f6">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="#org21b99cc">3.3</a>.
|
evaluated at the current coordinates. See section <a href="#org2e51898">3.3</a>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
@ -1582,7 +1582,7 @@ evaluated at the current coordinates. See section <a href="#org21b99cc">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="#orga0244d3">5</a>.
|
See section <a href="#org1f4b401">5</a>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@ -1607,7 +1607,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="#orga0244d3">5</a>.
|
the current coordinates. See section <a href="#org1f4b401">5</a>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@ -1626,12 +1626,12 @@ Uses the given array to compute the value.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgbe066c9" class="outline-2">
|
<div id="outline-container-orgc67267c" class="outline-2">
|
||||||
<h2 id="orgbe066c9"><span class="section-number-2">3</span> Radial part</h2>
|
<h2 id="orgc67267c"><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-orgd7dacde" class="outline-3">
|
<div id="outline-container-org57b8778" class="outline-3">
|
||||||
<h3 id="orgd7dacde"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
<h3 id="org57b8778"><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
|
||||||
@ -1802,10 +1802,10 @@ Requirements:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org5a5a1f6" class="outline-3">
|
<div id="outline-container-orgd7fef93" class="outline-3">
|
||||||
<h3 id="org5a5a1f6"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
<h3 id="orgd7fef93"><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="org43fc51b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orga93b5f2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1964,10 +1964,10 @@ Requirements:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org21b99cc" class="outline-3">
|
<div id="outline-container-org2e51898" class="outline-3">
|
||||||
<h3 id="org21b99cc"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
<h3 id="org2e51898"><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="org0072c6a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org71012e5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -2219,8 +2219,8 @@ Requirements:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf7a9e0a" class="outline-2">
|
<div id="outline-container-orgbdcafa8" class="outline-2">
|
||||||
<h2 id="orgf7a9e0a"><span class="section-number-2">4</span> Polynomial part</h2>
|
<h2 id="orgbdcafa8"><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
|
||||||
@ -2240,8 +2240,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-org120a048" class="outline-3">
|
<div id="outline-container-org183c5d7" class="outline-3">
|
||||||
<h3 id="org120a048"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
<h3 id="org183c5d7"><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>
|
||||||
@ -2253,7 +2253,7 @@ the \(n\) points:
|
|||||||
\[ P_{ik} = X_i^k \]
|
\[ P_{ik} = X_i^k \]
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table id="org102d728" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org57fee6a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -2391,8 +2391,8 @@ Requirements:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgfe5d83d" class="outline-3">
|
<div id="outline-container-orgde2943a" class="outline-3">
|
||||||
<h3 id="orgfe5d83d"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
<h3 id="orgde2943a"><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\)
|
||||||
@ -2437,7 +2437,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="orgfaa364a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgb8925c9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -3216,18 +3216,18 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga0244d3" class="outline-2">
|
<div id="outline-container-org1f4b401" class="outline-2">
|
||||||
<h2 id="orga0244d3"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
<h2 id="org1f4b401"><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-orga75e35f" class="outline-3">
|
<div id="outline-container-org723854b" class="outline-3">
|
||||||
<h3 id="orga75e35f"><span class="section-number-3">5.1</span> Values only</h3>
|
<h3 id="org723854b"><span class="section-number-3">5.1</span> Values only</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-org3f2f3dd" class="outline-4">
|
<div id="outline-container-org69e8173" class="outline-4">
|
||||||
<h4 id="org3f2f3dd"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
<h4 id="org69e8173"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
||||||
<div class="outline-text-4" id="text-5-1-1">
|
<div class="outline-text-4" id="text-5-1-1">
|
||||||
<table id="orgb0317b5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org6bdf754" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -3463,10 +3463,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc4db926" class="outline-4">
|
<div id="outline-container-org1a11a85" class="outline-4">
|
||||||
<h4 id="orgc4db926"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
<h4 id="org1a11a85"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
||||||
<div class="outline-text-4" id="text-5-1-2">
|
<div class="outline-text-4" id="text-5-1-2">
|
||||||
<table id="org2c62b52" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org454b4a4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -3624,8 +3624,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgee038c5" class="outline-4">
|
<div id="outline-container-orgb8dd068" class="outline-4">
|
||||||
<h4 id="orgee038c5"><span class="section-number-4">5.1.3</span> Interfaces</h4>
|
<h4 id="orgb8dd068"><span class="section-number-4">5.1.3</span> Interfaces</h4>
|
||||||
<div class="outline-text-4" id="text-5-1-3">
|
<div class="outline-text-4" id="text-5-1-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> (
|
||||||
@ -3674,14 +3674,14 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org066d0db" class="outline-3">
|
<div id="outline-container-org70fc224" class="outline-3">
|
||||||
<h3 id="org066d0db"><span class="section-number-3">5.2</span> Value, gradients, Laplacian</h3>
|
<h3 id="org70fc224"><span class="section-number-3">5.2</span> Value, gradients, Laplacian</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-orgc83e8b0" class="outline-4">
|
<div id="outline-container-org8e6f9fb" class="outline-4">
|
||||||
<h4 id="orgc83e8b0"><span class="section-number-4">5.2.1</span> Reference version</h4>
|
<h4 id="org8e6f9fb"><span class="section-number-4">5.2.1</span> Reference version</h4>
|
||||||
<div class="outline-text-4" id="text-5-2-1">
|
<div class="outline-text-4" id="text-5-2-1">
|
||||||
<table id="org4ba6951" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgd32603f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -3946,10 +3946,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org1f77c16" class="outline-4">
|
<div id="outline-container-org0b2bd9c" class="outline-4">
|
||||||
<h4 id="org1f77c16"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
<h4 id="org0b2bd9c"><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="org6294959" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org29d3800" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -4108,8 +4108,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-org873cd4b" class="outline-4">
|
<div id="outline-container-org553295f" class="outline-4">
|
||||||
<h4 id="org873cd4b"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
<h4 id="org553295f"><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_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> (
|
||||||
@ -4161,7 +4161,7 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
|||||||
</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: 2023-05-24 Wed 23:14</p>
|
<p class="date">Created: 2023-05-24 Wed 23:50</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>
|
||||||
|
178
qmckl_blas.html
178
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>
|
||||||
<!-- 2023-05-24 Wed 23:14 -->
|
<!-- 2023-05-24 Wed 23:50 -->
|
||||||
<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,55 +346,55 @@ 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="#org682ee8a">-</a></li>
|
<li><a href="#orgf8a1108">-</a></li>
|
||||||
<li><a href="#org8b7aac3">1. Data types</a>
|
<li><a href="#orgab7694a">1. Data types</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgb0c0d05">1.1. Vector</a></li>
|
<li><a href="#org22c7ed1">1.1. Vector</a></li>
|
||||||
<li><a href="#org459bc23">1.2. Matrix</a></li>
|
<li><a href="#orgbd4ff2e">1.2. Matrix</a></li>
|
||||||
<li><a href="#org303cd93">1.3. Tensor</a></li>
|
<li><a href="#orged7fcb4">1.3. Tensor</a></li>
|
||||||
<li><a href="#org2e5d659">1.4. Reshaping</a>
|
<li><a href="#orgfbd7944">1.4. Reshaping</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgb1d9f50">1.4.1. Vector -> Matrix</a></li>
|
<li><a href="#org3411334">1.4.1. Vector -> Matrix</a></li>
|
||||||
<li><a href="#org0b40683">1.4.2. Vector -> Tensor</a></li>
|
<li><a href="#org7ff378e">1.4.2. Vector -> Tensor</a></li>
|
||||||
<li><a href="#orgbbbb9f5">1.4.3. Matrix -> Vector</a></li>
|
<li><a href="#org01306b9">1.4.3. Matrix -> Vector</a></li>
|
||||||
<li><a href="#org93e7fc1">1.4.4. Matrix -> Tensor</a></li>
|
<li><a href="#org3bbc480">1.4.4. Matrix -> Tensor</a></li>
|
||||||
<li><a href="#orgc9bd596">1.4.5. Tensor -> Vector</a></li>
|
<li><a href="#org0ef7e20">1.4.5. Tensor -> Vector</a></li>
|
||||||
<li><a href="#org789a6b6">1.4.6. Tensor -> Matrix</a></li>
|
<li><a href="#org53aa25f">1.4.6. Tensor -> Matrix</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgead6a1a">1.5. Access macros</a></li>
|
<li><a href="#org7c594d5">1.5. Access macros</a></li>
|
||||||
<li><a href="#org8fa1a0f">1.6. Set all elements</a>
|
<li><a href="#orgb7e3707">1.6. Set all elements</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org36b72a3">1.6.1. Vector</a></li>
|
<li><a href="#orgbedc7ab">1.6.1. Vector</a></li>
|
||||||
<li><a href="#orgaf79761">1.6.2. Matrix</a></li>
|
<li><a href="#org0a4abd5">1.6.2. Matrix</a></li>
|
||||||
<li><a href="#orga02b772">1.6.3. Tensor</a></li>
|
<li><a href="#org4ce7d5f">1.6.3. Tensor</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgfc8a4b8">1.7. Copy to/from to <code>double*</code></a></li>
|
<li><a href="#orge9dae4e">1.7. Copy to/from to <code>double*</code></a></li>
|
||||||
<li><a href="#org633c4c8">1.8. Allocate and copy to <code>double*</code></a></li>
|
<li><a href="#org2cd1add">1.8. Allocate and copy to <code>double*</code></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org5dfa666">2. Matrix operations</a>
|
<li><a href="#org40aae5e">2. Matrix operations</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org03d2955">2.1. <code>qmckl_dgemm</code></a></li>
|
<li><a href="#org202e64b">2.1. <code>qmckl_dgemm</code></a></li>
|
||||||
<li><a href="#orgbd7c41e">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
<li><a href="#orgd1627a6">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||||
<li><a href="#orgabe14ac">2.3. <code>qmckl_matmul</code></a></li>
|
<li><a href="#org37d95c2">2.3. <code>qmckl_matmul</code></a></li>
|
||||||
<li><a href="#org24b9176">2.4. <code>qmckl_adjugate</code></a></li>
|
<li><a href="#org2e553fc">2.4. <code>qmckl_adjugate</code></a></li>
|
||||||
<li><a href="#orge4ea895">2.5. <code>qmckl_adjugate_safe</code></a>
|
<li><a href="#orgd794fe8">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org449e390">2.5.1. C interface</a></li>
|
<li><a href="#org175ba94">2.5.1. C interface</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgb8654eb">2.6. <code>qmckl_transpose</code></a></li>
|
<li><a href="#org1a4d829">2.6. <code>qmckl_transpose</code></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org682ee8a" class="outline-2">
|
<div id="outline-container-orgf8a1108" class="outline-2">
|
||||||
<h2 id="org682ee8a">-</h2>
|
<h2 id="orgf8a1108">-</h2>
|
||||||
<div class="outline-text-2" id="text-org682ee8a">
|
<div class="outline-text-2" id="text-orgf8a1108">
|
||||||
<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
|
||||||
@ -408,12 +408,12 @@ are not intended to be passed to external codes.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org8b7aac3" class="outline-2">
|
<div id="outline-container-orgab7694a" class="outline-2">
|
||||||
<h2 id="org8b7aac3"><span class="section-number-2">1</span> Data types</h2>
|
<h2 id="orgab7694a"><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-orgb0c0d05" class="outline-3">
|
<div id="outline-container-org22c7ed1" class="outline-3">
|
||||||
<h3 id="orgb0c0d05"><span class="section-number-3">1.1</span> Vector</h3>
|
<h3 id="org22c7ed1"><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">
|
||||||
|
|
||||||
@ -467,8 +467,8 @@ Allocates a new vector. If the allocation failed the size is zero.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org459bc23" class="outline-3">
|
<div id="outline-container-orgbd4ff2e" class="outline-3">
|
||||||
<h3 id="org459bc23"><span class="section-number-3">1.2</span> Matrix</h3>
|
<h3 id="orgbd4ff2e"><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">
|
||||||
|
|
||||||
@ -528,8 +528,8 @@ Allocates a new matrix. If the allocation failed the sizes are zero.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org303cd93" class="outline-3">
|
<div id="outline-container-orged7fcb4" class="outline-3">
|
||||||
<h3 id="org303cd93"><span class="section-number-3">1.3</span> Tensor</h3>
|
<h3 id="orged7fcb4"><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">
|
||||||
|
|
||||||
@ -596,16 +596,16 @@ is zero.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org2e5d659" class="outline-3">
|
<div id="outline-container-orgfbd7944" class="outline-3">
|
||||||
<h3 id="org2e5d659"><span class="section-number-3">1.4</span> Reshaping</h3>
|
<h3 id="orgfbd7944"><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-orgb1d9f50" class="outline-4">
|
<div id="outline-container-org3411334" class="outline-4">
|
||||||
<h4 id="orgb1d9f50"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
<h4 id="org3411334"><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>
|
||||||
@ -621,8 +621,8 @@ Reshapes a vector into a matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0b40683" class="outline-4">
|
<div id="outline-container-org7ff378e" class="outline-4">
|
||||||
<h4 id="org0b40683"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
<h4 id="org7ff378e"><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>
|
||||||
@ -638,8 +638,8 @@ Reshapes a vector into a tensor.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgbbbb9f5" class="outline-4">
|
<div id="outline-container-org01306b9" class="outline-4">
|
||||||
<h4 id="orgbbbb9f5"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
<h4 id="org01306b9"><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>
|
||||||
@ -653,8 +653,8 @@ Reshapes a matrix into a vector.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org93e7fc1" class="outline-4">
|
<div id="outline-container-org3bbc480" class="outline-4">
|
||||||
<h4 id="org93e7fc1"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
<h4 id="org3bbc480"><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>
|
||||||
@ -670,8 +670,8 @@ Reshapes a matrix into a tensor.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc9bd596" class="outline-4">
|
<div id="outline-container-org0ef7e20" class="outline-4">
|
||||||
<h4 id="orgc9bd596"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
<h4 id="org0ef7e20"><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>
|
||||||
@ -685,8 +685,8 @@ Reshapes a tensor into a vector.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org789a6b6" class="outline-4">
|
<div id="outline-container-org53aa25f" class="outline-4">
|
||||||
<h4 id="org789a6b6"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
<h4 id="org53aa25f"><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>
|
||||||
@ -703,8 +703,8 @@ Reshapes a tensor into a vector.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgead6a1a" class="outline-3">
|
<div id="outline-container-org7c594d5" class="outline-3">
|
||||||
<h3 id="orgead6a1a"><span class="section-number-3">1.5</span> Access macros</h3>
|
<h3 id="org7c594d5"><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
|
||||||
@ -729,12 +729,12 @@ For example:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org8fa1a0f" class="outline-3">
|
<div id="outline-container-orgb7e3707" class="outline-3">
|
||||||
<h3 id="org8fa1a0f"><span class="section-number-3">1.6</span> Set all elements</h3>
|
<h3 id="orgb7e3707"><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-org36b72a3" class="outline-4">
|
<div id="outline-container-orgbedc7ab" class="outline-4">
|
||||||
<h4 id="org36b72a3"><span class="section-number-4">1.6.1</span> Vector</h4>
|
<h4 id="orgbedc7ab"><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>
|
||||||
@ -744,8 +744,8 @@ For example:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgaf79761" class="outline-4">
|
<div id="outline-container-org0a4abd5" class="outline-4">
|
||||||
<h4 id="orgaf79761"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
<h4 id="org0a4abd5"><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>
|
||||||
@ -755,8 +755,8 @@ For example:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga02b772" class="outline-4">
|
<div id="outline-container-org4ce7d5f" class="outline-4">
|
||||||
<h4 id="orga02b772"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
<h4 id="org4ce7d5f"><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>
|
||||||
@ -767,8 +767,8 @@ For example:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgfc8a4b8" class="outline-3">
|
<div id="outline-container-orge9dae4e" class="outline-3">
|
||||||
<h3 id="orgfc8a4b8"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
<h3 id="orge9dae4e"><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>
|
||||||
@ -850,8 +850,8 @@ Converts a <code>double*</code> to a tensor.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org633c4c8" class="outline-3">
|
<div id="outline-container-org2cd1add" class="outline-3">
|
||||||
<h3 id="org633c4c8"><span class="section-number-3">1.8</span> Allocate and copy to <code>double*</code></h3>
|
<h3 id="org2cd1add"><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>,
|
||||||
@ -875,12 +875,12 @@ Converts a <code>double*</code> to a tensor.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org5dfa666" class="outline-2">
|
<div id="outline-container-org40aae5e" class="outline-2">
|
||||||
<h2 id="org5dfa666"><span class="section-number-2">2</span> Matrix operations</h2>
|
<h2 id="org40aae5e"><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-org03d2955" class="outline-3">
|
<div id="outline-container-org202e64b" class="outline-3">
|
||||||
<h3 id="org03d2955"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
<h3 id="org202e64b"><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:
|
||||||
@ -892,7 +892,7 @@ Matrix multiplication with a BLAS interface:
|
|||||||
\]
|
\]
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table id="org711eefd" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org4340a88" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1051,8 +1051,8 @@ Requirements:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgbd7c41e" class="outline-3">
|
<div id="outline-container-orgd1627a6" class="outline-3">
|
||||||
<h3 id="orgbd7c41e"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
<h3 id="orgd1627a6"><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>
|
||||||
@ -1061,7 +1061,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="org85a1a86" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org4e2681d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1247,8 +1247,8 @@ Requirements:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgabe14ac" class="outline-3">
|
<div id="outline-container-org37d95c2" class="outline-3">
|
||||||
<h3 id="orgabe14ac"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
<h3 id="org37d95c2"><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:
|
||||||
@ -1260,7 +1260,7 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
|||||||
\]
|
\]
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table id="orgc156e06" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org5977614" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1354,8 +1354,8 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org24b9176" class="outline-3">
|
<div id="outline-container-org2e553fc" class="outline-3">
|
||||||
<h3 id="org24b9176"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
<h3 id="org2e553fc"><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
|
||||||
@ -1373,7 +1373,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="orgcd787f6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org397bc65" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1569,8 +1569,8 @@ determinant with the inverse:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orge4ea895" class="outline-3">
|
<div id="outline-container-orgd794fe8" class="outline-3">
|
||||||
<h3 id="orge4ea895"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
<h3 id="orgd794fe8"><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>
|
||||||
@ -1580,7 +1580,7 @@ NumPy arrays implies that sizes of the input and output arrays are provided.
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
<table id="org406fd18" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org7691cdf" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1702,13 +1702,13 @@ LAPACK library.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org449e390" class="outline-4">
|
<div id="outline-container-org175ba94" class="outline-4">
|
||||||
<h4 id="org449e390"><span class="section-number-4">2.5.1</span> C interface</h4>
|
<h4 id="org175ba94"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgb8654eb" class="outline-3">
|
<div id="outline-container-org1a4d829" class="outline-3">
|
||||||
<h3 id="orgb8654eb"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
<h3 id="org1a4d829"><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}\).
|
||||||
@ -1771,7 +1771,7 @@ Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
|||||||
</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: 2023-05-24 Wed 23:14</p>
|
<p class="date">Created: 2023-05-24 Wed 23:50</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>
|
||||||
<!-- 2023-05-24 Wed 23:14 -->
|
<!-- 2023-05-24 Wed 23:50 -->
|
||||||
<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="#org5f32e07">1. Context handling</a>
|
<li><a href="#orga5a2f0b">1. Context handling</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org04efc23">1.1. Data structure</a></li>
|
<li><a href="#org8fae1c8">1.1. Data structure</a></li>
|
||||||
<li><a href="#org58affe7">1.2. Creation</a></li>
|
<li><a href="#orgc33ab9b">1.2. Creation</a></li>
|
||||||
<li><a href="#orgf3e15fd">1.3. Locking</a></li>
|
<li><a href="#orgcae5506">1.3. Locking</a></li>
|
||||||
<li><a href="#org0a1cb42">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
<li><a href="#org43f11c5">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||||
<li><a href="#org4c181a1">1.5. Destroy</a></li>
|
<li><a href="#org262f308">1.5. Destroy</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org5f32e07" class="outline-2">
|
<div id="outline-container-orga5a2f0b" class="outline-2">
|
||||||
<h2 id="org5f32e07"><span class="section-number-2">1</span> Context handling</h2>
|
<h2 id="orga5a2f0b"><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="org9aa44e1"><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="org489626c"><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-org04efc23" class="outline-3">
|
<div id="outline-container-org8fae1c8" class="outline-3">
|
||||||
<h3 id="org04efc23"><span class="section-number-3">1.1</span> Data structure</h3>
|
<h3 id="org8fae1c8"><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="#org58affe7"><code>qmckl_context_create</code></a> <a href="#org4c181a1"><code>qmckl_context_destroy</code></a> and <a href="#org0a1cb42"><code>qmckl_context_copy</code></a>
|
<a href="#orgc33ab9b"><code>qmckl_context_create</code></a> <a href="#org262f308"><code>qmckl_context_destroy</code></a> and <a href="#org43f11c5"><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-org58affe7" class="outline-3">
|
<div id="outline-container-orgc33ab9b" class="outline-3">
|
||||||
<h3 id="org58affe7"><span class="section-number-3">1.2</span> Creation</h3>
|
<h3 id="orgc33ab9b"><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-orgf3e15fd" class="outline-3">
|
<div id="outline-container-orgcae5506" class="outline-3">
|
||||||
<h3 id="orgf3e15fd"><span class="section-number-3">1.3</span> Locking</h3>
|
<h3 id="orgcae5506"><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-org0a1cb42" class="outline-3">
|
<div id="outline-container-org43f11c5" class="outline-3">
|
||||||
<h3 id="org0a1cb42"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
<h3 id="org43f11c5"><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-org4c181a1" class="outline-3">
|
<div id="outline-container-org262f308" class="outline-3">
|
||||||
<h3 id="org4c181a1"><span class="section-number-3">1.5</span> Destroy</h3>
|
<h3 id="org262f308"><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: 2023-05-24 Wed 23:14</p>
|
<p class="date">Created: 2023-05-24 Wed 23:50</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>
|
||||||
<!-- 2023-05-24 Wed 23:14 -->
|
<!-- 2023-05-24 Wed 23:50 -->
|
||||||
<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="#orgdd59f9b">1. Context</a>
|
<li><a href="#org73c5cc5">1. Context</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orge77f2c0">1.1. Data structure</a></li>
|
<li><a href="#orgb5137bc">1.1. Data structure</a></li>
|
||||||
<li><a href="#org7051539">1.2. Access functions</a></li>
|
<li><a href="#org77bfdb0">1.2. Access functions</a></li>
|
||||||
<li><a href="#org4ba2a75">1.3. Initialization functions</a></li>
|
<li><a href="#orgbf560c2">1.3. Initialization functions</a></li>
|
||||||
<li><a href="#org3b5b1a4">1.4. Fortran Interfaces</a></li>
|
<li><a href="#org4a4b438">1.4. Fortran Interfaces</a></li>
|
||||||
<li><a href="#orga4f7718">1.5. Test</a></li>
|
<li><a href="#orgdc4e3a1">1.5. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgc99a0b1">2. Computation</a>
|
<li><a href="#org01c1cdf">2. Computation</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org6b37b8f">2.1. Determinant matrix</a>
|
<li><a href="#org5666a61">2.1. Determinant matrix</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgae490fb">2.1.1. Get</a></li>
|
<li><a href="#org270ad04">2.1.1. Get</a></li>
|
||||||
<li><a href="#org2a610c8">2.1.2. Provide</a></li>
|
<li><a href="#orgd652ea7">2.1.2. Provide</a></li>
|
||||||
<li><a href="#org188ac0d">2.1.3. Compute alpha</a></li>
|
<li><a href="#orga6b3d7a">2.1.3. Compute alpha</a></li>
|
||||||
<li><a href="#org54940bb">2.1.4. Compute beta</a></li>
|
<li><a href="#orgc97de7f">2.1.4. Compute beta</a></li>
|
||||||
<li><a href="#org49ef9cc">2.1.5. Test</a></li>
|
<li><a href="#orgd4d6e30">2.1.5. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org1884458">2.2. Inverse of Determinant matrix</a>
|
<li><a href="#org5b2ef38">2.2. Inverse of Determinant matrix</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orga8b8aeb">2.2.1. Get</a></li>
|
<li><a href="#orgb07fa83">2.2.1. Get</a></li>
|
||||||
<li><a href="#orgf19806e">2.2.2. Provide</a></li>
|
<li><a href="#orgf824b8f">2.2.2. Provide</a></li>
|
||||||
<li><a href="#org24f754a">2.2.3. Compute alpha</a></li>
|
<li><a href="#org009eabc">2.2.3. Compute alpha</a></li>
|
||||||
<li><a href="#orgbc72389">2.2.4. Compute beta</a></li>
|
<li><a href="#orge813816">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-orgdd59f9b" class="outline-2">
|
<div id="outline-container-org73c5cc5" class="outline-2">
|
||||||
<h2 id="orgdd59f9b"><span class="section-number-2">1</span> Context</h2>
|
<h2 id="org73c5cc5"><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-orge77f2c0" class="outline-3">
|
<div id="outline-container-orgb5137bc" class="outline-3">
|
||||||
<h3 id="orge77f2c0"><span class="section-number-3">1.1</span> Data structure</h3>
|
<h3 id="orgb5137bc"><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-org7051539" class="outline-3">
|
<div id="outline-container-org77bfdb0" class="outline-3">
|
||||||
<h3 id="org7051539"><span class="section-number-3">1.2</span> Access functions</h3>
|
<h3 id="org77bfdb0"><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-org4ba2a75" class="outline-3">
|
<div id="outline-container-orgbf560c2" class="outline-3">
|
||||||
<h3 id="org4ba2a75"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
<h3 id="orgbf560c2"><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-org3b5b1a4" class="outline-3">
|
<div id="outline-container-org4a4b438" class="outline-3">
|
||||||
<h3 id="org3b5b1a4"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
<h3 id="org4a4b438"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orga4f7718" class="outline-3">
|
<div id="outline-container-orgdc4e3a1" class="outline-3">
|
||||||
<h3 id="orga4f7718"><span class="section-number-3">1.5</span> Test</h3>
|
<h3 id="orgdc4e3a1"><span class="section-number-3">1.5</span> Test</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgc99a0b1" class="outline-2">
|
<div id="outline-container-org01c1cdf" class="outline-2">
|
||||||
<h2 id="orgc99a0b1"><span class="section-number-2">2</span> Computation</h2>
|
<h2 id="org01c1cdf"><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-org6b37b8f" class="outline-3">
|
<div id="outline-container-org5666a61" class="outline-3">
|
||||||
<h3 id="org6b37b8f"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
<h3 id="org5666a61"><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-orgae490fb" class="outline-4">
|
<div id="outline-container-org270ad04" class="outline-4">
|
||||||
<h4 id="orgae490fb"><span class="section-number-4">2.1.1</span> Get</h4>
|
<h4 id="org270ad04"><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-org2a610c8" class="outline-4">
|
<div id="outline-container-orgd652ea7" class="outline-4">
|
||||||
<h4 id="org2a610c8"><span class="section-number-4">2.1.2</span> Provide</h4>
|
<h4 id="orgd652ea7"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org188ac0d" class="outline-4">
|
<div id="outline-container-orga6b3d7a" class="outline-4">
|
||||||
<h4 id="org188ac0d"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
<h4 id="orga6b3d7a"><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="org3c4f857" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org054a879" 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-org54940bb" class="outline-4">
|
<div id="outline-container-orgc97de7f" class="outline-4">
|
||||||
<h4 id="org54940bb"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
<h4 id="orgc97de7f"><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="orgb6b865d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgced6cf7" 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-org49ef9cc" class="outline-4">
|
<div id="outline-container-orgd4d6e30" class="outline-4">
|
||||||
<h4 id="org49ef9cc"><span class="section-number-4">2.1.5</span> Test</h4>
|
<h4 id="orgd4d6e30"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org1884458" class="outline-3">
|
<div id="outline-container-org5b2ef38" class="outline-3">
|
||||||
<h3 id="org1884458"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
<h3 id="org5b2ef38"><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-orga8b8aeb" class="outline-4">
|
<div id="outline-container-orgb07fa83" class="outline-4">
|
||||||
<h4 id="orga8b8aeb"><span class="section-number-4">2.2.1</span> Get</h4>
|
<h4 id="orgb07fa83"><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-orgf19806e" class="outline-4">
|
<div id="outline-container-orgf824b8f" class="outline-4">
|
||||||
<h4 id="orgf19806e"><span class="section-number-4">2.2.2</span> Provide</h4>
|
<h4 id="orgf824b8f"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org24f754a" class="outline-4">
|
<div id="outline-container-org009eabc" class="outline-4">
|
||||||
<h4 id="org24f754a"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
<h4 id="org009eabc"><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="org2cedc7e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org1387776" 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-orgbc72389" class="outline-4">
|
<div id="outline-container-orge813816" class="outline-4">
|
||||||
<h4 id="orgbc72389"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
<h4 id="orge813816"><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="orge644237" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org3bbfad9" 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: 2023-05-24 Wed 23:14</p>
|
<p class="date">Created: 2023-05-24 Wed 23:50</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>
|
||||||
<!-- 2023-05-24 Wed 23:14 -->
|
<!-- 2023-05-24 Wed 23:50 -->
|
||||||
<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="#org9a6d2bc">1. Squared distance</a>
|
<li><a href="#org3c5b91f">1. Squared distance</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgbf439fa">1.1. <code>qmckl_distance_sq</code></a>
|
<li><a href="#orgf5a3064">1.1. <code>qmckl_distance_sq</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgc753a9a">1.1.1. Performance</a></li>
|
<li><a href="#orgbd76134">1.1.1. Performance</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org4013226">2. Distance</a>
|
<li><a href="#org052644d">2. Distance</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orge0d8732">2.1. <code>qmckl_distance</code></a>
|
<li><a href="#org3370b63">2.1. <code>qmckl_distance</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgca669b4">2.1.1. Requirements</a></li>
|
<li><a href="#org5f7b6ec">2.1.1. Requirements</a></li>
|
||||||
<li><a href="#orgd12c2e2">2.1.2. C header</a></li>
|
<li><a href="#orgad0991f">2.1.2. C header</a></li>
|
||||||
<li><a href="#orgf4cc93c">2.1.3. Source</a></li>
|
<li><a href="#org0efac64">2.1.3. Source</a></li>
|
||||||
<li><a href="#org11d2f66">2.1.4. Performance</a></li>
|
<li><a href="#org2eddabc">2.1.4. Performance</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgd0b1886">3. Rescaled Distance</a>
|
<li><a href="#org716833c">3. Rescaled Distance</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org71bc037">3.1. <code>qmckl_distance_rescaled</code></a>
|
<li><a href="#org64bcb6c">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgfecf108">3.1.1. Requirements</a></li>
|
<li><a href="#orgbc10ccb">3.1.1. Requirements</a></li>
|
||||||
<li><a href="#orgdae55c7">3.1.2. C header</a></li>
|
<li><a href="#org2011c35">3.1.2. C header</a></li>
|
||||||
<li><a href="#org2fb2240">3.1.3. Source</a></li>
|
<li><a href="#org54d411f">3.1.3. Source</a></li>
|
||||||
<li><a href="#orgcfae09a">3.1.4. Performance</a></li>
|
<li><a href="#org621c554">3.1.4. Performance</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org5802999">4. Rescaled Distance Derivatives</a>
|
<li><a href="#org9bd9f1b">4. Rescaled Distance Derivatives</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgdb47074">4.1. <code>qmckl_distance_rescaled_gl</code></a></li>
|
<li><a href="#org38ec0d4">4.1. <code>qmckl_distance_rescaled_gl</code></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org9a6d2bc" class="outline-2">
|
<div id="outline-container-org3c5b91f" class="outline-2">
|
||||||
<h2 id="org9a6d2bc"><span class="section-number-2">1</span> Squared distance</h2>
|
<h2 id="org3c5b91f"><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-orgbf439fa" class="outline-3">
|
<div id="outline-container-orgf5a3064" class="outline-3">
|
||||||
<h3 id="orgbf439fa"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
<h3 id="orgf5a3064"><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="org8b2044e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgebff9df" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -672,8 +672,8 @@ Requirements:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc753a9a" class="outline-4">
|
<div id="outline-container-orgbd76134" class="outline-4">
|
||||||
<h4 id="orgc753a9a"><span class="section-number-4">1.1.1</span> Performance</h4>
|
<h4 id="orgbd76134"><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
|
||||||
@ -683,12 +683,12 @@ transposed.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org4013226" class="outline-2">
|
<div id="outline-container-org052644d" class="outline-2">
|
||||||
<h2 id="org4013226"><span class="section-number-2">2</span> Distance</h2>
|
<h2 id="org052644d"><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-orge0d8732" class="outline-3">
|
<div id="outline-container-org3370b63" class="outline-3">
|
||||||
<h3 id="orge0d8732"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
<h3 id="org3370b63"><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
|
||||||
@ -706,7 +706,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="org7bd79c4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org785b9aa" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -807,8 +807,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-orgca669b4" class="outline-4">
|
<div id="outline-container-org5f7b6ec" class="outline-4">
|
||||||
<h4 id="orgca669b4"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
<h4 id="org5f7b6ec"><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>
|
||||||
@ -826,8 +826,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-orgd12c2e2" class="outline-4">
|
<div id="outline-container-orgad0991f" class="outline-4">
|
||||||
<h4 id="orgd12c2e2"><span class="section-number-4">2.1.2</span> C header</h4>
|
<h4 id="orgad0991f"><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> (
|
||||||
@ -847,8 +847,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-orgf4cc93c" class="outline-4">
|
<div id="outline-container-org0efac64" class="outline-4">
|
||||||
<h4 id="orgf4cc93c"><span class="section-number-4">2.1.3</span> Source</h4>
|
<h4 id="org0efac64"><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: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
<pre class="src src-f90"><span style="color: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
||||||
@ -995,8 +995,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-org11d2f66" class="outline-4">
|
<div id="outline-container-org2eddabc" class="outline-4">
|
||||||
<h4 id="org11d2f66"><span class="section-number-4">2.1.4</span> Performance</h4>
|
<h4 id="org2eddabc"><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.
|
||||||
@ -1006,12 +1006,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd0b1886" class="outline-2">
|
<div id="outline-container-org716833c" class="outline-2">
|
||||||
<h2 id="orgd0b1886"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
<h2 id="org716833c"><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-org71bc037" class="outline-3">
|
<div id="outline-container-org64bcb6c" class="outline-3">
|
||||||
<h3 id="org71bc037"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
<h3 id="org64bcb6c"><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
|
||||||
@ -1029,7 +1029,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="org8f00f35" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgb657cad" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1137,8 +1137,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-orgfecf108" class="outline-4">
|
<div id="outline-container-orgbc10ccb" class="outline-4">
|
||||||
<h4 id="orgfecf108"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
<h4 id="orgbc10ccb"><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>
|
||||||
@ -1156,8 +1156,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-orgdae55c7" class="outline-4">
|
<div id="outline-container-org2011c35" class="outline-4">
|
||||||
<h4 id="orgdae55c7"><span class="section-number-4">3.1.2</span> C header</h4>
|
<h4 id="org2011c35"><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> (
|
||||||
@ -1178,8 +1178,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-org2fb2240" class="outline-4">
|
<div id="outline-container-org54d411f" class="outline-4">
|
||||||
<h4 id="org2fb2240"><span class="section-number-4">3.1.3</span> Source</h4>
|
<h4 id="org54d411f"><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: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_rescaled_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
<pre class="src src-f90"><span style="color: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_rescaled_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
||||||
@ -1329,8 +1329,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-orgcfae09a" class="outline-4">
|
<div id="outline-container-org621c554" class="outline-4">
|
||||||
<h4 id="orgcfae09a"><span class="section-number-4">3.1.4</span> Performance</h4>
|
<h4 id="org621c554"><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.
|
||||||
@ -1339,12 +1339,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-org5802999" class="outline-2">
|
<div id="outline-container-org9bd9f1b" class="outline-2">
|
||||||
<h2 id="org5802999"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
<h2 id="org9bd9f1b"><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-orgdb47074" class="outline-3">
|
<div id="outline-container-org38ec0d4" class="outline-3">
|
||||||
<h3 id="orgdb47074"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_gl</code></h3>
|
<h3 id="org38ec0d4"><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
|
||||||
@ -1399,7 +1399,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="org2f902f4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgd5a02cc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1715,7 +1715,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: 2023-05-24 Wed 23:14</p>
|
<p class="date">Created: 2023-05-24 Wed 23:50</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>
|
||||||
<!-- 2023-05-24 Wed 23:14 -->
|
<!-- 2023-05-24 Wed 23:50 -->
|
||||||
<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="#org8cdfa3d">1. Context</a>
|
<li><a href="#org6fd64db">1. Context</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org0e7f0cc">1.1. Data structure</a></li>
|
<li><a href="#org8e9ff1b">1.1. Data structure</a></li>
|
||||||
<li><a href="#org5ad7fff">1.2. Initialization functions</a></li>
|
<li><a href="#org3fbdf41">1.2. Initialization functions</a></li>
|
||||||
<li><a href="#orgef204ec">1.3. Access functions</a>
|
<li><a href="#org47c2af9">1.3. Access functions</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgeeff19d">1.3.1. Number of electrons</a></li>
|
<li><a href="#org81884bc">1.3.1. Number of electrons</a></li>
|
||||||
<li><a href="#org4d8221e">1.3.2. Number of walkers</a></li>
|
<li><a href="#org41eb3f4">1.3.2. Number of walkers</a></li>
|
||||||
<li><a href="#orgce2f67b">1.3.3. Electron coordinates</a></li>
|
<li><a href="#orgde8346b">1.3.3. Electron coordinates</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org09e08f6">1.4. Test</a></li>
|
<li><a href="#org285806d">1.4. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orge440c12">2. Computation</a>
|
<li><a href="#orga02d985">2. Computation</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org842602f">2.1. Electron-electron distances</a>
|
<li><a href="#org5dbdda6">2.1. Electron-electron distances</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orged0d1b9">2.1.1. Get</a></li>
|
<li><a href="#org8cb34a4">2.1.1. Get</a></li>
|
||||||
<li><a href="#orgec2e8bc">2.1.2. Compute</a></li>
|
<li><a href="#orge134ac3">2.1.2. Compute</a></li>
|
||||||
<li><a href="#org96fdee0">2.1.3. Test</a></li>
|
<li><a href="#org11debe6">2.1.3. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org9daa211">2.2. Electron-electron potential</a>
|
<li><a href="#org478cbf7">2.2. Electron-electron potential</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org8f2e19a">2.2.1. Get</a></li>
|
<li><a href="#org1b8e309">2.2.1. Get</a></li>
|
||||||
<li><a href="#orgf66786f">2.2.2. Compute</a></li>
|
<li><a href="#org6a4dead">2.2.2. Compute</a></li>
|
||||||
<li><a href="#org0e7e9d3">2.2.3. Test</a></li>
|
<li><a href="#org0cad188">2.2.3. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgc9e7d89">2.3. Electron-nucleus distances</a>
|
<li><a href="#org4d3d439">2.3. Electron-nucleus distances</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org2b95918">2.3.1. Get</a></li>
|
<li><a href="#orgfcf689b">2.3.1. Get</a></li>
|
||||||
<li><a href="#org9385327">2.3.2. Compute</a></li>
|
<li><a href="#org916dffa">2.3.2. Compute</a></li>
|
||||||
<li><a href="#orgc1eb2c9">2.3.3. Test</a></li>
|
<li><a href="#org0115780">2.3.3. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org0978482">2.4. Electron-nucleus potential</a>
|
<li><a href="#orgf903ddc">2.4. Electron-nucleus potential</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org7c0a3da">2.4.1. Get</a></li>
|
<li><a href="#orgd62005e">2.4.1. Get</a></li>
|
||||||
<li><a href="#orga65400c">2.4.2. Compute</a></li>
|
<li><a href="#org599e0f0">2.4.2. Compute</a></li>
|
||||||
<li><a href="#org0a8c75a">2.4.3. Test</a></li>
|
<li><a href="#org7ea909c">2.4.3. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org7ac30d2">2.5. Generate initial coordinates</a></li>
|
<li><a href="#org3389349">2.5. Generate initial coordinates</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org8cdfa3d" class="outline-2">
|
<div id="outline-container-org6fd64db" class="outline-2">
|
||||||
<h2 id="org8cdfa3d"><span class="section-number-2">1</span> Context</h2>
|
<h2 id="org6fd64db"><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-org0e7f0cc" class="outline-3">
|
<div id="outline-container-org8e9ff1b" class="outline-3">
|
||||||
<h3 id="org0e7f0cc"><span class="section-number-3">1.1</span> Data structure</h3>
|
<h3 id="org8e9ff1b"><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-org5ad7fff" class="outline-3">
|
<div id="outline-container-org3fbdf41" class="outline-3">
|
||||||
<h3 id="org5ad7fff"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
<h3 id="org3fbdf41"><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-orgef204ec" class="outline-3">
|
<div id="outline-container-org47c2af9" class="outline-3">
|
||||||
<h3 id="orgef204ec"><span class="section-number-3">1.3</span> Access functions</h3>
|
<h3 id="org47c2af9"><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-orgeeff19d" class="outline-4">
|
<div id="outline-container-org81884bc" class="outline-4">
|
||||||
<h4 id="orgeeff19d"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
<h4 id="org81884bc"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org4d8221e" class="outline-4">
|
<div id="outline-container-org41eb3f4" class="outline-4">
|
||||||
<h4 id="org4d8221e"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
<h4 id="org41eb3f4"><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-orgce2f67b" class="outline-4">
|
<div id="outline-container-orgde8346b" class="outline-4">
|
||||||
<h4 id="orgce2f67b"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
<h4 id="orgde8346b"><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
|
||||||
@ -761,8 +761,8 @@ current points.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org09e08f6" class="outline-3">
|
<div id="outline-container-org285806d" class="outline-3">
|
||||||
<h3 id="org09e08f6"><span class="section-number-3">1.4</span> Test</h3>
|
<h3 id="org285806d"><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> */
|
||||||
@ -841,8 +841,8 @@ rc = qmckl_get_electron_coord (context, <span style="color: #8b2252;">'N'</span>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orge440c12" class="outline-2">
|
<div id="outline-container-orga02d985" class="outline-2">
|
||||||
<h2 id="orge440c12"><span class="section-number-2">2</span> Computation</h2>
|
<h2 id="orga02d985"><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
|
||||||
@ -855,12 +855,12 @@ current date is stored.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org842602f" class="outline-3">
|
<div id="outline-container-org5dbdda6" class="outline-3">
|
||||||
<h3 id="org842602f"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
<h3 id="org5dbdda6"><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-orged0d1b9" class="outline-4">
|
<div id="outline-container-org8cb34a4" class="outline-4">
|
||||||
<h4 id="orged0d1b9"><span class="section-number-4">2.1.1</span> Get</h4>
|
<h4 id="org8cb34a4"><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>);
|
||||||
@ -869,10 +869,10 @@ current date is stored.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgec2e8bc" class="outline-4">
|
<div id="outline-container-orge134ac3" class="outline-4">
|
||||||
<h4 id="orgec2e8bc"><span class="section-number-4">2.1.2</span> Compute</h4>
|
<h4 id="orge134ac3"><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="org7393d8f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgb2e5721" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -977,8 +977,8 @@ current date is stored.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org96fdee0" class="outline-4">
|
<div id="outline-container-org11debe6" class="outline-4">
|
||||||
<h4 id="org96fdee0"><span class="section-number-4">2.1.3</span> Test</h4>
|
<h4 id="org11debe6"><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>));
|
||||||
@ -1012,8 +1012,8 @@ rc = qmckl_get_electron_ee_distance(context, ee_distance);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org9daa211" class="outline-3">
|
<div id="outline-container-org478cbf7" class="outline-3">
|
||||||
<h3 id="org9daa211"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
<h3 id="org478cbf7"><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
|
||||||
@ -1031,8 +1031,8 @@ distance.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org8f2e19a" class="outline-4">
|
<div id="outline-container-org1b8e309" class="outline-4">
|
||||||
<h4 id="org8f2e19a"><span class="section-number-4">2.2.1</span> Get</h4>
|
<h4 id="org1b8e309"><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>);
|
||||||
@ -1041,10 +1041,10 @@ distance.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf66786f" class="outline-4">
|
<div id="outline-container-org6a4dead" class="outline-4">
|
||||||
<h4 id="orgf66786f"><span class="section-number-4">2.2.2</span> Compute</h4>
|
<h4 id="org6a4dead"><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="org0b248a6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgc1c3397" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1160,8 +1160,8 @@ distance.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0e7e9d3" class="outline-4">
|
<div id="outline-container-org0cad188" class="outline-4">
|
||||||
<h4 id="org0e7e9d3"><span class="section-number-4">2.2.3</span> Test</h4>
|
<h4 id="org0cad188"><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];
|
||||||
@ -1173,12 +1173,12 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgc9e7d89" class="outline-3">
|
<div id="outline-container-org4d3d439" class="outline-3">
|
||||||
<h3 id="orgc9e7d89"><span class="section-number-3">2.3</span> Electron-nucleus distances</h3>
|
<h3 id="org4d3d439"><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-org2b95918" class="outline-4">
|
<div id="outline-container-orgfcf689b" class="outline-4">
|
||||||
<h4 id="org2b95918"><span class="section-number-4">2.3.1</span> Get</h4>
|
<h4 id="orgfcf689b"><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>);
|
||||||
@ -1187,10 +1187,10 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org9385327" class="outline-4">
|
<div id="outline-container-org916dffa" class="outline-4">
|
||||||
<h4 id="org9385327"><span class="section-number-4">2.3.2</span> Compute</h4>
|
<h4 id="org916dffa"><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="orga66e922" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org555c1c5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1297,8 +1297,8 @@ rc = qmckl_get_electron_ee_potential(context, &(ee_potential[0]));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc1eb2c9" class="outline-4">
|
<div id="outline-container-org0115780" class="outline-4">
|
||||||
<h4 id="orgc1eb2c9"><span class="section-number-4">2.3.3</span> Test</h4>
|
<h4 id="org0115780"><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">
|
||||||
@ -1346,8 +1346,8 @@ rc = qmckl_get_electron_en_distance(context, &(en_distance[0][0][0]));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0978482" class="outline-3">
|
<div id="outline-container-orgf903ddc" class="outline-3">
|
||||||
<h3 id="org0978482"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
<h3 id="orgf903ddc"><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
|
||||||
@ -1365,8 +1365,8 @@ distance and \[Z_A\] is the nuclear charge.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org7c0a3da" class="outline-4">
|
<div id="outline-container-orgd62005e" class="outline-4">
|
||||||
<h4 id="org7c0a3da"><span class="section-number-4">2.4.1</span> Get</h4>
|
<h4 id="orgd62005e"><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>);
|
||||||
@ -1375,10 +1375,10 @@ distance and \[Z_A\] is the nuclear charge.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga65400c" class="outline-4">
|
<div id="outline-container-org599e0f0" class="outline-4">
|
||||||
<h4 id="orga65400c"><span class="section-number-4">2.4.2</span> Compute</h4>
|
<h4 id="org599e0f0"><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="org3c5caab" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org1f382a0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1512,8 +1512,8 @@ distance and \[Z_A\] is the nuclear charge.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0a8c75a" class="outline-4">
|
<div id="outline-container-org7ea909c" class="outline-4">
|
||||||
<h4 id="org0a8c75a"><span class="section-number-4">2.4.3</span> Test</h4>
|
<h4 id="org7ea909c"><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];
|
||||||
@ -1526,14 +1526,14 @@ rc = qmckl_get_electron_en_potential(context, &(en_potential[0]));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org7ac30d2" class="outline-3">
|
<div id="outline-container-org3389349" class="outline-3">
|
||||||
<h3 id="org7ac30d2"><span class="section-number-3">2.5</span> Generate initial coordinates</h3>
|
<h3 id="org3389349"><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: 2023-05-24 Wed 23:14</p>
|
<p class="date">Created: 2023-05-24 Wed 23:50</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>
|
||||||
<!-- 2023-05-24 Wed 23:14 -->
|
<!-- 2023-05-24 Wed 23:50 -->
|
||||||
<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="#org159ee74">-</a></li>
|
<li><a href="#org35dbc7c">-</a></li>
|
||||||
<li><a href="#org15c7115">1. Decoding errors</a></li>
|
<li><a href="#org9956e3d">1. Decoding errors</a></li>
|
||||||
<li><a href="#org1443cce">2. Data structure in context</a></li>
|
<li><a href="#orgd4f0198">2. Data structure in context</a></li>
|
||||||
<li><a href="#orgd3eceed">3. Updating errors in the context</a></li>
|
<li><a href="#org7919ace">3. Updating errors in the context</a></li>
|
||||||
<li><a href="#org8c2c4db">4. Get the error</a></li>
|
<li><a href="#orgec2ba1a">4. Get the error</a></li>
|
||||||
<li><a href="#org790b687">5. Failing</a></li>
|
<li><a href="#orgdc0d5b2">5. Failing</a></li>
|
||||||
<li><a href="#org39e67f1">6. Last error</a>
|
<li><a href="#orgdbf4234">6. Last error</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org009e9c9">6.1. Fortran inteface</a></li>
|
<li><a href="#org0ab8a08">6.1. Fortran inteface</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgf58572b">7. Helper functions for debugging</a>
|
<li><a href="#orgbedc6c0">7. Helper functions for debugging</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgf0eb133">7.1. Fortran inteface</a></li>
|
<li><a href="#orgd51d187">7.1. Fortran inteface</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org159ee74" class="outline-2">
|
<div id="outline-container-org35dbc7c" class="outline-2">
|
||||||
<h2 id="org159ee74">-</h2>
|
<h2 id="org35dbc7c">-</h2>
|
||||||
<div class="outline-text-2" id="text-org159ee74">
|
<div class="outline-text-2" id="text-org35dbc7c">
|
||||||
<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="orgadcf479"><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="org173f1f6"><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="orgc0cbf43" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orga60d088" 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-org15c7115" class="outline-2">
|
<div id="outline-container-org9956e3d" class="outline-2">
|
||||||
<h2 id="org15c7115"><span class="section-number-2">1</span> Decoding errors</h2>
|
<h2 id="org9956e3d"><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-org1443cce" class="outline-2">
|
<div id="outline-container-orgd4f0198" class="outline-2">
|
||||||
<h2 id="org1443cce"><span class="section-number-2">2</span> Data structure in context</h2>
|
<h2 id="orgd4f0198"><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-orgd3eceed" class="outline-2">
|
<div id="outline-container-org7919ace" class="outline-2">
|
||||||
<h2 id="orgd3eceed"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
<h2 id="org7919ace"><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-org8c2c4db" class="outline-2">
|
<div id="outline-container-orgec2ba1a" class="outline-2">
|
||||||
<h2 id="org8c2c4db"><span class="section-number-2">4</span> Get the error</h2>
|
<h2 id="orgec2ba1a"><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-org790b687" class="outline-2">
|
<div id="outline-container-orgdc0d5b2" class="outline-2">
|
||||||
<h2 id="org790b687"><span class="section-number-2">5</span> Failing</h2>
|
<h2 id="orgdc0d5b2"><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-org39e67f1" class="outline-2">
|
<div id="outline-container-orgdbf4234" class="outline-2">
|
||||||
<h2 id="org39e67f1"><span class="section-number-2">6</span> Last error</h2>
|
<h2 id="orgdbf4234"><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-org009e9c9" class="outline-3">
|
<div id="outline-container-org0ab8a08" class="outline-3">
|
||||||
<h3 id="org009e9c9"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
<h3 id="org0ab8a08"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf58572b" class="outline-2">
|
<div id="outline-container-orgbedc6c0" class="outline-2">
|
||||||
<h2 id="orgf58572b"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
<h2 id="orgbedc6c0"><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-orgf0eb133" class="outline-3">
|
<div id="outline-container-orgd51d187" class="outline-3">
|
||||||
<h3 id="orgf0eb133"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
<h3 id="orgd51d187"><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: 2023-05-24 Wed 23:14</p>
|
<p class="date">Created: 2023-05-24 Wed 23:50</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>
|
||||||
<!-- 2023-05-24 Wed 23:14 -->
|
<!-- 2023-05-24 Wed 23:50 -->
|
||||||
<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,27 +346,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="#orgd85a420">1. Python</a>
|
<li><a href="#org5ba8b73">1. Python</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgb9ef7ed">1.1. Check numerically that MOs are orthonormal</a></li>
|
<li><a href="#org5aad866">1.1. Check numerically that MOs are orthonormal</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orga9042dd">2. Fortran</a>
|
<li><a href="#orgf9ab7a3">2. Fortran</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org5d13e75">2.1. Checking errors</a></li>
|
<li><a href="#org09aaac0">2.1. Checking errors</a></li>
|
||||||
<li><a href="#org2736264">2.2. Computing an atomic orbital on a grid</a></li>
|
<li><a href="#orge683207">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-orgd85a420" class="outline-2">
|
<div id="outline-container-org5ba8b73" class="outline-2">
|
||||||
<h2 id="orgd85a420"><span class="section-number-2">1</span> Python</h2>
|
<h2 id="org5ba8b73"><span class="section-number-2">1</span> Python</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgb9ef7ed" class="outline-3">
|
<div id="outline-container-org5aad866" class="outline-3">
|
||||||
<h3 id="orgb9ef7ed"><span class="section-number-3">1.1</span> Check numerically that MOs are orthonormal</h3>
|
<h3 id="org5aad866"><span class="section-number-3">1.1</span> Check numerically that MOs are orthonormal</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
|
||||||
@ -542,12 +542,12 @@ and finally we compute the overlap between all the MOs as
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga9042dd" class="outline-2">
|
<div id="outline-container-orgf9ab7a3" class="outline-2">
|
||||||
<h2 id="orga9042dd"><span class="section-number-2">2</span> Fortran</h2>
|
<h2 id="orgf9ab7a3"><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-org5d13e75" class="outline-3">
|
<div id="outline-container-org09aaac0" class="outline-3">
|
||||||
<h3 id="org5d13e75"><span class="section-number-3">2.1</span> Checking errors</h3>
|
<h3 id="org09aaac0"><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
|
||||||
@ -556,7 +556,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="org365e22a"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
<pre class="src src-f90" id="org0056ca1"><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>
|
||||||
@ -574,8 +574,8 @@ error in text format and exits the program.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org2736264" class="outline-3">
|
<div id="outline-container-orge683207" class="outline-3">
|
||||||
<h3 id="org2736264"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
<h3 id="orge683207"><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
|
||||||
@ -794,7 +794,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: 2023-05-24 Wed 23:14</p>
|
<p class="date">Created: 2023-05-24 Wed 23:50</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>
|
||||||
<!-- 2023-05-24 Wed 23:14 -->
|
<!-- 2023-05-24 Wed 23:50 -->
|
||||||
<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="#org169ddd4">1. Context</a>
|
<li><a href="#orge7799a8">1. Context</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgb7a834b">1.1. Data structure</a></li>
|
<li><a href="#org4221040">1.1. Data structure</a></li>
|
||||||
<li><a href="#orge4dfc6e">1.2. Access functions</a></li>
|
<li><a href="#orgb1e23f2">1.2. Access functions</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgf8af970">2. Computation</a>
|
<li><a href="#orgae1fe4e">2. Computation</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org30c5230">2.1. Kinetic energy</a>
|
<li><a href="#org3d481aa">2.1. Kinetic energy</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgaff70f0">2.1.1. Get</a></li>
|
<li><a href="#orgd0f17ec">2.1.1. Get</a></li>
|
||||||
<li><a href="#orgb4fad32">2.1.2. Provide</a></li>
|
<li><a href="#orgef477a4">2.1.2. Provide</a></li>
|
||||||
<li><a href="#orgd235f0b">2.1.3. Compute kinetic enregy</a></li>
|
<li><a href="#orgda8d0dc">2.1.3. Compute kinetic enregy</a></li>
|
||||||
<li><a href="#orga360849">2.1.4. Test</a></li>
|
<li><a href="#orgdf0683d">2.1.4. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org8b7770b">2.2. Potential energy</a>
|
<li><a href="#orgb16b905">2.2. Potential energy</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgd1aa569">2.2.1. Get</a></li>
|
<li><a href="#org42c9b70">2.2.1. Get</a></li>
|
||||||
<li><a href="#org808d95f">2.2.2. Provide</a></li>
|
<li><a href="#org3688f34">2.2.2. Provide</a></li>
|
||||||
<li><a href="#org1a90070">2.2.3. Compute potential enregy</a></li>
|
<li><a href="#orgbf55cc3">2.2.3. Compute potential enregy</a></li>
|
||||||
<li><a href="#org3677afe">2.2.4. Test</a></li>
|
<li><a href="#org95083b3">2.2.4. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org4d37485">2.3. Local energy</a>
|
<li><a href="#orge850fc7">2.3. Local energy</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgfe877bb">2.3.1. Get</a></li>
|
<li><a href="#org2d162b3">2.3.1. Get</a></li>
|
||||||
<li><a href="#org33bc620">2.3.2. Provide</a></li>
|
<li><a href="#orga4e70a4">2.3.2. Provide</a></li>
|
||||||
<li><a href="#orgc0678da">2.3.3. Compute local enregy</a></li>
|
<li><a href="#orgebbee69">2.3.3. Compute local enregy</a></li>
|
||||||
<li><a href="#orgd410c11">2.3.4. Test</a></li>
|
<li><a href="#org9a46fd8">2.3.4. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgaa153ea">2.4. Drift vector</a>
|
<li><a href="#org54ccd2d">2.4. Drift vector</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org7715417">2.4.1. Get</a></li>
|
<li><a href="#orgf5f3e00">2.4.1. Get</a></li>
|
||||||
<li><a href="#org81eeefe">2.4.2. Provide</a></li>
|
<li><a href="#org396f6f4">2.4.2. Provide</a></li>
|
||||||
<li><a href="#org805f82f">2.4.3. Compute drift vector</a></li>
|
<li><a href="#org3c268ee">2.4.3. Compute drift vector</a></li>
|
||||||
<li><a href="#orgf8b3f89">2.4.4. Test</a></li>
|
<li><a href="#org4be1cd7">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-org169ddd4" class="outline-2">
|
<div id="outline-container-orge7799a8" class="outline-2">
|
||||||
<h2 id="org169ddd4"><span class="section-number-2">1</span> Context</h2>
|
<h2 id="orge7799a8"><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-orgb7a834b" class="outline-3">
|
<div id="outline-container-org4221040" class="outline-3">
|
||||||
<h3 id="orgb7a834b"><span class="section-number-3">1.1</span> Data structure</h3>
|
<h3 id="org4221040"><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-orge4dfc6e" class="outline-3">
|
<div id="outline-container-orgb1e23f2" class="outline-3">
|
||||||
<h3 id="orge4dfc6e"><span class="section-number-3">1.2</span> Access functions</h3>
|
<h3 id="orgb1e23f2"><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-orgf8af970" class="outline-2">
|
<div id="outline-container-orgae1fe4e" class="outline-2">
|
||||||
<h2 id="orgf8af970"><span class="section-number-2">2</span> Computation</h2>
|
<h2 id="orgae1fe4e"><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-org30c5230" class="outline-3">
|
<div id="outline-container-org3d481aa" class="outline-3">
|
||||||
<h3 id="org30c5230"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
<h3 id="org3d481aa"><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-orgaff70f0" class="outline-4">
|
<div id="outline-container-orgd0f17ec" class="outline-4">
|
||||||
<h4 id="orgaff70f0"><span class="section-number-4">2.1.1</span> Get</h4>
|
<h4 id="orgd0f17ec"><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-orgb4fad32" class="outline-4">
|
<div id="outline-container-orgef477a4" class="outline-4">
|
||||||
<h4 id="orgb4fad32"><span class="section-number-4">2.1.2</span> Provide</h4>
|
<h4 id="orgef477a4"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd235f0b" class="outline-4">
|
<div id="outline-container-orgda8d0dc" class="outline-4">
|
||||||
<h4 id="orgd235f0b"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
<h4 id="orgda8d0dc"><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="org14a5a80" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org6e24ec9" 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-orga360849" class="outline-4">
|
<div id="outline-container-orgdf0683d" class="outline-4">
|
||||||
<h4 id="orga360849"><span class="section-number-4">2.1.4</span> Test</h4>
|
<h4 id="orgdf0683d"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org8b7770b" class="outline-3">
|
<div id="outline-container-orgb16b905" class="outline-3">
|
||||||
<h3 id="org8b7770b"><span class="section-number-3">2.2</span> Potential energy</h3>
|
<h3 id="orgb16b905"><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-orgd1aa569" class="outline-4">
|
<div id="outline-container-org42c9b70" class="outline-4">
|
||||||
<h4 id="orgd1aa569"><span class="section-number-4">2.2.1</span> Get</h4>
|
<h4 id="org42c9b70"><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-org808d95f" class="outline-4">
|
<div id="outline-container-org3688f34" class="outline-4">
|
||||||
<h4 id="org808d95f"><span class="section-number-4">2.2.2</span> Provide</h4>
|
<h4 id="org3688f34"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org1a90070" class="outline-4">
|
<div id="outline-container-orgbf55cc3" class="outline-4">
|
||||||
<h4 id="org1a90070"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
<h4 id="orgbf55cc3"><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="orgea7cf3b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgb766cba" 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-org3677afe" class="outline-4">
|
<div id="outline-container-org95083b3" class="outline-4">
|
||||||
<h4 id="org3677afe"><span class="section-number-4">2.2.4</span> Test</h4>
|
<h4 id="org95083b3"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org4d37485" class="outline-3">
|
<div id="outline-container-orge850fc7" class="outline-3">
|
||||||
<h3 id="org4d37485"><span class="section-number-3">2.3</span> Local energy</h3>
|
<h3 id="orge850fc7"><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-orgfe877bb" class="outline-4">
|
<div id="outline-container-org2d162b3" class="outline-4">
|
||||||
<h4 id="orgfe877bb"><span class="section-number-4">2.3.1</span> Get</h4>
|
<h4 id="org2d162b3"><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-org33bc620" class="outline-4">
|
<div id="outline-container-orga4e70a4" class="outline-4">
|
||||||
<h4 id="org33bc620"><span class="section-number-4">2.3.2</span> Provide</h4>
|
<h4 id="orga4e70a4"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc0678da" class="outline-4">
|
<div id="outline-container-orgebbee69" class="outline-4">
|
||||||
<h4 id="orgc0678da"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
<h4 id="orgebbee69"><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="org8911284" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgfeaa258" 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-orgd410c11" class="outline-4">
|
<div id="outline-container-org9a46fd8" class="outline-4">
|
||||||
<h4 id="orgd410c11"><span class="section-number-4">2.3.4</span> Test</h4>
|
<h4 id="org9a46fd8"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgaa153ea" class="outline-3">
|
<div id="outline-container-org54ccd2d" class="outline-3">
|
||||||
<h3 id="orgaa153ea"><span class="section-number-3">2.4</span> Drift vector</h3>
|
<h3 id="org54ccd2d"><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-org7715417" class="outline-4">
|
<div id="outline-container-orgf5f3e00" class="outline-4">
|
||||||
<h4 id="org7715417"><span class="section-number-4">2.4.1</span> Get</h4>
|
<h4 id="orgf5f3e00"><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-org81eeefe" class="outline-4">
|
<div id="outline-container-org396f6f4" class="outline-4">
|
||||||
<h4 id="org81eeefe"><span class="section-number-4">2.4.2</span> Provide</h4>
|
<h4 id="org396f6f4"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org805f82f" class="outline-4">
|
<div id="outline-container-org3c268ee" class="outline-4">
|
||||||
<h4 id="org805f82f"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
<h4 id="org3c268ee"><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="orgec01592" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgb053e95" 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-orgf8b3f89" class="outline-4">
|
<div id="outline-container-org4be1cd7" class="outline-4">
|
||||||
<h4 id="orgf8b3f89"><span class="section-number-4">2.4.4</span> Test</h4>
|
<h4 id="org4be1cd7"><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: 2023-05-24 Wed 23:14</p>
|
<p class="date">Created: 2023-05-24 Wed 23:50</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>
|
||||||
<!-- 2023-05-24 Wed 23:14 -->
|
<!-- 2023-05-24 Wed 23:50 -->
|
||||||
<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="#org2c56184">1. Memory data structure for the context</a></li>
|
<li><a href="#org2edc9bd">1. Memory data structure for the context</a></li>
|
||||||
<li><a href="#org2789af5">2. Passing info to allocation routines</a></li>
|
<li><a href="#orgf9ef2db">2. Passing info to allocation routines</a></li>
|
||||||
<li><a href="#org4886dcd">3. Allocation/deallocation functions</a></li>
|
<li><a href="#orga0cdafc">3. Allocation/deallocation functions</a></li>
|
||||||
<li><a href="#org47695c9">4. Get the size of a memory block</a></li>
|
<li><a href="#orgbd594de">4. Get the size of a memory block</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org2c56184" class="outline-2">
|
<div id="outline-container-org2edc9bd" class="outline-2">
|
||||||
<h2 id="org2c56184"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
<h2 id="org2edc9bd"><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-org2789af5" class="outline-2">
|
<div id="outline-container-orgf9ef2db" class="outline-2">
|
||||||
<h2 id="org2789af5"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
<h2 id="orgf9ef2db"><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-org4886dcd" class="outline-2">
|
<div id="outline-container-orga0cdafc" class="outline-2">
|
||||||
<h2 id="org4886dcd"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
<h2 id="orga0cdafc"><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
|
||||||
@ -646,8 +646,8 @@ successful deallocation of the memory block.</li>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org47695c9" class="outline-2">
|
<div id="outline-container-orgbd594de" class="outline-2">
|
||||||
<h2 id="org47695c9"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
<h2 id="orgbd594de"><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
|
||||||
@ -742,7 +742,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: 2023-05-24 Wed 23:14</p>
|
<p class="date">Created: 2023-05-24 Wed 23:50</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>
|
||||||
|
186
qmckl_mo.html
186
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>
|
||||||
<!-- 2023-05-24 Wed 23:14 -->
|
<!-- 2023-05-24 Wed 23:50 -->
|
||||||
<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,68 +346,68 @@ 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="#org36e359b">1. Context</a>
|
<li><a href="#orgaff0262">1. Context</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org25b0d15">1.1. Data structure</a></li>
|
<li><a href="#orgb65e11e">1.1. Data structure</a></li>
|
||||||
<li><a href="#org7eb8625">1.2. Initialization functions</a></li>
|
<li><a href="#org655bb50">1.2. Initialization functions</a></li>
|
||||||
<li><a href="#org662f25f">1.3. Cusp adjsutment functions</a></li>
|
<li><a href="#org71449b6">1.3. Cusp adjsutment functions</a></li>
|
||||||
<li><a href="#org5dfcb78">1.4. Access functions</a>
|
<li><a href="#orga229a94">1.4. Access functions</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org5394ee5">1.4.1. Fortran interfaces</a></li>
|
<li><a href="#orgaa79e11">1.4.1. Fortran interfaces</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgdbb393b">1.5. Update</a>
|
<li><a href="#orgacedd99">1.5. Update</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org6dea52f">1.5.1. Fortran interface</a></li>
|
<li><a href="#org9481c0e">1.5.1. Fortran interface</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org0f2ecba">2. Computation</a>
|
<li><a href="#org716590d">2. Computation</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org262a4c1">2.1. Parameters of the cusp-correction functions</a></li>
|
<li><a href="#orgdf76c54">2.1. Parameters of the cusp-correction functions</a></li>
|
||||||
<li><a href="#org6ac494e">2.2. Computation of MOs: values only</a>
|
<li><a href="#orgef13d24">2.2. Computation of MOs: values only</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org698367a">2.2.1. Get</a></li>
|
<li><a href="#orge228910">2.2.1. Get</a></li>
|
||||||
<li><a href="#org13bbb00">2.2.2. Provide</a></li>
|
<li><a href="#orgf53cc7a">2.2.2. Provide</a></li>
|
||||||
<li><a href="#org46d49aa">2.2.3. Compute</a></li>
|
<li><a href="#orge4186f1">2.2.3. Compute</a></li>
|
||||||
<li><a href="#org2716f98">2.2.4. HPC version</a></li>
|
<li><a href="#orgbaf6756">2.2.4. HPC version</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org0396333">2.3. Computation of MOs: values, gradient, Laplacian</a>
|
<li><a href="#orge34e266">2.3. Computation of MOs: values, gradient, Laplacian</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgb86e25b">2.3.1. Get</a></li>
|
<li><a href="#org4a8139e">2.3.1. Get</a></li>
|
||||||
<li><a href="#orgc899c47">2.3.2. Provide</a></li>
|
<li><a href="#orgd32445c">2.3.2. Provide</a></li>
|
||||||
<li><a href="#org7944cb1">2.3.3. Compute</a></li>
|
<li><a href="#org747cfe2">2.3.3. Compute</a></li>
|
||||||
<li><a href="#orgdd133e6">2.3.4. HPC version</a></li>
|
<li><a href="#orgae48a85">2.3.4. HPC version</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org0bd29bd">2.4. Computation of cusp-corrected MOs: values only</a>
|
<li><a href="#orgecd2bc2">2.4. Computation of cusp-corrected MOs: values only</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgaf878c9">2.4.1. Compute</a></li>
|
<li><a href="#orgff999f5">2.4.1. Compute</a></li>
|
||||||
<li><a href="#orgac7e9c1">2.4.2. HPC version</a></li>
|
<li><a href="#org06fa4b5">2.4.2. HPC version</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org0e0787b">2.5. Computation of cusp-corrected MOs: values, gradient, Laplacian</a>
|
<li><a href="#org587addb">2.5. Computation of cusp-corrected MOs: values, gradient, Laplacian</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org6fac63f">2.5.1. Compute</a></li>
|
<li><a href="#org669c140">2.5.1. Compute</a></li>
|
||||||
<li><a href="#orgd72570e">2.5.2. HPC version</a></li>
|
<li><a href="#org0a1bb24">2.5.2. HPC version</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org05ca713">2.6. Rescaling of MO coefficients</a>
|
<li><a href="#org6662c26">2.6. Rescaling of MO coefficients</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org3fce21e">2.6.1. Fortran interface</a></li>
|
<li><a href="#orgc3fc300">2.6.1. Fortran interface</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org3e08cb2">2.7. Test</a></li>
|
<li><a href="#org08aa00b">2.7. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org36e359b" class="outline-2">
|
<div id="outline-container-orgaff0262" class="outline-2">
|
||||||
<h2 id="org36e359b"><span class="section-number-2">1</span> Context</h2>
|
<h2 id="orgaff0262"><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:
|
||||||
@ -486,8 +486,8 @@ Computed data:
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org25b0d15" class="outline-3">
|
<div id="outline-container-orgb65e11e" class="outline-3">
|
||||||
<h3 id="org25b0d15"><span class="section-number-3">1.1</span> Data structure</h3>
|
<h3 id="orgb65e11e"><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> {
|
||||||
@ -544,8 +544,8 @@ this mechanism.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org7eb8625" class="outline-3">
|
<div id="outline-container-org655bb50" class="outline-3">
|
||||||
<h3 id="org7eb8625"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
<h3 id="org655bb50"><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
|
||||||
@ -566,8 +566,8 @@ computed to accelerate the calculations.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org662f25f" class="outline-3">
|
<div id="outline-container-org71449b6" class="outline-3">
|
||||||
<h3 id="org662f25f"><span class="section-number-3">1.3</span> Cusp adjsutment functions</h3>
|
<h3 id="org71449b6"><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
|
||||||
@ -582,8 +582,8 @@ of the non-\(s\) AOs at the center.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org5dfcb78" class="outline-3">
|
<div id="outline-container-orga229a94" class="outline-3">
|
||||||
<h3 id="org5dfcb78"><span class="section-number-3">1.4</span> Access functions</h3>
|
<h3 id="orga229a94"><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
|
||||||
@ -596,13 +596,13 @@ function returns <code>true</code>.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org5394ee5" class="outline-4">
|
<div id="outline-container-orgaa79e11" class="outline-4">
|
||||||
<h4 id="org5394ee5"><span class="section-number-4">1.4.1</span> Fortran interfaces</h4>
|
<h4 id="orgaa79e11"><span class="section-number-4">1.4.1</span> Fortran interfaces</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgdbb393b" class="outline-3">
|
<div id="outline-container-orgacedd99" class="outline-3">
|
||||||
<h3 id="orgdbb393b"><span class="section-number-3">1.5</span> Update</h3>
|
<h3 id="orgacedd99"><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
|
||||||
@ -629,25 +629,25 @@ calculation. If the integer is non-zero, the MO will be kept.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org6dea52f" class="outline-4">
|
<div id="outline-container-org9481c0e" class="outline-4">
|
||||||
<h4 id="org6dea52f"><span class="section-number-4">1.5.1</span> Fortran interface</h4>
|
<h4 id="org9481c0e"><span class="section-number-4">1.5.1</span> Fortran interface</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0f2ecba" class="outline-2">
|
<div id="outline-container-org716590d" class="outline-2">
|
||||||
<h2 id="org0f2ecba"><span class="section-number-2">2</span> Computation</h2>
|
<h2 id="org716590d"><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-org262a4c1" class="outline-3">
|
<div id="outline-container-orgdf76c54" class="outline-3">
|
||||||
<h3 id="org262a4c1"><span class="section-number-3">2.1</span> Parameters of the cusp-correction functions</h3>
|
<h3 id="orgdf76c54"><span class="section-number-3">2.1</span> Parameters of the cusp-correction functions</h3>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org6ac494e" class="outline-3">
|
<div id="outline-container-orgef13d24" class="outline-3">
|
||||||
<h3 id="org6ac494e"><span class="section-number-3">2.2</span> Computation of MOs: values only</h3>
|
<h3 id="orgef13d24"><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-org698367a" class="outline-4">
|
<div id="outline-container-orge228910" class="outline-4">
|
||||||
<h4 id="org698367a"><span class="section-number-4">2.2.1</span> Get</h4>
|
<h4 id="orge228910"><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>
|
||||||
@ -671,8 +671,8 @@ Uses the given array to compute the values.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org13bbb00" class="outline-4">
|
<div id="outline-container-orgf53cc7a" class="outline-4">
|
||||||
<h4 id="org13bbb00"><span class="section-number-4">2.2.2</span> Provide</h4>
|
<h4 id="orgf53cc7a"><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>);
|
||||||
@ -757,10 +757,10 @@ Uses the given array to compute the values.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org46d49aa" class="outline-4">
|
<div id="outline-container-orge4186f1" class="outline-4">
|
||||||
<h4 id="org46d49aa"><span class="section-number-4">2.2.3</span> Compute</h4>
|
<h4 id="orge4186f1"><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="org64ec947" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org443a994" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -915,8 +915,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org2716f98" class="outline-4">
|
<div id="outline-container-orgbaf6756" class="outline-4">
|
||||||
<h4 id="org2716f98"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
<h4 id="orgbaf6756"><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
|
||||||
@ -1009,12 +1009,12 @@ matrix multiplication instead of a dgemm, as exposed in
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0396333" class="outline-3">
|
<div id="outline-container-orge34e266" class="outline-3">
|
||||||
<h3 id="org0396333"><span class="section-number-3">2.3</span> Computation of MOs: values, gradient, Laplacian</h3>
|
<h3 id="orge34e266"><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-orgb86e25b" class="outline-4">
|
<div id="outline-container-org4a8139e" class="outline-4">
|
||||||
<h4 id="orgb86e25b"><span class="section-number-4">2.3.1</span> Get</h4>
|
<h4 id="org4a8139e"><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>
|
||||||
@ -1038,8 +1038,8 @@ Uses the given array to compute the VGL.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc899c47" class="outline-4">
|
<div id="outline-container-orgd32445c" class="outline-4">
|
||||||
<h4 id="orgc899c47"><span class="section-number-4">2.3.2</span> Provide</h4>
|
<h4 id="orgd32445c"><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>);
|
||||||
@ -1123,10 +1123,10 @@ Uses the given array to compute the VGL.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org7944cb1" class="outline-4">
|
<div id="outline-container-org747cfe2" class="outline-4">
|
||||||
<h4 id="org7944cb1"><span class="section-number-4">2.3.3</span> Compute</h4>
|
<h4 id="org747cfe2"><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="org48adf35" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org329b720" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1299,8 +1299,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgdd133e6" class="outline-4">
|
<div id="outline-container-orgae48a85" class="outline-4">
|
||||||
<h4 id="orgdd133e6"><span class="section-number-4">2.3.4</span> HPC version</h4>
|
<h4 id="orgae48a85"><span class="section-number-4">2.3.4</span> HPC version</h4>
|
||||||
<div class="outline-text-4" id="text-2-3-4">
|
<div class="outline-text-4" id="text-2-3-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
|
||||||
@ -1446,14 +1446,14 @@ matrix multiplication instead of a dgemm, as exposed in
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0bd29bd" class="outline-3">
|
<div id="outline-container-orgecd2bc2" class="outline-3">
|
||||||
<h3 id="org0bd29bd"><span class="section-number-3">2.4</span> Computation of cusp-corrected MOs: values only</h3>
|
<h3 id="orgecd2bc2"><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-orgaf878c9" class="outline-4">
|
<div id="outline-container-orgff999f5" class="outline-4">
|
||||||
<h4 id="orgaf878c9"><span class="section-number-4">2.4.1</span> Compute</h4>
|
<h4 id="orgff999f5"><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="org5fe2bad" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org0d828f7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1692,8 +1692,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgac7e9c1" class="outline-4">
|
<div id="outline-container-org06fa4b5" class="outline-4">
|
||||||
<h4 id="orgac7e9c1"><span class="section-number-4">2.4.2</span> HPC version</h4>
|
<h4 id="org06fa4b5"><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
|
||||||
@ -1818,14 +1818,14 @@ matrix multiplication instead of a dgemm, as exposed in
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0e0787b" class="outline-3">
|
<div id="outline-container-org587addb" class="outline-3">
|
||||||
<h3 id="org0e0787b"><span class="section-number-3">2.5</span> Computation of cusp-corrected MOs: values, gradient, Laplacian</h3>
|
<h3 id="org587addb"><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-org6fac63f" class="outline-4">
|
<div id="outline-container-org669c140" class="outline-4">
|
||||||
<h4 id="org6fac63f"><span class="section-number-4">2.5.1</span> Compute</h4>
|
<h4 id="org669c140"><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="orge4089ee" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org4f818a9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -2121,8 +2121,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd72570e" class="outline-4">
|
<div id="outline-container-org0a1bb24" class="outline-4">
|
||||||
<h4 id="orgd72570e"><span class="section-number-4">2.5.2</span> HPC version</h4>
|
<h4 id="org0a1bb24"><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
|
||||||
@ -2323,8 +2323,8 @@ matrix multiplication instead of a dgemm, as exposed in
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org05ca713" class="outline-3">
|
<div id="outline-container-org6662c26" class="outline-3">
|
||||||
<h3 id="org05ca713"><span class="section-number-3">2.6</span> Rescaling of MO coefficients</h3>
|
<h3 id="org6662c26"><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
|
||||||
@ -2341,19 +2341,19 @@ correct range.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org3fce21e" class="outline-4">
|
<div id="outline-container-orgc3fc300" class="outline-4">
|
||||||
<h4 id="org3fce21e"><span class="section-number-4">2.6.1</span> Fortran interface</h4>
|
<h4 id="orgc3fc300"><span class="section-number-4">2.6.1</span> Fortran interface</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org3e08cb2" class="outline-3">
|
<div id="outline-container-org08aa00b" class="outline-3">
|
||||||
<h3 id="org3e08cb2"><span class="section-number-3">2.7</span> Test</h3>
|
<h3 id="org08aa00b"><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: 2023-05-24 Wed 23:14</p>
|
<p class="date">Created: 2023-05-24 Wed 23:50</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>
|
||||||
<!-- 2023-05-24 Wed 23:14 -->
|
<!-- 2023-05-24 Wed 23:50 -->
|
||||||
<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="#orge3bb6a8">1. Context</a>
|
<li><a href="#orgff0f8e4">1. Context</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org148b19c">1.1. Data structure</a></li>
|
<li><a href="#orga3d5d3b">1.1. Data structure</a></li>
|
||||||
<li><a href="#orga6332df">1.2. Access functions</a></li>
|
<li><a href="#org101c6e9">1.2. Access functions</a></li>
|
||||||
<li><a href="#org3ec4c14">1.3. Initialization functions</a></li>
|
<li><a href="#orgd0a1246">1.3. Initialization functions</a></li>
|
||||||
<li><a href="#org80877c4">1.4. Test</a></li>
|
<li><a href="#orgcb97bd5">1.4. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgf9b0e7e">2. Computation</a>
|
<li><a href="#orgad941df">2. Computation</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org1449334">2.1. Nucleus-nucleus distances</a>
|
<li><a href="#orga564b17">2.1. Nucleus-nucleus distances</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org1c0535d">2.1.1. Get</a></li>
|
<li><a href="#orgd92f57e">2.1.1. Get</a></li>
|
||||||
<li><a href="#orgf5a642f">2.1.2. Compute</a></li>
|
<li><a href="#orgc2d8efe">2.1.2. Compute</a></li>
|
||||||
<li><a href="#orgcebd39b">2.1.3. Test</a></li>
|
<li><a href="#org7f674e8">2.1.3. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orga2d255a">2.2. Nuclear repulsion energy</a>
|
<li><a href="#org0501412">2.2. Nuclear repulsion energy</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org3f38d7b">2.2.1. Get</a></li>
|
<li><a href="#org3ef0bc3">2.2.1. Get</a></li>
|
||||||
<li><a href="#orgda3594d">2.2.2. Compute</a></li>
|
<li><a href="#org0f90a69">2.2.2. Compute</a></li>
|
||||||
<li><a href="#org4921115">2.2.3. Test</a></li>
|
<li><a href="#org8a53ea4">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-orge3bb6a8" class="outline-2">
|
<div id="outline-container-orgff0f8e4" class="outline-2">
|
||||||
<h2 id="orge3bb6a8"><span class="section-number-2">1</span> Context</h2>
|
<h2 id="orgff0f8e4"><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-org148b19c" class="outline-3">
|
<div id="outline-container-orga3d5d3b" class="outline-3">
|
||||||
<h3 id="org148b19c"><span class="section-number-3">1.1</span> Data structure</h3>
|
<h3 id="orga3d5d3b"><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-orga6332df" class="outline-3">
|
<div id="outline-container-org101c6e9" class="outline-3">
|
||||||
<h3 id="orga6332df"><span class="section-number-3">1.2</span> Access functions</h3>
|
<h3 id="org101c6e9"><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-org3ec4c14" class="outline-3">
|
<div id="outline-container-orgd0a1246" class="outline-3">
|
||||||
<h3 id="org3ec4c14"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
<h3 id="orgd0a1246"><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-org80877c4" class="outline-3">
|
<div id="outline-container-orgcb97bd5" class="outline-3">
|
||||||
<h3 id="org80877c4"><span class="section-number-3">1.4</span> Test</h3>
|
<h3 id="orgcb97bd5"><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-orgf9b0e7e" class="outline-2">
|
<div id="outline-container-orgad941df" class="outline-2">
|
||||||
<h2 id="orgf9b0e7e"><span class="section-number-2">2</span> Computation</h2>
|
<h2 id="orgad941df"><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-org1449334" class="outline-3">
|
<div id="outline-container-orga564b17" class="outline-3">
|
||||||
<h3 id="org1449334"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
<h3 id="orga564b17"><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-org1c0535d" class="outline-4">
|
<div id="outline-container-orgd92f57e" class="outline-4">
|
||||||
<h4 id="org1c0535d"><span class="section-number-4">2.1.1</span> Get</h4>
|
<h4 id="orgd92f57e"><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-orgf5a642f" class="outline-4">
|
<div id="outline-container-orgc2d8efe" class="outline-4">
|
||||||
<h4 id="orgf5a642f"><span class="section-number-4">2.1.2</span> Compute</h4>
|
<h4 id="orgc2d8efe"><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="org2c27a6e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgde7492d" 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-orgcebd39b" class="outline-4">
|
<div id="outline-container-org7f674e8" class="outline-4">
|
||||||
<h4 id="orgcebd39b"><span class="section-number-4">2.1.3</span> Test</h4>
|
<h4 id="org7f674e8"><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-orga2d255a" class="outline-3">
|
<div id="outline-container-org0501412" class="outline-3">
|
||||||
<h3 id="orga2d255a"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
<h3 id="org0501412"><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-org3f38d7b" class="outline-4">
|
<div id="outline-container-org3ef0bc3" class="outline-4">
|
||||||
<h4 id="org3f38d7b"><span class="section-number-4">2.2.1</span> Get</h4>
|
<h4 id="org3ef0bc3"><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-orgda3594d" class="outline-4">
|
<div id="outline-container-org0f90a69" class="outline-4">
|
||||||
<h4 id="orgda3594d"><span class="section-number-4">2.2.2</span> Compute</h4>
|
<h4 id="org0f90a69"><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="org660da5e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org7cc7e5c" 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-org4921115" class="outline-4">
|
<div id="outline-container-org8a53ea4" class="outline-4">
|
||||||
<h4 id="org4921115"><span class="section-number-4">2.2.3</span> Test</h4>
|
<h4 id="org8a53ea4"><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: 2023-05-24 Wed 23:14</p>
|
<p class="date">Created: 2023-05-24 Wed 23:50</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>
|
||||||
<!-- 2023-05-24 Wed 23:14 -->
|
<!-- 2023-05-24 Wed 23:50 -->
|
||||||
<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>Numerical precision</title>
|
<title>Numerical precision</title>
|
||||||
@ -346,16 +346,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="#org3258a4b">1. Control of the numerical precision</a></li>
|
<li><a href="#orgf4538fb">1. Control of the numerical precision</a></li>
|
||||||
<li><a href="#orgb9b8c6b">2. Precision</a></li>
|
<li><a href="#org826948e">2. Precision</a></li>
|
||||||
<li><a href="#orgd9c3749">3. Range</a></li>
|
<li><a href="#orgcfdf4b1">3. Range</a></li>
|
||||||
<li><a href="#org12ef91d">4. Helper functions</a></li>
|
<li><a href="#org0307a08">4. Helper functions</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org3258a4b" class="outline-2">
|
<div id="outline-container-orgf4538fb" class="outline-2">
|
||||||
<h2 id="org3258a4b"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
<h2 id="orgf4538fb"><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
|
||||||
@ -366,7 +366,7 @@ Arithmetic (IEEE 754),
|
|||||||
refers to the number of exponent bits.
|
refers to the number of exponent bits.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table id="orgacf0d9e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org77f72a5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -410,8 +410,8 @@ integer. The update functions return <code>QMCKL_SUCCESS</code> or
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgb9b8c6b" class="outline-2">
|
<div id="outline-container-org826948e" class="outline-2">
|
||||||
<h2 id="orgb9b8c6b"><span class="section-number-2">2</span> Precision</h2>
|
<h2 id="org826948e"><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
|
||||||
@ -498,8 +498,8 @@ numerical precision in the context.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd9c3749" class="outline-2">
|
<div id="outline-container-orgcfdf4b1" class="outline-2">
|
||||||
<h2 id="orgd9c3749"><span class="section-number-2">3</span> Range</h2>
|
<h2 id="orgcfdf4b1"><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
|
||||||
@ -574,8 +574,8 @@ range in a given context.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org12ef91d" class="outline-2">
|
<div id="outline-container-org0307a08" class="outline-2">
|
||||||
<h2 id="org12ef91d"><span class="section-number-2">4</span> Helper functions</h2>
|
<h2 id="org0307a08"><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">
|
||||||
<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.
|
||||||
@ -594,7 +594,7 @@ We need to remove the sign bit from the precision.
|
|||||||
</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: 2023-05-24 Wed 23:14</p>
|
<p class="date">Created: 2023-05-24 Wed 23:50</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>
|
||||||
<!-- 2023-05-24 Wed 23:14 -->
|
<!-- 2023-05-24 Wed 23:50 -->
|
||||||
<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="#orgd384d4a">1. Context</a>
|
<li><a href="#orgfaef9ed">1. Context</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org537e89c">1.1. Data structure</a></li>
|
<li><a href="#orgb3d76db">1.1. Data structure</a></li>
|
||||||
<li><a href="#org3f5ae56">1.2. Access functions</a>
|
<li><a href="#org1a0202d">1.2. Access functions</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org381d70b">1.2.1. Number of points</a></li>
|
<li><a href="#org95d6252">1.2.1. Number of points</a></li>
|
||||||
<li><a href="#org99c2168">1.2.2. Point coordinates</a></li>
|
<li><a href="#org2cf0b59">1.2.2. Point coordinates</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org5b90dca">1.3. Initialization functions</a></li>
|
<li><a href="#org9308acf">1.3. Initialization functions</a></li>
|
||||||
<li><a href="#orga76967b">1.4. Test</a></li>
|
<li><a href="#org90b4f3f">1.4. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd384d4a" class="outline-2">
|
<div id="outline-container-orgfaef9ed" class="outline-2">
|
||||||
<h2 id="orgd384d4a"><span class="section-number-2">1</span> Context</h2>
|
<h2 id="orgfaef9ed"><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-org537e89c" class="outline-3">
|
<div id="outline-container-orgb3d76db" class="outline-3">
|
||||||
<h3 id="org537e89c"><span class="section-number-3">1.1</span> Data structure</h3>
|
<h3 id="orgb3d76db"><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-org3f5ae56" class="outline-3">
|
<div id="outline-container-org1a0202d" class="outline-3">
|
||||||
<h3 id="org3f5ae56"><span class="section-number-3">1.2</span> Access functions</h3>
|
<h3 id="org1a0202d"><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-org381d70b" class="outline-4">
|
<div id="outline-container-org95d6252" class="outline-4">
|
||||||
<h4 id="org381d70b"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
<h4 id="org95d6252"><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-org99c2168" class="outline-4">
|
<div id="outline-container-org2cf0b59" class="outline-4">
|
||||||
<h4 id="org99c2168"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
<h4 id="org2cf0b59"><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-org5b90dca" class="outline-3">
|
<div id="outline-container-org9308acf" class="outline-3">
|
||||||
<h3 id="org5b90dca"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
<h3 id="org9308acf"><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-orga76967b" class="outline-3">
|
<div id="outline-container-org90b4f3f" class="outline-3">
|
||||||
<h3 id="orga76967b"><span class="section-number-3">1.4</span> Test</h3>
|
<h3 id="org90b4f3f"><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: 2023-05-24 Wed 23:14</p>
|
<p class="date">Created: 2023-05-24 Wed 23:50</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>
|
||||||
<!-- 2023-05-24 Wed 23:14 -->
|
<!-- 2023-05-24 Wed 23:50 -->
|
||||||
<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,76 +346,76 @@ 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="#org0dbdd11">1. Headers</a></li>
|
<li><a href="#org7c7a8ae">1. Headers</a></li>
|
||||||
<li><a href="#org3cbe86b">2. Naïve Sherman-Morrison</a>
|
<li><a href="#org9b27903">2. Naïve Sherman-Morrison</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgc132d9f">2.1. <code>qmckl_sm_naive</code></a>
|
<li><a href="#org5bd50b7">2.1. <code>qmckl_sm_naive</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org8ee00fb">2.1.1. Introduction</a></li>
|
<li><a href="#org6c3447d">2.1.1. Introduction</a></li>
|
||||||
<li><a href="#org85378b9">2.1.2. API</a></li>
|
<li><a href="#org47a02bf">2.1.2. API</a></li>
|
||||||
<li><a href="#org451973c">2.1.3. Requirements</a></li>
|
<li><a href="#orga2891ee">2.1.3. Requirements</a></li>
|
||||||
<li><a href="#org1a65444">2.1.4. Pedagogical kernel source (in Fortran)</a>
|
<li><a href="#org44eb77d">2.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org56b8c4c">2.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
<li><a href="#org82aa915">2.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org269c473">2.1.5. C headers (exposed in qmckl.h)</a></li>
|
<li><a href="#org3a1dc35">2.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||||
<li><a href="#org50981a0">2.1.6. C sources</a></li>
|
<li><a href="#orgeabbcd5">2.1.6. C sources</a></li>
|
||||||
<li><a href="#org398975a">2.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
<li><a href="#org3c254f7">2.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||||
<li><a href="#orgab0c6cb">2.1.8. Performance</a></li>
|
<li><a href="#org89986d7">2.1.8. Performance</a></li>
|
||||||
<li><a href="#org3deacb6">2.1.9. Tests</a></li>
|
<li><a href="#org887b4c0">2.1.9. Tests</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org60a1a85">3. Sherman-Morrison with Slagel Splitting (core)</a>
|
<li><a href="#org2f5bbe1">3. Sherman-Morrison with Slagel Splitting (core)</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orge51fd05">3.1. <code>qmckl_sm_splitting_core</code></a>
|
<li><a href="#orga987ec6">3.1. <code>qmckl_sm_splitting_core</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgad781ee">3.1.1. Introduction</a></li>
|
<li><a href="#org00b936e">3.1.1. Introduction</a></li>
|
||||||
<li><a href="#org91435c5">3.1.2. API</a></li>
|
<li><a href="#org6d6663e">3.1.2. API</a></li>
|
||||||
<li><a href="#org6785a39">3.1.3. Requirements</a></li>
|
<li><a href="#orgad41a7d">3.1.3. Requirements</a></li>
|
||||||
<li><a href="#org4443472">3.1.4. Pedagogical kernel source (in Fortran)</a>
|
<li><a href="#org2f4aeff">3.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org3d0b9fc">3.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
<li><a href="#org80211f8">3.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgb279a9d">3.1.5. C headers (exposed in qmckl.h)</a></li>
|
<li><a href="#org9b40d6a">3.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||||
<li><a href="#org8ae211f">3.1.6. C sources</a></li>
|
<li><a href="#org6bfde78">3.1.6. C sources</a></li>
|
||||||
<li><a href="#org66e1ea8">3.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
<li><a href="#org11df84e">3.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||||
<li><a href="#org12a5e28">3.1.8. Performance</a></li>
|
<li><a href="#org592a643">3.1.8. Performance</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org8dfda94">4. Sherman-Morrison with Slagel Splitting</a>
|
<li><a href="#org0169e86">4. Sherman-Morrison with Slagel Splitting</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org5f5dd8b">4.1. <code>qmckl_sm_splitting</code></a>
|
<li><a href="#org48d89e7">4.1. <code>qmckl_sm_splitting</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org1eeb24f">4.1.1. Introduction</a></li>
|
<li><a href="#org41e0ab0">4.1.1. Introduction</a></li>
|
||||||
<li><a href="#org7eefecf">4.1.2. API</a></li>
|
<li><a href="#orgbd795bf">4.1.2. API</a></li>
|
||||||
<li><a href="#org8917139">4.1.3. Requirements</a></li>
|
<li><a href="#orgd516e51">4.1.3. Requirements</a></li>
|
||||||
<li><a href="#org2606d1d">4.1.4. Pedagogical kernel source (in Fortran)</a>
|
<li><a href="#org29411b4">4.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgd942a85">4.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
<li><a href="#org51c9812">4.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org1e80bc1">4.1.5. C headers (exposed in qmckl.h)</a></li>
|
<li><a href="#org6f49b7e">4.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||||
<li><a href="#orgaa41603">4.1.6. C source</a></li>
|
<li><a href="#org6996260">4.1.6. C source</a></li>
|
||||||
<li><a href="#orgc92d5d5">4.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
<li><a href="#org90b99e4">4.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||||
<li><a href="#org61fdb5d">4.1.8. Performance…</a></li>
|
<li><a href="#orgac8573a">4.1.8. Performance…</a></li>
|
||||||
<li><a href="#org9dcf302">4.1.9. Test</a></li>
|
<li><a href="#orgc43b8b3">4.1.9. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orga5ee2cb">5. End of files</a></li>
|
<li><a href="#org05e8cfb">5. End of files</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0dbdd11" class="outline-2">
|
<div id="outline-container-org7c7a8ae" class="outline-2">
|
||||||
<h2 id="org0dbdd11"><span class="section-number-2">1</span> Headers</h2>
|
<h2 id="org7c7a8ae"><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>
|
||||||
@ -437,17 +437,17 @@ This is the range that determines the how many high performance kernel instantce
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org3cbe86b" class="outline-2">
|
<div id="outline-container-org9b27903" class="outline-2">
|
||||||
<h2 id="org3cbe86b"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
<h2 id="org9b27903"><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-orgc132d9f" class="outline-3">
|
<div id="outline-container-org5bd50b7" class="outline-3">
|
||||||
<h3 id="orgc132d9f"><span class="section-number-3">2.1</span> <code>qmckl_sm_naive</code></h3>
|
<h3 id="org5bd50b7"><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-org8ee00fb" class="outline-4">
|
<div id="outline-container-org6c3447d" class="outline-4">
|
||||||
<h4 id="org8ee00fb"><span class="section-number-4">2.1.1</span> Introduction</h4>
|
<h4 id="org6c3447d"><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
|
||||||
@ -497,10 +497,10 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org85378b9" class="outline-4">
|
<div id="outline-container-org47a02bf" class="outline-4">
|
||||||
<h4 id="org85378b9"><span class="section-number-4">2.1.2</span> API</h4>
|
<h4 id="org47a02bf"><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="org9896522" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org66f81c1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -588,8 +588,8 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org451973c" class="outline-4">
|
<div id="outline-container-orga2891ee" class="outline-4">
|
||||||
<h4 id="org451973c"><span class="section-number-4">2.1.3</span> Requirements</h4>
|
<h4 id="orga2891ee"><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>
|
||||||
@ -605,8 +605,8 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org1a65444" class="outline-4">
|
<div id="outline-container-org44eb77d" class="outline-4">
|
||||||
<h4 id="org1a65444"><span class="section-number-4">2.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
<h4 id="org44eb77d"><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
|
||||||
@ -700,8 +700,8 @@ not be used in real workloads.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org56b8c4c" class="outline-5">
|
<div id="outline-container-org82aa915" class="outline-5">
|
||||||
<h5 id="org56b8c4c"><span class="section-number-5">2.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
<h5 id="org82aa915"><span class="section-number-5">2.1.4.1</span> C interface to the pedagogical kernel (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
|
||||||
@ -713,8 +713,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-org269c473" class="outline-4">
|
<div id="outline-container-org3a1dc35" class="outline-4">
|
||||||
<h4 id="org269c473"><span class="section-number-4">2.1.5</span> C headers (exposed in qmckl.h)</h4>
|
<h4 id="org3a1dc35"><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> (
|
||||||
@ -760,8 +760,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-org50981a0" class="outline-4">
|
<div id="outline-container-orgeabbcd5" class="outline-4">
|
||||||
<h4 id="org50981a0"><span class="section-number-4">2.1.6</span> C sources</h4>
|
<h4 id="orgeabbcd5"><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.
|
||||||
@ -879,7 +879,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="org25bbd0c"><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="org254eacc"><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,
|
||||||
@ -955,7 +955,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="orgacb9030"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
<pre class="src src-python" id="org0530568"><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>
|
||||||
@ -1039,7 +1039,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="org203f1b9"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
<pre class="src src-python" id="org1153225"><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>
|
||||||
@ -2679,14 +2679,14 @@ Python script that generated C switch cases that call individual kernel instance
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org398975a" class="outline-4">
|
<div id="outline-container-org3c254f7" class="outline-4">
|
||||||
<h4 id="org398975a"><span class="section-number-4">2.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
<h4 id="org3c254f7"><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-orgab0c6cb" class="outline-4">
|
<div id="outline-container-org89986d7" class="outline-4">
|
||||||
<h4 id="orgab0c6cb"><span class="section-number-4">2.1.8</span> Performance</h4>
|
<h4 id="org89986d7"><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
|
||||||
@ -2695,8 +2695,8 @@ can never resolve a situation where applying the update causes singular behaviou
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org3deacb6" class="outline-4">
|
<div id="outline-container-org887b4c0" class="outline-4">
|
||||||
<h4 id="org3deacb6"><span class="section-number-4">2.1.9</span> Tests</h4>
|
<h4 id="org887b4c0"><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
|
||||||
@ -2764,17 +2764,17 @@ rc = QMCKL_SUCCESS;
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-org60a1a85" class="outline-2">
|
<div id="outline-container-org2f5bbe1" class="outline-2">
|
||||||
<h2 id="org60a1a85"><span class="section-number-2">3</span> Sherman-Morrison with Slagel Splitting (core)</h2>
|
<h2 id="org2f5bbe1"><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-orge51fd05" class="outline-3">
|
<div id="outline-container-orga987ec6" class="outline-3">
|
||||||
<h3 id="orge51fd05"><span class="section-number-3">3.1</span> <code>qmckl_sm_splitting_core</code></h3>
|
<h3 id="orga987ec6"><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-orgad781ee" class="outline-4">
|
<div id="outline-container-org00b936e" class="outline-4">
|
||||||
<h4 id="orgad781ee"><span class="section-number-4">3.1.1</span> Introduction</h4>
|
<h4 id="org00b936e"><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.
|
||||||
@ -2802,10 +2802,10 @@ If the determinant is passed it will only be partially updated if there were any
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org91435c5" class="outline-4">
|
<div id="outline-container-org6d6663e" class="outline-4">
|
||||||
<h4 id="org91435c5"><span class="section-number-4">3.1.2</span> API</h4>
|
<h4 id="org6d6663e"><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="org3b29620" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgee24986" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -2914,8 +2914,8 @@ If the determinant is passed it will only be partially updated if there were any
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org6785a39" class="outline-4">
|
<div id="outline-container-orgad41a7d" class="outline-4">
|
||||||
<h4 id="org6785a39"><span class="section-number-4">3.1.3</span> Requirements</h4>
|
<h4 id="orgad41a7d"><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>
|
||||||
@ -2932,8 +2932,8 @@ If the determinant is passed it will only be partially updated if there were any
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org4443472" class="outline-4">
|
<div id="outline-container-org2f4aeff" class="outline-4">
|
||||||
<h4 id="org4443472"><span class="section-number-4">3.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
<h4 id="org2f4aeff"><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
|
||||||
@ -3054,8 +3054,8 @@ not be used in real workloads.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org3d0b9fc" class="outline-5">
|
<div id="outline-container-org80211f8" class="outline-5">
|
||||||
<h5 id="org3d0b9fc"><span class="section-number-5">3.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
<h5 id="org80211f8"><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
|
||||||
@ -3068,8 +3068,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgb279a9d" class="outline-4">
|
<div id="outline-container-org9b40d6a" class="outline-4">
|
||||||
<h4 id="orgb279a9d"><span class="section-number-4">3.1.5</span> C headers (exposed in qmckl.h)</h4>
|
<h4 id="org9b40d6a"><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> (
|
||||||
@ -3124,8 +3124,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org8ae211f" class="outline-4">
|
<div id="outline-container-org6bfde78" class="outline-4">
|
||||||
<h4 id="org8ae211f"><span class="section-number-4">3.1.6</span> C sources</h4>
|
<h4 id="org6bfde78"><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>(
|
||||||
@ -3214,7 +3214,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="org6fdc1c7"><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="orgac8811e"><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,
|
||||||
@ -3298,7 +3298,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="org61043c8"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
<pre class="src src-python" id="org28e20af"><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>
|
||||||
@ -3390,7 +3390,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="org658b87e"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
<pre class="src src-python" id="org04f532e"><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-org66e1ea8" class="outline-4">
|
<div id="outline-container-org11df84e" class="outline-4">
|
||||||
<h4 id="org66e1ea8"><span class="section-number-4">3.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
<h4 id="org11df84e"><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-org12a5e28" class="outline-4">
|
<div id="outline-container-org592a643" class="outline-4">
|
||||||
<h4 id="org12a5e28"><span class="section-number-4">3.1.8</span> Performance</h4>
|
<h4 id="org592a643"><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-org8dfda94" class="outline-2">
|
<div id="outline-container-org0169e86" class="outline-2">
|
||||||
<h2 id="org8dfda94"><span class="section-number-2">4</span> Sherman-Morrison with Slagel Splitting</h2>
|
<h2 id="org0169e86"><span class="section-number-2">4</span> Sherman-Morrison with Slagel Splitting</h2>
|
||||||
<div class="outline-text-2" id="text-4">
|
<div class="outline-text-2" id="text-4">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org5f5dd8b" class="outline-3">
|
<div id="outline-container-org48d89e7" class="outline-3">
|
||||||
<h3 id="org5f5dd8b"><span class="section-number-3">4.1</span> <code>qmckl_sm_splitting</code></h3>
|
<h3 id="org48d89e7"><span class="section-number-3">4.1</span> <code>qmckl_sm_splitting</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-org1eeb24f" class="outline-4">
|
<div id="outline-container-org41e0ab0" class="outline-4">
|
||||||
<h4 id="org1eeb24f"><span class="section-number-4">4.1.1</span> Introduction</h4>
|
<h4 id="org41e0ab0"><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>
|
||||||
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
|
||||||
@ -5432,10 +5432,10 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org7eefecf" class="outline-4">
|
<div id="outline-container-orgbd795bf" class="outline-4">
|
||||||
<h4 id="org7eefecf"><span class="section-number-4">4.1.2</span> API</h4>
|
<h4 id="orgbd795bf"><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="orgc4e725b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org062470f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -5523,8 +5523,8 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org8917139" class="outline-4">
|
<div id="outline-container-orgd516e51" class="outline-4">
|
||||||
<h4 id="org8917139"><span class="section-number-4">4.1.3</span> Requirements</h4>
|
<h4 id="orgd516e51"><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>
|
||||||
@ -5539,8 +5539,8 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org2606d1d" class="outline-4">
|
<div id="outline-container-org29411b4" class="outline-4">
|
||||||
<h4 id="org2606d1d"><span class="section-number-4">4.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
<h4 id="org29411b4"><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
|
||||||
@ -5623,8 +5623,8 @@ not be used in real workloads.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd942a85" class="outline-5">
|
<div id="outline-container-org51c9812" class="outline-5">
|
||||||
<h5 id="orgd942a85"><span class="section-number-5">4.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
<h5 id="org51c9812"><span class="section-number-5">4.1.4.1</span> C interface to the pedagogical kernel (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 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
|
||||||
@ -5637,8 +5637,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-org1e80bc1" class="outline-4">
|
<div id="outline-container-org6f49b7e" class="outline-4">
|
||||||
<h4 id="org1e80bc1"><span class="section-number-4">4.1.5</span> C headers (exposed in qmckl.h)</h4>
|
<h4 id="org6f49b7e"><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_sm_splitting</span> (
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_splitting</span> (
|
||||||
@ -5684,11 +5684,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-orgaa41603" class="outline-4">
|
<div id="outline-container-org6996260" class="outline-4">
|
||||||
<h4 id="orgaa41603"><span class="section-number-4">4.1.6</span> C source</h4>
|
<h4 id="org6996260"><span class="section-number-4">4.1.6</span> C source</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-python" id="org75cd527"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
<pre class="src src-python" id="org61b04ec"><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>
|
||||||
@ -6096,14 +6096,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-orgc92d5d5" class="outline-4">
|
<div id="outline-container-org90b99e4" class="outline-4">
|
||||||
<h4 id="orgc92d5d5"><span class="section-number-4">4.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
<h4 id="org90b99e4"><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-org61fdb5d" class="outline-4">
|
<div id="outline-container-orgac8573a" class="outline-4">
|
||||||
<h4 id="org61fdb5d"><span class="section-number-4">4.1.8</span> Performance…</h4>
|
<h4 id="orgac8573a"><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 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.
|
||||||
@ -6111,8 +6111,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-org9dcf302" class="outline-4">
|
<div id="outline-container-orgc43b8b3" class="outline-4">
|
||||||
<h4 id="org9dcf302"><span class="section-number-4">4.1.9</span> Test</h4>
|
<h4 id="orgc43b8b3"><span class="section-number-4">4.1.9</span> Test</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>(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>);
|
||||||
@ -6150,8 +6150,8 @@ rc = QMCKL_SUCCESS;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-orga5ee2cb" class="outline-2">
|
<div id="outline-container-org05e8cfb" class="outline-2">
|
||||||
<h2 id="orga5ee2cb"><span class="section-number-2">5</span> End of files</h2>
|
<h2 id="org05e8cfb"><span class="section-number-2">5</span> End of files</h2>
|
||||||
<div class="outline-text-2" id="text-5">
|
<div class="outline-text-2" id="text-5">
|
||||||
<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);
|
||||||
@ -6165,7 +6165,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: 2023-05-24 Wed 23:14</p>
|
<p class="date">Created: 2023-05-24 Wed 23:50</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>
|
||||||
<!-- 2023-05-24 Wed 23:14 -->
|
<!-- 2023-05-24 Wed 23:50 -->
|
||||||
<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="#org6ac1fd9">1. CHBrClF</a>
|
<li><a href="#org40751be">1. CHBrClF</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgade2915">1.1. XYZ coordinates</a></li>
|
<li><a href="#orgf5d0d6a">1.1. XYZ coordinates</a></li>
|
||||||
<li><a href="#org883daca">1.2. Atomic basis set</a></li>
|
<li><a href="#org30dca03">1.2. Atomic basis set</a></li>
|
||||||
<li><a href="#org2a66108">1.3. Molecular orbitals</a></li>
|
<li><a href="#org23e7ae8">1.3. Molecular orbitals</a></li>
|
||||||
<li><a href="#org8a54541">1.4. Electron coordinates</a></li>
|
<li><a href="#org9b98807">1.4. Electron coordinates</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org748f435">2. N2</a>
|
<li><a href="#org6af2e0f">2. N2</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org3f28c59">2.1. XYZ coordinates</a></li>
|
<li><a href="#orgd88717b">2.1. XYZ coordinates</a></li>
|
||||||
<li><a href="#orga1fa200">2.2. Electron coordinates</a></li>
|
<li><a href="#orgfab8a5a">2.2. Electron coordinates</a></li>
|
||||||
<li><a href="#org76764cd">2.3. Jastrow related data</a></li>
|
<li><a href="#orga31a67c">2.3. Jastrow related data</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org6ac1fd9" class="outline-2">
|
<div id="outline-container-org40751be" class="outline-2">
|
||||||
<h2 id="org6ac1fd9"><span class="section-number-2">1</span> CHBrClF</h2>
|
<h2 id="org40751be"><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-orgade2915" class="outline-3">
|
<div id="outline-container-orgf5d0d6a" class="outline-3">
|
||||||
<h3 id="orgade2915"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
<h3 id="orgf5d0d6a"><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-org883daca" class="outline-3">
|
<div id="outline-container-org30dca03" class="outline-3">
|
||||||
<h3 id="org883daca"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
<h3 id="org30dca03"><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-org2a66108" class="outline-3">
|
<div id="outline-container-org23e7ae8" class="outline-3">
|
||||||
<h3 id="org2a66108"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
<h3 id="org23e7ae8"><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-org8a54541" class="outline-3">
|
<div id="outline-container-org9b98807" class="outline-3">
|
||||||
<h3 id="org8a54541"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
<h3 id="org9b98807"><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-org748f435" class="outline-2">
|
<div id="outline-container-org6af2e0f" class="outline-2">
|
||||||
<h2 id="org748f435"><span class="section-number-2">2</span> N2</h2>
|
<h2 id="org6af2e0f"><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-org3f28c59" class="outline-3">
|
<div id="outline-container-orgd88717b" class="outline-3">
|
||||||
<h3 id="org3f28c59"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
<h3 id="orgd88717b"><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-orga1fa200" class="outline-3">
|
<div id="outline-container-orgfab8a5a" class="outline-3">
|
||||||
<h3 id="orga1fa200"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
<h3 id="orgfab8a5a"><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-org76764cd" class="outline-3">
|
<div id="outline-container-orga31a67c" class="outline-3">
|
||||||
<h3 id="org76764cd"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
<h3 id="orga31a67c"><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: 2023-05-24 Wed 23:14</p>
|
<p class="date">Created: 2023-05-24 Wed 23:50</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>
|
||||||
<!-- 2023-05-24 Wed 23:14 -->
|
<!-- 2023-05-24 Wed 23:50 -->
|
||||||
<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="#org6625359">1. Local functions</a>
|
<li><a href="#org5057f7a">1. Local functions</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org242454e">1.1. Open file</a></li>
|
<li><a href="#org550126b">1.1. Open file</a></li>
|
||||||
<li><a href="#org558a7a8">1.2. Electron</a></li>
|
<li><a href="#org6084edc">1.2. Electron</a></li>
|
||||||
<li><a href="#orgfe13f68">1.3. Nucleus</a>
|
<li><a href="#org2674724">1.3. Nucleus</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgc7c923c">1.3.1. Number of nuclei</a></li>
|
<li><a href="#orgd4a0d17">1.3.1. Number of nuclei</a></li>
|
||||||
<li><a href="#org8ae4118">1.3.2. Nuclear charges</a></li>
|
<li><a href="#orgbdf0bfa">1.3.2. Nuclear charges</a></li>
|
||||||
<li><a href="#org3b3d094">1.3.3. Nuclear coordinates</a></li>
|
<li><a href="#orgfe818d8">1.3.3. Nuclear coordinates</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgfc03ef2">1.4. Basis set and AOs</a>
|
<li><a href="#org83889db">1.4. Basis set and AOs</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgd37bf03">1.4.1. Basis set type</a></li>
|
<li><a href="#orgd5479e1">1.4.1. Basis set type</a></li>
|
||||||
<li><a href="#org9f8531e">1.4.2. Number of shells</a></li>
|
<li><a href="#orgd2193fe">1.4.2. Number of shells</a></li>
|
||||||
<li><a href="#org0059afd">1.4.3. Number of primitives</a></li>
|
<li><a href="#orgd61c945">1.4.3. Number of primitives</a></li>
|
||||||
<li><a href="#org1fcb6e1">1.4.4. Number of atomic orbitals</a></li>
|
<li><a href="#org916b14b">1.4.4. Number of atomic orbitals</a></li>
|
||||||
<li><a href="#org3fd74d6">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
<li><a href="#org8dd7270">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||||
<li><a href="#org54696b5">1.4.6. Number of shells per nucleus</a></li>
|
<li><a href="#org6d87955">1.4.6. Number of shells per nucleus</a></li>
|
||||||
<li><a href="#org8daa4f7">1.4.7. Angular momentum</a></li>
|
<li><a href="#org56145d1">1.4.7. Angular momentum</a></li>
|
||||||
<li><a href="#org01e7e67">1.4.8. Number of primitives per shell</a></li>
|
<li><a href="#org9bd31ea">1.4.8. Number of primitives per shell</a></li>
|
||||||
<li><a href="#orgcabc68d">1.4.9. Indices of the primitives</a></li>
|
<li><a href="#orgc165432">1.4.9. Indices of the primitives</a></li>
|
||||||
<li><a href="#org24b77f2">1.4.10. Normalization of the shells</a></li>
|
<li><a href="#orge3ed60f">1.4.10. Normalization of the shells</a></li>
|
||||||
<li><a href="#orge206c9b">1.4.11. Exponents</a></li>
|
<li><a href="#org7341964">1.4.11. Exponents</a></li>
|
||||||
<li><a href="#orge8f36a5">1.4.12. Coefficients</a></li>
|
<li><a href="#org8e2d150">1.4.12. Coefficients</a></li>
|
||||||
<li><a href="#org517df4f">1.4.13. Normalization of the primitivies</a></li>
|
<li><a href="#orgbe21a0e">1.4.13. Normalization of the primitivies</a></li>
|
||||||
<li><a href="#org8d299e5">1.4.14. AO Normalization</a></li>
|
<li><a href="#orgba413d9">1.4.14. AO Normalization</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orga7ab27b">1.5. Molecular orbitals</a>
|
<li><a href="#org2cfe760">1.5. Molecular orbitals</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgcee03eb">1.5.1. Number of MOs</a></li>
|
<li><a href="#org206d6e9">1.5.1. Number of MOs</a></li>
|
||||||
<li><a href="#orgf86e017">1.5.2. MO coefficients</a></li>
|
<li><a href="#org9e27c4d">1.5.2. MO coefficients</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org18cc82d">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
<li><a href="#orgdf4546a">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org8a0f5ce">2. Read everything</a></li>
|
<li><a href="#orgd482dba">2. Read everything</a></li>
|
||||||
<li><a href="#org4eb1001">3. Test</a>
|
<li><a href="#org15778e3">3. Test</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgdde5f7f">3.0.1. Electrons</a></li>
|
<li><a href="#org914cfe0">3.0.1. Electrons</a></li>
|
||||||
<li><a href="#org52a7835">3.0.2. Nuclei</a></li>
|
<li><a href="#orgc66a2e7">3.0.2. Nuclei</a></li>
|
||||||
<li><a href="#org91a8dbb">3.0.3. Atomic basis</a></li>
|
<li><a href="#orgdce6639">3.0.3. Atomic basis</a></li>
|
||||||
<li><a href="#orgc18c42d">3.0.4. MO Basis</a></li>
|
<li><a href="#orgdaaf627">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-org6625359" class="outline-2">
|
<div id="outline-container-org5057f7a" class="outline-2">
|
||||||
<h2 id="org6625359"><span class="section-number-2">1</span> Local functions</h2>
|
<h2 id="org5057f7a"><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-org242454e" class="outline-3">
|
<div id="outline-container-org550126b" class="outline-3">
|
||||||
<h3 id="org242454e"><span class="section-number-3">1.1</span> Open file</h3>
|
<h3 id="org550126b"><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-org558a7a8" class="outline-3">
|
<div id="outline-container-org6084edc" class="outline-3">
|
||||||
<h3 id="org558a7a8"><span class="section-number-3">1.2</span> Electron</h3>
|
<h3 id="org6084edc"><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-orgfe13f68" class="outline-3">
|
<div id="outline-container-org2674724" class="outline-3">
|
||||||
<h3 id="orgfe13f68"><span class="section-number-3">1.3</span> Nucleus</h3>
|
<h3 id="org2674724"><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-orgc7c923c" class="outline-4">
|
<div id="outline-container-orgd4a0d17" class="outline-4">
|
||||||
<h4 id="orgc7c923c"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
<h4 id="orgd4a0d17"><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-org8ae4118" class="outline-4">
|
<div id="outline-container-orgbdf0bfa" class="outline-4">
|
||||||
<h4 id="org8ae4118"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
<h4 id="orgbdf0bfa"><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-org3b3d094" class="outline-4">
|
<div id="outline-container-orgfe818d8" class="outline-4">
|
||||||
<h4 id="org3b3d094"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
<h4 id="orgfe818d8"><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-orgfc03ef2" class="outline-3">
|
<div id="outline-container-org83889db" class="outline-3">
|
||||||
<h3 id="orgfc03ef2"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
<h3 id="org83889db"><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-orgd37bf03" class="outline-4">
|
<div id="outline-container-orgd5479e1" class="outline-4">
|
||||||
<h4 id="orgd37bf03"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
<h4 id="orgd5479e1"><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-org9f8531e" class="outline-4">
|
<div id="outline-container-orgd2193fe" class="outline-4">
|
||||||
<h4 id="org9f8531e"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
<h4 id="orgd2193fe"><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-org0059afd" class="outline-4">
|
<div id="outline-container-orgd61c945" class="outline-4">
|
||||||
<h4 id="org0059afd"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
<h4 id="orgd61c945"><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,8 +745,8 @@ rc = qmckl_set_ao_basis_prim_num(context, prim_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org1fcb6e1" class="outline-4">
|
<div id="outline-container-org916b14b" class="outline-4">
|
||||||
<h4 id="org1fcb6e1"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
<h4 id="org916b14b"><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> = 0LL;
|
||||||
@ -770,8 +770,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org3fd74d6" class="outline-4">
|
<div id="outline-container-org8dd7270" class="outline-4">
|
||||||
<h4 id="org3fd74d6"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
<h4 id="org8dd7270"><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-org54696b5" class="outline-4">
|
<div id="outline-container-org6d87955" class="outline-4">
|
||||||
<h4 id="org54696b5"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
<h4 id="org6d87955"><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-org8daa4f7" class="outline-4">
|
<div id="outline-container-org56145d1" class="outline-4">
|
||||||
<h4 id="org8daa4f7"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
<h4 id="org56145d1"><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-org01e7e67" class="outline-4">
|
<div id="outline-container-org9bd31ea" class="outline-4">
|
||||||
<h4 id="org01e7e67"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
<h4 id="org9bd31ea"><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">{
|
||||||
@ -1068,8 +1068,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgcabc68d" class="outline-4">
|
<div id="outline-container-orgc165432" class="outline-4">
|
||||||
<h4 id="orgcabc68d"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
<h4 id="orgc165432"><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">{
|
||||||
@ -1149,8 +1149,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org24b77f2" class="outline-4">
|
<div id="outline-container-orge3ed60f" class="outline-4">
|
||||||
<h4 id="org24b77f2"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
<h4 id="orge3ed60f"><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">{
|
||||||
@ -1195,8 +1195,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orge206c9b" class="outline-4">
|
<div id="outline-container-org7341964" class="outline-4">
|
||||||
<h4 id="orge206c9b"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
<h4 id="org7341964"><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">{
|
||||||
@ -1241,8 +1241,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orge8f36a5" class="outline-4">
|
<div id="outline-container-org8e2d150" class="outline-4">
|
||||||
<h4 id="orge8f36a5"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
<h4 id="org8e2d150"><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">{
|
||||||
@ -1287,8 +1287,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org517df4f" class="outline-4">
|
<div id="outline-container-orgbe21a0e" class="outline-4">
|
||||||
<h4 id="org517df4f"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
<h4 id="orgbe21a0e"><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">{
|
||||||
@ -1333,8 +1333,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org8d299e5" class="outline-4">
|
<div id="outline-container-orgba413d9" class="outline-4">
|
||||||
<h4 id="org8d299e5"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
<h4 id="orgba413d9"><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">{
|
||||||
@ -1389,8 +1389,8 @@ rc = qmckl_set_ao_basis_ao_num(context, ao_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orga7ab27b" class="outline-3">
|
<div id="outline-container-org2cfe760" class="outline-3">
|
||||||
<h3 id="orga7ab27b"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
<h3 id="org2cfe760"><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.
|
||||||
@ -1416,8 +1416,8 @@ In this section we read the MO coefficients.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgcee03eb" class="outline-4">
|
<div id="outline-container-org206d6e9" class="outline-4">
|
||||||
<h4 id="orgcee03eb"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
<h4 id="org206d6e9"><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;
|
||||||
@ -1440,8 +1440,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf86e017" class="outline-4">
|
<div id="outline-container-org9e27c4d" class="outline-4">
|
||||||
<h4 id="orgf86e017"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
<h4 id="org9e27c4d"><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">{
|
||||||
@ -1490,12 +1490,12 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org18cc82d" class="outline-3">
|
<div id="outline-container-orgdf4546a" class="outline-3">
|
||||||
<h3 id="org18cc82d"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
<h3 id="orgdf4546a"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org8a0f5ce" class="outline-2">
|
<div id="outline-container-orgd482dba" class="outline-2">
|
||||||
<h2 id="org8a0f5ce"><span class="section-number-2">2</span> Read everything</h2>
|
<h2 id="orgd482dba"><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>
|
||||||
@ -1570,8 +1570,8 @@ rc = qmckl_set_mo_basis_mo_num(context, mo_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org4eb1001" class="outline-2">
|
<div id="outline-container-org15778e3" class="outline-2">
|
||||||
<h2 id="org4eb1001"><span class="section-number-2">3</span> Test</h2>
|
<h2 id="org15778e3"><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
|
||||||
@ -1595,8 +1595,8 @@ rc = qmckl_trexio_read(context, filename, 255);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgdde5f7f" class="outline-4">
|
<div id="outline-container-org914cfe0" class="outline-4">
|
||||||
<h4 id="orgdde5f7f"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
<h4 id="org914cfe0"><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>);
|
||||||
@ -1614,8 +1614,8 @@ rc = qmckl_get_electron_down_num(context, &dn_num);
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org52a7835" class="outline-4">
|
<div id="outline-container-orgc66a2e7" class="outline-4">
|
||||||
<h4 id="org52a7835"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
<h4 id="orgc66a2e7"><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>);
|
||||||
@ -1655,8 +1655,8 @@ coord = <span style="color: #008b8b;">NULL</span>;
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org91a8dbb" class="outline-4">
|
<div id="outline-container-orgdce6639" class="outline-4">
|
||||||
<h4 id="org91a8dbb"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
<h4 id="orgdce6639"><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>);
|
||||||
@ -1764,8 +1764,8 @@ prim_factor = <span style="color: #008b8b;">NULL</span>;
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc18c42d" class="outline-4">
|
<div id="outline-container-orgdaaf627" class="outline-4">
|
||||||
<h4 id="orgc18c42d"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
<h4 id="orgdaaf627"><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>);
|
||||||
@ -1796,7 +1796,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: 2023-05-24 Wed 23:14</p>
|
<p class="date">Created: 2023-05-24 Wed 23:50</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>
|
||||||
<!-- 2023-05-24 Wed 23:14 -->
|
<!-- 2023-05-24 Wed 23:50 -->
|
||||||
<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="#org365db28">1. Verificarlo probes</a>
|
<li><a href="#orgef1bd1b">1. Verificarlo probes</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgd33d30a">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
<li><a href="#org81c242f">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||||
<li><a href="#org9105ca0">1.2. Standard probe, without check</a></li>
|
<li><a href="#orgccfddb9">1.2. Standard probe, without check</a></li>
|
||||||
<li><a href="#org5914a5e">1.3. Probe with absolute check</a></li>
|
<li><a href="#org6706666">1.3. Probe with absolute check</a></li>
|
||||||
<li><a href="#org08f9652">1.4. Probe with relative check</a></li>
|
<li><a href="#orga1d9f20">1.4. Probe with relative check</a></li>
|
||||||
<li><a href="#org66f69c9">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
<li><a href="#org2530b61">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="#orgd53ebbb">2. Fortran wrappers</a></li>
|
<li><a href="#org8f25893">2. Fortran wrappers</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org365db28" class="outline-2">
|
<div id="outline-container-orgef1bd1b" class="outline-2">
|
||||||
<h2 id="org365db28"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
<h2 id="orgef1bd1b"><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-orgd33d30a" class="outline-3">
|
<div id="outline-container-org81c242f" class="outline-3">
|
||||||
<h3 id="orgd33d30a"><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="org81c242f"><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-org9105ca0" class="outline-3">
|
<div id="outline-container-orgccfddb9" class="outline-3">
|
||||||
<h3 id="org9105ca0"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
<h3 id="orgccfddb9"><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-org5914a5e" class="outline-3">
|
<div id="outline-container-org6706666" class="outline-3">
|
||||||
<h3 id="org5914a5e"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
<h3 id="org6706666"><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-org08f9652" class="outline-3">
|
<div id="outline-container-orga1d9f20" class="outline-3">
|
||||||
<h3 id="org08f9652"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
<h3 id="orga1d9f20"><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-org66f69c9" class="outline-3">
|
<div id="outline-container-org2530b61" class="outline-3">
|
||||||
<h3 id="org66f69c9"><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="org2530b61"><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-orgd53ebbb" class="outline-2">
|
<div id="outline-container-org8f25893" class="outline-2">
|
||||||
<h2 id="orgd53ebbb"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
<h2 id="org8f25893"><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: 2023-05-24 Wed 23:14</p>
|
<p class="date">Created: 2023-05-24 Wed 23:50</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