mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2025-01-08 20:33:40 +01:00
Deploying to gh-pages from @ TREX-CoE/qmckl@bf11388be8 🚀
This commit is contained in:
parent
39f317922d
commit
a12d80753e
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-05-12 Wed 21:41 -->
|
||||
<!-- 2021-05-12 Wed 21:42 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>QMCkl source code documentation</title>
|
||||
@ -349,7 +349,7 @@ and bug reports should be submitted at
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-05-12 Wed 21:41</p>
|
||||
<p class="date">Created: 2021-05-12 Wed 21:42</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
102
qmckl.html
102
qmckl.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-05-12 Wed 21:41 -->
|
||||
<!-- 2021-05-12 Wed 21:42 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Introduction</title>
|
||||
@ -333,30 +333,30 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org1ac1d12">1. Using QMCkl</a></li>
|
||||
<li><a href="#orgb6ed4af">2. Developing in QMCkl</a>
|
||||
<li><a href="#org41f4b9b">1. Using QMCkl</a></li>
|
||||
<li><a href="#org39c33ee">2. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#org1cad240">2.1. Literate programming</a></li>
|
||||
<li><a href="#orgeac7feb">2.2. Source code editing</a></li>
|
||||
<li><a href="#org3614e3f">2.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org0419251">2.4. Coding rules</a></li>
|
||||
<li><a href="#org5358fef">2.5. Design of the library</a></li>
|
||||
<li><a href="#orga302bbc">2.6. Naming conventions</a></li>
|
||||
<li><a href="#org4174d13">2.7. Application programming interface</a></li>
|
||||
<li><a href="#orgabf94d1">2.8. Global state</a></li>
|
||||
<li><a href="#org71243fa">2.9. Headers</a></li>
|
||||
<li><a href="#org4ad050c">2.10. Low-level functions</a></li>
|
||||
<li><a href="#org9f7f4db">2.11. High-level functions</a></li>
|
||||
<li><a href="#org3460c07">2.12. Numerical precision</a></li>
|
||||
<li><a href="#orge3f3b2b">2.13. Algorithms</a></li>
|
||||
<li><a href="#org001763f">2.1. Literate programming</a></li>
|
||||
<li><a href="#orgccd1399">2.2. Source code editing</a></li>
|
||||
<li><a href="#orga07dadb">2.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org8c687aa">2.4. Coding rules</a></li>
|
||||
<li><a href="#orgd052999">2.5. Design of the library</a></li>
|
||||
<li><a href="#orge495eaa">2.6. Naming conventions</a></li>
|
||||
<li><a href="#org2294389">2.7. Application programming interface</a></li>
|
||||
<li><a href="#org3d04162">2.8. Global state</a></li>
|
||||
<li><a href="#org0126c4e">2.9. Headers</a></li>
|
||||
<li><a href="#org8ccbfe4">2.10. Low-level functions</a></li>
|
||||
<li><a href="#org70f7854">2.11. High-level functions</a></li>
|
||||
<li><a href="#orgd0cc29a">2.12. Numerical precision</a></li>
|
||||
<li><a href="#org3242561">2.13. Algorithms</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1ac1d12" class="outline-2">
|
||||
<h2 id="org1ac1d12"><span class="section-number-2">1</span> Using QMCkl</h2>
|
||||
<div id="outline-container-org41f4b9b" class="outline-2">
|
||||
<h2 id="org41f4b9b"><span class="section-number-2">1</span> Using QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The <code>qmckl.h</code> header file installed in the <code>${prefix}/include</code> directory
|
||||
@ -385,12 +385,12 @@ Both files are located in the <code>include/</code> directory.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb6ed4af" class="outline-2">
|
||||
<h2 id="orgb6ed4af"><span class="section-number-2">2</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-org39c33ee" class="outline-2">
|
||||
<h2 id="org39c33ee"><span class="section-number-2">2</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org1cad240" class="outline-3">
|
||||
<h3 id="org1cad240"><span class="section-number-3">2.1</span> Literate programming</h3>
|
||||
<div id="outline-container-org001763f" class="outline-3">
|
||||
<h3 id="org001763f"><span class="section-number-3">2.1</span> Literate programming</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
In a traditional source code, most of the lines of source files of a program
|
||||
@ -435,8 +435,8 @@ interactively, in the same spirit as Jupyter notebooks.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgeac7feb" class="outline-3">
|
||||
<h3 id="orgeac7feb"><span class="section-number-3">2.2</span> Source code editing</h3>
|
||||
<div id="outline-container-orgccd1399" class="outline-3">
|
||||
<h3 id="orgccd1399"><span class="section-number-3">2.2</span> Source code editing</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
For a tutorial on literate programming with org-mode, follow <a href="http://www.howardism.org/Technical/Emacs/literate-programming-tutorial.html">this link</a>.
|
||||
@ -467,8 +467,8 @@ org-mode.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3614e3f" class="outline-3">
|
||||
<h3 id="org3614e3f"><span class="section-number-3">2.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-orga07dadb" class="outline-3">
|
||||
<h3 id="orga07dadb"><span class="section-number-3">2.3</span> Choice of the programming language</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
Most of the codes of the <a href="https://trex-coe.eu">TREX CoE</a> are written in Fortran with some scripts in
|
||||
@ -516,8 +516,8 @@ For more guidelines on using Fortran to generate a C interface, see
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0419251" class="outline-3">
|
||||
<h3 id="org0419251"><span class="section-number-3">2.4</span> Coding rules</h3>
|
||||
<div id="outline-container-org8c687aa" class="outline-3">
|
||||
<h3 id="org8c687aa"><span class="section-number-3">2.4</span> Coding rules</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
The authors should follow the recommendations of the C99
|
||||
@ -535,8 +535,8 @@ Compliance can be checked with <code>cppcheck</code> as:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5358fef" class="outline-3">
|
||||
<h3 id="org5358fef"><span class="section-number-3">2.5</span> Design of the library</h3>
|
||||
<div id="outline-container-orgd052999" class="outline-3">
|
||||
<h3 id="orgd052999"><span class="section-number-3">2.5</span> Design of the library</h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
<p>
|
||||
The proposed API should allow the library to: deal with memory transfers
|
||||
@ -547,8 +547,8 @@ functions (see below).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga302bbc" class="outline-3">
|
||||
<h3 id="orga302bbc"><span class="section-number-3">2.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-orge495eaa" class="outline-3">
|
||||
<h3 id="orge495eaa"><span class="section-number-3">2.6</span> Naming conventions</h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
To avoid namespace collisions, we use <code>qmckl_</code> as a prefix for all exported
|
||||
@ -573,8 +573,8 @@ form is allowed.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4174d13" class="outline-3">
|
||||
<h3 id="org4174d13"><span class="section-number-3">2.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-org2294389" class="outline-3">
|
||||
<h3 id="org2294389"><span class="section-number-3">2.7</span> Application programming interface</h3>
|
||||
<div class="outline-text-3" id="text-2-7">
|
||||
<p>
|
||||
In the C language, the number of bits used by the integer types can change
|
||||
@ -606,15 +606,15 @@ bindings in other languages in other repositories.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgabf94d1" class="outline-3">
|
||||
<h3 id="orgabf94d1"><span class="section-number-3">2.8</span> Global state</h3>
|
||||
<div id="outline-container-org3d04162" class="outline-3">
|
||||
<h3 id="org3d04162"><span class="section-number-3">2.8</span> Global state</h3>
|
||||
<div class="outline-text-3" id="text-2-8">
|
||||
<p>
|
||||
Global variables should be avoided in the library, because it is
|
||||
possible that one single program needs to use multiple instances
|
||||
of the library. To solve this problem we propose to use a pointer
|
||||
to a <a href="./qmckl_context.html"><code>context</code></a> variable, built by the library with the
|
||||
<code>qmckl_context_create</code> function. The <a id="orgeccdca9">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="org5fdacf1">=context=</a> contains the global
|
||||
state of the library, and is used as the first argument of many
|
||||
QMCkl functions.
|
||||
</p>
|
||||
@ -628,8 +628,8 @@ the state is done by setters and getters, prefixed by
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org71243fa" class="outline-3">
|
||||
<h3 id="org71243fa"><span class="section-number-3">2.9</span> Headers</h3>
|
||||
<div id="outline-container-org0126c4e" class="outline-3">
|
||||
<h3 id="org0126c4e"><span class="section-number-3">2.9</span> Headers</h3>
|
||||
<div class="outline-text-3" id="text-2-9">
|
||||
<p>
|
||||
A single <code>qmckl.h</code> header to be distributed by the library
|
||||
@ -717,8 +717,8 @@ and the types definitions should be written in the <code>*_f_type.f90</code> fil
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4ad050c" class="outline-3">
|
||||
<h3 id="org4ad050c"><span class="section-number-3">2.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-org8ccbfe4" class="outline-3">
|
||||
<h3 id="org8ccbfe4"><span class="section-number-3">2.10</span> Low-level functions</h3>
|
||||
<div class="outline-text-3" id="text-2-10">
|
||||
<p>
|
||||
Low-level functions are very simple functions which are leaves of
|
||||
@ -727,14 +727,14 @@ the function call tree (they don't call any other QMCkl function).
|
||||
|
||||
<p>
|
||||
These functions are <i>pure</i>, and unaware of the QMCkl
|
||||
<a href="#orgeccdca9"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#org5fdacf1"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
if they need temporary memory it should be provided in input.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9f7f4db" class="outline-3">
|
||||
<h3 id="org9f7f4db"><span class="section-number-3">2.11</span> High-level functions</h3>
|
||||
<div id="outline-container-org70f7854" class="outline-3">
|
||||
<h3 id="org70f7854"><span class="section-number-3">2.11</span> High-level functions</h3>
|
||||
<div class="outline-text-3" id="text-2-11">
|
||||
<p>
|
||||
High-level functions are at the top of the function call tree.
|
||||
@ -747,27 +747,27 @@ temporary storage, to simplify the use of accelerators.
|
||||
<p>
|
||||
The high-level functions should be pure, unless the introduction
|
||||
of non-purity is justified. All the side effects should be made in
|
||||
the <a href="#orgeccdca9"><code>context</code></a> variable.
|
||||
the <a href="#org5fdacf1"><code>context</code></a> variable.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3460c07" class="outline-3">
|
||||
<h3 id="org3460c07"><span class="section-number-3">2.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-orgd0cc29a" class="outline-3">
|
||||
<h3 id="orgd0cc29a"><span class="section-number-3">2.12</span> Numerical precision</h3>
|
||||
<div class="outline-text-3" id="text-2-12">
|
||||
<p>
|
||||
The number of bits of precision required for a function should be
|
||||
given as an input of low-level computational functions. This input
|
||||
will be used to define the values of the different thresholds that
|
||||
might be used to avoid computing unnecessary noise. High-level
|
||||
functions will use the precision specified in the <a href="#orgeccdca9"><code>context</code></a>
|
||||
functions will use the precision specified in the <a href="#org5fdacf1"><code>context</code></a>
|
||||
variable.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge3f3b2b" class="outline-3">
|
||||
<h3 id="orge3f3b2b"><span class="section-number-3">2.13</span> Algorithms</h3>
|
||||
<div id="outline-container-org3242561" class="outline-3">
|
||||
<h3 id="org3242561"><span class="section-number-3">2.13</span> Algorithms</h3>
|
||||
<div class="outline-text-3" id="text-2-13">
|
||||
<p>
|
||||
Reducing the scaling of an algorithm usually implies also reducing
|
||||
@ -783,7 +783,7 @@ implemented adapted to different problem sizes.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-05-12 Wed 21:41</p>
|
||||
<p class="date">Created: 2021-05-12 Wed 21:42</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
158
qmckl_ao.html
158
qmckl_ao.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-05-12 Wed 21:41 -->
|
||||
<!-- 2021-05-12 Wed 21:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Atomic Orbitals</title>
|
||||
@ -333,52 +333,52 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgc6add64">1. Context</a>
|
||||
<li><a href="#orgd6f772b">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org0c1a883">1.1. Data structure</a></li>
|
||||
<li><a href="#org877dd45">1.2. Access functions</a></li>
|
||||
<li><a href="#org2669aaf">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org689c464">1.4. <span class="todo TODO">TODO</span> Fortran interfaces</a></li>
|
||||
<li><a href="#orgc2669b0">1.1. Data structure</a></li>
|
||||
<li><a href="#org764632b">1.2. Access functions</a></li>
|
||||
<li><a href="#orgd9e27d0">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org0237696">1.4. <span class="todo TODO">TODO</span> Fortran interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org035af07">2. Polynomial part</a>
|
||||
<li><a href="#org553cdee">2. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#orgcacfc89">2.1. Powers of \(x-X_i\)</a>
|
||||
<li><a href="#orgc7cbc83">2.1. Powers of \(x-X_i\)</a>
|
||||
<ul>
|
||||
<li><a href="#org7387595">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orgb178b88">2.1.2. C Header</a></li>
|
||||
<li><a href="#orge754d20">2.1.3. Source</a></li>
|
||||
<li><a href="#orgbca817e">2.1.4. C interface</a></li>
|
||||
<li><a href="#org6edcc00">2.1.5. Fortran interface</a></li>
|
||||
<li><a href="#orgb214a7c">2.1.6. Test</a></li>
|
||||
<li><a href="#orgb4f731a">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orgd3bdc21">2.1.2. C Header</a></li>
|
||||
<li><a href="#orgdfc309c">2.1.3. Source</a></li>
|
||||
<li><a href="#orgc00aeed">2.1.4. C interface</a></li>
|
||||
<li><a href="#orgc8a34d6">2.1.5. Fortran interface</a></li>
|
||||
<li><a href="#org4b36652">2.1.6. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org92edc76">2.2. Value, Gradient and Laplacian of a polynomial</a>
|
||||
<li><a href="#orgf3ccea9">2.2. Value, Gradient and Laplacian of a polynomial</a>
|
||||
<ul>
|
||||
<li><a href="#org0c8284b">2.2.1. Requirements</a></li>
|
||||
<li><a href="#orgdca0ce1">2.2.2. C Header</a></li>
|
||||
<li><a href="#org70c3a2e">2.2.3. Source</a></li>
|
||||
<li><a href="#orgc499ed1">2.2.4. C interface</a></li>
|
||||
<li><a href="#org0815831">2.2.5. Fortran interface</a></li>
|
||||
<li><a href="#org4d9b3b4">2.2.6. Test</a></li>
|
||||
<li><a href="#orgff2c3d0">2.2.1. Requirements</a></li>
|
||||
<li><a href="#org860f5c1">2.2.2. C Header</a></li>
|
||||
<li><a href="#orgebb82b1">2.2.3. Source</a></li>
|
||||
<li><a href="#org14cfb68">2.2.4. C interface</a></li>
|
||||
<li><a href="#org60dd602">2.2.5. Fortran interface</a></li>
|
||||
<li><a href="#orgef1d928">2.2.6. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd60e4e3">3. Radial part</a>
|
||||
<li><a href="#orgc884add">3. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#org6019f8f">3.1. Gaussian basis functions</a></li>
|
||||
<li><a href="#org5d3d456">3.2. <span class="todo TODO">TODO</span> Slater basis functions</a></li>
|
||||
<li><a href="#org173036a">3.3. <span class="todo TODO">TODO</span> Radial functions on a grid</a></li>
|
||||
<li><a href="#orge897bc7">3.1. Gaussian basis functions</a></li>
|
||||
<li><a href="#orgd2fd339">3.2. <span class="todo TODO">TODO</span> Slater basis functions</a></li>
|
||||
<li><a href="#org1c771c6">3.3. <span class="todo TODO">TODO</span> Radial functions on a grid</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org35f88b4">4. Combining radial and polynomial parts</a></li>
|
||||
<li><a href="#org08e00a7">4. Combining radial and polynomial parts</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc6add64" class="outline-2">
|
||||
<h2 id="orgc6add64"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgd6f772b" class="outline-2">
|
||||
<h2 id="orgd6f772b"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following arrays are stored in the context:
|
||||
@ -503,8 +503,8 @@ coefficient = [ 0.006068, 0.045308, 0.202822, 0.503903, 0.383421,
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0c1a883" class="outline-3">
|
||||
<h3 id="org0c1a883"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgc2669b0" class="outline-3">
|
||||
<h3 id="orgc2669b0"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_ao_basis_struct</span> {
|
||||
@ -533,8 +533,8 @@ struct is then initialized and <code>provided == true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org877dd45" class="outline-3">
|
||||
<h3 id="org877dd45"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org764632b" class="outline-3">
|
||||
<h3 id="org764632b"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
When all the data for the AOs have been provided, the following
|
||||
@ -548,8 +548,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2669aaf" class="outline-3">
|
||||
<h3 id="org2669aaf"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgd9e27d0" class="outline-3">
|
||||
<h3 id="orgd9e27d0"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To set the basis set, all the following functions need to be
|
||||
@ -572,17 +572,17 @@ called. When
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org689c464" class="outline-3">
|
||||
<h3 id="org689c464"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Fortran interfaces</h3>
|
||||
<div id="outline-container-org0237696" class="outline-3">
|
||||
<h3 id="org0237696"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Fortran interfaces</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org035af07" class="outline-2">
|
||||
<h2 id="org035af07"><span class="section-number-2">2</span> Polynomial part</h2>
|
||||
<div id="outline-container-org553cdee" class="outline-2">
|
||||
<h2 id="org553cdee"><span class="section-number-2">2</span> Polynomial part</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgcacfc89" class="outline-3">
|
||||
<h3 id="orgcacfc89"><span class="section-number-3">2.1</span> Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-orgc7cbc83" class="outline-3">
|
||||
<h3 id="orgc7cbc83"><span class="section-number-3">2.1</span> Powers of \(x-X_i\)</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
The <code>qmckl_ao_power</code> function computes all the powers of the <code>n</code>
|
||||
@ -594,7 +594,7 @@ the \(n\) points:
|
||||
\[ P_{ik} = X_i^k \]
|
||||
</p>
|
||||
|
||||
<table id="orga9dcf73" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4dd537c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -652,8 +652,8 @@ the \(n\) points:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7387595" class="outline-4">
|
||||
<h4 id="org7387595"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgb4f731a" class="outline-4">
|
||||
<h4 id="orgb4f731a"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -666,8 +666,8 @@ the \(n\) points:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb178b88" class="outline-4">
|
||||
<h4 id="orgb178b88"><span class="section-number-4">2.1.2</span> C Header</h4>
|
||||
<div id="outline-container-orgd3bdc21" class="outline-4">
|
||||
<h4 id="orgd3bdc21"><span class="section-number-4">2.1.2</span> C Header</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_ao_power</span> (
|
||||
@ -682,8 +682,8 @@ the \(n\) points:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge754d20" class="outline-4">
|
||||
<h4 id="orge754d20"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgdfc309c" class="outline-4">
|
||||
<h4 id="orgdfc309c"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer </span><span style="color: #a020f0;">function</span><span style="color: #a0522d;"> </span><span style="color: #0000ff;">qmckl_ao_power_f</span><span style="color: #000000; background-color: #ffffff;">(context, n, X, LMAX, P, ldp) result(info)</span>
|
||||
@ -734,15 +734,15 @@ the \(n\) points:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbca817e" class="outline-4">
|
||||
<h4 id="orgbca817e"><span class="section-number-4">2.1.4</span> C interface</h4>
|
||||
<div id="outline-container-orgc00aeed" class="outline-4">
|
||||
<h4 id="orgc00aeed"><span class="section-number-4">2.1.4</span> C interface</h4>
|
||||
</div>
|
||||
<div id="outline-container-org6edcc00" class="outline-4">
|
||||
<h4 id="org6edcc00"><span class="section-number-4">2.1.5</span> Fortran interface</h4>
|
||||
<div id="outline-container-orgc8a34d6" class="outline-4">
|
||||
<h4 id="orgc8a34d6"><span class="section-number-4">2.1.5</span> Fortran interface</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb214a7c" class="outline-4">
|
||||
<h4 id="orgb214a7c"><span class="section-number-4">2.1.6</span> Test</h4>
|
||||
<div id="outline-container-org4b36652" class="outline-4">
|
||||
<h4 id="org4b36652"><span class="section-number-4">2.1.6</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-1-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span>(<span style="color: #008b8b;">c_int32_t</span>) <span style="color: #a020f0;">function</span> <span style="color: #0000ff;">test_qmckl_ao_power</span>(context) <span style="color: #a020f0;">bind</span>(C)
|
||||
@ -793,8 +793,8 @@ the \(n\) points:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org92edc76" class="outline-3">
|
||||
<h3 id="org92edc76"><span class="section-number-3">2.2</span> Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-orgf3ccea9" class="outline-3">
|
||||
<h3 id="orgf3ccea9"><span class="section-number-3">2.2</span> Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
A polynomial is centered on a nucleus \(\mathbf{R}_i\)
|
||||
@ -839,7 +839,7 @@ Laplacians at a given point in space, of all polynomials with an
|
||||
angular momentum up to <code>lmax</code>.
|
||||
</p>
|
||||
|
||||
<table id="org768c370" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org7cd0b81" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -918,8 +918,8 @@ angular momentum up to <code>lmax</code>.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0c8284b" class="outline-4">
|
||||
<h4 id="org0c8284b"><span class="section-number-4">2.2.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgff2c3d0" class="outline-4">
|
||||
<h4 id="orgff2c3d0"><span class="section-number-4">2.2.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -944,8 +944,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdca0ce1" class="outline-4">
|
||||
<h4 id="orgdca0ce1"><span class="section-number-4">2.2.2</span> C Header</h4>
|
||||
<div id="outline-container-org860f5c1" class="outline-4">
|
||||
<h4 id="org860f5c1"><span class="section-number-4">2.2.2</span> C Header</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_ao_polynomial_vgl</span> (
|
||||
@ -963,8 +963,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org70c3a2e" class="outline-4">
|
||||
<h4 id="org70c3a2e"><span class="section-number-4">2.2.3</span> Source</h4>
|
||||
<div id="outline-container-orgebb82b1" class="outline-4">
|
||||
<h4 id="orgebb82b1"><span class="section-number-4">2.2.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer </span><span style="color: #a020f0;">function</span><span style="color: #a0522d;"> </span><span style="color: #0000ff;">qmckl_ao_polynomial_vgl_f</span><span style="color: #000000; background-color: #ffffff;">(context, X, R, lmax, n, L, ldl, VGL, ldv) result(info)</span>
|
||||
@ -1099,16 +1099,16 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc499ed1" class="outline-4">
|
||||
<h4 id="orgc499ed1"><span class="section-number-4">2.2.4</span> C interface</h4>
|
||||
<div id="outline-container-org14cfb68" class="outline-4">
|
||||
<h4 id="org14cfb68"><span class="section-number-4">2.2.4</span> C interface</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0815831" class="outline-4">
|
||||
<h4 id="org0815831"><span class="section-number-4">2.2.5</span> Fortran interface</h4>
|
||||
<div id="outline-container-org60dd602" class="outline-4">
|
||||
<h4 id="org60dd602"><span class="section-number-4">2.2.5</span> Fortran interface</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4d9b3b4" class="outline-4">
|
||||
<h4 id="org4d9b3b4"><span class="section-number-4">2.2.6</span> Test</h4>
|
||||
<div id="outline-container-orgef1d928" class="outline-4">
|
||||
<h4 id="orgef1d928"><span class="section-number-4">2.2.6</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-2-6">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span>(<span style="color: #008b8b;">c_int32_t</span>) <span style="color: #a020f0;">function</span> <span style="color: #0000ff;">test_qmckl_ao_polynomial_vgl</span>(context) <span style="color: #a020f0;">bind</span>(C)
|
||||
@ -1213,12 +1213,12 @@ assert(0 == test_qmckl_ao_polynomial_vgl(context));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd60e4e3" class="outline-2">
|
||||
<h2 id="orgd60e4e3"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div id="outline-container-orgc884add" class="outline-2">
|
||||
<h2 id="orgc884add"><span class="section-number-2">3</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org6019f8f" class="outline-3">
|
||||
<h3 id="org6019f8f"><span class="section-number-3">3.1</span> Gaussian basis functions</h3>
|
||||
<div id="outline-container-orge897bc7" class="outline-3">
|
||||
<h3 id="orge897bc7"><span class="section-number-3">3.1</span> Gaussian basis functions</h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
<code>qmckl_ao_gaussian_vgl</code> computes the values, gradients and
|
||||
@ -1450,21 +1450,21 @@ Requirements
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5d3d456" class="outline-3">
|
||||
<h3 id="org5d3d456"><span class="section-number-3">3.2</span> <span class="todo TODO">TODO</span> Slater basis functions</h3>
|
||||
<div id="outline-container-orgd2fd339" class="outline-3">
|
||||
<h3 id="orgd2fd339"><span class="section-number-3">3.2</span> <span class="todo TODO">TODO</span> Slater basis functions</h3>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org173036a" class="outline-3">
|
||||
<h3 id="org173036a"><span class="section-number-3">3.3</span> <span class="todo TODO">TODO</span> Radial functions on a grid</h3>
|
||||
<div id="outline-container-org1c771c6" class="outline-3">
|
||||
<h3 id="org1c771c6"><span class="section-number-3">3.3</span> <span class="todo TODO">TODO</span> Radial functions on a grid</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org35f88b4" class="outline-2">
|
||||
<h2 id="org35f88b4"><span class="section-number-2">4</span> Combining radial and polynomial parts</h2>
|
||||
<div id="outline-container-org08e00a7" class="outline-2">
|
||||
<h2 id="org08e00a7"><span class="section-number-2">4</span> Combining radial and polynomial parts</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-05-12 Wed 21:41</p>
|
||||
<p class="date">Created: 2021-05-12 Wed 21:43</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-05-12 Wed 21:41 -->
|
||||
<!-- 2021-05-12 Wed 21:42 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Context</title>
|
||||
@ -311,21 +311,21 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org522d50a">1. Context handling</a>
|
||||
<li><a href="#org5e82fab">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#orgee55f62">1.1. Data structure</a></li>
|
||||
<li><a href="#orgbec303f">1.2. Creation</a></li>
|
||||
<li><a href="#org470d809">1.3. Locking</a></li>
|
||||
<li><a href="#orgd299d49">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#orga502243">1.5. Destroy</a></li>
|
||||
<li><a href="#orgb1f3c35">1.1. Data structure</a></li>
|
||||
<li><a href="#org9ee6217">1.2. Creation</a></li>
|
||||
<li><a href="#orgeb277b9">1.3. Locking</a></li>
|
||||
<li><a href="#org0587ce7">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org2ab4468">1.5. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org522d50a" class="outline-2">
|
||||
<h2 id="org522d50a"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-org5e82fab" class="outline-2">
|
||||
<h2 id="org5e82fab"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The context variable is a handle for the state of the library,
|
||||
@ -338,7 +338,7 @@ A value of <code>QMCKL_NULL_CONTEXT</code> for the context is equivalent to a
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c" id="orge084127"><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="orgdfb2cea"><span style="color: #a020f0;">typedef</span> <span style="color: #228b22;">int64_t</span> <span style="color: #228b22;">qmckl_context</span> ;
|
||||
<span style="color: #483d8b;">#define</span> <span style="color: #a0522d;">QMCKL_NULL_CONTEXT</span> (qmckl_context) 0
|
||||
</pre>
|
||||
</div>
|
||||
@ -356,8 +356,8 @@ and <code>ctx</code> is a <code>qmckl_context_struct*</code> pointer.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgee55f62" class="outline-3">
|
||||
<h3 id="orgee55f62"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgb1f3c35" class="outline-3">
|
||||
<h3 id="orgb1f3c35"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
The context keeps a ``date'' that allows to check which data needs
|
||||
@ -367,7 +367,7 @@ coordinates are updated.
|
||||
|
||||
<p>
|
||||
When a new element is added to the context, the functions
|
||||
<a href="#orgbec303f">qmckl<sub>context</sub><sub>create</sub></a>, <a href="#orga502243">qmckl<sub>context</sub><sub>destroy</sub></a> and <a href="#orgd299d49">qmckl<sub>context</sub><sub>copy</sub></a>
|
||||
<a href="#org9ee6217">qmckl<sub>context</sub><sub>create</sub></a>, <a href="#org2ab4468">qmckl<sub>context</sub><sub>destroy</sub></a> and <a href="#org0587ce7">qmckl<sub>context</sub><sub>copy</sub></a>
|
||||
should be updated inorder to make deep copies.
|
||||
</p>
|
||||
|
||||
@ -416,8 +416,8 @@ if the context is valid, <code>QMCKL_NULL_CONTEXT</code> otherwise.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbec303f" class="outline-3">
|
||||
<h3 id="orgbec303f"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-org9ee6217" class="outline-3">
|
||||
<h3 id="org9ee6217"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
@ -491,8 +491,8 @@ To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org470d809" class="outline-3">
|
||||
<h3 id="org470d809"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-orgeb277b9" class="outline-3">
|
||||
<h3 id="orgeb277b9"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
For thread safety, the context may be locked/unlocked. The lock is
|
||||
@ -537,8 +537,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd299d49" class="outline-3">
|
||||
<h3 id="orgd299d49"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div id="outline-container-org0587ce7" class="outline-3">
|
||||
<h3 id="org0587ce7"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
<code>qmckl_context_copy</code> makes a deep copy of a context. It returns
|
||||
@ -586,8 +586,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orga502243" class="outline-3">
|
||||
<h3 id="orga502243"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-org2ab4468" class="outline-3">
|
||||
<h3 id="org2ab4468"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
The context is destroyed with <code>qmckl_context_destroy</code>, leaving the ancestors untouched.
|
||||
@ -641,7 +641,7 @@ It frees the context, and returns the previous context.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-05-12 Wed 21:41</p>
|
||||
<p class="date">Created: 2021-05-12 Wed 21:42</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-05-12 Wed 21:41 -->
|
||||
<!-- 2021-05-12 Wed 21:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Inter-particle distances</title>
|
||||
@ -333,26 +333,26 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org5f6ff0e">1. Squared distance</a>
|
||||
<li><a href="#org0e4eb45">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#org1a6b7f3">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#org7331e08">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#org5f8338b">1.1.1. Requirements</a></li>
|
||||
<li><a href="#org88869dc">1.1.2. C header</a></li>
|
||||
<li><a href="#org1c09acb">1.1.3. Source</a></li>
|
||||
<li><a href="#orge46daab">1.1.4. Performance</a></li>
|
||||
<li><a href="#org3c42cc3">1.1.1. Requirements</a></li>
|
||||
<li><a href="#orgad388d1">1.1.2. C header</a></li>
|
||||
<li><a href="#org3f4f541">1.1.3. Source</a></li>
|
||||
<li><a href="#org1786fb3">1.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc6f7886">2. Distance</a>
|
||||
<li><a href="#org0f4c891">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org32db59f">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#org6099118">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#org3162765">2.1.1. Requirements</a></li>
|
||||
<li><a href="#orgf909c56">2.1.2. C header</a></li>
|
||||
<li><a href="#org2781ea1">2.1.3. Source</a></li>
|
||||
<li><a href="#org7f575f2">2.1.4. Performance</a></li>
|
||||
<li><a href="#org9f8861c">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org668b29c">2.1.2. C header</a></li>
|
||||
<li><a href="#org4633aa6">2.1.3. Source</a></li>
|
||||
<li><a href="#org8df3afe">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -361,12 +361,12 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5f6ff0e" class="outline-2">
|
||||
<h2 id="org5f6ff0e"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-org0e4eb45" class="outline-2">
|
||||
<h2 id="org0e4eb45"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org1a6b7f3" class="outline-3">
|
||||
<h3 id="org1a6b7f3"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-org7331e08" class="outline-3">
|
||||
<h3 id="org7331e08"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
<code>qmckl_distance_sq</code> computes the matrix of the squared distances
|
||||
@ -379,7 +379,7 @@ between all pairs of points in two sets, one point within each set:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="org9318201" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd72000e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -472,8 +472,8 @@ between all pairs of points in two sets, one point within each set:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5f8338b" class="outline-4">
|
||||
<h4 id="org5f8338b"><span class="section-number-4">1.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org3c42cc3" class="outline-4">
|
||||
<h4 id="org3c42cc3"><span class="section-number-4">1.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-1-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -491,8 +491,8 @@ between all pairs of points in two sets, one point within each set:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org88869dc" class="outline-4">
|
||||
<h4 id="org88869dc"><span class="section-number-4">1.1.2</span> C header</h4>
|
||||
<div id="outline-container-orgad388d1" class="outline-4">
|
||||
<h4 id="orgad388d1"><span class="section-number-4">1.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-1-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance</span> (
|
||||
@ -512,8 +512,8 @@ between all pairs of points in two sets, one point within each set:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1c09acb" class="outline-4">
|
||||
<h4 id="org1c09acb"><span class="section-number-4">1.1.3</span> Source</h4>
|
||||
<div id="outline-container-org3f4f541" class="outline-4">
|
||||
<h4 id="org3f4f541"><span class="section-number-4">1.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-1-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_sq_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
||||
@ -648,8 +648,8 @@ between all pairs of points in two sets, one point within each set:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge46daab" class="outline-4">
|
||||
<h4 id="orge46daab"><span class="section-number-4">1.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org1786fb3" class="outline-4">
|
||||
<h4 id="org1786fb3"><span class="section-number-4">1.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-1-1-4">
|
||||
<p>
|
||||
This function might be more efficient when <code>A</code> and <code>B</code> are
|
||||
@ -659,12 +659,12 @@ transposed.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgc6f7886" class="outline-2">
|
||||
<h2 id="orgc6f7886"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-org0f4c891" class="outline-2">
|
||||
<h2 id="org0f4c891"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org32db59f" class="outline-3">
|
||||
<h3 id="org32db59f"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div id="outline-container-org6099118" class="outline-3">
|
||||
<h3 id="org6099118"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
<code>qmckl_distance</code> computes the matrix of the distances between all
|
||||
@ -677,7 +677,7 @@ pairs of points in two sets, one point within each set:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="orgbbdcb83" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd59ec91" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -770,8 +770,8 @@ pairs of points in two sets, one point within each set:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3162765" class="outline-4">
|
||||
<h4 id="org3162765"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org9f8861c" class="outline-4">
|
||||
<h4 id="org9f8861c"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -789,8 +789,8 @@ pairs of points in two sets, one point within each set:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf909c56" class="outline-4">
|
||||
<h4 id="orgf909c56"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-org668b29c" class="outline-4">
|
||||
<h4 id="org668b29c"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance</span> (
|
||||
@ -810,8 +810,8 @@ pairs of points in two sets, one point within each set:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2781ea1" class="outline-4">
|
||||
<h4 id="org2781ea1"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-org4633aa6" class="outline-4">
|
||||
<h4 id="org4633aa6"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
||||
@ -950,8 +950,8 @@ pairs of points in two sets, one point within each set:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7f575f2" class="outline-4">
|
||||
<h4 id="org7f575f2"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org8df3afe" class="outline-4">
|
||||
<h4 id="org8df3afe"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<p>
|
||||
This function might be more efficient when <code>A</code> and <code>B</code> are
|
||||
@ -964,7 +964,7 @@ transposed.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-05-12 Wed 21:41</p>
|
||||
<p class="date">Created: 2021-05-12 Wed 21:43</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-05-12 Wed 21:41 -->
|
||||
<!-- 2021-05-12 Wed 21:42 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Electrons</title>
|
||||
@ -311,21 +311,21 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org3218e35">1. Context</a>
|
||||
<li><a href="#orgb2f40f2">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org0dafd75">1.1. Data structure</a></li>
|
||||
<li><a href="#org8663eb1">1.2. Access functions</a></li>
|
||||
<li><a href="#org2d6f9e2">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org311d48e">1.4. Test</a></li>
|
||||
<li><a href="#org50de4c4">1.1. Data structure</a></li>
|
||||
<li><a href="#orgfd338b3">1.2. Access functions</a></li>
|
||||
<li><a href="#org95d0c31">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org9bd883b">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgc1fc572">2. Computation</a>
|
||||
<li><a href="#org7e4376b">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orga80421d">2.1. Electron-electron distances</a>
|
||||
<li><a href="#orgfe9a9ca">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#org0cba07c">2.1.1. Get</a></li>
|
||||
<li><a href="#orgf9e280d">2.1.2. Compute</a></li>
|
||||
<li><a href="#org2e4faeb">2.1.3. Test</a></li>
|
||||
<li><a href="#org119a2ca">2.1.1. Get</a></li>
|
||||
<li><a href="#orgfa6db28">2.1.2. Compute</a></li>
|
||||
<li><a href="#org48a0d99">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -334,8 +334,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3218e35" class="outline-2">
|
||||
<h2 id="org3218e35"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgb2f40f2" class="outline-2">
|
||||
<h2 id="orgb2f40f2"><span class="section-number-2">1</span> Context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
The following data stored in the context:
|
||||
@ -421,8 +421,8 @@ The following data stored in the context:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0dafd75" class="outline-3">
|
||||
<h3 id="org0dafd75"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org50de4c4" class="outline-3">
|
||||
<h3 id="org50de4c4"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_electron_struct</span> {
|
||||
@ -450,8 +450,8 @@ struct is then initialized and <code>provided == true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8663eb1" class="outline-3">
|
||||
<h3 id="org8663eb1"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgfd338b3" class="outline-3">
|
||||
<h3 id="orgfd338b3"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
When all the data relative to electrons have been set, the
|
||||
@ -465,8 +465,8 @@ following function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2d6f9e2" class="outline-3">
|
||||
<h3 id="org2d6f9e2"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org95d0c31" class="outline-3">
|
||||
<h3 id="org95d0c31"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To set the data relative to the electrons in the context, the
|
||||
@ -496,8 +496,8 @@ electrons have been set.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org311d48e" class="outline-3">
|
||||
<h3 id="org311d48e"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org9bd883b" class="outline-3">
|
||||
<h3 id="org9bd883b"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -542,8 +542,8 @@ rc = qmckl_set_electron_coord (context, coord);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc1fc572" class="outline-2">
|
||||
<h2 id="orgc1fc572"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org7e4376b" class="outline-2">
|
||||
<h2 id="org7e4376b"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The computed data is stored in the context so that it can be reused
|
||||
@ -556,12 +556,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga80421d" class="outline-3">
|
||||
<h3 id="orga80421d"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-orgfe9a9ca" class="outline-3">
|
||||
<h3 id="orgfe9a9ca"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
</div>
|
||||
<div id="outline-container-org0cba07c" class="outline-4">
|
||||
<h4 id="org0cba07c"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org119a2ca" class="outline-4">
|
||||
<h4 id="org119a2ca"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_ee_distance</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">distance</span>);
|
||||
@ -570,10 +570,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf9e280d" class="outline-4">
|
||||
<h4 id="orgf9e280d"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-orgfa6db28" class="outline-4">
|
||||
<h4 id="orgfa6db28"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orgd26f776" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd9751de" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -670,8 +670,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2e4faeb" class="outline-4">
|
||||
<h4 id="org2e4faeb"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org48a0d99" class="outline-4">
|
||||
<h4 id="org48a0d99"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -694,7 +694,7 @@ rc = qmckl_get_electron_ee_distance(context, distance);
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-05-12 Wed 21:41</p>
|
||||
<p class="date">Created: 2021-05-12 Wed 21:42</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-05-12 Wed 21:41 -->
|
||||
<!-- 2021-05-12 Wed 21:42 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Error handling</title>
|
||||
@ -311,16 +311,16 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org837e368">1. Decoding errors</a></li>
|
||||
<li><a href="#org9b18a8c">2. Data structure in context</a></li>
|
||||
<li><a href="#org83667bf">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org26b5bb0">4. Failing</a></li>
|
||||
<li><a href="#orgb53a6bc">1. Decoding errors</a></li>
|
||||
<li><a href="#orgd648fcd">2. Data structure in context</a></li>
|
||||
<li><a href="#org84fd314">3. Updating errors in the context</a></li>
|
||||
<li><a href="#org995c29f">4. Failing</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org837e368" class="outline-2">
|
||||
<h2 id="org837e368"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-orgb53a6bc" class="outline-2">
|
||||
<h2 id="orgb53a6bc"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
To decode the error messages, <code>qmckl_string_of_error</code> converts an
|
||||
@ -414,8 +414,8 @@ The text strings are extracted from the previous table.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9b18a8c" class="outline-2">
|
||||
<h2 id="org9b18a8c"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-orgd648fcd" class="outline-2">
|
||||
<h2 id="orgd648fcd"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
The strings are declared with a maximum fixed size to avoid
|
||||
@ -438,8 +438,8 @@ dynamic memory allocation.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org83667bf" class="outline-2">
|
||||
<h2 id="org83667bf"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div id="outline-container-org84fd314" class="outline-2">
|
||||
<h2 id="org84fd314"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
The error is updated in the context using <code>qmckl_set_error</code>.
|
||||
@ -485,8 +485,8 @@ explaining the error. The exit code can't be <code>QMCKL_SUCCESS</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org26b5bb0" class="outline-2">
|
||||
<h2 id="org26b5bb0"><span class="section-number-2">4</span> Failing</h2>
|
||||
<div id="outline-container-org995c29f" class="outline-2">
|
||||
<h2 id="org995c29f"><span class="section-number-2">4</span> Failing</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
To make a function fail, the <code>qmckl_failwith</code> function should be
|
||||
@ -549,7 +549,7 @@ For example, this function can be used as
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-05-12 Wed 21:41</p>
|
||||
<p class="date">Created: 2021-05-12 Wed 21:42</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-05-12 Wed 21:41 -->
|
||||
<!-- 2021-05-12 Wed 21:42 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Memory management</title>
|
||||
@ -311,15 +311,15 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org67e74f9">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org65cebe2">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orgaf3b6df">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#orge653019">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org09e8977">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#org67f961e">3. Allocation/deallocation functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org67e74f9" class="outline-2">
|
||||
<h2 id="org67e74f9"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div id="outline-container-orge653019" class="outline-2">
|
||||
<h2 id="orge653019"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
Every time a new block of memory is allocated, the information
|
||||
@ -361,8 +361,8 @@ array, and the number of allocated blocks.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org65cebe2" class="outline-2">
|
||||
<h2 id="org65cebe2"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div id="outline-container-org09e8977" class="outline-2">
|
||||
<h2 id="org09e8977"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
Passing information to the allocation routine should be done by
|
||||
@ -371,8 +371,8 @@ passing an instance of a <code>qmckl_memory_info_struct</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaf3b6df" class="outline-2">
|
||||
<h2 id="orgaf3b6df"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-org67f961e" class="outline-2">
|
||||
<h2 id="org67f961e"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
Memory allocation inside the library should be done with
|
||||
@ -535,7 +535,7 @@ allocation and needs to be updated.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-05-12 Wed 21:41</p>
|
||||
<p class="date">Created: 2021-05-12 Wed 21:42</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-05-12 Wed 21:41 -->
|
||||
<!-- 2021-05-12 Wed 21:42 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Numerical precision</title>
|
||||
@ -333,16 +333,16 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgb79f81b">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#orge6410a2">2. Precision</a></li>
|
||||
<li><a href="#org60a1502">3. Range</a></li>
|
||||
<li><a href="#orge886946">4. Helper functions</a></li>
|
||||
<li><a href="#org594ba14">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org8468166">2. Precision</a></li>
|
||||
<li><a href="#org5cf886e">3. Range</a></li>
|
||||
<li><a href="#org51ab8ba">4. Helper functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb79f81b" class="outline-2">
|
||||
<h2 id="orgb79f81b"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-org594ba14" class="outline-2">
|
||||
<h2 id="org594ba14"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
Controlling numerical precision enables optimizations. Here, the
|
||||
@ -353,7 +353,7 @@ Arithmetic (IEEE 754),
|
||||
refers to the number of exponent bits.
|
||||
</p>
|
||||
|
||||
<table id="org2a27c29" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgdd30ec4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -397,8 +397,8 @@ integer. The update functions return <code>QMCKL_SUCCESS</code> or
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge6410a2" class="outline-2">
|
||||
<h2 id="orge6410a2"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-org8468166" class="outline-2">
|
||||
<h2 id="org8468166"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
<code>qmckl_context_set_numprec_precision</code> modifies the parameter for the
|
||||
@ -485,8 +485,8 @@ numerical precision in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org60a1502" class="outline-2">
|
||||
<h2 id="org60a1502"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-org5cf886e" class="outline-2">
|
||||
<h2 id="org5cf886e"><span class="section-number-2">3</span> Range</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
<code>qmckl_set_numprec_range</code> modifies the parameter for the numerical
|
||||
@ -561,8 +561,8 @@ range in a given context.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orge886946" class="outline-2">
|
||||
<h2 id="orge886946"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-org51ab8ba" class="outline-2">
|
||||
<h2 id="org51ab8ba"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
<code>qmckl_get_numprec_epsilon</code> returns \(\epsilon = 2^{1-n}\) where <code>n</code> is the precision.
|
||||
@ -581,7 +581,7 @@ We need to remove the sign bit from the precision.
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-05-12 Wed 21:41</p>
|
||||
<p class="date">Created: 2021-05-12 Wed 21:42</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user