mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-08-24 22:21:46 +02:00
Deploying to gh-pages from @ TREX-CoE/qmckl@d77dc26e52 🚀
This commit is contained in:
parent
98066e19dd
commit
fa82604960
@ -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-09-13 Wed 11:24 -->
|
<!-- 2023-09-13 Wed 14:23 -->
|
||||||
<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-09-13 Wed 11:24</p>
|
<p class="date">Created: 2023-09-13 Wed 14:23</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-09-13 Wed 11:24 -->
|
<!-- 2023-09-13 Wed 14:23 -->
|
||||||
<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="#org028a824">1. Installing QMCkl</a>
|
<li><a href="#org8584dba">1. Installing QMCkl</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org9511133">1.1. Installing from the released tarball (for end users)</a></li>
|
<li><a href="#orgc0161ec">1.1. Installing from the released tarball (for end users)</a></li>
|
||||||
<li><a href="#org667829c">1.2. Installing from the source repository (for developers)</a></li>
|
<li><a href="#org219fe4a">1.2. Installing from the source repository (for developers)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org7d6773d">2. Using QMCkl</a></li>
|
<li><a href="#org44f019d">2. Using QMCkl</a></li>
|
||||||
<li><a href="#orgfe7bd8a">3. Developing in QMCkl</a>
|
<li><a href="#org2be1cee">3. Developing in QMCkl</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgeb288e5">3.1. Literate programming</a></li>
|
<li><a href="#org5cca8a3">3.1. Literate programming</a></li>
|
||||||
<li><a href="#orgc98f8fc">3.2. Source code editing</a></li>
|
<li><a href="#org541f5d0">3.2. Source code editing</a></li>
|
||||||
<li><a href="#org90d8b85">3.3. Choice of the programming language</a></li>
|
<li><a href="#org606c3a8">3.3. Choice of the programming language</a></li>
|
||||||
<li><a href="#org74bb93e">3.4. Coding rules</a></li>
|
<li><a href="#orgc343502">3.4. Coding rules</a></li>
|
||||||
<li><a href="#org87f1505">3.5. Design of the library</a></li>
|
<li><a href="#orgea83ca4">3.5. Design of the library</a></li>
|
||||||
<li><a href="#org59a1b93">3.6. Naming conventions</a></li>
|
<li><a href="#org5071a4a">3.6. Naming conventions</a></li>
|
||||||
<li><a href="#org0344f35">3.7. Application programming interface</a></li>
|
<li><a href="#org7136905">3.7. Application programming interface</a></li>
|
||||||
<li><a href="#org753f0cc">3.8. Global state</a></li>
|
<li><a href="#org57ca398">3.8. Global state</a></li>
|
||||||
<li><a href="#orge74480e">3.9. Headers</a></li>
|
<li><a href="#org6888474">3.9. Headers</a></li>
|
||||||
<li><a href="#orga270b93">3.10. Low-level functions</a></li>
|
<li><a href="#org950188b">3.10. Low-level functions</a></li>
|
||||||
<li><a href="#orga1c5eac">3.11. High-level functions</a></li>
|
<li><a href="#org35984ad">3.11. High-level functions</a></li>
|
||||||
<li><a href="#org3cacd15">3.12. Numerical precision</a></li>
|
<li><a href="#org070c510">3.12. Numerical precision</a></li>
|
||||||
<li><a href="#org09a8b28">3.13. Algorithms</a></li>
|
<li><a href="#org0be3298">3.13. Algorithms</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org028a824" class="outline-2">
|
<div id="outline-container-org8584dba" class="outline-2">
|
||||||
<h2 id="org028a824"><span class="section-number-2">1</span> Installing QMCkl</h2>
|
<h2 id="org8584dba"><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-org9511133" class="outline-3">
|
<div id="outline-container-orgc0161ec" class="outline-3">
|
||||||
<h3 id="org9511133"><span class="section-number-3">1.1</span> Installing from the released tarball (for end users)</h3>
|
<h3 id="orgc0161ec"><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-org667829c" class="outline-3">
|
<div id="outline-container-org219fe4a" class="outline-3">
|
||||||
<h3 id="org667829c"><span class="section-number-3">1.2</span> Installing from the source repository (for developers)</h3>
|
<h3 id="org219fe4a"><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-org7d6773d" class="outline-2">
|
<div id="outline-container-org44f019d" class="outline-2">
|
||||||
<h2 id="org7d6773d"><span class="section-number-2">2</span> Using QMCkl</h2>
|
<h2 id="org44f019d"><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-orgfe7bd8a" class="outline-2">
|
<div id="outline-container-org2be1cee" class="outline-2">
|
||||||
<h2 id="orgfe7bd8a"><span class="section-number-2">3</span> Developing in QMCkl</h2>
|
<h2 id="org2be1cee"><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-orgeb288e5" class="outline-3">
|
<div id="outline-container-org5cca8a3" class="outline-3">
|
||||||
<h3 id="orgeb288e5"><span class="section-number-3">3.1</span> Literate programming</h3>
|
<h3 id="org5cca8a3"><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-orgc98f8fc" class="outline-3">
|
<div id="outline-container-org541f5d0" class="outline-3">
|
||||||
<h3 id="orgc98f8fc"><span class="section-number-3">3.2</span> Source code editing</h3>
|
<h3 id="org541f5d0"><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-org90d8b85" class="outline-3">
|
<div id="outline-container-org606c3a8" class="outline-3">
|
||||||
<h3 id="org90d8b85"><span class="section-number-3">3.3</span> Choice of the programming language</h3>
|
<h3 id="org606c3a8"><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-org74bb93e" class="outline-3">
|
<div id="outline-container-orgc343502" class="outline-3">
|
||||||
<h3 id="org74bb93e"><span class="section-number-3">3.4</span> Coding rules</h3>
|
<h3 id="orgc343502"><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-org87f1505" class="outline-3">
|
<div id="outline-container-orgea83ca4" class="outline-3">
|
||||||
<h3 id="org87f1505"><span class="section-number-3">3.5</span> Design of the library</h3>
|
<h3 id="orgea83ca4"><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-org59a1b93" class="outline-3">
|
<div id="outline-container-org5071a4a" class="outline-3">
|
||||||
<h3 id="org59a1b93"><span class="section-number-3">3.6</span> Naming conventions</h3>
|
<h3 id="org5071a4a"><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-org0344f35" class="outline-3">
|
<div id="outline-container-org7136905" class="outline-3">
|
||||||
<h3 id="org0344f35"><span class="section-number-3">3.7</span> Application programming interface</h3>
|
<h3 id="org7136905"><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-org753f0cc" class="outline-3">
|
<div id="outline-container-org57ca398" class="outline-3">
|
||||||
<h3 id="org753f0cc"><span class="section-number-3">3.8</span> Global state</h3>
|
<h3 id="org57ca398"><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="org43b3849">=context=</a> contains the global
|
<code>qmckl_context_create</code> function. The <a id="orgabdc980">=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-orge74480e" class="outline-3">
|
<div id="outline-container-org6888474" class="outline-3">
|
||||||
<h3 id="orge74480e"><span class="section-number-3">3.9</span> Headers</h3>
|
<h3 id="org6888474"><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-orga270b93" class="outline-3">
|
<div id="outline-container-org950188b" class="outline-3">
|
||||||
<h3 id="orga270b93"><span class="section-number-3">3.10</span> Low-level functions</h3>
|
<h3 id="org950188b"><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="#org43b3849"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
<a href="#orgabdc980"><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-orga1c5eac" class="outline-3">
|
<div id="outline-container-org35984ad" class="outline-3">
|
||||||
<h3 id="orga1c5eac"><span class="section-number-3">3.11</span> High-level functions</h3>
|
<h3 id="org35984ad"><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-org3cacd15" class="outline-3">
|
<div id="outline-container-org070c510" class="outline-3">
|
||||||
<h3 id="org3cacd15"><span class="section-number-3">3.12</span> Numerical precision</h3>
|
<h3 id="org070c510"><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="#org43b3849"><code>context</code></a> variable.
|
specified in the <a href="#orgabdc980"><code>context</code></a> variable.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@ -909,8 +909,8 @@ following points :
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org09a8b28" class="outline-3">
|
<div id="outline-container-org0be3298" class="outline-3">
|
||||||
<h3 id="org09a8b28"><span class="section-number-3">3.13</span> Algorithms</h3>
|
<h3 id="org0be3298"><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-09-13 Wed 11:24</p>
|
<p class="date">Created: 2023-09-13 Wed 14:23</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-09-13 Wed 11:24 -->
|
<!-- 2023-09-13 Wed 14:23 -->
|
||||||
<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="#org11736ab">1. Introduction</a></li>
|
<li><a href="#org208c888">1. Introduction</a></li>
|
||||||
<li><a href="#org80f2299">2. Context</a>
|
<li><a href="#orgb0cd528">2. Context</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org0c8b8c6">2.1. Constant data</a>
|
<li><a href="#orge4aa8a8">2.1. Constant data</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org6d9bf38">2.1.1. Initialization functions</a>
|
<li><a href="#org666b57e">2.1.1. Initialization functions</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org9d10a7a">2.1.1.1. C interface</a></li>
|
<li><a href="#orgf3098b3">2.1.1.1. C interface</a></li>
|
||||||
<li><a href="#orgc7d87be">2.1.1.2. Fortran interface</a></li>
|
<li><a href="#org94b0ced">2.1.1.2. Fortran interface</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org1dca952">2.1.2. Access functions</a>
|
<li><a href="#org379d9ba">2.1.2. Access functions</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org63543d9">2.1.2.1. C interface</a></li>
|
<li><a href="#org6b02569">2.1.2.1. C interface</a></li>
|
||||||
<li><a href="#org75fc5dc">2.1.2.2. Fortran interface</a></li>
|
<li><a href="#orgc77257d">2.1.2.2. Fortran interface</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org6ebb4ba">2.2. Computed data</a>
|
<li><a href="#org2f04d23">2.2. Computed data</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org8281707">2.2.1. After initialization</a></li>
|
<li><a href="#org8600b33">2.2.1. After initialization</a></li>
|
||||||
<li><a href="#org8e86f36">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
<li><a href="#orgef071c5">2.2.2. <span class="todo TODO">TODO</span> HPC-specific data structures</a></li>
|
||||||
<li><a href="#orge1f6268">2.2.3. Access functions</a></li>
|
<li><a href="#org8dd34f4">2.2.3. Access functions</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org068410f">3. Radial part</a>
|
<li><a href="#orgb9bd900">3. Radial part</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgcb5f7a8">3.1. General functions for Gaussian basis functions</a></li>
|
<li><a href="#orgcf1601b">3.1. General functions for Gaussian basis functions</a></li>
|
||||||
<li><a href="#org26e7e3e">3.2. Computation of primitives</a></li>
|
<li><a href="#orgf63b3d0">3.2. Computation of primitives</a></li>
|
||||||
<li><a href="#org24a55a7">3.3. Computation of shells</a></li>
|
<li><a href="#org2303664">3.3. Computation of shells</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org3424eb7">4. Polynomial part</a>
|
<li><a href="#orgc9a818a">4. Polynomial part</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgdd28e3a">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
<li><a href="#org55e334b">4.1. General functions for Powers of \(x-X_i\)</a></li>
|
||||||
<li><a href="#org1f151b3">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
<li><a href="#org8c89db4">4.2. General functions for Value, Gradient and Laplacian of a polynomial</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org2aed523">5. Combining radial and polynomial parts</a>
|
<li><a href="#org7df124a">5. Combining radial and polynomial parts</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org4f24317">5.1. Values only</a>
|
<li><a href="#org6642f0f">5.1. Values only</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org717e74d">5.1.1. Unoptimized version</a></li>
|
<li><a href="#org594147b">5.1.1. Unoptimized version</a></li>
|
||||||
<li><a href="#org819dd87">5.1.2. HPC version</a></li>
|
<li><a href="#orga544dd5">5.1.2. HPC version</a></li>
|
||||||
<li><a href="#org7fb53f2">5.1.3. Interfaces</a></li>
|
<li><a href="#orge274230">5.1.3. Interfaces</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgf39dc8b">5.2. Value, gradients, Laplacian</a>
|
<li><a href="#org9927a17">5.2. Value, gradients, Laplacian</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org36297b1">5.2.1. Reference version</a></li>
|
<li><a href="#org813772d">5.2.1. Reference version</a></li>
|
||||||
<li><a href="#org73ab93b">5.2.2. HPC version</a></li>
|
<li><a href="#orgdf467f7">5.2.2. HPC version</a></li>
|
||||||
<li><a href="#orga04d85c">5.2.3. Interfaces</a></li>
|
<li><a href="#org64b7867">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-org11736ab" class="outline-2">
|
<div id="outline-container-org208c888" class="outline-2">
|
||||||
<h2 id="org11736ab"><span class="section-number-2">1</span> Introduction</h2>
|
<h2 id="org208c888"><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-org80f2299" class="outline-2">
|
<div id="outline-container-orgb0cd528" class="outline-2">
|
||||||
<h2 id="org80f2299"><span class="section-number-2">2</span> Context</h2>
|
<h2 id="orgb0cd528"><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-org0c8b8c6" class="outline-3">
|
<div id="outline-container-orge4aa8a8" class="outline-3">
|
||||||
<h3 id="org0c8b8c6"><span class="section-number-3">2.1</span> Constant data</h3>
|
<h3 id="orge4aa8a8"><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="org0003124" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orge4adbc0" 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="orgec5355b"><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="orgecadbc4"><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="orgfa75ef4"><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="org09fc6af"><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-org6d9bf38" class="outline-4">
|
<div id="outline-container-org666b57e" class="outline-4">
|
||||||
<h4 id="org6d9bf38"><span class="section-number-4">2.1.1</span> Initialization functions</h4>
|
<h4 id="org666b57e"><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="#org80f2299">2</a>.
|
equal of larger than the value given in the table of section <a href="#orgb0cd528">2</a>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org9d10a7a" class="outline-5">
|
<div id="outline-container-orgf3098b3" class="outline-5">
|
||||||
<h5 id="org9d10a7a"><span class="section-number-5">2.1.1.1</span> C interface</h5>
|
<h5 id="orgf3098b3"><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-orgc7d87be" class="outline-5">
|
<div id="outline-container-org94b0ced" class="outline-5">
|
||||||
<h5 id="orgc7d87be"><span class="section-number-5">2.1.1.2</span> Fortran interface</h5>
|
<h5 id="org94b0ced"><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-org1dca952" class="outline-4">
|
<div id="outline-container-org379d9ba" class="outline-4">
|
||||||
<h4 id="org1dca952"><span class="section-number-4">2.1.2</span> Access functions</h4>
|
<h4 id="org379d9ba"><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="#org80f2299">2</a>.
|
equal of larger than the value given in the table of section <a href="#orgb0cd528">2</a>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org63543d9" class="outline-5">
|
<div id="outline-container-org6b02569" class="outline-5">
|
||||||
<h5 id="org63543d9"><span class="section-number-5">2.1.2.1</span> C interface</h5>
|
<h5 id="org6b02569"><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-org75fc5dc" class="outline-5">
|
<div id="outline-container-orgc77257d" class="outline-5">
|
||||||
<h5 id="org75fc5dc"><span class="section-number-5">2.1.2.2</span> Fortran interface</h5>
|
<h5 id="orgc77257d"><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-org6ebb4ba" class="outline-3">
|
<div id="outline-container-org2f04d23" class="outline-3">
|
||||||
<h3 id="org6ebb4ba"><span class="section-number-3">2.2</span> Computed data</h3>
|
<h3 id="org2f04d23"><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-org8281707" class="outline-4">
|
<div id="outline-container-org8600b33" class="outline-4">
|
||||||
<h4 id="org8281707"><span class="section-number-4">2.2.1</span> After initialization</h4>
|
<h4 id="org8600b33"><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-org8e86f36" class="outline-4">
|
<div id="outline-container-orgef071c5" class="outline-4">
|
||||||
<h4 id="org8e86f36"><span class="section-number-4">2.2.2</span> <span class="todo TODO">TODO</span> HPC-specific data structures</h4>
|
<h4 id="orgef071c5"><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-orge1f6268" class="outline-4">
|
<div id="outline-container-org8dd34f4" class="outline-4">
|
||||||
<h4 id="orge1f6268"><span class="section-number-4">2.2.3</span> Access functions</h4>
|
<h4 id="org8dd34f4"><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="#org26e7e3e">3.2</a>.
|
See section <a href="#orgf63b3d0">3.2</a>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
@ -1568,7 +1568,7 @@ See section <a href="#org26e7e3e">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="#org24a55a7">3.3</a>.
|
evaluated at the current coordinates. See section <a href="#org2303664">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="#org24a55a7">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="#org2aed523">5</a>.
|
See section <a href="#org7df124a">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="#org2aed523">5</a>.
|
the current coordinates. See section <a href="#org7df124a">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-org068410f" class="outline-2">
|
<div id="outline-container-orgb9bd900" class="outline-2">
|
||||||
<h2 id="org068410f"><span class="section-number-2">3</span> Radial part</h2>
|
<h2 id="orgb9bd900"><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-orgcb5f7a8" class="outline-3">
|
<div id="outline-container-orgcf1601b" class="outline-3">
|
||||||
<h3 id="orgcb5f7a8"><span class="section-number-3">3.1</span> General functions for Gaussian basis functions</h3>
|
<h3 id="orgcf1601b"><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-org26e7e3e" class="outline-3">
|
<div id="outline-container-orgf63b3d0" class="outline-3">
|
||||||
<h3 id="org26e7e3e"><span class="section-number-3">3.2</span> Computation of primitives</h3>
|
<h3 id="orgf63b3d0"><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="org7fad66b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org4a640ea" 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-org24a55a7" class="outline-3">
|
<div id="outline-container-org2303664" class="outline-3">
|
||||||
<h3 id="org24a55a7"><span class="section-number-3">3.3</span> Computation of shells</h3>
|
<h3 id="org2303664"><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="org846dfea" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org217c4e2" 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-org3424eb7" class="outline-2">
|
<div id="outline-container-orgc9a818a" class="outline-2">
|
||||||
<h2 id="org3424eb7"><span class="section-number-2">4</span> Polynomial part</h2>
|
<h2 id="orgc9a818a"><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-orgdd28e3a" class="outline-3">
|
<div id="outline-container-org55e334b" class="outline-3">
|
||||||
<h3 id="orgdd28e3a"><span class="section-number-3">4.1</span> General functions for Powers of \(x-X_i\)</h3>
|
<h3 id="org55e334b"><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="orga5e112f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org446d256" 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-org1f151b3" class="outline-3">
|
<div id="outline-container-org8c89db4" class="outline-3">
|
||||||
<h3 id="org1f151b3"><span class="section-number-3">4.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
<h3 id="org8c89db4"><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="org8d167d7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org57b9e6a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -3217,18 +3217,18 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org2aed523" class="outline-2">
|
<div id="outline-container-org7df124a" class="outline-2">
|
||||||
<h2 id="org2aed523"><span class="section-number-2">5</span> Combining radial and polynomial parts</h2>
|
<h2 id="org7df124a"><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-org4f24317" class="outline-3">
|
<div id="outline-container-org6642f0f" class="outline-3">
|
||||||
<h3 id="org4f24317"><span class="section-number-3">5.1</span> Values only</h3>
|
<h3 id="org6642f0f"><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-org717e74d" class="outline-4">
|
<div id="outline-container-org594147b" class="outline-4">
|
||||||
<h4 id="org717e74d"><span class="section-number-4">5.1.1</span> Unoptimized version</h4>
|
<h4 id="org594147b"><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="orgbcc290a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org283d16d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -3465,10 +3465,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org819dd87" class="outline-4">
|
<div id="outline-container-orga544dd5" class="outline-4">
|
||||||
<h4 id="org819dd87"><span class="section-number-4">5.1.2</span> HPC version</h4>
|
<h4 id="orga544dd5"><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="orge0390e5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org587bbf4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -3626,8 +3626,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org7fb53f2" class="outline-4">
|
<div id="outline-container-orge274230" class="outline-4">
|
||||||
<h4 id="org7fb53f2"><span class="section-number-4">5.1.3</span> Interfaces</h4>
|
<h4 id="orge274230"><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> (
|
||||||
@ -3676,14 +3676,14 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf39dc8b" class="outline-3">
|
<div id="outline-container-org9927a17" class="outline-3">
|
||||||
<h3 id="orgf39dc8b"><span class="section-number-3">5.2</span> Value, gradients, Laplacian</h3>
|
<h3 id="org9927a17"><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-org36297b1" class="outline-4">
|
<div id="outline-container-org813772d" class="outline-4">
|
||||||
<h4 id="org36297b1"><span class="section-number-4">5.2.1</span> Reference version</h4>
|
<h4 id="org813772d"><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="org5bc794e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org7452ace" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -3949,10 +3949,10 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org73ab93b" class="outline-4">
|
<div id="outline-container-orgdf467f7" class="outline-4">
|
||||||
<h4 id="org73ab93b"><span class="section-number-4">5.2.2</span> HPC version</h4>
|
<h4 id="orgdf467f7"><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="org42e9ce9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org95517d6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -4111,8 +4111,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-orga04d85c" class="outline-4">
|
<div id="outline-container-org64b7867" class="outline-4">
|
||||||
<h4 id="orga04d85c"><span class="section-number-4">5.2.3</span> Interfaces</h4>
|
<h4 id="org64b7867"><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> (
|
||||||
@ -4164,7 +4164,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-09-13 Wed 11:24</p>
|
<p class="date">Created: 2023-09-13 Wed 14:23</p>
|
||||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
184
qmckl_blas.html
184
qmckl_blas.html
@ -3,7 +3,7 @@
|
|||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2023-09-13 Wed 11:24 -->
|
<!-- 2023-09-13 Wed 14:23 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>BLAS functions</title>
|
<title>BLAS functions</title>
|
||||||
@ -346,56 +346,56 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgf0c0f41">-</a></li>
|
<li><a href="#org3ee5d90">-</a></li>
|
||||||
<li><a href="#orgafc8111">1. Data types</a>
|
<li><a href="#org987d788">1. Data types</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org791ab3f">1.1. Vector</a></li>
|
<li><a href="#orgb988f6b">1.1. Vector</a></li>
|
||||||
<li><a href="#org71776d0">1.2. Matrix</a></li>
|
<li><a href="#orge20a4d4">1.2. Matrix</a></li>
|
||||||
<li><a href="#orgc1513fd">1.3. Tensor</a></li>
|
<li><a href="#org43e52c0">1.3. Tensor</a></li>
|
||||||
<li><a href="#orgca3e385">1.4. Reshaping</a>
|
<li><a href="#org9a88c52">1.4. Reshaping</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org9ba662c">1.4.1. Vector -> Matrix</a></li>
|
<li><a href="#org4a39035">1.4.1. Vector -> Matrix</a></li>
|
||||||
<li><a href="#org84deb6e">1.4.2. Vector -> Tensor</a></li>
|
<li><a href="#org0a26599">1.4.2. Vector -> Tensor</a></li>
|
||||||
<li><a href="#orgd346a20">1.4.3. Matrix -> Vector</a></li>
|
<li><a href="#orgec07f9d">1.4.3. Matrix -> Vector</a></li>
|
||||||
<li><a href="#orgf6586a1">1.4.4. Matrix -> Tensor</a></li>
|
<li><a href="#orgfaff3d8">1.4.4. Matrix -> Tensor</a></li>
|
||||||
<li><a href="#org3e8f476">1.4.5. Tensor -> Vector</a></li>
|
<li><a href="#orge37a199">1.4.5. Tensor -> Vector</a></li>
|
||||||
<li><a href="#org53e9bf9">1.4.6. Tensor -> Matrix</a></li>
|
<li><a href="#orged87f01">1.4.6. Tensor -> Matrix</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgdf7d91d">1.5. Access macros</a></li>
|
<li><a href="#orge60cec9">1.5. Access macros</a></li>
|
||||||
<li><a href="#org8892a14">1.6. Set all elements</a>
|
<li><a href="#orgad8fd14">1.6. Set all elements</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org585eea6">1.6.1. Vector</a></li>
|
<li><a href="#org8ce6bc5">1.6.1. Vector</a></li>
|
||||||
<li><a href="#orgc0e4da8">1.6.2. Matrix</a></li>
|
<li><a href="#orgf96f54e">1.6.2. Matrix</a></li>
|
||||||
<li><a href="#org2a27a55">1.6.3. Tensor</a></li>
|
<li><a href="#orgc4c5a03">1.6.3. Tensor</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org4cb900e">1.7. Copy to/from to <code>double*</code></a></li>
|
<li><a href="#orgb3a225b">1.7. Copy to/from to <code>double*</code></a></li>
|
||||||
<li><a href="#org38af7e5">1.8. Allocate and copy to <code>double*</code></a></li>
|
<li><a href="#orgb150823">1.8. Allocate and copy to <code>double*</code></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orga6986d9">2. Matrix operations</a>
|
<li><a href="#orga9c6878">2. Matrix operations</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org9782ca8">2.1. <code>qmckl_dgemm</code></a></li>
|
<li><a href="#org37d622b">2.1. <code>qmckl_dgemm</code></a></li>
|
||||||
<li><a href="#org157d403">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
<li><a href="#org73f76d2">2.2. <code>qmckl_dgemm_safe</code></a></li>
|
||||||
<li><a href="#org4aa12d6">2.3. <code>qmckl_matmul</code></a></li>
|
<li><a href="#org0a14dd2">2.3. <code>qmckl_matmul</code></a></li>
|
||||||
<li><a href="#org6beab71">2.4. <code>qmckl_adjugate</code></a></li>
|
<li><a href="#org921a737">2.4. <code>qmckl_adjugate</code></a></li>
|
||||||
<li><a href="#org307417d">2.5. <code>qmckl_adjugate_safe</code></a>
|
<li><a href="#org8eb8314">2.5. <code>qmckl_adjugate_safe</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org4fbb522">2.5.1. C interface</a></li>
|
<li><a href="#org206794f">2.5.1. C interface</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org1b7f2fb">2.6. <code>qmckl_transpose</code></a></li>
|
<li><a href="#orgdadeee4">2.6. <code>qmckl_transpose</code></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org389e611">3. Utilities</a></li>
|
<li><a href="#org36156f3">3. Utilities</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf0c0f41" class="outline-2">
|
<div id="outline-container-org3ee5d90" class="outline-2">
|
||||||
<h2 id="orgf0c0f41">-</h2>
|
<h2 id="org3ee5d90">-</h2>
|
||||||
<div class="outline-text-2" id="text-orgf0c0f41">
|
<div class="outline-text-2" id="text-org3ee5d90">
|
||||||
<p>
|
<p>
|
||||||
Basic linear algebra data types and operations are described in this file.
|
Basic linear algebra data types and operations are described in this file.
|
||||||
The data types are private, so that HPC implementations can use
|
The data types are private, so that HPC implementations can use
|
||||||
@ -409,12 +409,12 @@ are not intended to be passed to external codes.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgafc8111" class="outline-2">
|
<div id="outline-container-org987d788" class="outline-2">
|
||||||
<h2 id="orgafc8111"><span class="section-number-2">1</span> Data types</h2>
|
<h2 id="org987d788"><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-org791ab3f" class="outline-3">
|
<div id="outline-container-orgb988f6b" class="outline-3">
|
||||||
<h3 id="org791ab3f"><span class="section-number-3">1.1</span> Vector</h3>
|
<h3 id="orgb988f6b"><span class="section-number-3">1.1</span> Vector</h3>
|
||||||
<div class="outline-text-3" id="text-1-1">
|
<div class="outline-text-3" id="text-1-1">
|
||||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
@ -468,8 +468,8 @@ Allocates a new vector. If the allocation failed the size is zero.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org71776d0" class="outline-3">
|
<div id="outline-container-orge20a4d4" class="outline-3">
|
||||||
<h3 id="org71776d0"><span class="section-number-3">1.2</span> Matrix</h3>
|
<h3 id="orge20a4d4"><span class="section-number-3">1.2</span> Matrix</h3>
|
||||||
<div class="outline-text-3" id="text-1-2">
|
<div class="outline-text-3" id="text-1-2">
|
||||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
@ -529,8 +529,8 @@ Allocates a new matrix. If the allocation failed the sizes are zero.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc1513fd" class="outline-3">
|
<div id="outline-container-org43e52c0" class="outline-3">
|
||||||
<h3 id="orgc1513fd"><span class="section-number-3">1.3</span> Tensor</h3>
|
<h3 id="org43e52c0"><span class="section-number-3">1.3</span> Tensor</h3>
|
||||||
<div class="outline-text-3" id="text-1-3">
|
<div class="outline-text-3" id="text-1-3">
|
||||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
@ -597,16 +597,16 @@ is zero.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgca3e385" class="outline-3">
|
<div id="outline-container-org9a88c52" class="outline-3">
|
||||||
<h3 id="orgca3e385"><span class="section-number-3">1.4</span> Reshaping</h3>
|
<h3 id="org9a88c52"><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-org9ba662c" class="outline-4">
|
<div id="outline-container-org4a39035" class="outline-4">
|
||||||
<h4 id="org9ba662c"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
<h4 id="org4a39035"><span class="section-number-4">1.4.1</span> Vector -> Matrix</h4>
|
||||||
<div class="outline-text-4" id="text-1-4-1">
|
<div class="outline-text-4" id="text-1-4-1">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||||
@ -622,8 +622,8 @@ Reshapes a vector into a matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org84deb6e" class="outline-4">
|
<div id="outline-container-org0a26599" class="outline-4">
|
||||||
<h4 id="org84deb6e"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
<h4 id="org0a26599"><span class="section-number-4">1.4.2</span> Vector -> Tensor</h4>
|
||||||
<div class="outline-text-4" id="text-1-4-2">
|
<div class="outline-text-4" id="text-1-4-2">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||||
@ -639,8 +639,8 @@ Reshapes a vector into a tensor.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd346a20" class="outline-4">
|
<div id="outline-container-orgec07f9d" class="outline-4">
|
||||||
<h4 id="orgd346a20"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
<h4 id="orgec07f9d"><span class="section-number-4">1.4.3</span> Matrix -> Vector</h4>
|
||||||
<div class="outline-text-4" id="text-1-4-3">
|
<div class="outline-text-4" id="text-1-4-3">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||||
@ -654,8 +654,8 @@ Reshapes a matrix into a vector.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf6586a1" class="outline-4">
|
<div id="outline-container-orgfaff3d8" class="outline-4">
|
||||||
<h4 id="orgf6586a1"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
<h4 id="orgfaff3d8"><span class="section-number-4">1.4.4</span> Matrix -> Tensor</h4>
|
||||||
<div class="outline-text-4" id="text-1-4-4">
|
<div class="outline-text-4" id="text-1-4-4">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||||
@ -671,8 +671,8 @@ Reshapes a matrix into a tensor.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org3e8f476" class="outline-4">
|
<div id="outline-container-orge37a199" class="outline-4">
|
||||||
<h4 id="org3e8f476"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
<h4 id="orge37a199"><span class="section-number-4">1.4.5</span> Tensor -> Vector</h4>
|
||||||
<div class="outline-text-4" id="text-1-4-5">
|
<div class="outline-text-4" id="text-1-4-5">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||||
@ -686,8 +686,8 @@ Reshapes a tensor into a vector.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org53e9bf9" class="outline-4">
|
<div id="outline-container-orged87f01" class="outline-4">
|
||||||
<h4 id="org53e9bf9"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
<h4 id="orged87f01"><span class="section-number-4">1.4.6</span> Tensor -> Matrix</h4>
|
||||||
<div class="outline-text-4" id="text-1-4-6">
|
<div class="outline-text-4" id="text-1-4-6">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||||
@ -704,8 +704,8 @@ Reshapes a tensor into a vector.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgdf7d91d" class="outline-3">
|
<div id="outline-container-orge60cec9" class="outline-3">
|
||||||
<h3 id="orgdf7d91d"><span class="section-number-3">1.5</span> Access macros</h3>
|
<h3 id="orge60cec9"><span class="section-number-3">1.5</span> Access macros</h3>
|
||||||
<div class="outline-text-3" id="text-1-5">
|
<div class="outline-text-3" id="text-1-5">
|
||||||
<p>
|
<p>
|
||||||
Macros are provided to ease the access to vectors, matrices and
|
Macros are provided to ease the access to vectors, matrices and
|
||||||
@ -730,12 +730,12 @@ For example:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org8892a14" class="outline-3">
|
<div id="outline-container-orgad8fd14" class="outline-3">
|
||||||
<h3 id="org8892a14"><span class="section-number-3">1.6</span> Set all elements</h3>
|
<h3 id="orgad8fd14"><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-org585eea6" class="outline-4">
|
<div id="outline-container-org8ce6bc5" class="outline-4">
|
||||||
<h4 id="org585eea6"><span class="section-number-4">1.6.1</span> Vector</h4>
|
<h4 id="org8ce6bc5"><span class="section-number-4">1.6.1</span> Vector</h4>
|
||||||
<div class="outline-text-4" id="text-1-6-1">
|
<div class="outline-text-4" id="text-1-6-1">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_vector</span>
|
||||||
@ -745,8 +745,8 @@ For example:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc0e4da8" class="outline-4">
|
<div id="outline-container-orgf96f54e" class="outline-4">
|
||||||
<h4 id="orgc0e4da8"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
<h4 id="orgf96f54e"><span class="section-number-4">1.6.2</span> Matrix</h4>
|
||||||
<div class="outline-text-4" id="text-1-6-2">
|
<div class="outline-text-4" id="text-1-6-2">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_matrix</span>
|
||||||
@ -756,8 +756,8 @@ For example:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org2a27a55" class="outline-4">
|
<div id="outline-container-orgc4c5a03" class="outline-4">
|
||||||
<h4 id="org2a27a55"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
<h4 id="orgc4c5a03"><span class="section-number-4">1.6.3</span> Tensor</h4>
|
||||||
<div class="outline-text-4" id="text-1-6-3">
|
<div class="outline-text-4" id="text-1-6-3">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_tensor</span>
|
||||||
@ -768,8 +768,8 @@ For example:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org4cb900e" class="outline-3">
|
<div id="outline-container-orgb3a225b" class="outline-3">
|
||||||
<h3 id="org4cb900e"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
<h3 id="orgb3a225b"><span class="section-number-3">1.7</span> Copy to/from to <code>double*</code></h3>
|
||||||
<div class="outline-text-3" id="text-1-7">
|
<div class="outline-text-3" id="text-1-7">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span>
|
||||||
@ -851,8 +851,8 @@ Converts a <code>double*</code> to a tensor.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org38af7e5" class="outline-3">
|
<div id="outline-container-orgb150823" class="outline-3">
|
||||||
<h3 id="org38af7e5"><span class="section-number-3">1.8</span> Allocate and copy to <code>double*</code></h3>
|
<h3 id="orgb150823"><span class="section-number-3">1.8</span> Allocate and copy to <code>double*</code></h3>
|
||||||
<div class="outline-text-3" id="text-1-8">
|
<div class="outline-text-3" id="text-1-8">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">double</span>* <span style="color: #0000ff;">qmckl_alloc_double_of_vector</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
<pre class="src src-c"><span style="color: #228b22;">double</span>* <span style="color: #0000ff;">qmckl_alloc_double_of_vector</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||||
@ -876,12 +876,12 @@ Converts a <code>double*</code> to a tensor.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga6986d9" class="outline-2">
|
<div id="outline-container-orga9c6878" class="outline-2">
|
||||||
<h2 id="orga6986d9"><span class="section-number-2">2</span> Matrix operations</h2>
|
<h2 id="orga9c6878"><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-org9782ca8" class="outline-3">
|
<div id="outline-container-org37d622b" class="outline-3">
|
||||||
<h3 id="org9782ca8"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
<h3 id="org37d622b"><span class="section-number-3">2.1</span> <code>qmckl_dgemm</code></h3>
|
||||||
<div class="outline-text-3" id="text-2-1">
|
<div class="outline-text-3" id="text-2-1">
|
||||||
<p>
|
<p>
|
||||||
Matrix multiplication with a BLAS interface:
|
Matrix multiplication with a BLAS interface:
|
||||||
@ -893,7 +893,7 @@ Matrix multiplication with a BLAS interface:
|
|||||||
\]
|
\]
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table id="orgb41760e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org6e03ef8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1052,8 +1052,8 @@ Requirements:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org157d403" class="outline-3">
|
<div id="outline-container-org73f76d2" class="outline-3">
|
||||||
<h3 id="org157d403"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
<h3 id="org73f76d2"><span class="section-number-3">2.2</span> <code>qmckl_dgemm_safe</code></h3>
|
||||||
<div class="outline-text-3" id="text-2-2">
|
<div class="outline-text-3" id="text-2-2">
|
||||||
<p>
|
<p>
|
||||||
"Size-safe" proxy function with the same functionality as <code>qmckl_dgemm</code>
|
"Size-safe" proxy function with the same functionality as <code>qmckl_dgemm</code>
|
||||||
@ -1062,7 +1062,7 @@ are required primarily for the Python API, where compatibility with
|
|||||||
NumPy arrays implies that sizes of the input and output arrays are provided.
|
NumPy arrays implies that sizes of the input and output arrays are provided.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table id="org6f799f9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org2741fc4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1248,8 +1248,8 @@ Requirements:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org4aa12d6" class="outline-3">
|
<div id="outline-container-org0a14dd2" class="outline-3">
|
||||||
<h3 id="org4aa12d6"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
<h3 id="org0a14dd2"><span class="section-number-3">2.3</span> <code>qmckl_matmul</code></h3>
|
||||||
<div class="outline-text-3" id="text-2-3">
|
<div class="outline-text-3" id="text-2-3">
|
||||||
<p>
|
<p>
|
||||||
Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
||||||
@ -1261,7 +1261,7 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
|||||||
\]
|
\]
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table id="org7031fb5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgff22b92" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1355,8 +1355,8 @@ Matrix multiplication using the <code>qmckl_matrix</code> data type:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org6beab71" class="outline-3">
|
<div id="outline-container-org921a737" class="outline-3">
|
||||||
<h3 id="org6beab71"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
<h3 id="org921a737"><span class="section-number-3">2.4</span> <code>qmckl_adjugate</code></h3>
|
||||||
<div class="outline-text-3" id="text-2-4">
|
<div class="outline-text-3" id="text-2-4">
|
||||||
<p>
|
<p>
|
||||||
Given a matrix \(\mathbf{A}\), the adjugate matrix
|
Given a matrix \(\mathbf{A}\), the adjugate matrix
|
||||||
@ -1374,7 +1374,7 @@ of \(\mathbf{A}\).
|
|||||||
See also: <a href="https://en.wikipedia.org/wiki/Adjugate_matrix">https://en.wikipedia.org/wiki/Adjugate_matrix</a>
|
See also: <a href="https://en.wikipedia.org/wiki/Adjugate_matrix">https://en.wikipedia.org/wiki/Adjugate_matrix</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table id="org439887c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgc5121a9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1570,8 +1570,8 @@ determinant with the inverse:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org307417d" class="outline-3">
|
<div id="outline-container-org8eb8314" class="outline-3">
|
||||||
<h3 id="org307417d"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
<h3 id="org8eb8314"><span class="section-number-3">2.5</span> <code>qmckl_adjugate_safe</code></h3>
|
||||||
<div class="outline-text-3" id="text-2-5">
|
<div class="outline-text-3" id="text-2-5">
|
||||||
<p>
|
<p>
|
||||||
"Size-safe" proxy function with the same functionality as <code>qmckl_adjugate</code>
|
"Size-safe" proxy function with the same functionality as <code>qmckl_adjugate</code>
|
||||||
@ -1581,7 +1581,7 @@ NumPy arrays implies that sizes of the input and output arrays are provided.
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
<table id="org33e3080" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgfbfee17" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1703,13 +1703,13 @@ LAPACK library.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org4fbb522" class="outline-4">
|
<div id="outline-container-org206794f" class="outline-4">
|
||||||
<h4 id="org4fbb522"><span class="section-number-4">2.5.1</span> C interface</h4>
|
<h4 id="org206794f"><span class="section-number-4">2.5.1</span> C interface</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org1b7f2fb" class="outline-3">
|
<div id="outline-container-orgdadeee4" class="outline-3">
|
||||||
<h3 id="org1b7f2fb"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
<h3 id="orgdadeee4"><span class="section-number-3">2.6</span> <code>qmckl_transpose</code></h3>
|
||||||
<div class="outline-text-3" id="text-2-6">
|
<div class="outline-text-3" id="text-2-6">
|
||||||
<p>
|
<p>
|
||||||
Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
||||||
@ -1770,8 +1770,8 @@ Transposes a matrix: \(A^\dagger_{ji} = A_{ij}\).
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org389e611" class="outline-2">
|
<div id="outline-container-org36156f3" class="outline-2">
|
||||||
<h2 id="org389e611"><span class="section-number-2">3</span> Utilities</h2>
|
<h2 id="org36156f3"><span class="section-number-2">3</span> Utilities</h2>
|
||||||
<div class="outline-text-2" id="text-3">
|
<div class="outline-text-2" id="text-3">
|
||||||
<p>
|
<p>
|
||||||
Trick to make MKL efficient on AMD
|
Trick to make MKL efficient on AMD
|
||||||
@ -1789,7 +1789,7 @@ Trick to make MKL efficient on AMD
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: TREX CoE</p>
|
<p class="author">Author: TREX CoE</p>
|
||||||
<p class="date">Created: 2023-09-13 Wed 11:24</p>
|
<p class="date">Created: 2023-09-13 Wed 14:23</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-09-13 Wed 11:24 -->
|
<!-- 2023-09-13 Wed 14:23 -->
|
||||||
<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="#org5cadfff">1. Context handling</a>
|
<li><a href="#org83398a7">1. Context handling</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org368a0a0">1.1. Data structure</a></li>
|
<li><a href="#orgb25621d">1.1. Data structure</a></li>
|
||||||
<li><a href="#org56aafbf">1.2. Creation</a></li>
|
<li><a href="#orgae57a0c">1.2. Creation</a></li>
|
||||||
<li><a href="#org1d77e83">1.3. Locking</a></li>
|
<li><a href="#orgad87818">1.3. Locking</a></li>
|
||||||
<li><a href="#orgd5210e3">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
<li><a href="#org2816fff">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||||
<li><a href="#org9758dbd">1.5. Destroy</a></li>
|
<li><a href="#org10f0377">1.5. Destroy</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org5cadfff" class="outline-2">
|
<div id="outline-container-org83398a7" class="outline-2">
|
||||||
<h2 id="org5cadfff"><span class="section-number-2">1</span> Context handling</h2>
|
<h2 id="org83398a7"><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="org8a19bb6"><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="org6924afa"><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-org368a0a0" class="outline-3">
|
<div id="outline-container-orgb25621d" class="outline-3">
|
||||||
<h3 id="org368a0a0"><span class="section-number-3">1.1</span> Data structure</h3>
|
<h3 id="orgb25621d"><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="#org56aafbf"><code>qmckl_context_create</code></a> <a href="#org9758dbd"><code>qmckl_context_destroy</code></a> and <a href="#orgd5210e3"><code>qmckl_context_copy</code></a>
|
<a href="#orgae57a0c"><code>qmckl_context_create</code></a> <a href="#org10f0377"><code>qmckl_context_destroy</code></a> and <a href="#org2816fff"><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-org56aafbf" class="outline-3">
|
<div id="outline-container-orgae57a0c" class="outline-3">
|
||||||
<h3 id="org56aafbf"><span class="section-number-3">1.2</span> Creation</h3>
|
<h3 id="orgae57a0c"><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-org1d77e83" class="outline-3">
|
<div id="outline-container-orgad87818" class="outline-3">
|
||||||
<h3 id="org1d77e83"><span class="section-number-3">1.3</span> Locking</h3>
|
<h3 id="orgad87818"><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-orgd5210e3" class="outline-3">
|
<div id="outline-container-org2816fff" class="outline-3">
|
||||||
<h3 id="orgd5210e3"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
<h3 id="org2816fff"><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-org9758dbd" class="outline-3">
|
<div id="outline-container-org10f0377" class="outline-3">
|
||||||
<h3 id="org9758dbd"><span class="section-number-3">1.5</span> Destroy</h3>
|
<h3 id="org10f0377"><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-09-13 Wed 11:24</p>
|
<p class="date">Created: 2023-09-13 Wed 14:23</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-09-13 Wed 11:24 -->
|
<!-- 2023-09-13 Wed 14:23 -->
|
||||||
<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="#org8ed7ca9">1. Context</a>
|
<li><a href="#orgd9d1ace">1. Context</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org34c1330">1.1. Data structure</a></li>
|
<li><a href="#org6d53a67">1.1. Data structure</a></li>
|
||||||
<li><a href="#org27c0c00">1.2. Access functions</a></li>
|
<li><a href="#org239b13b">1.2. Access functions</a></li>
|
||||||
<li><a href="#org1ce1c1b">1.3. Initialization functions</a></li>
|
<li><a href="#org32b502d">1.3. Initialization functions</a></li>
|
||||||
<li><a href="#org93c846b">1.4. Fortran Interfaces</a></li>
|
<li><a href="#org375595e">1.4. Fortran Interfaces</a></li>
|
||||||
<li><a href="#org6784f77">1.5. Test</a></li>
|
<li><a href="#orgce8fedf">1.5. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgdd5b1ac">2. Computation</a>
|
<li><a href="#orgea52ddd">2. Computation</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org7000771">2.1. Determinant matrix</a>
|
<li><a href="#orgc77e20a">2.1. Determinant matrix</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org3e89dfc">2.1.1. Get</a></li>
|
<li><a href="#org7f57c71">2.1.1. Get</a></li>
|
||||||
<li><a href="#org0be2949">2.1.2. Provide</a></li>
|
<li><a href="#orga321daa">2.1.2. Provide</a></li>
|
||||||
<li><a href="#orgd41477a">2.1.3. Compute alpha</a></li>
|
<li><a href="#orge33631e">2.1.3. Compute alpha</a></li>
|
||||||
<li><a href="#org4392a13">2.1.4. Compute beta</a></li>
|
<li><a href="#org4b06c27">2.1.4. Compute beta</a></li>
|
||||||
<li><a href="#org93c37f5">2.1.5. Test</a></li>
|
<li><a href="#orgb4d061b">2.1.5. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org7e4284a">2.2. Inverse of Determinant matrix</a>
|
<li><a href="#orgb155f0b">2.2. Inverse of Determinant matrix</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org2bc5ea8">2.2.1. Get</a></li>
|
<li><a href="#org0699306">2.2.1. Get</a></li>
|
||||||
<li><a href="#org2cc2d65">2.2.2. Provide</a></li>
|
<li><a href="#org4189ce6">2.2.2. Provide</a></li>
|
||||||
<li><a href="#orgf392a6b">2.2.3. Compute alpha</a></li>
|
<li><a href="#org87ed1f3">2.2.3. Compute alpha</a></li>
|
||||||
<li><a href="#org25b27a4">2.2.4. Compute beta</a></li>
|
<li><a href="#org64cf2dd">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-org8ed7ca9" class="outline-2">
|
<div id="outline-container-orgd9d1ace" class="outline-2">
|
||||||
<h2 id="org8ed7ca9"><span class="section-number-2">1</span> Context</h2>
|
<h2 id="orgd9d1ace"><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-org34c1330" class="outline-3">
|
<div id="outline-container-org6d53a67" class="outline-3">
|
||||||
<h3 id="org34c1330"><span class="section-number-3">1.1</span> Data structure</h3>
|
<h3 id="org6d53a67"><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-org27c0c00" class="outline-3">
|
<div id="outline-container-org239b13b" class="outline-3">
|
||||||
<h3 id="org27c0c00"><span class="section-number-3">1.2</span> Access functions</h3>
|
<h3 id="org239b13b"><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-org1ce1c1b" class="outline-3">
|
<div id="outline-container-org32b502d" class="outline-3">
|
||||||
<h3 id="org1ce1c1b"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
<h3 id="org32b502d"><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-org93c846b" class="outline-3">
|
<div id="outline-container-org375595e" class="outline-3">
|
||||||
<h3 id="org93c846b"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
<h3 id="org375595e"><span class="section-number-3">1.4</span> Fortran Interfaces</h3>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org6784f77" class="outline-3">
|
<div id="outline-container-orgce8fedf" class="outline-3">
|
||||||
<h3 id="org6784f77"><span class="section-number-3">1.5</span> Test</h3>
|
<h3 id="orgce8fedf"><span class="section-number-3">1.5</span> Test</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgdd5b1ac" class="outline-2">
|
<div id="outline-container-orgea52ddd" class="outline-2">
|
||||||
<h2 id="orgdd5b1ac"><span class="section-number-2">2</span> Computation</h2>
|
<h2 id="orgea52ddd"><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-org7000771" class="outline-3">
|
<div id="outline-container-orgc77e20a" class="outline-3">
|
||||||
<h3 id="org7000771"><span class="section-number-3">2.1</span> Determinant matrix</h3>
|
<h3 id="orgc77e20a"><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-org3e89dfc" class="outline-4">
|
<div id="outline-container-org7f57c71" class="outline-4">
|
||||||
<h4 id="org3e89dfc"><span class="section-number-4">2.1.1</span> Get</h4>
|
<h4 id="org7f57c71"><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-org0be2949" class="outline-4">
|
<div id="outline-container-orga321daa" class="outline-4">
|
||||||
<h4 id="org0be2949"><span class="section-number-4">2.1.2</span> Provide</h4>
|
<h4 id="orga321daa"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd41477a" class="outline-4">
|
<div id="outline-container-orge33631e" class="outline-4">
|
||||||
<h4 id="orgd41477a"><span class="section-number-4">2.1.3</span> Compute alpha</h4>
|
<h4 id="orge33631e"><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="org76100cb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgd582b3b" 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-org4392a13" class="outline-4">
|
<div id="outline-container-org4b06c27" class="outline-4">
|
||||||
<h4 id="org4392a13"><span class="section-number-4">2.1.4</span> Compute beta</h4>
|
<h4 id="org4b06c27"><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="org15c1f01" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org005814f" 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-org93c37f5" class="outline-4">
|
<div id="outline-container-orgb4d061b" class="outline-4">
|
||||||
<h4 id="org93c37f5"><span class="section-number-4">2.1.5</span> Test</h4>
|
<h4 id="orgb4d061b"><span class="section-number-4">2.1.5</span> Test</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org7e4284a" class="outline-3">
|
<div id="outline-container-orgb155f0b" class="outline-3">
|
||||||
<h3 id="org7e4284a"><span class="section-number-3">2.2</span> Inverse of Determinant matrix</h3>
|
<h3 id="orgb155f0b"><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-org2bc5ea8" class="outline-4">
|
<div id="outline-container-org0699306" class="outline-4">
|
||||||
<h4 id="org2bc5ea8"><span class="section-number-4">2.2.1</span> Get</h4>
|
<h4 id="org0699306"><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-org2cc2d65" class="outline-4">
|
<div id="outline-container-org4189ce6" class="outline-4">
|
||||||
<h4 id="org2cc2d65"><span class="section-number-4">2.2.2</span> Provide</h4>
|
<h4 id="org4189ce6"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf392a6b" class="outline-4">
|
<div id="outline-container-org87ed1f3" class="outline-4">
|
||||||
<h4 id="orgf392a6b"><span class="section-number-4">2.2.3</span> Compute alpha</h4>
|
<h4 id="org87ed1f3"><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="org1c19c9d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org0cee9f8" 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-org25b27a4" class="outline-4">
|
<div id="outline-container-org64cf2dd" class="outline-4">
|
||||||
<h4 id="org25b27a4"><span class="section-number-4">2.2.4</span> Compute beta</h4>
|
<h4 id="org64cf2dd"><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="orgced2578" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgdf61ad3" 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-09-13 Wed 11:24</p>
|
<p class="date">Created: 2023-09-13 Wed 14:23</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-09-13 Wed 11:24 -->
|
<!-- 2023-09-13 Wed 14:23 -->
|
||||||
<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="#org39bd56c">1. Squared distance</a>
|
<li><a href="#org9763a18">1. Squared distance</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org5997b46">1.1. <code>qmckl_distance_sq</code></a>
|
<li><a href="#orge2b73cc">1.1. <code>qmckl_distance_sq</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgbbc1500">1.1.1. Performance</a></li>
|
<li><a href="#orgcdfa1a3">1.1.1. Performance</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgb659d41">2. Distance</a>
|
<li><a href="#orgbf1ac77">2. Distance</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org636deba">2.1. <code>qmckl_distance</code></a>
|
<li><a href="#org2df3d23">2.1. <code>qmckl_distance</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org0f2b526">2.1.1. Requirements</a></li>
|
<li><a href="#orgf5fe1af">2.1.1. Requirements</a></li>
|
||||||
<li><a href="#orgd2f5aa2">2.1.2. C header</a></li>
|
<li><a href="#org42a89f4">2.1.2. C header</a></li>
|
||||||
<li><a href="#orgccb57a0">2.1.3. Source</a></li>
|
<li><a href="#org3d20412">2.1.3. Source</a></li>
|
||||||
<li><a href="#orgc9b5268">2.1.4. Performance</a></li>
|
<li><a href="#org9c83c01">2.1.4. Performance</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org1894bbb">3. Rescaled Distance</a>
|
<li><a href="#org9f4395f">3. Rescaled Distance</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgaeffe00">3.1. <code>qmckl_distance_rescaled</code></a>
|
<li><a href="#orga93b191">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org33ddcad">3.1.1. Requirements</a></li>
|
<li><a href="#orgad1799b">3.1.1. Requirements</a></li>
|
||||||
<li><a href="#orga355d9b">3.1.2. C header</a></li>
|
<li><a href="#org1020a6c">3.1.2. C header</a></li>
|
||||||
<li><a href="#org1bf872b">3.1.3. Source</a></li>
|
<li><a href="#org3e43ddb">3.1.3. Source</a></li>
|
||||||
<li><a href="#orgd97aab6">3.1.4. Performance</a></li>
|
<li><a href="#orgcaedc02">3.1.4. Performance</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgeb2ee80">4. Rescaled Distance Derivatives</a>
|
<li><a href="#org870ef8b">4. Rescaled Distance Derivatives</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgca332e1">4.1. <code>qmckl_distance_rescaled_gl</code></a></li>
|
<li><a href="#org87a057c">4.1. <code>qmckl_distance_rescaled_gl</code></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org39bd56c" class="outline-2">
|
<div id="outline-container-org9763a18" class="outline-2">
|
||||||
<h2 id="org39bd56c"><span class="section-number-2">1</span> Squared distance</h2>
|
<h2 id="org9763a18"><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-org5997b46" class="outline-3">
|
<div id="outline-container-orge2b73cc" class="outline-3">
|
||||||
<h3 id="org5997b46"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
<h3 id="orge2b73cc"><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="org5e2cd11" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgadd7423" 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-orgbbc1500" class="outline-4">
|
<div id="outline-container-orgcdfa1a3" class="outline-4">
|
||||||
<h4 id="orgbbc1500"><span class="section-number-4">1.1.1</span> Performance</h4>
|
<h4 id="orgcdfa1a3"><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-orgb659d41" class="outline-2">
|
<div id="outline-container-orgbf1ac77" class="outline-2">
|
||||||
<h2 id="orgb659d41"><span class="section-number-2">2</span> Distance</h2>
|
<h2 id="orgbf1ac77"><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-org636deba" class="outline-3">
|
<div id="outline-container-org2df3d23" class="outline-3">
|
||||||
<h3 id="org636deba"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
<h3 id="org2df3d23"><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="org33b178b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org26b4932" 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-org0f2b526" class="outline-4">
|
<div id="outline-container-orgf5fe1af" class="outline-4">
|
||||||
<h4 id="org0f2b526"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
<h4 id="orgf5fe1af"><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-orgd2f5aa2" class="outline-4">
|
<div id="outline-container-org42a89f4" class="outline-4">
|
||||||
<h4 id="orgd2f5aa2"><span class="section-number-4">2.1.2</span> C header</h4>
|
<h4 id="org42a89f4"><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-orgccb57a0" class="outline-4">
|
<div id="outline-container-org3d20412" class="outline-4">
|
||||||
<h4 id="orgccb57a0"><span class="section-number-4">2.1.3</span> Source</h4>
|
<h4 id="org3d20412"><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-orgc9b5268" class="outline-4">
|
<div id="outline-container-org9c83c01" class="outline-4">
|
||||||
<h4 id="orgc9b5268"><span class="section-number-4">2.1.4</span> Performance</h4>
|
<h4 id="org9c83c01"><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-org1894bbb" class="outline-2">
|
<div id="outline-container-org9f4395f" class="outline-2">
|
||||||
<h2 id="org1894bbb"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
<h2 id="org9f4395f"><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-orgaeffe00" class="outline-3">
|
<div id="outline-container-orga93b191" class="outline-3">
|
||||||
<h3 id="orgaeffe00"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
<h3 id="orga93b191"><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="org688e33f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgc7eb18e" 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-org33ddcad" class="outline-4">
|
<div id="outline-container-orgad1799b" class="outline-4">
|
||||||
<h4 id="org33ddcad"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
<h4 id="orgad1799b"><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-orga355d9b" class="outline-4">
|
<div id="outline-container-org1020a6c" class="outline-4">
|
||||||
<h4 id="orga355d9b"><span class="section-number-4">3.1.2</span> C header</h4>
|
<h4 id="org1020a6c"><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-org1bf872b" class="outline-4">
|
<div id="outline-container-org3e43ddb" class="outline-4">
|
||||||
<h4 id="org1bf872b"><span class="section-number-4">3.1.3</span> Source</h4>
|
<h4 id="org3e43ddb"><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-orgd97aab6" class="outline-4">
|
<div id="outline-container-orgcaedc02" class="outline-4">
|
||||||
<h4 id="orgd97aab6"><span class="section-number-4">3.1.4</span> Performance</h4>
|
<h4 id="orgcaedc02"><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-orgeb2ee80" class="outline-2">
|
<div id="outline-container-org870ef8b" class="outline-2">
|
||||||
<h2 id="orgeb2ee80"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
<h2 id="org870ef8b"><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-orgca332e1" class="outline-3">
|
<div id="outline-container-org87a057c" class="outline-3">
|
||||||
<h3 id="orgca332e1"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_gl</code></h3>
|
<h3 id="org87a057c"><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="org1a21a8f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgf8e38c7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -1731,7 +1731,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-09-13 Wed 11:24</p>
|
<p class="date">Created: 2023-09-13 Wed 14:23</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-09-13 Wed 11:24 -->
|
<!-- 2023-09-13 Wed 14:23 -->
|
||||||
<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="#org3e93fa1">1. Context</a>
|
<li><a href="#orged0ba59">1. Context</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgc895d51">1.1. Data structure</a></li>
|
<li><a href="#org3831837">1.1. Data structure</a></li>
|
||||||
<li><a href="#org4e8b1ca">1.2. Initialization functions</a></li>
|
<li><a href="#orgeac5888">1.2. Initialization functions</a></li>
|
||||||
<li><a href="#org7ed9ce7">1.3. Access functions</a>
|
<li><a href="#org14f04fc">1.3. Access functions</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgd404b2d">1.3.1. Number of electrons</a></li>
|
<li><a href="#orgf397d49">1.3.1. Number of electrons</a></li>
|
||||||
<li><a href="#orga65e3b0">1.3.2. Number of walkers</a></li>
|
<li><a href="#orgbbcb140">1.3.2. Number of walkers</a></li>
|
||||||
<li><a href="#orgd6806ca">1.3.3. Electron coordinates</a></li>
|
<li><a href="#org681287c">1.3.3. Electron coordinates</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgec51cca">1.4. Test</a></li>
|
<li><a href="#org899c2ba">1.4. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org3a9f240">2. Computation</a>
|
<li><a href="#orgb32867c">2. Computation</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgcb37d97">2.1. Electron-electron distances</a>
|
<li><a href="#org449a3eb">2.1. Electron-electron distances</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgea26d00">2.1.1. Get</a></li>
|
<li><a href="#orga2c2f3b">2.1.1. Get</a></li>
|
||||||
<li><a href="#org4819412">2.1.2. Compute</a></li>
|
<li><a href="#org0f60700">2.1.2. Compute</a></li>
|
||||||
<li><a href="#orgc12c553">2.1.3. Test</a></li>
|
<li><a href="#org7ec84ab">2.1.3. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org6fa6753">2.2. Electron-electron potential</a>
|
<li><a href="#org7ece747">2.2. Electron-electron potential</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org830646d">2.2.1. Get</a></li>
|
<li><a href="#orged1a767">2.2.1. Get</a></li>
|
||||||
<li><a href="#org7aa7f6c">2.2.2. Compute</a></li>
|
<li><a href="#org7dfe79e">2.2.2. Compute</a></li>
|
||||||
<li><a href="#org4b7cb93">2.2.3. Test</a></li>
|
<li><a href="#orgc233016">2.2.3. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgda764ef">2.3. Electron-nucleus distances</a>
|
<li><a href="#org667b5df">2.3. Electron-nucleus distances</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org06e5d86">2.3.1. Get</a></li>
|
<li><a href="#org7b6de26">2.3.1. Get</a></li>
|
||||||
<li><a href="#org9b60561">2.3.2. Compute</a></li>
|
<li><a href="#orge66d0a8">2.3.2. Compute</a></li>
|
||||||
<li><a href="#org95947e2">2.3.3. Test</a></li>
|
<li><a href="#orgf1315a7">2.3.3. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org0863ba0">2.4. Electron-nucleus potential</a>
|
<li><a href="#orgb73b68a">2.4. Electron-nucleus potential</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org65e9392">2.4.1. Get</a></li>
|
<li><a href="#orgddd833e">2.4.1. Get</a></li>
|
||||||
<li><a href="#orga378b71">2.4.2. Compute</a></li>
|
<li><a href="#orgd06214a">2.4.2. Compute</a></li>
|
||||||
<li><a href="#org88dfadd">2.4.3. Test</a></li>
|
<li><a href="#orgbfea698">2.4.3. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org5879d06">2.5. Generate initial coordinates</a></li>
|
<li><a href="#orgbb2054a">2.5. Generate initial coordinates</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org3e93fa1" class="outline-2">
|
<div id="outline-container-orged0ba59" class="outline-2">
|
||||||
<h2 id="org3e93fa1"><span class="section-number-2">1</span> Context</h2>
|
<h2 id="orged0ba59"><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-orgc895d51" class="outline-3">
|
<div id="outline-container-org3831837" class="outline-3">
|
||||||
<h3 id="orgc895d51"><span class="section-number-3">1.1</span> Data structure</h3>
|
<h3 id="org3831837"><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-org4e8b1ca" class="outline-3">
|
<div id="outline-container-orgeac5888" class="outline-3">
|
||||||
<h3 id="org4e8b1ca"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
<h3 id="orgeac5888"><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-org7ed9ce7" class="outline-3">
|
<div id="outline-container-org14f04fc" class="outline-3">
|
||||||
<h3 id="org7ed9ce7"><span class="section-number-3">1.3</span> Access functions</h3>
|
<h3 id="org14f04fc"><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-orgd404b2d" class="outline-4">
|
<div id="outline-container-orgf397d49" class="outline-4">
|
||||||
<h4 id="orgd404b2d"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
<h4 id="orgf397d49"><span class="section-number-4">1.3.1</span> Number of electrons</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga65e3b0" class="outline-4">
|
<div id="outline-container-orgbbcb140" class="outline-4">
|
||||||
<h4 id="orga65e3b0"><span class="section-number-4">1.3.2</span> Number of walkers</h4>
|
<h4 id="orgbbcb140"><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-orgd6806ca" class="outline-4">
|
<div id="outline-container-org681287c" class="outline-4">
|
||||||
<h4 id="orgd6806ca"><span class="section-number-4">1.3.3</span> Electron coordinates</h4>
|
<h4 id="org681287c"><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-orgec51cca" class="outline-3">
|
<div id="outline-container-org899c2ba" class="outline-3">
|
||||||
<h3 id="orgec51cca"><span class="section-number-3">1.4</span> Test</h3>
|
<h3 id="org899c2ba"><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-org3a9f240" class="outline-2">
|
<div id="outline-container-orgb32867c" class="outline-2">
|
||||||
<h2 id="org3a9f240"><span class="section-number-2">2</span> Computation</h2>
|
<h2 id="orgb32867c"><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-orgcb37d97" class="outline-3">
|
<div id="outline-container-org449a3eb" class="outline-3">
|
||||||
<h3 id="orgcb37d97"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
<h3 id="org449a3eb"><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-orgea26d00" class="outline-4">
|
<div id="outline-container-orga2c2f3b" class="outline-4">
|
||||||
<h4 id="orgea26d00"><span class="section-number-4">2.1.1</span> Get</h4>
|
<h4 id="orga2c2f3b"><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-org4819412" class="outline-4">
|
<div id="outline-container-org0f60700" class="outline-4">
|
||||||
<h4 id="org4819412"><span class="section-number-4">2.1.2</span> Compute</h4>
|
<h4 id="org0f60700"><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="org5e691fc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org02f5fe8" 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-orgc12c553" class="outline-4">
|
<div id="outline-container-org7ec84ab" class="outline-4">
|
||||||
<h4 id="orgc12c553"><span class="section-number-4">2.1.3</span> Test</h4>
|
<h4 id="org7ec84ab"><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-org6fa6753" class="outline-3">
|
<div id="outline-container-org7ece747" class="outline-3">
|
||||||
<h3 id="org6fa6753"><span class="section-number-3">2.2</span> Electron-electron potential</h3>
|
<h3 id="org7ece747"><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-org830646d" class="outline-4">
|
<div id="outline-container-orged1a767" class="outline-4">
|
||||||
<h4 id="org830646d"><span class="section-number-4">2.2.1</span> Get</h4>
|
<h4 id="orged1a767"><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-org7aa7f6c" class="outline-4">
|
<div id="outline-container-org7dfe79e" class="outline-4">
|
||||||
<h4 id="org7aa7f6c"><span class="section-number-4">2.2.2</span> Compute</h4>
|
<h4 id="org7dfe79e"><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="org7a6463a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org14cb6c2" 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-org4b7cb93" class="outline-4">
|
<div id="outline-container-orgc233016" class="outline-4">
|
||||||
<h4 id="org4b7cb93"><span class="section-number-4">2.2.3</span> Test</h4>
|
<h4 id="orgc233016"><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-orgda764ef" class="outline-3">
|
<div id="outline-container-org667b5df" class="outline-3">
|
||||||
<h3 id="orgda764ef"><span class="section-number-3">2.3</span> Electron-nucleus distances</h3>
|
<h3 id="org667b5df"><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-org06e5d86" class="outline-4">
|
<div id="outline-container-org7b6de26" class="outline-4">
|
||||||
<h4 id="org06e5d86"><span class="section-number-4">2.3.1</span> Get</h4>
|
<h4 id="org7b6de26"><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-org9b60561" class="outline-4">
|
<div id="outline-container-orge66d0a8" class="outline-4">
|
||||||
<h4 id="org9b60561"><span class="section-number-4">2.3.2</span> Compute</h4>
|
<h4 id="orge66d0a8"><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="org5b4a5d2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgde0fe24" 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-org95947e2" class="outline-4">
|
<div id="outline-container-orgf1315a7" class="outline-4">
|
||||||
<h4 id="org95947e2"><span class="section-number-4">2.3.3</span> Test</h4>
|
<h4 id="orgf1315a7"><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-org0863ba0" class="outline-3">
|
<div id="outline-container-orgb73b68a" class="outline-3">
|
||||||
<h3 id="org0863ba0"><span class="section-number-3">2.4</span> Electron-nucleus potential</h3>
|
<h3 id="orgb73b68a"><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-org65e9392" class="outline-4">
|
<div id="outline-container-orgddd833e" class="outline-4">
|
||||||
<h4 id="org65e9392"><span class="section-number-4">2.4.1</span> Get</h4>
|
<h4 id="orgddd833e"><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-orga378b71" class="outline-4">
|
<div id="outline-container-orgd06214a" class="outline-4">
|
||||||
<h4 id="orga378b71"><span class="section-number-4">2.4.2</span> Compute</h4>
|
<h4 id="orgd06214a"><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="orgd63c5ea" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org01662f9" 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-org88dfadd" class="outline-4">
|
<div id="outline-container-orgbfea698" class="outline-4">
|
||||||
<h4 id="org88dfadd"><span class="section-number-4">2.4.3</span> Test</h4>
|
<h4 id="orgbfea698"><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-org5879d06" class="outline-3">
|
<div id="outline-container-orgbb2054a" class="outline-3">
|
||||||
<h3 id="org5879d06"><span class="section-number-3">2.5</span> Generate initial coordinates</h3>
|
<h3 id="orgbb2054a"><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-09-13 Wed 11:24</p>
|
<p class="date">Created: 2023-09-13 Wed 14:23</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-09-13 Wed 11:24 -->
|
<!-- 2023-09-13 Wed 14:23 -->
|
||||||
<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="#orgb37ed99">-</a></li>
|
<li><a href="#org57a95c6">-</a></li>
|
||||||
<li><a href="#orgc312ae7">1. Decoding errors</a></li>
|
<li><a href="#org7eef317">1. Decoding errors</a></li>
|
||||||
<li><a href="#orgadf7ec3">2. Data structure in context</a></li>
|
<li><a href="#orgf415419">2. Data structure in context</a></li>
|
||||||
<li><a href="#org13af430">3. Updating errors in the context</a></li>
|
<li><a href="#orgcb88928">3. Updating errors in the context</a></li>
|
||||||
<li><a href="#org753ba4e">4. Get the error</a></li>
|
<li><a href="#org5eb0e1b">4. Get the error</a></li>
|
||||||
<li><a href="#orgcf1cccc">5. Failing</a></li>
|
<li><a href="#orgaff2089">5. Failing</a></li>
|
||||||
<li><a href="#org45a4494">6. Last error</a>
|
<li><a href="#orgca15e58">6. Last error</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgf8574af">6.1. Fortran inteface</a></li>
|
<li><a href="#orga9467a2">6.1. Fortran inteface</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org68983dd">7. Helper functions for debugging</a>
|
<li><a href="#org4d3ccbd">7. Helper functions for debugging</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org0e8c284">7.1. Fortran inteface</a></li>
|
<li><a href="#orgd055504">7.1. Fortran inteface</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgb37ed99" class="outline-2">
|
<div id="outline-container-org57a95c6" class="outline-2">
|
||||||
<h2 id="orgb37ed99">-</h2>
|
<h2 id="org57a95c6">-</h2>
|
||||||
<div class="outline-text-2" id="text-orgb37ed99">
|
<div class="outline-text-2" id="text-org57a95c6">
|
||||||
<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="org67de374"><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="org53e9d42"><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="org3eb8a6d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgaa731d3" 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-orgc312ae7" class="outline-2">
|
<div id="outline-container-org7eef317" class="outline-2">
|
||||||
<h2 id="orgc312ae7"><span class="section-number-2">1</span> Decoding errors</h2>
|
<h2 id="org7eef317"><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-orgadf7ec3" class="outline-2">
|
<div id="outline-container-orgf415419" class="outline-2">
|
||||||
<h2 id="orgadf7ec3"><span class="section-number-2">2</span> Data structure in context</h2>
|
<h2 id="orgf415419"><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-org13af430" class="outline-2">
|
<div id="outline-container-orgcb88928" class="outline-2">
|
||||||
<h2 id="org13af430"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
<h2 id="orgcb88928"><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-org753ba4e" class="outline-2">
|
<div id="outline-container-org5eb0e1b" class="outline-2">
|
||||||
<h2 id="org753ba4e"><span class="section-number-2">4</span> Get the error</h2>
|
<h2 id="org5eb0e1b"><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-orgcf1cccc" class="outline-2">
|
<div id="outline-container-orgaff2089" class="outline-2">
|
||||||
<h2 id="orgcf1cccc"><span class="section-number-2">5</span> Failing</h2>
|
<h2 id="orgaff2089"><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-org45a4494" class="outline-2">
|
<div id="outline-container-orgca15e58" class="outline-2">
|
||||||
<h2 id="org45a4494"><span class="section-number-2">6</span> Last error</h2>
|
<h2 id="orgca15e58"><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-orgf8574af" class="outline-3">
|
<div id="outline-container-orga9467a2" class="outline-3">
|
||||||
<h3 id="orgf8574af"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
<h3 id="orga9467a2"><span class="section-number-3">6.1</span> Fortran inteface</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org68983dd" class="outline-2">
|
<div id="outline-container-org4d3ccbd" class="outline-2">
|
||||||
<h2 id="org68983dd"><span class="section-number-2">7</span> Helper functions for debugging</h2>
|
<h2 id="org4d3ccbd"><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-org0e8c284" class="outline-3">
|
<div id="outline-container-orgd055504" class="outline-3">
|
||||||
<h3 id="org0e8c284"><span class="section-number-3">7.1</span> Fortran inteface</h3>
|
<h3 id="orgd055504"><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-09-13 Wed 11:24</p>
|
<p class="date">Created: 2023-09-13 Wed 14:23</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-09-13 Wed 11:24 -->
|
<!-- 2023-09-13 Wed 14:23 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Code examples</title>
|
<title>Code examples</title>
|
||||||
@ -346,25 +346,25 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org8d6e344">1. Overlap matrix in the MO basis</a>
|
<li><a href="#org1eeef98">1. Overlap matrix in the MO basis</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgeab0e41">1.1. Python</a></li>
|
<li><a href="#org08d1e6c">1.1. Python</a></li>
|
||||||
<li><a href="#org65673ab">1.2. C</a></li>
|
<li><a href="#org8a2edff">1.2. C</a></li>
|
||||||
<li><a href="#orgd6678a2">1.3. Fortran</a></li>
|
<li><a href="#orgf027185">1.3. Fortran</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org1119a9a">2. Fortran</a>
|
<li><a href="#org2a0cb1f">2. Fortran</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgc8c3597">2.1. Checking errors</a></li>
|
<li><a href="#org0114700">2.1. Checking errors</a></li>
|
||||||
<li><a href="#org27425d7">2.2. Computing an atomic orbital on a grid</a></li>
|
<li><a href="#orgbe924cd">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-org8d6e344" class="outline-2">
|
<div id="outline-container-org1eeef98" class="outline-2">
|
||||||
<h2 id="org8d6e344"><span class="section-number-2">1</span> Overlap matrix in the MO basis</h2>
|
<h2 id="org1eeef98"><span class="section-number-2">1</span> Overlap matrix in the MO basis</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
<p>
|
<p>
|
||||||
The focal point of this example is the numerical evaluation of the overlap
|
The focal point of this example is the numerical evaluation of the overlap
|
||||||
@ -417,8 +417,8 @@ code.
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgeab0e41" class="outline-3">
|
<div id="outline-container-org08d1e6c" class="outline-3">
|
||||||
<h3 id="orgeab0e41"><span class="section-number-3">1.1</span> Python</h3>
|
<h3 id="org08d1e6c"><span class="section-number-3">1.1</span> Python</h3>
|
||||||
<div class="outline-text-3" id="text-1-1">
|
<div class="outline-text-3" id="text-1-1">
|
||||||
<p>
|
<p>
|
||||||
In this example, we will compute numerically the overlap
|
In this example, we will compute numerically the overlap
|
||||||
@ -593,8 +593,8 @@ and finally we compute the overlap between all the MOs as
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org65673ab" class="outline-3">
|
<div id="outline-container-org8a2edff" class="outline-3">
|
||||||
<h3 id="org65673ab"><span class="section-number-3">1.2</span> C</h3>
|
<h3 id="org8a2edff"><span class="section-number-3">1.2</span> C</h3>
|
||||||
<div class="outline-text-3" id="text-1-2">
|
<div class="outline-text-3" id="text-1-2">
|
||||||
<p>
|
<p>
|
||||||
In this example, electron-nucleus cusp fitting is added.
|
In this example, electron-nucleus cusp fitting is added.
|
||||||
@ -922,8 +922,8 @@ and finally we compute the overlap between all the MOs as
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-orgd6678a2" class="outline-3">
|
<div id="outline-container-orgf027185" class="outline-3">
|
||||||
<h3 id="orgd6678a2"><span class="section-number-3">1.3</span> Fortran</h3>
|
<h3 id="orgf027185"><span class="section-number-3">1.3</span> Fortran</h3>
|
||||||
<div class="outline-text-3" id="text-1-3">
|
<div class="outline-text-3" id="text-1-3">
|
||||||
<p>
|
<p>
|
||||||
Here is the same piece of code translated in Fortran
|
Here is the same piece of code translated in Fortran
|
||||||
@ -1099,12 +1099,12 @@ Here is the same piece of code translated in Fortran
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org1119a9a" class="outline-2">
|
<div id="outline-container-org2a0cb1f" class="outline-2">
|
||||||
<h2 id="org1119a9a"><span class="section-number-2">2</span> Fortran</h2>
|
<h2 id="org2a0cb1f"><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-orgc8c3597" class="outline-3">
|
<div id="outline-container-org0114700" class="outline-3">
|
||||||
<h3 id="orgc8c3597"><span class="section-number-3">2.1</span> Checking errors</h3>
|
<h3 id="org0114700"><span class="section-number-3">2.1</span> Checking errors</h3>
|
||||||
<div class="outline-text-3" id="text-2-1">
|
<div class="outline-text-3" id="text-2-1">
|
||||||
<p>
|
<p>
|
||||||
All QMCkl functions return an error code. A convenient way to handle
|
All QMCkl functions return an error code. A convenient way to handle
|
||||||
@ -1113,7 +1113,7 @@ error in text format and exits the program.
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-f90" id="org738a65a"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
<pre class="src src-f90" id="org1a9c44b"><span style="color: #a020f0;">subroutine</span> <span style="color: #0000ff;">qmckl_check_error</span>(rc, message)
|
||||||
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl</span>
|
<span style="color: #a020f0;">use</span> <span style="color: #0000ff;">qmckl</span>
|
||||||
<span style="color: #a020f0;">implicit</span> <span style="color: #228b22;">none</span>
|
<span style="color: #a020f0;">implicit</span> <span style="color: #228b22;">none</span>
|
||||||
<span style="color: #228b22;">integer</span>(qmckl_exit_code), <span style="color: #a020f0;">intent</span>(in) ::<span style="color: #a0522d;"> rc</span>
|
<span style="color: #228b22;">integer</span>(qmckl_exit_code), <span style="color: #a020f0;">intent</span>(in) ::<span style="color: #a0522d;"> rc</span>
|
||||||
@ -1131,8 +1131,8 @@ error in text format and exits the program.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org27425d7" class="outline-3">
|
<div id="outline-container-orgbe924cd" class="outline-3">
|
||||||
<h3 id="org27425d7"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
<h3 id="orgbe924cd"><span class="section-number-3">2.2</span> Computing an atomic orbital on a grid</h3>
|
||||||
<div class="outline-text-3" id="text-2-2">
|
<div class="outline-text-3" id="text-2-2">
|
||||||
<p>
|
<p>
|
||||||
The following program, in Fortran, computes the values of an atomic
|
The following program, in Fortran, computes the values of an atomic
|
||||||
@ -1351,7 +1351,7 @@ We finally print the value and Laplacian of the AO:
|
|||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: TREX CoE</p>
|
<p class="author">Author: TREX CoE</p>
|
||||||
<p class="date">Created: 2023-09-13 Wed 11:24</p>
|
<p class="date">Created: 2023-09-13 Wed 14:23</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-09-13 Wed 11:24 -->
|
<!-- 2023-09-13 Wed 14:23 -->
|
||||||
<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="#org1b493c9">1. Context</a>
|
<li><a href="#orgc2c6e69">1. Context</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org8fd2f53">1.1. Data structure</a></li>
|
<li><a href="#orgdae3526">1.1. Data structure</a></li>
|
||||||
<li><a href="#orgd8f0314">1.2. Access functions</a></li>
|
<li><a href="#org523f114">1.2. Access functions</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org9cd0bff">2. Computation</a>
|
<li><a href="#org5c14304">2. Computation</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org113f189">2.1. Kinetic energy</a>
|
<li><a href="#org9f68a98">2.1. Kinetic energy</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orga3e76c7">2.1.1. Get</a></li>
|
<li><a href="#org54c4b70">2.1.1. Get</a></li>
|
||||||
<li><a href="#org836757a">2.1.2. Provide</a></li>
|
<li><a href="#org4327ec0">2.1.2. Provide</a></li>
|
||||||
<li><a href="#orgbf7a68c">2.1.3. Compute kinetic enregy</a></li>
|
<li><a href="#org6373f66">2.1.3. Compute kinetic enregy</a></li>
|
||||||
<li><a href="#org3c66620">2.1.4. Test</a></li>
|
<li><a href="#orgf133140">2.1.4. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgdf2cad3">2.2. Potential energy</a>
|
<li><a href="#org401b5d8">2.2. Potential energy</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org6e22d42">2.2.1. Get</a></li>
|
<li><a href="#orgb67b022">2.2.1. Get</a></li>
|
||||||
<li><a href="#org6f079c4">2.2.2. Provide</a></li>
|
<li><a href="#orgd110ce7">2.2.2. Provide</a></li>
|
||||||
<li><a href="#org3bc605e">2.2.3. Compute potential enregy</a></li>
|
<li><a href="#orge56b617">2.2.3. Compute potential enregy</a></li>
|
||||||
<li><a href="#org0be2033">2.2.4. Test</a></li>
|
<li><a href="#org5c38a61">2.2.4. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org9162659">2.3. Local energy</a>
|
<li><a href="#orgdd05ee9">2.3. Local energy</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orga0b2d1d">2.3.1. Get</a></li>
|
<li><a href="#orgd135b0c">2.3.1. Get</a></li>
|
||||||
<li><a href="#orgb3ea7c8">2.3.2. Provide</a></li>
|
<li><a href="#org8ce19bc">2.3.2. Provide</a></li>
|
||||||
<li><a href="#org4b6c97d">2.3.3. Compute local enregy</a></li>
|
<li><a href="#org3e2244c">2.3.3. Compute local enregy</a></li>
|
||||||
<li><a href="#org8115f26">2.3.4. Test</a></li>
|
<li><a href="#orgc2e8ca9">2.3.4. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org7b87069">2.4. Drift vector</a>
|
<li><a href="#org60b2a3b">2.4. Drift vector</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org8f4f2c7">2.4.1. Get</a></li>
|
<li><a href="#org98eb561">2.4.1. Get</a></li>
|
||||||
<li><a href="#orgff68a4b">2.4.2. Provide</a></li>
|
<li><a href="#org50594a9">2.4.2. Provide</a></li>
|
||||||
<li><a href="#org0c262fe">2.4.3. Compute drift vector</a></li>
|
<li><a href="#org5ededd2">2.4.3. Compute drift vector</a></li>
|
||||||
<li><a href="#org75c8e4b">2.4.4. Test</a></li>
|
<li><a href="#org59fdcbd">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-org1b493c9" class="outline-2">
|
<div id="outline-container-orgc2c6e69" class="outline-2">
|
||||||
<h2 id="org1b493c9"><span class="section-number-2">1</span> Context</h2>
|
<h2 id="orgc2c6e69"><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-org8fd2f53" class="outline-3">
|
<div id="outline-container-orgdae3526" class="outline-3">
|
||||||
<h3 id="org8fd2f53"><span class="section-number-3">1.1</span> Data structure</h3>
|
<h3 id="orgdae3526"><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-orgd8f0314" class="outline-3">
|
<div id="outline-container-org523f114" class="outline-3">
|
||||||
<h3 id="orgd8f0314"><span class="section-number-3">1.2</span> Access functions</h3>
|
<h3 id="org523f114"><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-org9cd0bff" class="outline-2">
|
<div id="outline-container-org5c14304" class="outline-2">
|
||||||
<h2 id="org9cd0bff"><span class="section-number-2">2</span> Computation</h2>
|
<h2 id="org5c14304"><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-org113f189" class="outline-3">
|
<div id="outline-container-org9f68a98" class="outline-3">
|
||||||
<h3 id="org113f189"><span class="section-number-3">2.1</span> Kinetic energy</h3>
|
<h3 id="org9f68a98"><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-orga3e76c7" class="outline-4">
|
<div id="outline-container-org54c4b70" class="outline-4">
|
||||||
<h4 id="orga3e76c7"><span class="section-number-4">2.1.1</span> Get</h4>
|
<h4 id="org54c4b70"><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-org836757a" class="outline-4">
|
<div id="outline-container-org4327ec0" class="outline-4">
|
||||||
<h4 id="org836757a"><span class="section-number-4">2.1.2</span> Provide</h4>
|
<h4 id="org4327ec0"><span class="section-number-4">2.1.2</span> Provide</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgbf7a68c" class="outline-4">
|
<div id="outline-container-org6373f66" class="outline-4">
|
||||||
<h4 id="orgbf7a68c"><span class="section-number-4">2.1.3</span> Compute kinetic enregy</h4>
|
<h4 id="org6373f66"><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="orgfa00ef4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org43f41b4" 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-org3c66620" class="outline-4">
|
<div id="outline-container-orgf133140" class="outline-4">
|
||||||
<h4 id="org3c66620"><span class="section-number-4">2.1.4</span> Test</h4>
|
<h4 id="orgf133140"><span class="section-number-4">2.1.4</span> Test</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgdf2cad3" class="outline-3">
|
<div id="outline-container-org401b5d8" class="outline-3">
|
||||||
<h3 id="orgdf2cad3"><span class="section-number-3">2.2</span> Potential energy</h3>
|
<h3 id="org401b5d8"><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-org6e22d42" class="outline-4">
|
<div id="outline-container-orgb67b022" class="outline-4">
|
||||||
<h4 id="org6e22d42"><span class="section-number-4">2.2.1</span> Get</h4>
|
<h4 id="orgb67b022"><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-org6f079c4" class="outline-4">
|
<div id="outline-container-orgd110ce7" class="outline-4">
|
||||||
<h4 id="org6f079c4"><span class="section-number-4">2.2.2</span> Provide</h4>
|
<h4 id="orgd110ce7"><span class="section-number-4">2.2.2</span> Provide</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org3bc605e" class="outline-4">
|
<div id="outline-container-orge56b617" class="outline-4">
|
||||||
<h4 id="org3bc605e"><span class="section-number-4">2.2.3</span> Compute potential enregy</h4>
|
<h4 id="orge56b617"><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="orgc33174f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgc5bbd34" 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-org0be2033" class="outline-4">
|
<div id="outline-container-org5c38a61" class="outline-4">
|
||||||
<h4 id="org0be2033"><span class="section-number-4">2.2.4</span> Test</h4>
|
<h4 id="org5c38a61"><span class="section-number-4">2.2.4</span> Test</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org9162659" class="outline-3">
|
<div id="outline-container-orgdd05ee9" class="outline-3">
|
||||||
<h3 id="org9162659"><span class="section-number-3">2.3</span> Local energy</h3>
|
<h3 id="orgdd05ee9"><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-orga0b2d1d" class="outline-4">
|
<div id="outline-container-orgd135b0c" class="outline-4">
|
||||||
<h4 id="orga0b2d1d"><span class="section-number-4">2.3.1</span> Get</h4>
|
<h4 id="orgd135b0c"><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-orgb3ea7c8" class="outline-4">
|
<div id="outline-container-org8ce19bc" class="outline-4">
|
||||||
<h4 id="orgb3ea7c8"><span class="section-number-4">2.3.2</span> Provide</h4>
|
<h4 id="org8ce19bc"><span class="section-number-4">2.3.2</span> Provide</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org4b6c97d" class="outline-4">
|
<div id="outline-container-org3e2244c" class="outline-4">
|
||||||
<h4 id="org4b6c97d"><span class="section-number-4">2.3.3</span> Compute local enregy</h4>
|
<h4 id="org3e2244c"><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="org6715c14" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org31670f7" 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-org8115f26" class="outline-4">
|
<div id="outline-container-orgc2e8ca9" class="outline-4">
|
||||||
<h4 id="org8115f26"><span class="section-number-4">2.3.4</span> Test</h4>
|
<h4 id="orgc2e8ca9"><span class="section-number-4">2.3.4</span> Test</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org7b87069" class="outline-3">
|
<div id="outline-container-org60b2a3b" class="outline-3">
|
||||||
<h3 id="org7b87069"><span class="section-number-3">2.4</span> Drift vector</h3>
|
<h3 id="org60b2a3b"><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-org8f4f2c7" class="outline-4">
|
<div id="outline-container-org98eb561" class="outline-4">
|
||||||
<h4 id="org8f4f2c7"><span class="section-number-4">2.4.1</span> Get</h4>
|
<h4 id="org98eb561"><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-orgff68a4b" class="outline-4">
|
<div id="outline-container-org50594a9" class="outline-4">
|
||||||
<h4 id="orgff68a4b"><span class="section-number-4">2.4.2</span> Provide</h4>
|
<h4 id="org50594a9"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org0c262fe" class="outline-4">
|
<div id="outline-container-org5ededd2" class="outline-4">
|
||||||
<h4 id="org0c262fe"><span class="section-number-4">2.4.3</span> Compute drift vector</h4>
|
<h4 id="org5ededd2"><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="org76cf863" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgec0ac3f" 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-org75c8e4b" class="outline-4">
|
<div id="outline-container-org59fdcbd" class="outline-4">
|
||||||
<h4 id="org75c8e4b"><span class="section-number-4">2.4.4</span> Test</h4>
|
<h4 id="org59fdcbd"><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-09-13 Wed 11:24</p>
|
<p class="date">Created: 2023-09-13 Wed 14:23</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-09-13 Wed 11:24 -->
|
<!-- 2023-09-13 Wed 14:23 -->
|
||||||
<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="#orgf0aa7b0">1. Memory data structure for the context</a></li>
|
<li><a href="#orgb0e6152">1. Memory data structure for the context</a></li>
|
||||||
<li><a href="#org570251a">2. Passing info to allocation routines</a></li>
|
<li><a href="#org90fb0c2">2. Passing info to allocation routines</a></li>
|
||||||
<li><a href="#orga7607a0">3. Allocation/deallocation functions</a></li>
|
<li><a href="#orgd612cab">3. Allocation/deallocation functions</a></li>
|
||||||
<li><a href="#org477f8cf">4. Get the size of a memory block</a></li>
|
<li><a href="#org21132c6">4. Get the size of a memory block</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf0aa7b0" class="outline-2">
|
<div id="outline-container-orgb0e6152" class="outline-2">
|
||||||
<h2 id="orgf0aa7b0"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
<h2 id="orgb0e6152"><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-org570251a" class="outline-2">
|
<div id="outline-container-org90fb0c2" class="outline-2">
|
||||||
<h2 id="org570251a"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
<h2 id="org90fb0c2"><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-orga7607a0" class="outline-2">
|
<div id="outline-container-orgd612cab" class="outline-2">
|
||||||
<h2 id="orga7607a0"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
<h2 id="orgd612cab"><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-org477f8cf" class="outline-2">
|
<div id="outline-container-org21132c6" class="outline-2">
|
||||||
<h2 id="org477f8cf"><span class="section-number-2">4</span> Get the size of a memory block</h2>
|
<h2 id="org21132c6"><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-09-13 Wed 11:24</p>
|
<p class="date">Created: 2023-09-13 Wed 14:23</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-09-13 Wed 11:24 -->
|
<!-- 2023-09-13 Wed 14:23 -->
|
||||||
<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="#org68b20ed">1. Context</a>
|
<li><a href="#org98a2c2e">1. Context</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org809942a">1.1. Data structure</a></li>
|
<li><a href="#org299992a">1.1. Data structure</a></li>
|
||||||
<li><a href="#org2e977ea">1.2. Initialization functions</a></li>
|
<li><a href="#orge975811">1.2. Initialization functions</a></li>
|
||||||
<li><a href="#org137aa0c">1.3. Cusp adjsutment functions</a></li>
|
<li><a href="#org7f18cd6">1.3. Cusp adjsutment functions</a></li>
|
||||||
<li><a href="#orgb0e32e7">1.4. Access functions</a>
|
<li><a href="#orgdc90525">1.4. Access functions</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org84c1f48">1.4.1. Fortran interfaces</a></li>
|
<li><a href="#org3fab380">1.4.1. Fortran interfaces</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgbf7c977">1.5. Update</a>
|
<li><a href="#orgf3f2c47">1.5. Update</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org78f6fd9">1.5.1. Fortran interface</a></li>
|
<li><a href="#org212482d">1.5.1. Fortran interface</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orge5327e5">2. Computation</a>
|
<li><a href="#orgea4ac7b">2. Computation</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org4b60154">2.1. Parameters of the cusp-correction functions</a></li>
|
<li><a href="#org28e1c91">2.1. Parameters of the cusp-correction functions</a></li>
|
||||||
<li><a href="#org1d02fbb">2.2. Computation of MOs: values only</a>
|
<li><a href="#org823beda">2.2. Computation of MOs: values only</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgdb080d8">2.2.1. Get</a></li>
|
<li><a href="#orgc0206f4">2.2.1. Get</a></li>
|
||||||
<li><a href="#org0fc8477">2.2.2. Provide</a></li>
|
<li><a href="#org4338a9e">2.2.2. Provide</a></li>
|
||||||
<li><a href="#org388b132">2.2.3. Compute</a></li>
|
<li><a href="#org198fe0e">2.2.3. Compute</a></li>
|
||||||
<li><a href="#orga2d0ef4">2.2.4. HPC version</a></li>
|
<li><a href="#orgc8f950c">2.2.4. HPC version</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orga52a9ed">2.3. Computation of MOs: values, gradient, Laplacian</a>
|
<li><a href="#org8c73fc5">2.3. Computation of MOs: values, gradient, Laplacian</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org3f1abe5">2.3.1. Get</a></li>
|
<li><a href="#org3633069">2.3.1. Get</a></li>
|
||||||
<li><a href="#orgfffa979">2.3.2. Provide</a></li>
|
<li><a href="#orgd2253ea">2.3.2. Provide</a></li>
|
||||||
<li><a href="#org85032bd">2.3.3. Compute</a></li>
|
<li><a href="#org441d515">2.3.3. Compute</a></li>
|
||||||
<li><a href="#org7118181">2.3.4. HPC version</a></li>
|
<li><a href="#orgd3c4dc2">2.3.4. HPC version</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgcfe44ba">2.4. Computation of cusp-corrected MOs: values only</a>
|
<li><a href="#org2db3a5a">2.4. Computation of cusp-corrected MOs: values only</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org9a541b2">2.4.1. Compute</a></li>
|
<li><a href="#org40beaac">2.4.1. Compute</a></li>
|
||||||
<li><a href="#org6c63ebb">2.4.2. HPC version</a></li>
|
<li><a href="#orgf1704df">2.4.2. HPC version</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org446422d">2.5. Computation of cusp-corrected MOs: values, gradient, Laplacian</a>
|
<li><a href="#org09e1277">2.5. Computation of cusp-corrected MOs: values, gradient, Laplacian</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org3035b6b">2.5.1. Compute</a></li>
|
<li><a href="#org88da887">2.5.1. Compute</a></li>
|
||||||
<li><a href="#org6e16d11">2.5.2. HPC version</a></li>
|
<li><a href="#org601558e">2.5.2. HPC version</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org9667c7b">2.6. Rescaling of MO coefficients</a>
|
<li><a href="#orgd7fd059">2.6. Rescaling of MO coefficients</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org40fc79b">2.6.1. Fortran interface</a></li>
|
<li><a href="#org1980f2d">2.6.1. Fortran interface</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org7211d74">2.7. Test</a></li>
|
<li><a href="#org74bb079">2.7. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org68b20ed" class="outline-2">
|
<div id="outline-container-org98a2c2e" class="outline-2">
|
||||||
<h2 id="org68b20ed"><span class="section-number-2">1</span> Context</h2>
|
<h2 id="org98a2c2e"><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-org809942a" class="outline-3">
|
<div id="outline-container-org299992a" class="outline-3">
|
||||||
<h3 id="org809942a"><span class="section-number-3">1.1</span> Data structure</h3>
|
<h3 id="org299992a"><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-org2e977ea" class="outline-3">
|
<div id="outline-container-orge975811" class="outline-3">
|
||||||
<h3 id="org2e977ea"><span class="section-number-3">1.2</span> Initialization functions</h3>
|
<h3 id="orge975811"><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-org137aa0c" class="outline-3">
|
<div id="outline-container-org7f18cd6" class="outline-3">
|
||||||
<h3 id="org137aa0c"><span class="section-number-3">1.3</span> Cusp adjsutment functions</h3>
|
<h3 id="org7f18cd6"><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-orgb0e32e7" class="outline-3">
|
<div id="outline-container-orgdc90525" class="outline-3">
|
||||||
<h3 id="orgb0e32e7"><span class="section-number-3">1.4</span> Access functions</h3>
|
<h3 id="orgdc90525"><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-org84c1f48" class="outline-4">
|
<div id="outline-container-org3fab380" class="outline-4">
|
||||||
<h4 id="org84c1f48"><span class="section-number-4">1.4.1</span> Fortran interfaces</h4>
|
<h4 id="org3fab380"><span class="section-number-4">1.4.1</span> Fortran interfaces</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgbf7c977" class="outline-3">
|
<div id="outline-container-orgf3f2c47" class="outline-3">
|
||||||
<h3 id="orgbf7c977"><span class="section-number-3">1.5</span> Update</h3>
|
<h3 id="orgf3f2c47"><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-org78f6fd9" class="outline-4">
|
<div id="outline-container-org212482d" class="outline-4">
|
||||||
<h4 id="org78f6fd9"><span class="section-number-4">1.5.1</span> Fortran interface</h4>
|
<h4 id="org212482d"><span class="section-number-4">1.5.1</span> Fortran interface</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orge5327e5" class="outline-2">
|
<div id="outline-container-orgea4ac7b" class="outline-2">
|
||||||
<h2 id="orge5327e5"><span class="section-number-2">2</span> Computation</h2>
|
<h2 id="orgea4ac7b"><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-org4b60154" class="outline-3">
|
<div id="outline-container-org28e1c91" class="outline-3">
|
||||||
<h3 id="org4b60154"><span class="section-number-3">2.1</span> Parameters of the cusp-correction functions</h3>
|
<h3 id="org28e1c91"><span class="section-number-3">2.1</span> Parameters of the cusp-correction functions</h3>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org1d02fbb" class="outline-3">
|
<div id="outline-container-org823beda" class="outline-3">
|
||||||
<h3 id="org1d02fbb"><span class="section-number-3">2.2</span> Computation of MOs: values only</h3>
|
<h3 id="org823beda"><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-orgdb080d8" class="outline-4">
|
<div id="outline-container-orgc0206f4" class="outline-4">
|
||||||
<h4 id="orgdb080d8"><span class="section-number-4">2.2.1</span> Get</h4>
|
<h4 id="orgc0206f4"><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-org0fc8477" class="outline-4">
|
<div id="outline-container-org4338a9e" class="outline-4">
|
||||||
<h4 id="org0fc8477"><span class="section-number-4">2.2.2</span> Provide</h4>
|
<h4 id="org4338a9e"><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-org388b132" class="outline-4">
|
<div id="outline-container-org198fe0e" class="outline-4">
|
||||||
<h4 id="org388b132"><span class="section-number-4">2.2.3</span> Compute</h4>
|
<h4 id="org198fe0e"><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="org65ed178" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgf7cb159" 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-orga2d0ef4" class="outline-4">
|
<div id="outline-container-orgc8f950c" class="outline-4">
|
||||||
<h4 id="orga2d0ef4"><span class="section-number-4">2.2.4</span> HPC version</h4>
|
<h4 id="orgc8f950c"><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-orga52a9ed" class="outline-3">
|
<div id="outline-container-org8c73fc5" class="outline-3">
|
||||||
<h3 id="orga52a9ed"><span class="section-number-3">2.3</span> Computation of MOs: values, gradient, Laplacian</h3>
|
<h3 id="org8c73fc5"><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-org3f1abe5" class="outline-4">
|
<div id="outline-container-org3633069" class="outline-4">
|
||||||
<h4 id="org3f1abe5"><span class="section-number-4">2.3.1</span> Get</h4>
|
<h4 id="org3633069"><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-orgfffa979" class="outline-4">
|
<div id="outline-container-orgd2253ea" class="outline-4">
|
||||||
<h4 id="orgfffa979"><span class="section-number-4">2.3.2</span> Provide</h4>
|
<h4 id="orgd2253ea"><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-org85032bd" class="outline-4">
|
<div id="outline-container-org441d515" class="outline-4">
|
||||||
<h4 id="org85032bd"><span class="section-number-4">2.3.3</span> Compute</h4>
|
<h4 id="org441d515"><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="org672e33c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orge673637" 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-org7118181" class="outline-4">
|
<div id="outline-container-orgd3c4dc2" class="outline-4">
|
||||||
<h4 id="org7118181"><span class="section-number-4">2.3.4</span> HPC version</h4>
|
<h4 id="orgd3c4dc2"><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-orgcfe44ba" class="outline-3">
|
<div id="outline-container-org2db3a5a" class="outline-3">
|
||||||
<h3 id="orgcfe44ba"><span class="section-number-3">2.4</span> Computation of cusp-corrected MOs: values only</h3>
|
<h3 id="org2db3a5a"><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-org9a541b2" class="outline-4">
|
<div id="outline-container-org40beaac" class="outline-4">
|
||||||
<h4 id="org9a541b2"><span class="section-number-4">2.4.1</span> Compute</h4>
|
<h4 id="org40beaac"><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="org5d2e3e1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org48822f4" 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-org6c63ebb" class="outline-4">
|
<div id="outline-container-orgf1704df" class="outline-4">
|
||||||
<h4 id="org6c63ebb"><span class="section-number-4">2.4.2</span> HPC version</h4>
|
<h4 id="orgf1704df"><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-org446422d" class="outline-3">
|
<div id="outline-container-org09e1277" class="outline-3">
|
||||||
<h3 id="org446422d"><span class="section-number-3">2.5</span> Computation of cusp-corrected MOs: values, gradient, Laplacian</h3>
|
<h3 id="org09e1277"><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-org3035b6b" class="outline-4">
|
<div id="outline-container-org88da887" class="outline-4">
|
||||||
<h4 id="org3035b6b"><span class="section-number-4">2.5.1</span> Compute</h4>
|
<h4 id="org88da887"><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="org21c554e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgc2c63e7" 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-org6e16d11" class="outline-4">
|
<div id="outline-container-org601558e" class="outline-4">
|
||||||
<h4 id="org6e16d11"><span class="section-number-4">2.5.2</span> HPC version</h4>
|
<h4 id="org601558e"><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-org9667c7b" class="outline-3">
|
<div id="outline-container-orgd7fd059" class="outline-3">
|
||||||
<h3 id="org9667c7b"><span class="section-number-3">2.6</span> Rescaling of MO coefficients</h3>
|
<h3 id="orgd7fd059"><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-org40fc79b" class="outline-4">
|
<div id="outline-container-org1980f2d" class="outline-4">
|
||||||
<h4 id="org40fc79b"><span class="section-number-4">2.6.1</span> Fortran interface</h4>
|
<h4 id="org1980f2d"><span class="section-number-4">2.6.1</span> Fortran interface</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org7211d74" class="outline-3">
|
<div id="outline-container-org74bb079" class="outline-3">
|
||||||
<h3 id="org7211d74"><span class="section-number-3">2.7</span> Test</h3>
|
<h3 id="org74bb079"><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-09-13 Wed 11:24</p>
|
<p class="date">Created: 2023-09-13 Wed 14:23</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-09-13 Wed 11:24 -->
|
<!-- 2023-09-13 Wed 14:23 -->
|
||||||
<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="#orgec3aee1">1. Context</a>
|
<li><a href="#org8cbd4fe">1. Context</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgd9ac4f2">1.1. Data structure</a></li>
|
<li><a href="#orgcb31c4e">1.1. Data structure</a></li>
|
||||||
<li><a href="#orge4c0607">1.2. Access functions</a></li>
|
<li><a href="#org07820cf">1.2. Access functions</a></li>
|
||||||
<li><a href="#org560240f">1.3. Initialization functions</a></li>
|
<li><a href="#org7f20739">1.3. Initialization functions</a></li>
|
||||||
<li><a href="#org341bb2e">1.4. Test</a></li>
|
<li><a href="#orga862c00">1.4. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org4aa87bc">2. Computation</a>
|
<li><a href="#orgdbdd10d">2. Computation</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgf028723">2.1. Nucleus-nucleus distances</a>
|
<li><a href="#org8031605">2.1. Nucleus-nucleus distances</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org8b9e9e0">2.1.1. Get</a></li>
|
<li><a href="#org3bd20ce">2.1.1. Get</a></li>
|
||||||
<li><a href="#orgdb5b397">2.1.2. Compute</a></li>
|
<li><a href="#org87fb232">2.1.2. Compute</a></li>
|
||||||
<li><a href="#orgaeda2f7">2.1.3. Test</a></li>
|
<li><a href="#orga000370">2.1.3. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org8d01ad9">2.2. Nuclear repulsion energy</a>
|
<li><a href="#org738d1c7">2.2. Nuclear repulsion energy</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org023a831">2.2.1. Get</a></li>
|
<li><a href="#org58d4044">2.2.1. Get</a></li>
|
||||||
<li><a href="#org5035a8b">2.2.2. Compute</a></li>
|
<li><a href="#orgae39d2a">2.2.2. Compute</a></li>
|
||||||
<li><a href="#orgf6daa7b">2.2.3. Test</a></li>
|
<li><a href="#orgdbbd95f">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-orgec3aee1" class="outline-2">
|
<div id="outline-container-org8cbd4fe" class="outline-2">
|
||||||
<h2 id="orgec3aee1"><span class="section-number-2">1</span> Context</h2>
|
<h2 id="org8cbd4fe"><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-orgd9ac4f2" class="outline-3">
|
<div id="outline-container-orgcb31c4e" class="outline-3">
|
||||||
<h3 id="orgd9ac4f2"><span class="section-number-3">1.1</span> Data structure</h3>
|
<h3 id="orgcb31c4e"><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-orge4c0607" class="outline-3">
|
<div id="outline-container-org07820cf" class="outline-3">
|
||||||
<h3 id="orge4c0607"><span class="section-number-3">1.2</span> Access functions</h3>
|
<h3 id="org07820cf"><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-org560240f" class="outline-3">
|
<div id="outline-container-org7f20739" class="outline-3">
|
||||||
<h3 id="org560240f"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
<h3 id="org7f20739"><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-org341bb2e" class="outline-3">
|
<div id="outline-container-orga862c00" class="outline-3">
|
||||||
<h3 id="org341bb2e"><span class="section-number-3">1.4</span> Test</h3>
|
<h3 id="orga862c00"><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-org4aa87bc" class="outline-2">
|
<div id="outline-container-orgdbdd10d" class="outline-2">
|
||||||
<h2 id="org4aa87bc"><span class="section-number-2">2</span> Computation</h2>
|
<h2 id="orgdbdd10d"><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-orgf028723" class="outline-3">
|
<div id="outline-container-org8031605" class="outline-3">
|
||||||
<h3 id="orgf028723"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
<h3 id="org8031605"><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-org8b9e9e0" class="outline-4">
|
<div id="outline-container-org3bd20ce" class="outline-4">
|
||||||
<h4 id="org8b9e9e0"><span class="section-number-4">2.1.1</span> Get</h4>
|
<h4 id="org3bd20ce"><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-orgdb5b397" class="outline-4">
|
<div id="outline-container-org87fb232" class="outline-4">
|
||||||
<h4 id="orgdb5b397"><span class="section-number-4">2.1.2</span> Compute</h4>
|
<h4 id="org87fb232"><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="orgbd942c4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org19d6b5b" 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-orgaeda2f7" class="outline-4">
|
<div id="outline-container-orga000370" class="outline-4">
|
||||||
<h4 id="orgaeda2f7"><span class="section-number-4">2.1.3</span> Test</h4>
|
<h4 id="orga000370"><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-org8d01ad9" class="outline-3">
|
<div id="outline-container-org738d1c7" class="outline-3">
|
||||||
<h3 id="org8d01ad9"><span class="section-number-3">2.2</span> Nuclear repulsion energy</h3>
|
<h3 id="org738d1c7"><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-org023a831" class="outline-4">
|
<div id="outline-container-org58d4044" class="outline-4">
|
||||||
<h4 id="org023a831"><span class="section-number-4">2.2.1</span> Get</h4>
|
<h4 id="org58d4044"><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-org5035a8b" class="outline-4">
|
<div id="outline-container-orgae39d2a" class="outline-4">
|
||||||
<h4 id="org5035a8b"><span class="section-number-4">2.2.2</span> Compute</h4>
|
<h4 id="orgae39d2a"><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="orgdfa5642" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org5ec5459" 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-orgf6daa7b" class="outline-4">
|
<div id="outline-container-orgdbbd95f" class="outline-4">
|
||||||
<h4 id="orgf6daa7b"><span class="section-number-4">2.2.3</span> Test</h4>
|
<h4 id="orgdbbd95f"><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-09-13 Wed 11:24</p>
|
<p class="date">Created: 2023-09-13 Wed 14:23</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-09-13 Wed 11:24 -->
|
<!-- 2023-09-13 Wed 14:23 -->
|
||||||
<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="#org7aded4f">1. Control of the numerical precision</a></li>
|
<li><a href="#orgd11f3c5">1. Control of the numerical precision</a></li>
|
||||||
<li><a href="#org17d1d3d">2. Precision</a></li>
|
<li><a href="#orgcc5e548">2. Precision</a></li>
|
||||||
<li><a href="#org8872278">3. Range</a></li>
|
<li><a href="#org5acbb2c">3. Range</a></li>
|
||||||
<li><a href="#org068b2b1">4. Helper functions</a></li>
|
<li><a href="#org1195786">4. Helper functions</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org7aded4f" class="outline-2">
|
<div id="outline-container-orgd11f3c5" class="outline-2">
|
||||||
<h2 id="org7aded4f"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
<h2 id="orgd11f3c5"><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="org76e990a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orgaa26b7d" 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-org17d1d3d" class="outline-2">
|
<div id="outline-container-orgcc5e548" class="outline-2">
|
||||||
<h2 id="org17d1d3d"><span class="section-number-2">2</span> Precision</h2>
|
<h2 id="orgcc5e548"><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-org8872278" class="outline-2">
|
<div id="outline-container-org5acbb2c" class="outline-2">
|
||||||
<h2 id="org8872278"><span class="section-number-2">3</span> Range</h2>
|
<h2 id="org5acbb2c"><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-org068b2b1" class="outline-2">
|
<div id="outline-container-org1195786" class="outline-2">
|
||||||
<h2 id="org068b2b1"><span class="section-number-2">4</span> Helper functions</h2>
|
<h2 id="org1195786"><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-09-13 Wed 11:24</p>
|
<p class="date">Created: 2023-09-13 Wed 14:23</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-09-13 Wed 11:24 -->
|
<!-- 2023-09-13 Wed 14:23 -->
|
||||||
<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="#org844a6f1">1. Context</a>
|
<li><a href="#org6abb206">1. Context</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org14fea28">1.1. Data structure</a></li>
|
<li><a href="#org28e785f">1.1. Data structure</a></li>
|
||||||
<li><a href="#org86a8063">1.2. Access functions</a>
|
<li><a href="#org58782aa">1.2. Access functions</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgb1745ab">1.2.1. Number of points</a></li>
|
<li><a href="#orgd49af7c">1.2.1. Number of points</a></li>
|
||||||
<li><a href="#org93877fe">1.2.2. Point coordinates</a></li>
|
<li><a href="#org54db2fb">1.2.2. Point coordinates</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org98f43a3">1.3. Initialization functions</a></li>
|
<li><a href="#org7ff8fa4">1.3. Initialization functions</a></li>
|
||||||
<li><a href="#org92f5c27">1.4. Test</a></li>
|
<li><a href="#org6b677c7">1.4. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org844a6f1" class="outline-2">
|
<div id="outline-container-org6abb206" class="outline-2">
|
||||||
<h2 id="org844a6f1"><span class="section-number-2">1</span> Context</h2>
|
<h2 id="org6abb206"><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-org14fea28" class="outline-3">
|
<div id="outline-container-org28e785f" class="outline-3">
|
||||||
<h3 id="org14fea28"><span class="section-number-3">1.1</span> Data structure</h3>
|
<h3 id="org28e785f"><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-org86a8063" class="outline-3">
|
<div id="outline-container-org58782aa" class="outline-3">
|
||||||
<h3 id="org86a8063"><span class="section-number-3">1.2</span> Access functions</h3>
|
<h3 id="org58782aa"><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-orgb1745ab" class="outline-4">
|
<div id="outline-container-orgd49af7c" class="outline-4">
|
||||||
<h4 id="orgb1745ab"><span class="section-number-4">1.2.1</span> Number of points</h4>
|
<h4 id="orgd49af7c"><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-org93877fe" class="outline-4">
|
<div id="outline-container-org54db2fb" class="outline-4">
|
||||||
<h4 id="org93877fe"><span class="section-number-4">1.2.2</span> Point coordinates</h4>
|
<h4 id="org54db2fb"><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-org98f43a3" class="outline-3">
|
<div id="outline-container-org7ff8fa4" class="outline-3">
|
||||||
<h3 id="org98f43a3"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
<h3 id="org7ff8fa4"><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-org92f5c27" class="outline-3">
|
<div id="outline-container-org6b677c7" class="outline-3">
|
||||||
<h3 id="org92f5c27"><span class="section-number-3">1.4</span> Test</h3>
|
<h3 id="org6b677c7"><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-09-13 Wed 11:24</p>
|
<p class="date">Created: 2023-09-13 Wed 14:23</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-09-13 Wed 11:24 -->
|
<!-- 2023-09-13 Wed 14:23 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Sherman-Morrison-Woodbury</title>
|
<title>Sherman-Morrison-Woodbury</title>
|
||||||
@ -346,118 +346,118 @@ for the JavaScript code in this tag.
|
|||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
<div id="text-table-of-contents">
|
<div id="text-table-of-contents">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgc6cbcb2">1. Headers</a></li>
|
<li><a href="#org0463d22">1. Headers</a></li>
|
||||||
<li><a href="#orge227262">2. Naïve Sherman-Morrison</a>
|
<li><a href="#org89ef947">2. Naïve Sherman-Morrison</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgadde2b2">2.1. <code>qmckl_sm_naive</code></a>
|
<li><a href="#org1217108">2.1. <code>qmckl_sm_naive</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org49e3cc7">2.1.1. Introduction</a></li>
|
<li><a href="#orgc308da4">2.1.1. Introduction</a></li>
|
||||||
<li><a href="#orga3f8831">2.1.2. API</a></li>
|
<li><a href="#org4e3577a">2.1.2. API</a></li>
|
||||||
<li><a href="#orgf8b6cf4">2.1.3. Requirements</a></li>
|
<li><a href="#orgc8df30e">2.1.3. Requirements</a></li>
|
||||||
<li><a href="#org473fa72">2.1.4. Pedagogical kernel source (in Fortran)</a>
|
<li><a href="#orgb74d77b">2.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgb3c0bf2">2.1.4.1. C interface (not directly exposed)</a></li>
|
<li><a href="#orgee76cc1">2.1.4.1. C interface (not directly exposed)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org569b3cf">2.1.5. C headers (exposed in qmckl.h)</a></li>
|
<li><a href="#org5a778c8">2.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||||
<li><a href="#orgf2e0aab">2.1.6. C sources</a></li>
|
<li><a href="#orgb283119">2.1.6. C sources</a></li>
|
||||||
<li><a href="#orgf2b69c7">2.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
<li><a href="#org8bf80e2">2.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||||
<li><a href="#orgbb69735">2.1.8. Performance</a></li>
|
<li><a href="#orgfb89bdf">2.1.8. Performance</a></li>
|
||||||
<li><a href="#org5f98468">2.1.9. Tests</a></li>
|
<li><a href="#orge145930">2.1.9. Tests</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org5e00947">3. Sherman-Morrison with Slagel Splitting (core)</a>
|
<li><a href="#org20a8586">3. Sherman-Morrison with Slagel Splitting (core)</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org2eaa5b6">3.1. <code>qmckl_sm_splitting_core</code></a>
|
<li><a href="#org77cd00e">3.1. <code>qmckl_sm_splitting_core</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orge8c7b8a">3.1.1. Introduction</a></li>
|
<li><a href="#orgd0a223e">3.1.1. Introduction</a></li>
|
||||||
<li><a href="#org55f90bb">3.1.2. API</a></li>
|
<li><a href="#org37e5a14">3.1.2. API</a></li>
|
||||||
<li><a href="#org4221b89">3.1.3. Requirements</a></li>
|
<li><a href="#orga8ab1e5">3.1.3. Requirements</a></li>
|
||||||
<li><a href="#org6747399">3.1.4. Pedagogical kernel source (in Fortran)</a>
|
<li><a href="#org1d0d990">3.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org7354c55">3.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
<li><a href="#orgdab16fe">3.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org59dde34">3.1.5. C headers (exposed in qmckl.h)</a></li>
|
<li><a href="#orgb1225f0">3.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||||
<li><a href="#org64d7ec9">3.1.6. C sources</a></li>
|
<li><a href="#org3f2858a">3.1.6. C sources</a></li>
|
||||||
<li><a href="#org68b954b">3.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
<li><a href="#org2587385">3.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||||
<li><a href="#orgb8931d2">3.1.8. Performance</a></li>
|
<li><a href="#orgefaf9d9">3.1.8. Performance</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgba1a52a">4. Woodbury 2x2</a>
|
<li><a href="#org5469cc6">4. Woodbury 2x2</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org07ecda2">4.1. <code>qmckl_woodbury_2x2</code></a>
|
<li><a href="#org641db52">4.1. <code>qmckl_woodbury_2x2</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org9c98670">4.1.1. Introduction</a></li>
|
<li><a href="#org89cc125">4.1.1. Introduction</a></li>
|
||||||
<li><a href="#org697719a">4.1.2. API</a></li>
|
<li><a href="#org43b8ddb">4.1.2. API</a></li>
|
||||||
<li><a href="#orgf162228">4.1.3. Requirements</a></li>
|
<li><a href="#orgd757b0e">4.1.3. Requirements</a></li>
|
||||||
<li><a href="#orgf40bb7a">4.1.4. Pedagogical kernel source (in Fortran)</a>
|
<li><a href="#orgc9bd966">4.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org38fc472">4.1.4.1. C interface (not directly exposed)</a></li>
|
<li><a href="#org2087ec9">4.1.4.1. C interface (not directly exposed)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org01a395b">4.1.5. C headers (exposed in qmckl.h)</a></li>
|
<li><a href="#orgbc79cdd">4.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||||
<li><a href="#orge486d54">4.1.6. C sources</a></li>
|
<li><a href="#org8d1e9e4">4.1.6. C sources</a></li>
|
||||||
<li><a href="#org752f206">4.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
<li><a href="#orgdd73076">4.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||||
<li><a href="#org6bf59a5">4.1.8. Performance</a></li>
|
<li><a href="#orgea97fcf">4.1.8. Performance</a></li>
|
||||||
<li><a href="#orga83caf1">4.1.9. Tests</a></li>
|
<li><a href="#orge1b6b4c">4.1.9. Tests</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgc107db5">5. Woodbury 3x3</a>
|
<li><a href="#org544c5d4">5. Woodbury 3x3</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org3b86e1e">5.1. <code>qmckl_woodbury_3x3</code></a>
|
<li><a href="#orgdffc1cd">5.1. <code>qmckl_woodbury_3x3</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org12b5de1">5.1.1. Introduction</a></li>
|
<li><a href="#org8e2e76b">5.1.1. Introduction</a></li>
|
||||||
<li><a href="#org4bdaa23">5.1.2. API</a></li>
|
<li><a href="#orge55da25">5.1.2. API</a></li>
|
||||||
<li><a href="#org1c76589">5.1.3. Requirements</a></li>
|
<li><a href="#org90d3751">5.1.3. Requirements</a></li>
|
||||||
<li><a href="#orgeed53ca">5.1.4. Pedagogical kernel source (in Fortran)</a>
|
<li><a href="#orgc17f71e">5.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org05aa151">5.1.4.1. C interface (not directly exposed)</a></li>
|
<li><a href="#orgad1c71f">5.1.4.1. C interface (not directly exposed)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgd2e7535">5.1.5. C headers (exposed in qmckl.h)</a></li>
|
<li><a href="#orgf0aa9a7">5.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||||
<li><a href="#org84afe4a">5.1.6. C sources</a></li>
|
<li><a href="#org4328458">5.1.6. C sources</a></li>
|
||||||
<li><a href="#orgaa01858">5.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
<li><a href="#org902a18d">5.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||||
<li><a href="#org65a50e1">5.1.8. Performance</a></li>
|
<li><a href="#org65abe4f">5.1.8. Performance</a></li>
|
||||||
<li><a href="#orgaff160f">5.1.9. Tests</a></li>
|
<li><a href="#orga47f2f8">5.1.9. Tests</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgdbefaa7">6. Sherman-Morrison with Slagel Splitting</a>
|
<li><a href="#org6fb1774">6. Sherman-Morrison with Slagel Splitting</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org389b60e">6.1. <code>qmckl_sm_splitting</code></a>
|
<li><a href="#orgaab37f7">6.1. <code>qmckl_sm_splitting</code></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgdc65d2b">6.1.1. Introduction</a></li>
|
<li><a href="#org501cb38">6.1.1. Introduction</a></li>
|
||||||
<li><a href="#orgf3502aa">6.1.2. API</a></li>
|
<li><a href="#orgddd79c6">6.1.2. API</a></li>
|
||||||
<li><a href="#orgdccfef7">6.1.3. Requirements</a></li>
|
<li><a href="#orga485eb7">6.1.3. Requirements</a></li>
|
||||||
<li><a href="#org81c8636">6.1.4. Pedagogical kernel source (in Fortran)</a>
|
<li><a href="#orgccd39c0">6.1.4. Pedagogical kernel source (in Fortran)</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org25f8988">6.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
<li><a href="#org2db1f93">6.1.4.1. C interface to the pedagogical kernel (not directly exposed)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org2c41bc1">6.1.5. C headers (exposed in qmckl.h)</a></li>
|
<li><a href="#org5874111">6.1.5. C headers (exposed in qmckl.h)</a></li>
|
||||||
<li><a href="#orga8ff588">6.1.6. C source</a></li>
|
<li><a href="#org93ec240">6.1.6. C source</a></li>
|
||||||
<li><a href="#orgd96f4af">6.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
<li><a href="#org6d5886b">6.1.7. Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</a></li>
|
||||||
<li><a href="#orgbb6c68b">6.1.8. Performance…</a></li>
|
<li><a href="#org4fd6aa4">6.1.8. Performance…</a></li>
|
||||||
<li><a href="#org0d25fc8">6.1.9. Test</a></li>
|
<li><a href="#org8df1fb4">6.1.9. Test</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org598de9f">7. End of files</a></li>
|
<li><a href="#orgfccc908">7. End of files</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgc6cbcb2" class="outline-2">
|
<div id="outline-container-org0463d22" class="outline-2">
|
||||||
<h2 id="orgc6cbcb2"><span class="section-number-2">1</span> Headers</h2>
|
<h2 id="org0463d22"><span class="section-number-2">1</span> Headers</h2>
|
||||||
<div class="outline-text-2" id="text-1">
|
<div class="outline-text-2" id="text-1">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;">"qmckl.h"</span>
|
<pre class="src src-c"><span style="color: #483d8b;">#include</span> <span style="color: #8b2252;">"qmckl.h"</span>
|
||||||
@ -479,17 +479,17 @@ This is the range that determines the how many high performance kernel instantce
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orge227262" class="outline-2">
|
<div id="outline-container-org89ef947" class="outline-2">
|
||||||
<h2 id="orge227262"><span class="section-number-2">2</span> Naïve Sherman-Morrison</h2>
|
<h2 id="org89ef947"><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-orgadde2b2" class="outline-3">
|
<div id="outline-container-org1217108" class="outline-3">
|
||||||
<h3 id="orgadde2b2"><span class="section-number-3">2.1</span> <code>qmckl_sm_naive</code></h3>
|
<h3 id="org1217108"><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-org49e3cc7" class="outline-4">
|
<div id="outline-container-orgc308da4" class="outline-4">
|
||||||
<h4 id="org49e3cc7"><span class="section-number-4">2.1.1</span> Introduction</h4>
|
<h4 id="orgc308da4"><span class="section-number-4">2.1.1</span> Introduction</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-1">
|
<div class="outline-text-4" id="text-2-1-1">
|
||||||
<p>
|
<p>
|
||||||
This is the simplest of the available Sherman-Morrison-Woodbury kernels. It applies rank-1 updates one by one in
|
This is the simplest of the available Sherman-Morrison-Woodbury kernels. It applies rank-1 updates one by one in
|
||||||
@ -539,10 +539,10 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga3f8831" class="outline-4">
|
<div id="outline-container-org4e3577a" class="outline-4">
|
||||||
<h4 id="orga3f8831"><span class="section-number-4">2.1.2</span> API</h4>
|
<h4 id="org4e3577a"><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="org1e4e786" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org6aa702a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -630,8 +630,8 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf8b6cf4" class="outline-4">
|
<div id="outline-container-orgc8df30e" class="outline-4">
|
||||||
<h4 id="orgf8b6cf4"><span class="section-number-4">2.1.3</span> Requirements</h4>
|
<h4 id="orgc8df30e"><span class="section-number-4">2.1.3</span> Requirements</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-3">
|
<div class="outline-text-4" id="text-2-1-3">
|
||||||
<ul class="org-ul">
|
<ul class="org-ul">
|
||||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||||
@ -647,8 +647,8 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org473fa72" class="outline-4">
|
<div id="outline-container-orgb74d77b" class="outline-4">
|
||||||
<h4 id="org473fa72"><span class="section-number-4">2.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
<h4 id="orgb74d77b"><span class="section-number-4">2.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-4">
|
<div class="outline-text-4" id="text-2-1-4">
|
||||||
<p>
|
<p>
|
||||||
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
||||||
@ -742,8 +742,8 @@ not be used in real workloads.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgb3c0bf2" class="outline-5">
|
<div id="outline-container-orgee76cc1" class="outline-5">
|
||||||
<h5 id="orgb3c0bf2"><span class="section-number-5">2.1.4.1</span> C interface (not directly exposed)</h5>
|
<h5 id="orgee76cc1"><span class="section-number-5">2.1.4.1</span> C interface (not directly exposed)</h5>
|
||||||
<div class="outline-text-5" id="text-2-1-4-1">
|
<div class="outline-text-5" id="text-2-1-4-1">
|
||||||
<p>
|
<p>
|
||||||
The following Fortran function <code>qmckl_sm_naive_doc</code> makes sure
|
The following Fortran function <code>qmckl_sm_naive_doc</code> makes sure
|
||||||
@ -755,8 +755,8 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org569b3cf" class="outline-4">
|
<div id="outline-container-org5a778c8" class="outline-4">
|
||||||
<h4 id="org569b3cf"><span class="section-number-4">2.1.5</span> C headers (exposed in qmckl.h)</h4>
|
<h4 id="org5a778c8"><span class="section-number-4">2.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||||
<div class="outline-text-4" id="text-2-1-5">
|
<div class="outline-text-4" id="text-2-1-5">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_naive</span> (
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_naive</span> (
|
||||||
@ -802,8 +802,8 @@ for C users and in the module file 'qmckl<sub>f.F90</sub>' for Fortran users.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf2e0aab" class="outline-4">
|
<div id="outline-container-orgb283119" class="outline-4">
|
||||||
<h4 id="orgf2e0aab"><span class="section-number-4">2.1.6</span> C sources</h4>
|
<h4 id="orgb283119"><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.
|
||||||
@ -921,7 +921,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="orgf851ea2"><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="org06745fa"><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,
|
||||||
@ -997,7 +997,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="orgd615a8f"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
<pre class="src src-python" id="orgd2feb2f"><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>
|
||||||
@ -1081,7 +1081,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="org6b0f369"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
<pre class="src src-python" id="org5f01e43"><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>
|
||||||
@ -2721,14 +2721,14 @@ Python script that generated C switch cases that call individual kernel instance
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf2b69c7" class="outline-4">
|
<div id="outline-container-org8bf80e2" class="outline-4">
|
||||||
<h4 id="orgf2b69c7"><span class="section-number-4">2.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
<h4 id="org8bf80e2"><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-orgbb69735" class="outline-4">
|
<div id="outline-container-orgfb89bdf" class="outline-4">
|
||||||
<h4 id="orgbb69735"><span class="section-number-4">2.1.8</span> Performance</h4>
|
<h4 id="orgfb89bdf"><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
|
||||||
@ -2737,8 +2737,8 @@ can never resolve a situation where applying the update causes singular behaviou
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org5f98468" class="outline-4">
|
<div id="outline-container-orge145930" class="outline-4">
|
||||||
<h4 id="org5f98468"><span class="section-number-4">2.1.9</span> Tests</h4>
|
<h4 id="orge145930"><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
|
||||||
@ -2806,17 +2806,17 @@ rc = QMCKL_SUCCESS;
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-org5e00947" class="outline-2">
|
<div id="outline-container-org20a8586" class="outline-2">
|
||||||
<h2 id="org5e00947"><span class="section-number-2">3</span> Sherman-Morrison with Slagel Splitting (core)</h2>
|
<h2 id="org20a8586"><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-org2eaa5b6" class="outline-3">
|
<div id="outline-container-org77cd00e" class="outline-3">
|
||||||
<h3 id="org2eaa5b6"><span class="section-number-3">3.1</span> <code>qmckl_sm_splitting_core</code></h3>
|
<h3 id="org77cd00e"><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-orge8c7b8a" class="outline-4">
|
<div id="outline-container-orgd0a223e" class="outline-4">
|
||||||
<h4 id="orge8c7b8a"><span class="section-number-4">3.1.1</span> Introduction</h4>
|
<h4 id="orgd0a223e"><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.
|
||||||
@ -2844,10 +2844,10 @@ If the determinant is passed it will only be partially updated if there were any
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org55f90bb" class="outline-4">
|
<div id="outline-container-org37e5a14" class="outline-4">
|
||||||
<h4 id="org55f90bb"><span class="section-number-4">3.1.2</span> API</h4>
|
<h4 id="org37e5a14"><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="org0ff644e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org0ea8492" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -2956,8 +2956,8 @@ If the determinant is passed it will only be partially updated if there were any
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org4221b89" class="outline-4">
|
<div id="outline-container-orga8ab1e5" class="outline-4">
|
||||||
<h4 id="org4221b89"><span class="section-number-4">3.1.3</span> Requirements</h4>
|
<h4 id="orga8ab1e5"><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>
|
||||||
@ -2974,8 +2974,8 @@ If the determinant is passed it will only be partially updated if there were any
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org6747399" class="outline-4">
|
<div id="outline-container-org1d0d990" class="outline-4">
|
||||||
<h4 id="org6747399"><span class="section-number-4">3.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
<h4 id="org1d0d990"><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
|
||||||
@ -3091,8 +3091,8 @@ not be used in real workloads.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org7354c55" class="outline-5">
|
<div id="outline-container-orgdab16fe" class="outline-5">
|
||||||
<h5 id="org7354c55"><span class="section-number-5">3.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
<h5 id="orgdab16fe"><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
|
||||||
@ -3105,8 +3105,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org59dde34" class="outline-4">
|
<div id="outline-container-orgb1225f0" class="outline-4">
|
||||||
<h4 id="org59dde34"><span class="section-number-4">3.1.5</span> C headers (exposed in qmckl.h)</h4>
|
<h4 id="orgb1225f0"><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> (
|
||||||
@ -3161,8 +3161,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org64d7ec9" class="outline-4">
|
<div id="outline-container-org3f2858a" class="outline-4">
|
||||||
<h4 id="org64d7ec9"><span class="section-number-4">3.1.6</span> C sources</h4>
|
<h4 id="org3f2858a"><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>(
|
||||||
@ -3251,7 +3251,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="org2f61fd8"><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="orgd87c1c0"><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,
|
||||||
@ -3335,7 +3335,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="org08dc976"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
<pre class="src src-python" id="org286c048"><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>
|
||||||
@ -3427,7 +3427,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="orgb1962ed"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
<pre class="src src-python" id="org91cc0db"><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>
|
||||||
@ -5416,14 +5416,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org68b954b" class="outline-4">
|
<div id="outline-container-org2587385" class="outline-4">
|
||||||
<h4 id="org68b954b"><span class="section-number-4">3.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
<h4 id="org2587385"><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-orgb8931d2" class="outline-4">
|
<div id="outline-container-orgefaf9d9" class="outline-4">
|
||||||
<h4 id="orgb8931d2"><span class="section-number-4">3.1.8</span> Performance</h4>
|
<h4 id="orgefaf9d9"><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
|
||||||
@ -5435,17 +5435,17 @@ with Sherman-Morrison and update splitting. Please look at the performance recco
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-orgba1a52a" class="outline-2">
|
<div id="outline-container-org5469cc6" class="outline-2">
|
||||||
<h2 id="orgba1a52a"><span class="section-number-2">4</span> Woodbury 2x2</h2>
|
<h2 id="org5469cc6"><span class="section-number-2">4</span> Woodbury 2x2</h2>
|
||||||
<div class="outline-text-2" id="text-4">
|
<div class="outline-text-2" id="text-4">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org07ecda2" class="outline-3">
|
<div id="outline-container-org641db52" class="outline-3">
|
||||||
<h3 id="org07ecda2"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_2x2</code></h3>
|
<h3 id="org641db52"><span class="section-number-3">4.1</span> <code>qmckl_woodbury_2x2</code></h3>
|
||||||
<div class="outline-text-3" id="text-4-1">
|
<div class="outline-text-3" id="text-4-1">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org9c98670" class="outline-4">
|
<div id="outline-container-org89cc125" class="outline-4">
|
||||||
<h4 id="org9c98670"><span class="section-number-4">4.1.1</span> Introduction</h4>
|
<h4 id="org89cc125"><span class="section-number-4">4.1.1</span> Introduction</h4>
|
||||||
<div class="outline-text-4" id="text-4-1-1">
|
<div class="outline-text-4" id="text-4-1-1">
|
||||||
<p>
|
<p>
|
||||||
The Woodbury 2x2 kernel. It is used to apply two rank-1 updates at once. The formula used in
|
The Woodbury 2x2 kernel. It is used to apply two rank-1 updates at once. The formula used in
|
||||||
@ -5469,10 +5469,10 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org697719a" class="outline-4">
|
<div id="outline-container-org43b8ddb" class="outline-4">
|
||||||
<h4 id="org697719a"><span class="section-number-4">4.1.2</span> API</h4>
|
<h4 id="org43b8ddb"><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="org2435b93" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="orga0d57f3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -5553,8 +5553,8 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf162228" class="outline-4">
|
<div id="outline-container-orgd757b0e" class="outline-4">
|
||||||
<h4 id="orgf162228"><span class="section-number-4">4.1.3</span> Requirements</h4>
|
<h4 id="orgd757b0e"><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>
|
||||||
@ -5568,8 +5568,8 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf40bb7a" class="outline-4">
|
<div id="outline-container-orgc9bd966" class="outline-4">
|
||||||
<h4 id="orgf40bb7a"><span class="section-number-4">4.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
<h4 id="orgc9bd966"><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
|
||||||
@ -5705,8 +5705,8 @@ not be used in real workloads.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org38fc472" class="outline-5">
|
<div id="outline-container-org2087ec9" class="outline-5">
|
||||||
<h5 id="org38fc472"><span class="section-number-5">4.1.4.1</span> C interface (not directly exposed)</h5>
|
<h5 id="org2087ec9"><span class="section-number-5">4.1.4.1</span> C interface (not directly exposed)</h5>
|
||||||
<div class="outline-text-5" id="text-4-1-4-1">
|
<div class="outline-text-5" id="text-4-1-4-1">
|
||||||
<p>
|
<p>
|
||||||
The function <code>qmckl_sm_splitting_core_doc</code> makes sure that
|
The function <code>qmckl_sm_splitting_core_doc</code> makes sure that
|
||||||
@ -5719,8 +5719,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org01a395b" class="outline-4">
|
<div id="outline-container-orgbc79cdd" class="outline-4">
|
||||||
<h4 id="org01a395b"><span class="section-number-4">4.1.5</span> C headers (exposed in qmckl.h)</h4>
|
<h4 id="orgbc79cdd"><span class="section-number-4">4.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||||
<div class="outline-text-4" id="text-4-1-5">
|
<div class="outline-text-4" id="text-4-1-5">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_2x2</span> (
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_2x2</span> (
|
||||||
@ -5763,8 +5763,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orge486d54" class="outline-4">
|
<div id="outline-container-org8d1e9e4" class="outline-4">
|
||||||
<h4 id="orge486d54"><span class="section-number-4">4.1.6</span> C sources</h4>
|
<h4 id="org8d1e9e4"><span class="section-number-4">4.1.6</span> C sources</h4>
|
||||||
<div class="outline-text-4" id="text-4-1-6">
|
<div class="outline-text-4" id="text-4-1-6">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_2x2_hpc</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_2x2_hpc</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||||
@ -5854,7 +5854,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="org7cc3062"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_woodbury_2x2_</span>{Dim}(
|
<pre class="src src-c" id="org1d40444"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_woodbury_2x2_</span>{Dim}(
|
||||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
||||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span>* <span style="color: #a0522d;">__restrict</span> Updates_index,
|
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span>* <span style="color: #a0522d;">__restrict</span> Updates_index,
|
||||||
@ -7804,14 +7804,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org752f206" class="outline-4">
|
<div id="outline-container-orgdd73076" class="outline-4">
|
||||||
<h4 id="org752f206"><span class="section-number-4">4.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
<h4 id="orgdd73076"><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-org6bf59a5" class="outline-4">
|
<div id="outline-container-orgea97fcf" class="outline-4">
|
||||||
<h4 id="org6bf59a5"><span class="section-number-4">4.1.8</span> Performance</h4>
|
<h4 id="orgea97fcf"><span class="section-number-4">4.1.8</span> Performance</h4>
|
||||||
<div class="outline-text-4" id="text-4-1-8">
|
<div class="outline-text-4" id="text-4-1-8">
|
||||||
<p>
|
<p>
|
||||||
This function is most efficient when used in cases where there are only 2 rank-1 updates and
|
This function is most efficient when used in cases where there are only 2 rank-1 updates and
|
||||||
@ -7820,8 +7820,8 @@ it is sure they will not result in a singular matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orga83caf1" class="outline-4">
|
<div id="outline-container-orge1b6b4c" class="outline-4">
|
||||||
<h4 id="orga83caf1"><span class="section-number-4">4.1.9</span> Tests</h4>
|
<h4 id="orge1b6b4c"><span class="section-number-4">4.1.9</span> Tests</h4>
|
||||||
<div class="outline-text-4" id="text-4-1-9">
|
<div class="outline-text-4" id="text-4-1-9">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(Updates2 != <span style="color: #008b8b;">NULL</span>);
|
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(Updates2 != <span style="color: #008b8b;">NULL</span>);
|
||||||
@ -7858,17 +7858,17 @@ rc = QMCKL_SUCCESS;
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-orgc107db5" class="outline-2">
|
<div id="outline-container-org544c5d4" class="outline-2">
|
||||||
<h2 id="orgc107db5"><span class="section-number-2">5</span> Woodbury 3x3</h2>
|
<h2 id="org544c5d4"><span class="section-number-2">5</span> Woodbury 3x3</h2>
|
||||||
<div class="outline-text-2" id="text-5">
|
<div class="outline-text-2" id="text-5">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org3b86e1e" class="outline-3">
|
<div id="outline-container-orgdffc1cd" class="outline-3">
|
||||||
<h3 id="org3b86e1e"><span class="section-number-3">5.1</span> <code>qmckl_woodbury_3x3</code></h3>
|
<h3 id="orgdffc1cd"><span class="section-number-3">5.1</span> <code>qmckl_woodbury_3x3</code></h3>
|
||||||
<div class="outline-text-3" id="text-5-1">
|
<div class="outline-text-3" id="text-5-1">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org12b5de1" class="outline-4">
|
<div id="outline-container-org8e2e76b" class="outline-4">
|
||||||
<h4 id="org12b5de1"><span class="section-number-4">5.1.1</span> Introduction</h4>
|
<h4 id="org8e2e76b"><span class="section-number-4">5.1.1</span> Introduction</h4>
|
||||||
<div class="outline-text-4" id="text-5-1-1">
|
<div class="outline-text-4" id="text-5-1-1">
|
||||||
<p>
|
<p>
|
||||||
The Woodbury 3x3 kernel. It is used to apply two rank-1 updates at once. The formula used in
|
The Woodbury 3x3 kernel. It is used to apply two rank-1 updates at once. The formula used in
|
||||||
@ -7892,10 +7892,10 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org4bdaa23" class="outline-4">
|
<div id="outline-container-orge55da25" class="outline-4">
|
||||||
<h4 id="org4bdaa23"><span class="section-number-4">5.1.2</span> API</h4>
|
<h4 id="orge55da25"><span class="section-number-4">5.1.2</span> API</h4>
|
||||||
<div class="outline-text-4" id="text-5-1-2">
|
<div class="outline-text-4" id="text-5-1-2">
|
||||||
<table id="org19ddcb4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org02cbe20" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -7976,8 +7976,8 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org1c76589" class="outline-4">
|
<div id="outline-container-org90d3751" class="outline-4">
|
||||||
<h4 id="org1c76589"><span class="section-number-4">5.1.3</span> Requirements</h4>
|
<h4 id="org90d3751"><span class="section-number-4">5.1.3</span> Requirements</h4>
|
||||||
<div class="outline-text-4" id="text-5-1-3">
|
<div class="outline-text-4" id="text-5-1-3">
|
||||||
<ul class="org-ul">
|
<ul class="org-ul">
|
||||||
<li><code>context</code> is not <code>qmckl_null_context</code></li>
|
<li><code>context</code> is not <code>qmckl_null_context</code></li>
|
||||||
@ -7991,8 +7991,8 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgeed53ca" class="outline-4">
|
<div id="outline-container-orgc17f71e" class="outline-4">
|
||||||
<h4 id="orgeed53ca"><span class="section-number-4">5.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
<h4 id="orgc17f71e"><span class="section-number-4">5.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||||
<div class="outline-text-4" id="text-5-1-4">
|
<div class="outline-text-4" id="text-5-1-4">
|
||||||
<p>
|
<p>
|
||||||
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
||||||
@ -8137,8 +8137,8 @@ not be used in real workloads.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org05aa151" class="outline-5">
|
<div id="outline-container-orgad1c71f" class="outline-5">
|
||||||
<h5 id="org05aa151"><span class="section-number-5">5.1.4.1</span> C interface (not directly exposed)</h5>
|
<h5 id="orgad1c71f"><span class="section-number-5">5.1.4.1</span> C interface (not directly exposed)</h5>
|
||||||
<div class="outline-text-5" id="text-5-1-4-1">
|
<div class="outline-text-5" id="text-5-1-4-1">
|
||||||
<p>
|
<p>
|
||||||
The function <code>qmckl_sm_splitting_core_doc</code> makes sure that
|
The function <code>qmckl_sm_splitting_core_doc</code> makes sure that
|
||||||
@ -8151,8 +8151,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgd2e7535" class="outline-4">
|
<div id="outline-container-orgf0aa9a7" class="outline-4">
|
||||||
<h4 id="orgd2e7535"><span class="section-number-4">5.1.5</span> C headers (exposed in qmckl.h)</h4>
|
<h4 id="orgf0aa9a7"><span class="section-number-4">5.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||||
<div class="outline-text-4" id="text-5-1-5">
|
<div class="outline-text-4" id="text-5-1-5">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_3x3</span> (
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_3x3</span> (
|
||||||
@ -8195,8 +8195,8 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org84afe4a" class="outline-4">
|
<div id="outline-container-org4328458" class="outline-4">
|
||||||
<h4 id="org84afe4a"><span class="section-number-4">5.1.6</span> C sources</h4>
|
<h4 id="org4328458"><span class="section-number-4">5.1.6</span> C sources</h4>
|
||||||
<div class="outline-text-4" id="text-5-1-6">
|
<div class="outline-text-4" id="text-5-1-6">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_3x3_hpc</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_woodbury_3x3_hpc</span>(<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||||
@ -8306,7 +8306,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="org7ce881f"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_woodbury_3x3_</span>{Dim}(
|
<pre class="src src-c" id="orgad3de0c"><span style="color: #a020f0;">static</span> <span style="color: #a020f0;">inline</span> <span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #a0522d;">qmckl_woodbury_3x3_</span>{Dim}(
|
||||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>,
|
||||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">__restrict</span> Updates,
|
||||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span>* <span style="color: #a0522d;">__restrict</span> Updates_index,
|
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">uint64_t</span>* <span style="color: #a0522d;">__restrict</span> Updates_index,
|
||||||
@ -10676,14 +10676,14 @@ exposed in <code>qmckl.h</code> and <code>qmckl_f.F90</code>, but
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgaa01858" class="outline-4">
|
<div id="outline-container-org902a18d" class="outline-4">
|
||||||
<h4 id="orgaa01858"><span class="section-number-4">5.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
<h4 id="org902a18d"><span class="section-number-4">5.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||||
<div class="outline-text-4" id="text-5-1-7">
|
<div class="outline-text-4" id="text-5-1-7">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org65a50e1" class="outline-4">
|
<div id="outline-container-org65abe4f" class="outline-4">
|
||||||
<h4 id="org65a50e1"><span class="section-number-4">5.1.8</span> Performance</h4>
|
<h4 id="org65abe4f"><span class="section-number-4">5.1.8</span> Performance</h4>
|
||||||
<div class="outline-text-4" id="text-5-1-8">
|
<div class="outline-text-4" id="text-5-1-8">
|
||||||
<p>
|
<p>
|
||||||
This function is most efficient when used in cases where there are only 3 rank-1 updates and
|
This function is most efficient when used in cases where there are only 3 rank-1 updates and
|
||||||
@ -10692,8 +10692,8 @@ it is sure they will not result in a singular matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgaff160f" class="outline-4">
|
<div id="outline-container-orga47f2f8" class="outline-4">
|
||||||
<h4 id="orgaff160f"><span class="section-number-4">5.1.9</span> Tests</h4>
|
<h4 id="orga47f2f8"><span class="section-number-4">5.1.9</span> Tests</h4>
|
||||||
<div class="outline-text-4" id="text-5-1-9">
|
<div class="outline-text-4" id="text-5-1-9">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(Updates3 != <span style="color: #008b8b;">NULL</span>);
|
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(Updates3 != <span style="color: #008b8b;">NULL</span>);
|
||||||
@ -10730,17 +10730,17 @@ rc = QMCKL_SUCCESS;
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-orgdbefaa7" class="outline-2">
|
<div id="outline-container-org6fb1774" class="outline-2">
|
||||||
<h2 id="orgdbefaa7"><span class="section-number-2">6</span> Sherman-Morrison with Slagel Splitting</h2>
|
<h2 id="org6fb1774"><span class="section-number-2">6</span> Sherman-Morrison with Slagel Splitting</h2>
|
||||||
<div class="outline-text-2" id="text-6">
|
<div class="outline-text-2" id="text-6">
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-org389b60e" class="outline-3">
|
<div id="outline-container-orgaab37f7" class="outline-3">
|
||||||
<h3 id="org389b60e"><span class="section-number-3">6.1</span> <code>qmckl_sm_splitting</code></h3>
|
<h3 id="orgaab37f7"><span class="section-number-3">6.1</span> <code>qmckl_sm_splitting</code></h3>
|
||||||
<div class="outline-text-3" id="text-6-1">
|
<div class="outline-text-3" id="text-6-1">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgdc65d2b" class="outline-4">
|
<div id="outline-container-org501cb38" class="outline-4">
|
||||||
<h4 id="orgdc65d2b"><span class="section-number-4">6.1.1</span> Introduction</h4>
|
<h4 id="org501cb38"><span class="section-number-4">6.1.1</span> Introduction</h4>
|
||||||
<div class="outline-text-4" id="text-6-1-1">
|
<div class="outline-text-4" id="text-6-1-1">
|
||||||
<p>
|
<p>
|
||||||
This is a variation on the 'Naive' Sherman-Morrison kernel. Whenever the denominator \(1+v_j^T S^{-1} u_j\) in
|
This is a variation on the 'Naive' Sherman-Morrison kernel. Whenever the denominator \(1+v_j^T S^{-1} u_j\) in
|
||||||
@ -10764,10 +10764,10 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgf3502aa" class="outline-4">
|
<div id="outline-container-orgddd79c6" class="outline-4">
|
||||||
<h4 id="orgf3502aa"><span class="section-number-4">6.1.2</span> API</h4>
|
<h4 id="orgddd79c6"><span class="section-number-4">6.1.2</span> API</h4>
|
||||||
<div class="outline-text-4" id="text-6-1-2">
|
<div class="outline-text-4" id="text-6-1-2">
|
||||||
<table id="org1afeee0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
<table id="org8aacb61" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||||
|
|
||||||
|
|
||||||
<colgroup>
|
<colgroup>
|
||||||
@ -10855,8 +10855,8 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgdccfef7" class="outline-4">
|
<div id="outline-container-orga485eb7" class="outline-4">
|
||||||
<h4 id="orgdccfef7"><span class="section-number-4">6.1.3</span> Requirements</h4>
|
<h4 id="orga485eb7"><span class="section-number-4">6.1.3</span> Requirements</h4>
|
||||||
<div class="outline-text-4" id="text-6-1-3">
|
<div class="outline-text-4" id="text-6-1-3">
|
||||||
<ul class="org-ul">
|
<ul class="org-ul">
|
||||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||||
@ -10871,8 +10871,8 @@ from applying the updates to the original matrix.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org81c8636" class="outline-4">
|
<div id="outline-container-orgccd39c0" class="outline-4">
|
||||||
<h4 id="org81c8636"><span class="section-number-4">6.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
<h4 id="orgccd39c0"><span class="section-number-4">6.1.4</span> Pedagogical kernel source (in Fortran)</h4>
|
||||||
<div class="outline-text-4" id="text-6-1-4">
|
<div class="outline-text-4" id="text-6-1-4">
|
||||||
<p>
|
<p>
|
||||||
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
The following source code written in Fortran is inteded to illustrate how the kernel works. Even though the kernel is
|
||||||
@ -10951,8 +10951,8 @@ not be used in real workloads.
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org25f8988" class="outline-5">
|
<div id="outline-container-org2db1f93" class="outline-5">
|
||||||
<h5 id="org25f8988"><span class="section-number-5">6.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
<h5 id="org2db1f93"><span class="section-number-5">6.1.4.1</span> C interface to the pedagogical kernel (not directly exposed)</h5>
|
||||||
<div class="outline-text-5" id="text-6-1-4-1">
|
<div class="outline-text-5" id="text-6-1-4-1">
|
||||||
<p>
|
<p>
|
||||||
The following Fortran function <code>qmckl_sm_splitting_core_doc</code> makes sure
|
The following Fortran function <code>qmckl_sm_splitting_core_doc</code> makes sure
|
||||||
@ -10965,8 +10965,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-org2c41bc1" class="outline-4">
|
<div id="outline-container-org5874111" class="outline-4">
|
||||||
<h4 id="org2c41bc1"><span class="section-number-4">6.1.5</span> C headers (exposed in qmckl.h)</h4>
|
<h4 id="org5874111"><span class="section-number-4">6.1.5</span> C headers (exposed in qmckl.h)</h4>
|
||||||
<div class="outline-text-4" id="text-6-1-5">
|
<div class="outline-text-4" id="text-6-1-5">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_splitting</span> (
|
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_sm_splitting</span> (
|
||||||
@ -11012,11 +11012,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-orga8ff588" class="outline-4">
|
<div id="outline-container-org93ec240" class="outline-4">
|
||||||
<h4 id="orga8ff588"><span class="section-number-4">6.1.6</span> C source</h4>
|
<h4 id="org93ec240"><span class="section-number-4">6.1.6</span> C source</h4>
|
||||||
<div class="outline-text-4" id="text-6-1-6">
|
<div class="outline-text-4" id="text-6-1-6">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-python" id="org3e5050f"><span style="color: #a0522d;">text</span>=<span style="color: #8b2252;">"""</span>
|
<pre class="src src-python" id="org711afa0"><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>
|
||||||
@ -11420,14 +11420,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-orgd96f4af" class="outline-4">
|
<div id="outline-container-org6d5886b" class="outline-4">
|
||||||
<h4 id="orgd96f4af"><span class="section-number-4">6.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
<h4 id="org6d5886b"><span class="section-number-4">6.1.7</span> Fortran interfaces (exposed in qmckl<sub>f.F90</sub>)</h4>
|
||||||
<div class="outline-text-4" id="text-6-1-7">
|
<div class="outline-text-4" id="text-6-1-7">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-orgbb6c68b" class="outline-4">
|
<div id="outline-container-org4fd6aa4" class="outline-4">
|
||||||
<h4 id="orgbb6c68b"><span class="section-number-4">6.1.8</span> Performance…</h4>
|
<h4 id="org4fd6aa4"><span class="section-number-4">6.1.8</span> Performance…</h4>
|
||||||
<div class="outline-text-4" id="text-6-1-8">
|
<div class="outline-text-4" id="text-6-1-8">
|
||||||
<p>
|
<p>
|
||||||
This kernel performs best when there are 2 or more rank-1 update cycles and fail-rate is high.
|
This kernel performs best when there are 2 or more rank-1 update cycles and fail-rate is high.
|
||||||
@ -11435,8 +11435,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-org0d25fc8" class="outline-4">
|
<div id="outline-container-org8df1fb4" class="outline-4">
|
||||||
<h4 id="org0d25fc8"><span class="section-number-4">6.1.9</span> Test</h4>
|
<h4 id="org8df1fb4"><span class="section-number-4">6.1.9</span> Test</h4>
|
||||||
<div class="outline-text-4" id="text-6-1-9">
|
<div class="outline-text-4" id="text-6-1-9">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(Updates3 != <span style="color: #008b8b;">NULL</span>);
|
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(Updates3 != <span style="color: #008b8b;">NULL</span>);
|
||||||
@ -11474,8 +11474,8 @@ rc = QMCKL_SUCCESS;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="outline-container-org598de9f" class="outline-2">
|
<div id="outline-container-orgfccc908" class="outline-2">
|
||||||
<h2 id="org598de9f"><span class="section-number-2">7</span> End of files</h2>
|
<h2 id="orgfccc908"><span class="section-number-2">7</span> End of files</h2>
|
||||||
<div class="outline-text-2" id="text-7">
|
<div class="outline-text-2" id="text-7">
|
||||||
<div class="org-src-container">
|
<div class="org-src-container">
|
||||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span> (<span style="color: #228b22;">qmckl_context_destroy</span>(<span style="color: #a0522d;">context</span>) == QMCKL_SUCCESS);
|
<pre class="src src-c"><span style="color: #0000ff;">assert</span> (<span style="color: #228b22;">qmckl_context_destroy</span>(<span style="color: #a0522d;">context</span>) == QMCKL_SUCCESS);
|
||||||
@ -11489,7 +11489,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-09-13 Wed 11:24</p>
|
<p class="date">Created: 2023-09-13 Wed 14:23</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-09-13 Wed 11:24 -->
|
<!-- 2023-09-13 Wed 14:23 -->
|
||||||
<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="#org14ff19e">1. CHBrClF</a>
|
<li><a href="#orga056ba3">1. CHBrClF</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgde5ca26">1.1. XYZ coordinates</a></li>
|
<li><a href="#orgeb24f64">1.1. XYZ coordinates</a></li>
|
||||||
<li><a href="#org755fd74">1.2. Atomic basis set</a></li>
|
<li><a href="#orgc7e70bf">1.2. Atomic basis set</a></li>
|
||||||
<li><a href="#org7dd4714">1.3. Molecular orbitals</a></li>
|
<li><a href="#org34f9148">1.3. Molecular orbitals</a></li>
|
||||||
<li><a href="#org3ee5598">1.4. Electron coordinates</a></li>
|
<li><a href="#orgfc35b2e">1.4. Electron coordinates</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgbc41584">2. N2</a>
|
<li><a href="#org61dcb54">2. N2</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgb2d6932">2.1. XYZ coordinates</a></li>
|
<li><a href="#org29143a6">2.1. XYZ coordinates</a></li>
|
||||||
<li><a href="#org63ba5d2">2.2. Electron coordinates</a></li>
|
<li><a href="#org1fc205c">2.2. Electron coordinates</a></li>
|
||||||
<li><a href="#org8e94ef9">2.3. Jastrow related data</a></li>
|
<li><a href="#org11f8577">2.3. Jastrow related data</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org14ff19e" class="outline-2">
|
<div id="outline-container-orga056ba3" class="outline-2">
|
||||||
<h2 id="org14ff19e"><span class="section-number-2">1</span> CHBrClF</h2>
|
<h2 id="orga056ba3"><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-orgde5ca26" class="outline-3">
|
<div id="outline-container-orgeb24f64" class="outline-3">
|
||||||
<h3 id="orgde5ca26"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
<h3 id="orgeb24f64"><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-org755fd74" class="outline-3">
|
<div id="outline-container-orgc7e70bf" class="outline-3">
|
||||||
<h3 id="org755fd74"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
<h3 id="orgc7e70bf"><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-org7dd4714" class="outline-3">
|
<div id="outline-container-org34f9148" class="outline-3">
|
||||||
<h3 id="org7dd4714"><span class="section-number-3">1.3</span> Molecular orbitals</h3>
|
<h3 id="org34f9148"><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-org3ee5598" class="outline-3">
|
<div id="outline-container-orgfc35b2e" class="outline-3">
|
||||||
<h3 id="org3ee5598"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
<h3 id="orgfc35b2e"><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-orgbc41584" class="outline-2">
|
<div id="outline-container-org61dcb54" class="outline-2">
|
||||||
<h2 id="orgbc41584"><span class="section-number-2">2</span> N2</h2>
|
<h2 id="org61dcb54"><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-orgb2d6932" class="outline-3">
|
<div id="outline-container-org29143a6" class="outline-3">
|
||||||
<h3 id="orgb2d6932"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
|
<h3 id="org29143a6"><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-org63ba5d2" class="outline-3">
|
<div id="outline-container-org1fc205c" class="outline-3">
|
||||||
<h3 id="org63ba5d2"><span class="section-number-3">2.2</span> Electron coordinates</h3>
|
<h3 id="org1fc205c"><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-org8e94ef9" class="outline-3">
|
<div id="outline-container-org11f8577" class="outline-3">
|
||||||
<h3 id="org8e94ef9"><span class="section-number-3">2.3</span> Jastrow related data</h3>
|
<h3 id="org11f8577"><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-09-13 Wed 11:24</p>
|
<p class="date">Created: 2023-09-13 Wed 14:23</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-09-13 Wed 11:24 -->
|
<!-- 2023-09-13 Wed 14:23 -->
|
||||||
<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="#orgdb7eeeb">1. Local functions</a>
|
<li><a href="#org31f9265">1. Local functions</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgc69dc2a">1.1. Open file</a></li>
|
<li><a href="#org9a26cb8">1.1. Open file</a></li>
|
||||||
<li><a href="#orgd30f57c">1.2. Electron</a></li>
|
<li><a href="#orgc69ea32">1.2. Electron</a></li>
|
||||||
<li><a href="#org0a528c3">1.3. Nucleus</a>
|
<li><a href="#orga7c960c">1.3. Nucleus</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org432f0ff">1.3.1. Number of nuclei</a></li>
|
<li><a href="#orgcd57a79">1.3.1. Number of nuclei</a></li>
|
||||||
<li><a href="#orgde12564">1.3.2. Nuclear charges</a></li>
|
<li><a href="#orge22b623">1.3.2. Nuclear charges</a></li>
|
||||||
<li><a href="#org0017417">1.3.3. Nuclear coordinates</a></li>
|
<li><a href="#orgda8dd49">1.3.3. Nuclear coordinates</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#org5aede8c">1.4. Basis set and AOs</a>
|
<li><a href="#org7f1e6ae">1.4. Basis set and AOs</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgd0ed8a1">1.4.1. Basis set type</a></li>
|
<li><a href="#orgd4c4ca2">1.4.1. Basis set type</a></li>
|
||||||
<li><a href="#org61fd33b">1.4.2. Number of shells</a></li>
|
<li><a href="#org435438e">1.4.2. Number of shells</a></li>
|
||||||
<li><a href="#orgc006b7b">1.4.3. Number of primitives</a></li>
|
<li><a href="#orgf00c4f4">1.4.3. Number of primitives</a></li>
|
||||||
<li><a href="#org5c857be">1.4.4. Number of atomic orbitals</a></li>
|
<li><a href="#org5c1b2f3">1.4.4. Number of atomic orbitals</a></li>
|
||||||
<li><a href="#org0a9aece">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
<li><a href="#orgcd56f24">1.4.5. Nucleus<sub>index</sub> array</a></li>
|
||||||
<li><a href="#org77ed14a">1.4.6. Number of shells per nucleus</a></li>
|
<li><a href="#org276caa1">1.4.6. Number of shells per nucleus</a></li>
|
||||||
<li><a href="#org27b0447">1.4.7. Angular momentum</a></li>
|
<li><a href="#orgeafd0db">1.4.7. Angular momentum</a></li>
|
||||||
<li><a href="#orgc72f6fd">1.4.8. Number of primitives per shell</a></li>
|
<li><a href="#org1759a9d">1.4.8. Number of primitives per shell</a></li>
|
||||||
<li><a href="#org401282f">1.4.9. Indices of the primitives</a></li>
|
<li><a href="#orgd71c160">1.4.9. Indices of the primitives</a></li>
|
||||||
<li><a href="#org7e53aaf">1.4.10. Normalization of the shells</a></li>
|
<li><a href="#org4b19e56">1.4.10. Normalization of the shells</a></li>
|
||||||
<li><a href="#org31e4d7c">1.4.11. Exponents</a></li>
|
<li><a href="#org7ed9f70">1.4.11. Exponents</a></li>
|
||||||
<li><a href="#orgdf7d2f9">1.4.12. Coefficients</a></li>
|
<li><a href="#org383a4d9">1.4.12. Coefficients</a></li>
|
||||||
<li><a href="#orge04c016">1.4.13. Normalization of the primitivies</a></li>
|
<li><a href="#org5287b3c">1.4.13. Normalization of the primitivies</a></li>
|
||||||
<li><a href="#orgc576302">1.4.14. AO Normalization</a></li>
|
<li><a href="#org980f8f2">1.4.14. AO Normalization</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgb202e88">1.5. Molecular orbitals</a>
|
<li><a href="#org74f12d9">1.5. Molecular orbitals</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org4bef50f">1.5.1. Number of MOs</a></li>
|
<li><a href="#org0aac6cd">1.5.1. Number of MOs</a></li>
|
||||||
<li><a href="#org7cc0703">1.5.2. MO coefficients</a></li>
|
<li><a href="#orgc32a853">1.5.2. MO coefficients</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgbb06a5c">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
<li><a href="#org252d496">1.6. <span class="todo TODO">TODO</span> ECP</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#orgd621375">2. Read everything</a></li>
|
<li><a href="#org31c0524">2. Read everything</a></li>
|
||||||
<li><a href="#org7913238">3. Test</a>
|
<li><a href="#orgb50c91e">3. Test</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#orgfaa3c0f">3.0.1. Electrons</a></li>
|
<li><a href="#org84986e8">3.0.1. Electrons</a></li>
|
||||||
<li><a href="#org3c98e8c">3.0.2. Nuclei</a></li>
|
<li><a href="#org952126d">3.0.2. Nuclei</a></li>
|
||||||
<li><a href="#org17d1b0b">3.0.3. Atomic basis</a></li>
|
<li><a href="#org7853c29">3.0.3. Atomic basis</a></li>
|
||||||
<li><a href="#org9211729">3.0.4. MO Basis</a></li>
|
<li><a href="#org259a86f">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-orgdb7eeeb" class="outline-2">
|
<div id="outline-container-org31f9265" class="outline-2">
|
||||||
<h2 id="orgdb7eeeb"><span class="section-number-2">1</span> Local functions</h2>
|
<h2 id="org31f9265"><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-orgc69dc2a" class="outline-3">
|
<div id="outline-container-org9a26cb8" class="outline-3">
|
||||||
<h3 id="orgc69dc2a"><span class="section-number-3">1.1</span> Open file</h3>
|
<h3 id="org9a26cb8"><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-orgd30f57c" class="outline-3">
|
<div id="outline-container-orgc69ea32" class="outline-3">
|
||||||
<h3 id="orgd30f57c"><span class="section-number-3">1.2</span> Electron</h3>
|
<h3 id="orgc69ea32"><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-org0a528c3" class="outline-3">
|
<div id="outline-container-orga7c960c" class="outline-3">
|
||||||
<h3 id="org0a528c3"><span class="section-number-3">1.3</span> Nucleus</h3>
|
<h3 id="orga7c960c"><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-org432f0ff" class="outline-4">
|
<div id="outline-container-orgcd57a79" class="outline-4">
|
||||||
<h4 id="org432f0ff"><span class="section-number-4">1.3.1</span> Number of nuclei</h4>
|
<h4 id="orgcd57a79"><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-orgde12564" class="outline-4">
|
<div id="outline-container-orge22b623" class="outline-4">
|
||||||
<h4 id="orgde12564"><span class="section-number-4">1.3.2</span> Nuclear charges</h4>
|
<h4 id="orge22b623"><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-org0017417" class="outline-4">
|
<div id="outline-container-orgda8dd49" class="outline-4">
|
||||||
<h4 id="org0017417"><span class="section-number-4">1.3.3</span> Nuclear coordinates</h4>
|
<h4 id="orgda8dd49"><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-org5aede8c" class="outline-3">
|
<div id="outline-container-org7f1e6ae" class="outline-3">
|
||||||
<h3 id="org5aede8c"><span class="section-number-3">1.4</span> Basis set and AOs</h3>
|
<h3 id="org7f1e6ae"><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-orgd0ed8a1" class="outline-4">
|
<div id="outline-container-orgd4c4ca2" class="outline-4">
|
||||||
<h4 id="orgd0ed8a1"><span class="section-number-4">1.4.1</span> Basis set type</h4>
|
<h4 id="orgd4c4ca2"><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-org61fd33b" class="outline-4">
|
<div id="outline-container-org435438e" class="outline-4">
|
||||||
<h4 id="org61fd33b"><span class="section-number-4">1.4.2</span> Number of shells</h4>
|
<h4 id="org435438e"><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-orgc006b7b" class="outline-4">
|
<div id="outline-container-orgf00c4f4" class="outline-4">
|
||||||
<h4 id="orgc006b7b"><span class="section-number-4">1.4.3</span> Number of primitives</h4>
|
<h4 id="orgf00c4f4"><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-org5c857be" class="outline-4">
|
<div id="outline-container-org5c1b2f3" class="outline-4">
|
||||||
<h4 id="org5c857be"><span class="section-number-4">1.4.4</span> Number of atomic orbitals</h4>
|
<h4 id="org5c1b2f3"><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-org0a9aece" class="outline-4">
|
<div id="outline-container-orgcd56f24" class="outline-4">
|
||||||
<h4 id="org0a9aece"><span class="section-number-4">1.4.5</span> Nucleus<sub>index</sub> array</h4>
|
<h4 id="orgcd56f24"><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-org77ed14a" class="outline-4">
|
<div id="outline-container-org276caa1" class="outline-4">
|
||||||
<h4 id="org77ed14a"><span class="section-number-4">1.4.6</span> Number of shells per nucleus</h4>
|
<h4 id="org276caa1"><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-org27b0447" class="outline-4">
|
<div id="outline-container-orgeafd0db" class="outline-4">
|
||||||
<h4 id="org27b0447"><span class="section-number-4">1.4.7</span> Angular momentum</h4>
|
<h4 id="orgeafd0db"><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-orgc72f6fd" class="outline-4">
|
<div id="outline-container-org1759a9d" class="outline-4">
|
||||||
<h4 id="orgc72f6fd"><span class="section-number-4">1.4.8</span> Number of primitives per shell</h4>
|
<h4 id="org1759a9d"><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-org401282f" class="outline-4">
|
<div id="outline-container-orgd71c160" class="outline-4">
|
||||||
<h4 id="org401282f"><span class="section-number-4">1.4.9</span> Indices of the primitives</h4>
|
<h4 id="orgd71c160"><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-org7e53aaf" class="outline-4">
|
<div id="outline-container-org4b19e56" class="outline-4">
|
||||||
<h4 id="org7e53aaf"><span class="section-number-4">1.4.10</span> Normalization of the shells</h4>
|
<h4 id="org4b19e56"><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-org31e4d7c" class="outline-4">
|
<div id="outline-container-org7ed9f70" class="outline-4">
|
||||||
<h4 id="org31e4d7c"><span class="section-number-4">1.4.11</span> Exponents</h4>
|
<h4 id="org7ed9f70"><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-orgdf7d2f9" class="outline-4">
|
<div id="outline-container-org383a4d9" class="outline-4">
|
||||||
<h4 id="orgdf7d2f9"><span class="section-number-4">1.4.12</span> Coefficients</h4>
|
<h4 id="org383a4d9"><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-orge04c016" class="outline-4">
|
<div id="outline-container-org5287b3c" class="outline-4">
|
||||||
<h4 id="orge04c016"><span class="section-number-4">1.4.13</span> Normalization of the primitivies</h4>
|
<h4 id="org5287b3c"><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-orgc576302" class="outline-4">
|
<div id="outline-container-org980f8f2" class="outline-4">
|
||||||
<h4 id="orgc576302"><span class="section-number-4">1.4.14</span> AO Normalization</h4>
|
<h4 id="org980f8f2"><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-orgb202e88" class="outline-3">
|
<div id="outline-container-org74f12d9" class="outline-3">
|
||||||
<h3 id="orgb202e88"><span class="section-number-3">1.5</span> Molecular orbitals</h3>
|
<h3 id="org74f12d9"><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-org4bef50f" class="outline-4">
|
<div id="outline-container-org0aac6cd" class="outline-4">
|
||||||
<h4 id="org4bef50f"><span class="section-number-4">1.5.1</span> Number of MOs</h4>
|
<h4 id="org0aac6cd"><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-org7cc0703" class="outline-4">
|
<div id="outline-container-orgc32a853" class="outline-4">
|
||||||
<h4 id="org7cc0703"><span class="section-number-4">1.5.2</span> MO coefficients</h4>
|
<h4 id="orgc32a853"><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-orgbb06a5c" class="outline-3">
|
<div id="outline-container-org252d496" class="outline-3">
|
||||||
<h3 id="orgbb06a5c"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
<h3 id="org252d496"><span class="section-number-3">1.6</span> <span class="todo TODO">TODO</span> ECP</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="outline-container-orgd621375" class="outline-2">
|
<div id="outline-container-org31c0524" class="outline-2">
|
||||||
<h2 id="orgd621375"><span class="section-number-2">2</span> Read everything</h2>
|
<h2 id="org31c0524"><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-org7913238" class="outline-2">
|
<div id="outline-container-orgb50c91e" class="outline-2">
|
||||||
<h2 id="org7913238"><span class="section-number-2">3</span> Test</h2>
|
<h2 id="orgb50c91e"><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-orgfaa3c0f" class="outline-4">
|
<div id="outline-container-org84986e8" class="outline-4">
|
||||||
<h4 id="orgfaa3c0f"><span class="section-number-4">3.0.1</span> Electrons</h4>
|
<h4 id="org84986e8"><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-org3c98e8c" class="outline-4">
|
<div id="outline-container-org952126d" class="outline-4">
|
||||||
<h4 id="org3c98e8c"><span class="section-number-4">3.0.2</span> Nuclei</h4>
|
<h4 id="org952126d"><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-org17d1b0b" class="outline-4">
|
<div id="outline-container-org7853c29" class="outline-4">
|
||||||
<h4 id="org17d1b0b"><span class="section-number-4">3.0.3</span> Atomic basis</h4>
|
<h4 id="org7853c29"><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-org9211729" class="outline-4">
|
<div id="outline-container-org259a86f" class="outline-4">
|
||||||
<h4 id="org9211729"><span class="section-number-4">3.0.4</span> MO Basis</h4>
|
<h4 id="org259a86f"><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-09-13 Wed 11:24</p>
|
<p class="date">Created: 2023-09-13 Wed 14:23</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-09-13 Wed 11:24 -->
|
<!-- 2023-09-13 Wed 14:23 -->
|
||||||
<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="#org515ca06">1. Verificarlo probes</a>
|
<li><a href="#org59dc07e">1. Verificarlo probes</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#org8feff76">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
<li><a href="#orgf65eba0">1.1. Automatically initialize the <code>vfc_probe</code> object if <code>VFC_CI</code> is defined</a></li>
|
||||||
<li><a href="#org619416f">1.2. Standard probe, without check</a></li>
|
<li><a href="#org643cfa7">1.2. Standard probe, without check</a></li>
|
||||||
<li><a href="#orgdfa63e9">1.3. Probe with absolute check</a></li>
|
<li><a href="#org7aa2f66">1.3. Probe with absolute check</a></li>
|
||||||
<li><a href="#org27669d7">1.4. Probe with relative check</a></li>
|
<li><a href="#org270df71">1.4. Probe with relative check</a></li>
|
||||||
<li><a href="#org40ed2c1">1.5. Automatically delete and dump the vfc<sub>probe</sub> object if <code>VFC_CI</code> is defined</a></li>
|
<li><a href="#orga1e9757">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="#org07a4221">2. Fortran wrappers</a></li>
|
<li><a href="#orgd98c4eb">2. Fortran wrappers</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="outline-container-org515ca06" class="outline-2">
|
<div id="outline-container-org59dc07e" class="outline-2">
|
||||||
<h2 id="org515ca06"><span class="section-number-2">1</span> Verificarlo probes</h2>
|
<h2 id="org59dc07e"><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-org8feff76" class="outline-3">
|
<div id="outline-container-orgf65eba0" class="outline-3">
|
||||||
<h3 id="org8feff76"><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="orgf65eba0"><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-org619416f" class="outline-3">
|
<div id="outline-container-org643cfa7" class="outline-3">
|
||||||
<h3 id="org619416f"><span class="section-number-3">1.2</span> Standard probe, without check</h3>
|
<h3 id="org643cfa7"><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-orgdfa63e9" class="outline-3">
|
<div id="outline-container-org7aa2f66" class="outline-3">
|
||||||
<h3 id="orgdfa63e9"><span class="section-number-3">1.3</span> Probe with absolute check</h3>
|
<h3 id="org7aa2f66"><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-org27669d7" class="outline-3">
|
<div id="outline-container-org270df71" class="outline-3">
|
||||||
<h3 id="org27669d7"><span class="section-number-3">1.4</span> Probe with relative check</h3>
|
<h3 id="org270df71"><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-org40ed2c1" class="outline-3">
|
<div id="outline-container-orga1e9757" class="outline-3">
|
||||||
<h3 id="org40ed2c1"><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="orga1e9757"><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-org07a4221" class="outline-2">
|
<div id="outline-container-orgd98c4eb" class="outline-2">
|
||||||
<h2 id="org07a4221"><span class="section-number-2">2</span> Fortran wrappers</h2>
|
<h2 id="orgd98c4eb"><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-09-13 Wed 11:24</p>
|
<p class="date">Created: 2023-09-13 Wed 14:23</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