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@e329d0a125 🚀
This commit is contained in:
parent
8789926957
commit
35e0713e60
@ -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-06-23 Wed 21:45 -->
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<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>
|
||||
@ -352,7 +352,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-06-23 Wed 21:45</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</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-06-23 Wed 21:45 -->
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<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="#orgb95a92d">1. Using QMCkl</a></li>
|
||||
<li><a href="#org9642395">2. Developing in QMCkl</a>
|
||||
<li><a href="#org205e8b7">1. Using QMCkl</a></li>
|
||||
<li><a href="#orga4c6901">2. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#org20970cc">2.1. Literate programming</a></li>
|
||||
<li><a href="#org7b6558c">2.2. Source code editing</a></li>
|
||||
<li><a href="#orgeec4b45">2.3. Choice of the programming language</a></li>
|
||||
<li><a href="#orgd936a2f">2.4. Coding rules</a></li>
|
||||
<li><a href="#org7f2095c">2.5. Design of the library</a></li>
|
||||
<li><a href="#org001a6bc">2.6. Naming conventions</a></li>
|
||||
<li><a href="#org177791f">2.7. Application programming interface</a></li>
|
||||
<li><a href="#orgda964f8">2.8. Global state</a></li>
|
||||
<li><a href="#org138452d">2.9. Headers</a></li>
|
||||
<li><a href="#orgdf26aac">2.10. Low-level functions</a></li>
|
||||
<li><a href="#orge027c20">2.11. High-level functions</a></li>
|
||||
<li><a href="#org1707fa5">2.12. Numerical precision</a></li>
|
||||
<li><a href="#org7a081d4">2.13. Algorithms</a></li>
|
||||
<li><a href="#orge04a980">2.1. Literate programming</a></li>
|
||||
<li><a href="#org053c17a">2.2. Source code editing</a></li>
|
||||
<li><a href="#orgb5570fa">2.3. Choice of the programming language</a></li>
|
||||
<li><a href="#org4217adc">2.4. Coding rules</a></li>
|
||||
<li><a href="#orgf81a492">2.5. Design of the library</a></li>
|
||||
<li><a href="#orgc1d78e7">2.6. Naming conventions</a></li>
|
||||
<li><a href="#org9d485da">2.7. Application programming interface</a></li>
|
||||
<li><a href="#orge3d097c">2.8. Global state</a></li>
|
||||
<li><a href="#org016271e">2.9. Headers</a></li>
|
||||
<li><a href="#orgf4ba55e">2.10. Low-level functions</a></li>
|
||||
<li><a href="#orgb6314a9">2.11. High-level functions</a></li>
|
||||
<li><a href="#orga83d4eb">2.12. Numerical precision</a></li>
|
||||
<li><a href="#orge5b0adc">2.13. Algorithms</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb95a92d" class="outline-2">
|
||||
<h2 id="orgb95a92d"><span class="section-number-2">1</span> Using QMCkl</h2>
|
||||
<div id="outline-container-org205e8b7" class="outline-2">
|
||||
<h2 id="org205e8b7"><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-org9642395" class="outline-2">
|
||||
<h2 id="org9642395"><span class="section-number-2">2</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-orga4c6901" class="outline-2">
|
||||
<h2 id="orga4c6901"><span class="section-number-2">2</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org20970cc" class="outline-3">
|
||||
<h3 id="org20970cc"><span class="section-number-3">2.1</span> Literate programming</h3>
|
||||
<div id="outline-container-orge04a980" class="outline-3">
|
||||
<h3 id="orge04a980"><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-org7b6558c" class="outline-3">
|
||||
<h3 id="org7b6558c"><span class="section-number-3">2.2</span> Source code editing</h3>
|
||||
<div id="outline-container-org053c17a" class="outline-3">
|
||||
<h3 id="org053c17a"><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-orgeec4b45" class="outline-3">
|
||||
<h3 id="orgeec4b45"><span class="section-number-3">2.3</span> Choice of the programming language</h3>
|
||||
<div id="outline-container-orgb5570fa" class="outline-3">
|
||||
<h3 id="orgb5570fa"><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-orgd936a2f" class="outline-3">
|
||||
<h3 id="orgd936a2f"><span class="section-number-3">2.4</span> Coding rules</h3>
|
||||
<div id="outline-container-org4217adc" class="outline-3">
|
||||
<h3 id="org4217adc"><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-org7f2095c" class="outline-3">
|
||||
<h3 id="org7f2095c"><span class="section-number-3">2.5</span> Design of the library</h3>
|
||||
<div id="outline-container-orgf81a492" class="outline-3">
|
||||
<h3 id="orgf81a492"><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-org001a6bc" class="outline-3">
|
||||
<h3 id="org001a6bc"><span class="section-number-3">2.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-orgc1d78e7" class="outline-3">
|
||||
<h3 id="orgc1d78e7"><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-org177791f" class="outline-3">
|
||||
<h3 id="org177791f"><span class="section-number-3">2.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-org9d485da" class="outline-3">
|
||||
<h3 id="org9d485da"><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-orgda964f8" class="outline-3">
|
||||
<h3 id="orgda964f8"><span class="section-number-3">2.8</span> Global state</h3>
|
||||
<div id="outline-container-orge3d097c" class="outline-3">
|
||||
<h3 id="orge3d097c"><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="org0ee79c2">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="orgbf24743">=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-org138452d" class="outline-3">
|
||||
<h3 id="org138452d"><span class="section-number-3">2.9</span> Headers</h3>
|
||||
<div id="outline-container-org016271e" class="outline-3">
|
||||
<h3 id="org016271e"><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>*fh_type.f90</code> fil
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdf26aac" class="outline-3">
|
||||
<h3 id="orgdf26aac"><span class="section-number-3">2.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-orgf4ba55e" class="outline-3">
|
||||
<h3 id="orgf4ba55e"><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="#org0ee79c2"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#orgbf24743"><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-orge027c20" class="outline-3">
|
||||
<h3 id="orge027c20"><span class="section-number-3">2.11</span> High-level functions</h3>
|
||||
<div id="outline-container-orgb6314a9" class="outline-3">
|
||||
<h3 id="orgb6314a9"><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="#org0ee79c2"><code>context</code></a> variable.
|
||||
the <a href="#orgbf24743"><code>context</code></a> variable.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1707fa5" class="outline-3">
|
||||
<h3 id="org1707fa5"><span class="section-number-3">2.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-orga83d4eb" class="outline-3">
|
||||
<h3 id="orga83d4eb"><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="#org0ee79c2"><code>context</code></a>
|
||||
functions will use the precision specified in the <a href="#orgbf24743"><code>context</code></a>
|
||||
variable.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7a081d4" class="outline-3">
|
||||
<h3 id="org7a081d4"><span class="section-number-3">2.13</span> Algorithms</h3>
|
||||
<div id="outline-container-orge5b0adc" class="outline-3">
|
||||
<h3 id="orge5b0adc"><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-06-23 Wed 21:45</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
|
228
qmckl_ao.html
228
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-06-23 Wed 21:45 -->
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<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,69 +333,69 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org01f1b0e">1. Context</a>
|
||||
<li><a href="#org977819f">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgb22a76e">1.1. Data structure</a></li>
|
||||
<li><a href="#org62c9e79">1.2. Access functions</a></li>
|
||||
<li><a href="#orgbd957a8">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgc183d48">1.4. <span class="todo TODO">TODO</span> Fortran interfaces</a></li>
|
||||
<li><a href="#orgd089ee3">1.1. Data structure</a></li>
|
||||
<li><a href="#org7eed92f">1.2. Access functions</a></li>
|
||||
<li><a href="#orgd63f724">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgd430de3">1.4. Fortran interfaces</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org5639d76">2. Radial part</a>
|
||||
<li><a href="#org8fe9307">2. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#org6126040">2.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#orgb87e090">2.2. <span class="todo TODO">TODO</span> General functions for Slater basis functions</a></li>
|
||||
<li><a href="#org4a6caab">2.3. <span class="todo TODO">TODO</span> General functions for Radial functions on a grid</a></li>
|
||||
<li><a href="#orgf8096a6">2.4. <span class="done DONE">DONE</span> Computation of primitives</a>
|
||||
<li><a href="#org8afe2e8">2.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org07a566a">2.2. <span class="todo TODO">TODO</span> General functions for Slater basis functions</a></li>
|
||||
<li><a href="#orgb8b9c64">2.3. <span class="todo TODO">TODO</span> General functions for Radial functions on a grid</a></li>
|
||||
<li><a href="#orgfd336cd">2.4. <span class="done DONE">DONE</span> Computation of primitives</a>
|
||||
<ul>
|
||||
<li><a href="#orgd7b3b3b">2.4.1. Get</a></li>
|
||||
<li><a href="#orgcb5883f">2.4.2. Provide</a></li>
|
||||
<li><a href="#org1828bdd">2.4.3. Compute</a></li>
|
||||
<li><a href="#org0de6823">2.4.4. Test</a></li>
|
||||
<li><a href="#org0195107">2.4.5. Ideas for improvement</a></li>
|
||||
<li><a href="#org5fe02e8">2.4.1. Get</a></li>
|
||||
<li><a href="#orgba21797">2.4.2. Provide</a></li>
|
||||
<li><a href="#org5161d5c">2.4.3. Compute</a></li>
|
||||
<li><a href="#org7636607">2.4.4. Test</a></li>
|
||||
<li><a href="#org9d0ac73">2.4.5. Ideas for improvement</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org233af32">2.5. Computation of shells</a>
|
||||
<li><a href="#orgffda4a9">2.5. Computation of shells</a>
|
||||
<ul>
|
||||
<li><a href="#orgabce2fc">2.5.1. Get</a></li>
|
||||
<li><a href="#org43024a9">2.5.2. Provide</a></li>
|
||||
<li><a href="#org705820e">2.5.3. Compute</a></li>
|
||||
<li><a href="#org62d6b09">2.5.4. Test</a></li>
|
||||
<li><a href="#orgc028165">2.5.1. Get</a></li>
|
||||
<li><a href="#orgd0768cb">2.5.2. Provide</a></li>
|
||||
<li><a href="#org9fb3b7f">2.5.3. Compute</a></li>
|
||||
<li><a href="#org34d9a5b">2.5.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb04f886">3. Polynomial part</a>
|
||||
<li><a href="#org528857f">3. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#org4959188">3.1. General functions for Powers of \(x-X_i\)</a>
|
||||
<li><a href="#org18fc948">3.1. General functions for Powers of \(x-X_i\)</a>
|
||||
<ul>
|
||||
<li><a href="#org1513d3f">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orgcb30f38">3.1.2. C Header</a></li>
|
||||
<li><a href="#orgff4c4d3">3.1.3. Source</a></li>
|
||||
<li><a href="#org8b64b01">3.1.4. C interface</a></li>
|
||||
<li><a href="#org2377600">3.1.5. Fortran interface</a></li>
|
||||
<li><a href="#org9cbf357">3.1.6. Test</a></li>
|
||||
<li><a href="#orgd793105">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org6b60fe9">3.1.2. C Header</a></li>
|
||||
<li><a href="#org7d47ae1">3.1.3. Source</a></li>
|
||||
<li><a href="#orgbb213ea">3.1.4. C interface</a></li>
|
||||
<li><a href="#org5678132">3.1.5. Fortran interface</a></li>
|
||||
<li><a href="#org15ddfe5">3.1.6. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7090c39">3.2. General functions for Value, Gradient and Laplacian of a polynomial</a>
|
||||
<li><a href="#org8019745">3.2. General functions for Value, Gradient and Laplacian of a polynomial</a>
|
||||
<ul>
|
||||
<li><a href="#org568793c">3.2.1. Requirements</a></li>
|
||||
<li><a href="#orga3068b9">3.2.2. C Header</a></li>
|
||||
<li><a href="#org36ce59f">3.2.3. Source</a></li>
|
||||
<li><a href="#org9a99b8e">3.2.4. C interface</a></li>
|
||||
<li><a href="#org42448cf">3.2.5. Fortran interface</a></li>
|
||||
<li><a href="#org7217bc9">3.2.6. Test</a></li>
|
||||
<li><a href="#orge8e6951">3.2.1. Requirements</a></li>
|
||||
<li><a href="#orgeda1315">3.2.2. C Header</a></li>
|
||||
<li><a href="#org7bd4dd2">3.2.3. Source</a></li>
|
||||
<li><a href="#org7758993">3.2.4. C interface</a></li>
|
||||
<li><a href="#orgb5d5fb5">3.2.5. Fortran interface</a></li>
|
||||
<li><a href="#org381002f">3.2.6. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org6381df9">4. Combining radial and polynomial parts</a></li>
|
||||
<li><a href="#org8466f8f">4. Combining radial and polynomial parts</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org01f1b0e" class="outline-2">
|
||||
<h2 id="org01f1b0e"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org977819f" class="outline-2">
|
||||
<h2 id="org977819f"><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:
|
||||
@ -611,8 +611,8 @@ prim_factor = [ 1.0006253235944540e+01, 2.4169531573445120e+00, 7.96109248497664
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb22a76e" class="outline-3">
|
||||
<h3 id="orgb22a76e"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgd089ee3" class="outline-3">
|
||||
<h3 id="orgd089ee3"><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> {
|
||||
@ -676,8 +676,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org62c9e79" class="outline-3">
|
||||
<h3 id="org62c9e79"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org7eed92f" class="outline-3">
|
||||
<h3 id="org7eed92f"><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
|
||||
@ -691,8 +691,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbd957a8" class="outline-3">
|
||||
<h3 id="orgbd957a8"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgd63f724" class="outline-3">
|
||||
<h3 id="orgd63f724"><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
|
||||
@ -727,17 +727,17 @@ the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc183d48" class="outline-3">
|
||||
<h3 id="orgc183d48"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Fortran interfaces</h3>
|
||||
<div id="outline-container-orgd430de3" class="outline-3">
|
||||
<h3 id="orgd430de3"><span class="section-number-3">1.4</span> Fortran interfaces</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5639d76" class="outline-2">
|
||||
<h2 id="org5639d76"><span class="section-number-2">2</span> Radial part</h2>
|
||||
<div id="outline-container-org8fe9307" class="outline-2">
|
||||
<h2 id="org8fe9307"><span class="section-number-2">2</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org6126040" class="outline-3">
|
||||
<h3 id="org6126040"><span class="section-number-3">2.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div id="outline-container-org8afe2e8" class="outline-3">
|
||||
<h3 id="org8afe2e8"><span class="section-number-3">2.1</span> General functions for Gaussian basis functions</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
<code>qmckl_ao_gaussian_vgl</code> computes the values, gradients and
|
||||
@ -969,18 +969,18 @@ Requirements
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb87e090" class="outline-3">
|
||||
<h3 id="orgb87e090"><span class="section-number-3">2.2</span> <span class="todo TODO">TODO</span> General functions for Slater basis functions</h3>
|
||||
<div id="outline-container-org07a566a" class="outline-3">
|
||||
<h3 id="org07a566a"><span class="section-number-3">2.2</span> <span class="todo TODO">TODO</span> General functions for Slater basis functions</h3>
|
||||
</div>
|
||||
<div id="outline-container-org4a6caab" class="outline-3">
|
||||
<h3 id="org4a6caab"><span class="section-number-3">2.3</span> <span class="todo TODO">TODO</span> General functions for Radial functions on a grid</h3>
|
||||
<div id="outline-container-orgb8b9c64" class="outline-3">
|
||||
<h3 id="orgb8b9c64"><span class="section-number-3">2.3</span> <span class="todo TODO">TODO</span> General functions for Radial functions on a grid</h3>
|
||||
</div>
|
||||
<div id="outline-container-orgf8096a6" class="outline-3">
|
||||
<h3 id="orgf8096a6"><span class="section-number-3">2.4</span> <span class="done DONE">DONE</span> Computation of primitives</h3>
|
||||
<div id="outline-container-orgfd336cd" class="outline-3">
|
||||
<h3 id="orgfd336cd"><span class="section-number-3">2.4</span> <span class="done DONE">DONE</span> Computation of primitives</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
</div>
|
||||
<div id="outline-container-orgd7b3b3b" class="outline-4">
|
||||
<h4 id="orgd7b3b3b"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-org5fe02e8" class="outline-4">
|
||||
<h4 id="org5fe02e8"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_ao_basis_primitive_vgl</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;">primitive_vgl</span>);
|
||||
@ -989,14 +989,14 @@ Requirements
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcb5883f" class="outline-4">
|
||||
<h4 id="orgcb5883f"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
<div id="outline-container-orgba21797" class="outline-4">
|
||||
<h4 id="orgba21797"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1828bdd" class="outline-4">
|
||||
<h4 id="org1828bdd"><span class="section-number-4">2.4.3</span> Compute</h4>
|
||||
<div id="outline-container-org5161d5c" class="outline-4">
|
||||
<h4 id="org5161d5c"><span class="section-number-4">2.4.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-3">
|
||||
<table id="org8dfd5af" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb01979a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1140,12 +1140,12 @@ Requirements
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0de6823" class="outline-4">
|
||||
<h4 id="org0de6823"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
<div id="outline-container-org7636607" class="outline-4">
|
||||
<h4 id="org7636607"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0195107" class="outline-4">
|
||||
<h4 id="org0195107"><span class="section-number-4">2.4.5</span> Ideas for improvement</h4>
|
||||
<div id="outline-container-org9d0ac73" class="outline-4">
|
||||
<h4 id="org9d0ac73"><span class="section-number-4">2.4.5</span> Ideas for improvement</h4>
|
||||
<div class="outline-text-4" id="text-2-4-5">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">// <span style="color: #b22222;">m : walkers</span>
|
||||
@ -1182,12 +1182,12 @@ k=0;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org233af32" class="outline-3">
|
||||
<h3 id="org233af32"><span class="section-number-3">2.5</span> Computation of shells</h3>
|
||||
<div id="outline-container-orgffda4a9" class="outline-3">
|
||||
<h3 id="orgffda4a9"><span class="section-number-3">2.5</span> Computation of shells</h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
</div>
|
||||
<div id="outline-container-orgabce2fc" class="outline-4">
|
||||
<h4 id="orgabce2fc"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div id="outline-container-orgc028165" class="outline-4">
|
||||
<h4 id="orgc028165"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-5-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_ao_basis_shell_vgl</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;">shell_vgl</span>);
|
||||
@ -1196,14 +1196,14 @@ k=0;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org43024a9" class="outline-4">
|
||||
<h4 id="org43024a9"><span class="section-number-4">2.5.2</span> Provide</h4>
|
||||
<div id="outline-container-orgd0768cb" class="outline-4">
|
||||
<h4 id="orgd0768cb"><span class="section-number-4">2.5.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org705820e" class="outline-4">
|
||||
<h4 id="org705820e"><span class="section-number-4">2.5.3</span> Compute</h4>
|
||||
<div id="outline-container-org9fb3b7f" class="outline-4">
|
||||
<h4 id="org9fb3b7f"><span class="section-number-4">2.5.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-5-3">
|
||||
<table id="org4bd4bb3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org377aae0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1410,18 +1410,18 @@ k=0;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org62d6b09" class="outline-4">
|
||||
<h4 id="org62d6b09"><span class="section-number-4">2.5.4</span> Test</h4>
|
||||
<div id="outline-container-org34d9a5b" class="outline-4">
|
||||
<h4 id="org34d9a5b"><span class="section-number-4">2.5.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb04f886" class="outline-2">
|
||||
<h2 id="orgb04f886"><span class="section-number-2">3</span> Polynomial part</h2>
|
||||
<div id="outline-container-org528857f" class="outline-2">
|
||||
<h2 id="org528857f"><span class="section-number-2">3</span> Polynomial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org4959188" class="outline-3">
|
||||
<h3 id="org4959188"><span class="section-number-3">3.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div id="outline-container-org18fc948" class="outline-3">
|
||||
<h3 id="org18fc948"><span class="section-number-3">3.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
The <code>qmckl_ao_power</code> function computes all the powers of the <code>n</code>
|
||||
@ -1433,7 +1433,7 @@ the \(n\) points:
|
||||
\[ P_{ik} = X_i^k \]
|
||||
</p>
|
||||
|
||||
<table id="org4370aba" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org299b5a8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1491,8 +1491,8 @@ the \(n\) points:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1513d3f" class="outline-4">
|
||||
<h4 id="org1513d3f"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgd793105" class="outline-4">
|
||||
<h4 id="orgd793105"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-3-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1505,8 +1505,8 @@ the \(n\) points:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcb30f38" class="outline-4">
|
||||
<h4 id="orgcb30f38"><span class="section-number-4">3.1.2</span> C Header</h4>
|
||||
<div id="outline-container-org6b60fe9" class="outline-4">
|
||||
<h4 id="org6b60fe9"><span class="section-number-4">3.1.2</span> C Header</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_ao_power</span> (
|
||||
@ -1521,8 +1521,8 @@ the \(n\) points:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgff4c4d3" class="outline-4">
|
||||
<h4 id="orgff4c4d3"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-org7d47ae1" class="outline-4">
|
||||
<h4 id="org7d47ae1"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-3-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer </span><span style="color: #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>
|
||||
@ -1573,15 +1573,15 @@ the \(n\) points:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8b64b01" class="outline-4">
|
||||
<h4 id="org8b64b01"><span class="section-number-4">3.1.4</span> C interface</h4>
|
||||
<div id="outline-container-orgbb213ea" class="outline-4">
|
||||
<h4 id="orgbb213ea"><span class="section-number-4">3.1.4</span> C interface</h4>
|
||||
</div>
|
||||
<div id="outline-container-org2377600" class="outline-4">
|
||||
<h4 id="org2377600"><span class="section-number-4">3.1.5</span> Fortran interface</h4>
|
||||
<div id="outline-container-org5678132" class="outline-4">
|
||||
<h4 id="org5678132"><span class="section-number-4">3.1.5</span> Fortran interface</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9cbf357" class="outline-4">
|
||||
<h4 id="org9cbf357"><span class="section-number-4">3.1.6</span> Test</h4>
|
||||
<div id="outline-container-org15ddfe5" class="outline-4">
|
||||
<h4 id="org15ddfe5"><span class="section-number-4">3.1.6</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-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)
|
||||
@ -1632,8 +1632,8 @@ the \(n\) points:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7090c39" class="outline-3">
|
||||
<h3 id="org7090c39"><span class="section-number-3">3.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div id="outline-container-org8019745" class="outline-3">
|
||||
<h3 id="org8019745"><span class="section-number-3">3.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<p>
|
||||
A polynomial is centered on a nucleus \(\mathbf{R}_i\)
|
||||
@ -1678,7 +1678,7 @@ Laplacians at a given point in space, of all polynomials with an
|
||||
angular momentum up to <code>lmax</code>.
|
||||
</p>
|
||||
|
||||
<table id="org1bb3e63" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0b2782c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1757,8 +1757,8 @@ angular momentum up to <code>lmax</code>.
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org568793c" class="outline-4">
|
||||
<h4 id="org568793c"><span class="section-number-4">3.2.1</span> Requirements</h4>
|
||||
<div id="outline-container-orge8e6951" class="outline-4">
|
||||
<h4 id="orge8e6951"><span class="section-number-4">3.2.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-3-2-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1783,8 +1783,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga3068b9" class="outline-4">
|
||||
<h4 id="orga3068b9"><span class="section-number-4">3.2.2</span> C Header</h4>
|
||||
<div id="outline-container-orgeda1315" class="outline-4">
|
||||
<h4 id="orgeda1315"><span class="section-number-4">3.2.2</span> C Header</h4>
|
||||
<div class="outline-text-4" id="text-3-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> (
|
||||
@ -1802,8 +1802,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org36ce59f" class="outline-4">
|
||||
<h4 id="org36ce59f"><span class="section-number-4">3.2.3</span> Source</h4>
|
||||
<div id="outline-container-org7bd4dd2" class="outline-4">
|
||||
<h4 id="org7bd4dd2"><span class="section-number-4">3.2.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-3-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>
|
||||
@ -1938,16 +1938,16 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9a99b8e" class="outline-4">
|
||||
<h4 id="org9a99b8e"><span class="section-number-4">3.2.4</span> C interface</h4>
|
||||
<div id="outline-container-org7758993" class="outline-4">
|
||||
<h4 id="org7758993"><span class="section-number-4">3.2.4</span> C interface</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org42448cf" class="outline-4">
|
||||
<h4 id="org42448cf"><span class="section-number-4">3.2.5</span> Fortran interface</h4>
|
||||
<div id="outline-container-orgb5d5fb5" class="outline-4">
|
||||
<h4 id="orgb5d5fb5"><span class="section-number-4">3.2.5</span> Fortran interface</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7217bc9" class="outline-4">
|
||||
<h4 id="org7217bc9"><span class="section-number-4">3.2.6</span> Test</h4>
|
||||
<div id="outline-container-org381002f" class="outline-4">
|
||||
<h4 id="org381002f"><span class="section-number-4">3.2.6</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-3-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)
|
||||
@ -2052,13 +2052,13 @@ assert(0 == test_qmckl_ao_polynomial_vgl(context));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6381df9" class="outline-2">
|
||||
<h2 id="org6381df9"><span class="section-number-2">4</span> Combining radial and polynomial parts</h2>
|
||||
<div id="outline-container-org8466f8f" class="outline-2">
|
||||
<h2 id="org8466f8f"><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-06-23 Wed 21:45</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</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-06-23 Wed 21:45 -->
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<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="#org494e91b">1. Context handling</a>
|
||||
<li><a href="#org6486194">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#orgdf56559">1.1. Data structure</a></li>
|
||||
<li><a href="#orga5b1b90">1.2. Creation</a></li>
|
||||
<li><a href="#org636816f">1.3. Locking</a></li>
|
||||
<li><a href="#org3b74e07">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org7bfb80b">1.5. Destroy</a></li>
|
||||
<li><a href="#org56cfdad">1.1. Data structure</a></li>
|
||||
<li><a href="#orgf85af88">1.2. Creation</a></li>
|
||||
<li><a href="#orgec2fd13">1.3. Locking</a></li>
|
||||
<li><a href="#orgd7be45f">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org0d8d0bd">1.5. Destroy</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org494e91b" class="outline-2">
|
||||
<h2 id="org494e91b"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-org6486194" class="outline-2">
|
||||
<h2 id="org6486194"><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="orga1a4a89"><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="org7ff1a30"><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-orgdf56559" class="outline-3">
|
||||
<h3 id="orgdf56559"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org56cfdad" class="outline-3">
|
||||
<h3 id="org56cfdad"><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="#orga5b1b90">qmckl<sub>context</sub><sub>create</sub></a>, <a href="#org7bfb80b">qmckl<sub>context</sub><sub>destroy</sub></a> and <a href="#org3b74e07">qmckl<sub>context</sub><sub>copy</sub></a>
|
||||
<a href="#orgf85af88">qmckl<sub>context</sub><sub>create</sub></a>, <a href="#org0d8d0bd">qmckl<sub>context</sub><sub>destroy</sub></a> and <a href="#orgd7be45f">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-orga5b1b90" class="outline-3">
|
||||
<h3 id="orga5b1b90"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-orgf85af88" class="outline-3">
|
||||
<h3 id="orgf85af88"><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.
|
||||
@ -502,8 +502,8 @@ To create a new context, <code>qmckl_context_create()</code> should be used.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org636816f" class="outline-3">
|
||||
<h3 id="org636816f"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-orgec2fd13" class="outline-3">
|
||||
<h3 id="orgec2fd13"><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
|
||||
@ -548,8 +548,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3b74e07" class="outline-3">
|
||||
<h3 id="org3b74e07"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<div id="outline-container-orgd7be45f" class="outline-3">
|
||||
<h3 id="orgd7be45f"><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
|
||||
@ -597,8 +597,8 @@ number of times the thread has locked it is saved in the
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org7bfb80b" class="outline-3">
|
||||
<h3 id="org7bfb80b"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-org0d8d0bd" class="outline-3">
|
||||
<h3 id="org0d8d0bd"><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.
|
||||
@ -652,7 +652,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-06-23 Wed 21:45</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</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-06-23 Wed 21:45 -->
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<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,50 +333,50 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org7c813d6">1. Squared distance</a>
|
||||
<li><a href="#org32f745b">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#orgb28ba92">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#org60f2868">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#org2cc13c7">1.1.1. Requirements</a></li>
|
||||
<li><a href="#org3e26027">1.1.2. C header</a></li>
|
||||
<li><a href="#org8648067">1.1.3. Source</a></li>
|
||||
<li><a href="#orgf6bc6d6">1.1.4. Performance</a></li>
|
||||
<li><a href="#orga7be88f">1.1.1. Requirements</a></li>
|
||||
<li><a href="#org3179744">1.1.2. C header</a></li>
|
||||
<li><a href="#org9431f6f">1.1.3. Source</a></li>
|
||||
<li><a href="#orgb92e57d">1.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org9d0e425">2. Distance</a>
|
||||
<li><a href="#org279c5e2">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org4f48d8b">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#org47419ee">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#org74affd3">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org11b7494">2.1.2. C header</a></li>
|
||||
<li><a href="#org9cc39e1">2.1.3. Source</a></li>
|
||||
<li><a href="#org578e78d">2.1.4. Performance</a></li>
|
||||
<li><a href="#org140f692">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org137c59e">2.1.2. C header</a></li>
|
||||
<li><a href="#org78b8156">2.1.3. Source</a></li>
|
||||
<li><a href="#orgf0a8ebe">2.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8fae589">3. Rescaled Distance</a>
|
||||
<li><a href="#org57fa08a">3. Rescaled Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org827e933">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<li><a href="#org133ba62">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<ul>
|
||||
<li><a href="#org0cbb09f">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org1d469c1">3.1.2. C header</a></li>
|
||||
<li><a href="#orgdcade6a">3.1.3. Source</a></li>
|
||||
<li><a href="#orgcf2ed06">3.1.4. Performance</a></li>
|
||||
<li><a href="#org06a1929">3.1.1. Requirements</a></li>
|
||||
<li><a href="#org5259906">3.1.2. C header</a></li>
|
||||
<li><a href="#org68ca225">3.1.3. Source</a></li>
|
||||
<li><a href="#org154aebc">3.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4c60f92">4. Rescaled Distance Derivatives</a>
|
||||
<li><a href="#org24efaa7">4. Rescaled Distance Derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#org9f6b902">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a>
|
||||
<li><a href="#org2aa2613">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a>
|
||||
<ul>
|
||||
<li><a href="#orga8bbd37">4.1.1. Requirements</a></li>
|
||||
<li><a href="#org55679a4">4.1.2. C header</a></li>
|
||||
<li><a href="#orgea0f44b">4.1.3. Source</a></li>
|
||||
<li><a href="#orgd0f2221">4.1.4. Performance</a></li>
|
||||
<li><a href="#orgd111347">4.1.1. Requirements</a></li>
|
||||
<li><a href="#org38de286">4.1.2. C header</a></li>
|
||||
<li><a href="#orgf9d239d">4.1.3. Source</a></li>
|
||||
<li><a href="#org529813c">4.1.4. Performance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -385,12 +385,12 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7c813d6" class="outline-2">
|
||||
<h2 id="org7c813d6"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-org32f745b" class="outline-2">
|
||||
<h2 id="org32f745b"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-orgb28ba92" class="outline-3">
|
||||
<h3 id="orgb28ba92"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<div id="outline-container-org60f2868" class="outline-3">
|
||||
<h3 id="org60f2868"><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
|
||||
@ -403,7 +403,7 @@ between all pairs of points in two sets, one point within each set:
|
||||
\]
|
||||
</p>
|
||||
|
||||
<table id="org0b3473a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org58b801e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -496,8 +496,8 @@ between all pairs of points in two sets, one point within each set:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2cc13c7" class="outline-4">
|
||||
<h4 id="org2cc13c7"><span class="section-number-4">1.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orga7be88f" class="outline-4">
|
||||
<h4 id="orga7be88f"><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>
|
||||
@ -515,8 +515,8 @@ between all pairs of points in two sets, one point within each set:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3e26027" class="outline-4">
|
||||
<h4 id="org3e26027"><span class="section-number-4">1.1.2</span> C header</h4>
|
||||
<div id="outline-container-org3179744" class="outline-4">
|
||||
<h4 id="org3179744"><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_rescaled_deriv_e</span> (
|
||||
@ -536,8 +536,8 @@ between all pairs of points in two sets, one point within each set:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8648067" class="outline-4">
|
||||
<h4 id="org8648067"><span class="section-number-4">1.1.3</span> Source</h4>
|
||||
<div id="outline-container-org9431f6f" class="outline-4">
|
||||
<h4 id="org9431f6f"><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>
|
||||
@ -672,8 +672,8 @@ between all pairs of points in two sets, one point within each set:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf6bc6d6" class="outline-4">
|
||||
<h4 id="orgf6bc6d6"><span class="section-number-4">1.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgb92e57d" class="outline-4">
|
||||
<h4 id="orgb92e57d"><span class="section-number-4">1.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-1-1-4">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are
|
||||
@ -683,12 +683,12 @@ transposed.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org9d0e425" class="outline-2">
|
||||
<h2 id="org9d0e425"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-org279c5e2" class="outline-2">
|
||||
<h2 id="org279c5e2"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org4f48d8b" class="outline-3">
|
||||
<h3 id="org4f48d8b"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<div id="outline-container-org47419ee" class="outline-3">
|
||||
<h3 id="org47419ee"><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
|
||||
@ -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.
|
||||
</p>
|
||||
|
||||
<table id="org3a7920b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4a97afb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -799,8 +799,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org74affd3" class="outline-4">
|
||||
<h4 id="org74affd3"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org140f692" class="outline-4">
|
||||
<h4 id="org140f692"><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>
|
||||
@ -818,8 +818,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org11b7494" class="outline-4">
|
||||
<h4 id="org11b7494"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-org137c59e" class="outline-4">
|
||||
<h4 id="org137c59e"><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_rescaled_deriv_e</span> (
|
||||
@ -839,8 +839,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9cc39e1" class="outline-4">
|
||||
<h4 id="org9cc39e1"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-org78b8156" class="outline-4">
|
||||
<h4 id="org78b8156"><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>
|
||||
@ -1007,8 +1007,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org578e78d" class="outline-4">
|
||||
<h4 id="org578e78d"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgf0a8ebe" class="outline-4">
|
||||
<h4 id="orgf0a8ebe"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-2-1-4">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are transposed.
|
||||
@ -1018,12 +1018,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8fae589" class="outline-2">
|
||||
<h2 id="org8fae589"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div id="outline-container-org57fa08a" class="outline-2">
|
||||
<h2 id="org57fa08a"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org827e933" class="outline-3">
|
||||
<h3 id="org827e933"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div id="outline-container-org133ba62" class="outline-3">
|
||||
<h3 id="org133ba62"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
<code>qmckl_distance_rescaled</code> computes the matrix of the rescaled distances between all
|
||||
@ -1041,7 +1041,7 @@ If the input array is normal (<code>'N'</code>), the xyz coordinates are in
|
||||
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
||||
</p>
|
||||
|
||||
<table id="org925b4ab" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org247c803" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1141,8 +1141,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0cbb09f" class="outline-4">
|
||||
<h4 id="org0cbb09f"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org06a1929" class="outline-4">
|
||||
<h4 id="org06a1929"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-3-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1160,8 +1160,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1d469c1" class="outline-4">
|
||||
<h4 id="org1d469c1"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-org5259906" class="outline-4">
|
||||
<h4 id="org5259906"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance_rescaled_deriv_e</span> (
|
||||
@ -1182,8 +1182,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdcade6a" class="outline-4">
|
||||
<h4 id="orgdcade6a"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-org68ca225" class="outline-4">
|
||||
<h4 id="org68ca225"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-3-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_rescaled_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
||||
@ -1353,8 +1353,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcf2ed06" class="outline-4">
|
||||
<h4 id="orgcf2ed06"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org154aebc" class="outline-4">
|
||||
<h4 id="org154aebc"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-3-1-4">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are transposed.
|
||||
@ -1363,12 +1363,12 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-org4c60f92" class="outline-2">
|
||||
<h2 id="org4c60f92"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div id="outline-container-org24efaa7" class="outline-2">
|
||||
<h2 id="org24efaa7"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org9f6b902" class="outline-3">
|
||||
<h3 id="org9f6b902"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_deriv_e</code></h3>
|
||||
<div id="outline-container-org2aa2613" class="outline-3">
|
||||
<h3 id="org2aa2613"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_deriv_e</code></h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<p>
|
||||
<code>qmckl_distance_rescaled_deriv_e</code> computes the matrix of the gradient and laplacian of the
|
||||
@ -1435,7 +1435,7 @@ If the input array is normal (<code>'N'</code>), the xyz coordinates are in
|
||||
the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortran.
|
||||
</p>
|
||||
|
||||
<table id="orgb8ce5fe" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgbc1bb61" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1535,8 +1535,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga8bbd37" class="outline-4">
|
||||
<h4 id="orga8bbd37"><span class="section-number-4">4.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgd111347" class="outline-4">
|
||||
<h4 id="orgd111347"><span class="section-number-4">4.1.1</span> Requirements</h4>
|
||||
<div class="outline-text-4" id="text-4-1-1">
|
||||
<ul class="org-ul">
|
||||
<li><code>context</code> is not <code>QMCKL_NULL_CONTEXT</code></li>
|
||||
@ -1554,8 +1554,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org55679a4" class="outline-4">
|
||||
<h4 id="org55679a4"><span class="section-number-4">4.1.2</span> C header</h4>
|
||||
<div id="outline-container-org38de286" class="outline-4">
|
||||
<h4 id="org38de286"><span class="section-number-4">4.1.2</span> C header</h4>
|
||||
<div class="outline-text-4" id="text-4-1-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_distance_rescaled_deriv_e</span> (
|
||||
@ -1576,8 +1576,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgea0f44b" class="outline-4">
|
||||
<h4 id="orgea0f44b"><span class="section-number-4">4.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgf9d239d" class="outline-4">
|
||||
<h4 id="orgf9d239d"><span class="section-number-4">4.1.3</span> Source</h4>
|
||||
<div class="outline-text-4" id="text-4-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-f90"><span style="color: #228b22;">integer</span><span style="color: #a0522d;"> function qmckl_distance_rescaled_deriv_e_f(context, transa, transb, m, n, </span><span style="color: #a020f0;">&</span>
|
||||
@ -1768,8 +1768,8 @@ the leading dimension: <code>[n][3]</code> in C and <code>(3,n)</code> in Fortra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd0f2221" class="outline-4">
|
||||
<h4 id="orgd0f2221"><span class="section-number-4">4.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org529813c" class="outline-4">
|
||||
<h4 id="org529813c"><span class="section-number-4">4.1.4</span> Performance</h4>
|
||||
<div class="outline-text-4" id="text-4-1-4">
|
||||
<p>
|
||||
This function is more efficient when <code>A</code> and <code>B</code> are transposed.
|
||||
@ -1781,7 +1781,7 @@ This function is more efficient when <code>A</code> and <code>B</code> are trans
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 21:45</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</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-06-23 Wed 21:45 -->
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Electrons</title>
|
||||
@ -333,63 +333,63 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgbd82973">1. Context</a>
|
||||
<li><a href="#org2648ebc">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org16f628b">1.1. Data structure</a></li>
|
||||
<li><a href="#org1953d86">1.2. Access functions</a>
|
||||
<li><a href="#orgc69bf5c">1.1. Data structure</a></li>
|
||||
<li><a href="#orgdffda51">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org93c8238">1.2.1. Number of electrons</a></li>
|
||||
<li><a href="#org45789d2">1.2.2. Number of walkers</a></li>
|
||||
<li><a href="#org3309e1a">1.2.3. Scaling factors Kappa</a></li>
|
||||
<li><a href="#org8bd050c">1.2.4. Electron coordinates</a></li>
|
||||
<li><a href="#orga206fe5">1.2.1. Number of electrons</a></li>
|
||||
<li><a href="#org7d88d85">1.2.2. Number of walkers</a></li>
|
||||
<li><a href="#orgb11fbe0">1.2.3. Scaling factors Kappa</a></li>
|
||||
<li><a href="#org3e82504">1.2.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3c9fce0">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org85013a0">1.4. Test</a></li>
|
||||
<li><a href="#org5de51a5">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgb9fca91">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1ec4681">2. Computation</a>
|
||||
<li><a href="#orgd745106">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org15d7aa8">2.1. Electron-electron distances</a>
|
||||
<li><a href="#org3fcb33e">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#org302d000">2.1.1. Get</a></li>
|
||||
<li><a href="#org9a4fb53">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgc4c23c3">2.1.3. Test</a></li>
|
||||
<li><a href="#org00e87d3">2.1.1. Get</a></li>
|
||||
<li><a href="#orgaf72175">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgf0d8091">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgbe46d90">2.2. Electron-electron rescaled distances</a>
|
||||
<li><a href="#org73f8dc0">2.2. Electron-electron rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#orge98b91d">2.2.1. Get</a></li>
|
||||
<li><a href="#org8b459ac">2.2.2. Compute</a></li>
|
||||
<li><a href="#org54d6ed8">2.2.3. Test</a></li>
|
||||
<li><a href="#org2afb9dd">2.2.1. Get</a></li>
|
||||
<li><a href="#org8d00d24">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgdcdd2d5">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org959a177">2.3. Electron-electron rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<li><a href="#org44ba1d9">2.3. Electron-electron rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<ul>
|
||||
<li><a href="#org4965533">2.3.1. Get</a></li>
|
||||
<li><a href="#org50760fe">2.3.2. Compute</a></li>
|
||||
<li><a href="#orge6d3840">2.3.3. Test</a></li>
|
||||
<li><a href="#org0424901">2.3.1. Get</a></li>
|
||||
<li><a href="#orgc73b698">2.3.2. Compute</a></li>
|
||||
<li><a href="#org89d5c83">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd0e0d8c">2.4. Electron-nucleus distances</a>
|
||||
<li><a href="#org6870e6f">2.4. Electron-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgc3b57a5">2.4.1. Get</a></li>
|
||||
<li><a href="#org2e69ca0">2.4.2. Compute</a></li>
|
||||
<li><a href="#org326979e">2.4.3. Test</a></li>
|
||||
<li><a href="#orgb13a51c">2.4.1. Get</a></li>
|
||||
<li><a href="#org66d2a57">2.4.2. Compute</a></li>
|
||||
<li><a href="#orgf374e86">2.4.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org28613d7">2.5. Electron-nucleus rescaled distances</a>
|
||||
<li><a href="#org62e81bb">2.5. Electron-nucleus rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#org1ee6ef0">2.5.1. Get</a></li>
|
||||
<li><a href="#org6ec173c">2.5.2. Compute</a></li>
|
||||
<li><a href="#orge7b35e2">2.5.3. Test</a></li>
|
||||
<li><a href="#org094d7b0">2.5.1. Get</a></li>
|
||||
<li><a href="#orgd397909">2.5.2. Compute</a></li>
|
||||
<li><a href="#orgeab612f">2.5.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7422cd9">2.6. Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<li><a href="#org6103b7e">2.6. Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<ul>
|
||||
<li><a href="#orgfeedb92">2.6.1. Get</a></li>
|
||||
<li><a href="#orga3aac37">2.6.2. Compute</a></li>
|
||||
<li><a href="#orgd16dafa">2.6.3. Test</a></li>
|
||||
<li><a href="#orgb764395">2.6.1. Get</a></li>
|
||||
<li><a href="#orgca9be8f">2.6.2. Compute</a></li>
|
||||
<li><a href="#orgc8737e1">2.6.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -398,8 +398,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbd82973" class="outline-2">
|
||||
<h2 id="orgbd82973"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org2648ebc" class="outline-2">
|
||||
<h2 id="org2648ebc"><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:
|
||||
@ -558,8 +558,8 @@ The following data stored in the context:
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org16f628b" class="outline-3">
|
||||
<h3 id="org16f628b"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgc69bf5c" class="outline-3">
|
||||
<h3 id="orgc69bf5c"><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> {
|
||||
@ -634,8 +634,8 @@ this mechanism.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1953d86" class="outline-3">
|
||||
<h3 id="org1953d86"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-orgdffda51" class="outline-3">
|
||||
<h3 id="orgdffda51"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
Access functions return <code>QMCKL_SUCCESS</code> when the data has been
|
||||
@ -647,12 +647,12 @@ contains the requested data. Otherwise, this variable is untouched.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org93c8238" class="outline-4">
|
||||
<h4 id="org93c8238"><span class="section-number-4">1.2.1</span> Number of electrons</h4>
|
||||
<div id="outline-container-orga206fe5" class="outline-4">
|
||||
<h4 id="orga206fe5"><span class="section-number-4">1.2.1</span> Number of electrons</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org45789d2" class="outline-4">
|
||||
<h4 id="org45789d2"><span class="section-number-4">1.2.2</span> Number of walkers</h4>
|
||||
<div id="outline-container-org7d88d85" class="outline-4">
|
||||
<h4 id="org7d88d85"><span class="section-number-4">1.2.2</span> Number of walkers</h4>
|
||||
<div class="outline-text-4" id="text-1-2-2">
|
||||
<p>
|
||||
A walker is a set of electron coordinates that are arguments of
|
||||
@ -661,12 +661,12 @@ the wave function. <code>walk_num</code> is the number of walkers.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3309e1a" class="outline-4">
|
||||
<h4 id="org3309e1a"><span class="section-number-4">1.2.3</span> Scaling factors Kappa</h4>
|
||||
<div id="outline-container-orgb11fbe0" class="outline-4">
|
||||
<h4 id="orgb11fbe0"><span class="section-number-4">1.2.3</span> Scaling factors Kappa</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8bd050c" class="outline-4">
|
||||
<h4 id="org8bd050c"><span class="section-number-4">1.2.4</span> Electron coordinates</h4>
|
||||
<div id="outline-container-org3e82504" class="outline-4">
|
||||
<h4 id="org3e82504"><span class="section-number-4">1.2.4</span> Electron coordinates</h4>
|
||||
<div class="outline-text-4" id="text-1-2-4">
|
||||
<p>
|
||||
Returns the current electron coordinates. The pointer is assumed
|
||||
@ -710,8 +710,8 @@ The order of the indices is:
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org3c9fce0" class="outline-3">
|
||||
<h3 id="org3c9fce0"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org5de51a5" class="outline-3">
|
||||
<h3 id="org5de51a5"><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
|
||||
@ -758,8 +758,8 @@ in the context.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org85013a0" class="outline-3">
|
||||
<h3 id="org85013a0"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orgb9fca91" class="outline-3">
|
||||
<h3 id="orgb9fca91"><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>*/
|
||||
@ -865,8 +865,8 @@ rc = qmckl_get_electron_coord (context, <span style="color: #8b2252;">'N'</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1ec4681" class="outline-2">
|
||||
<h2 id="org1ec4681"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orgd745106" class="outline-2">
|
||||
<h2 id="orgd745106"><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
|
||||
@ -879,12 +879,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org15d7aa8" class="outline-3">
|
||||
<h3 id="org15d7aa8"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-org3fcb33e" class="outline-3">
|
||||
<h3 id="org3fcb33e"><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-org302d000" class="outline-4">
|
||||
<h4 id="org302d000"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org00e87d3" class="outline-4">
|
||||
<h4 id="org00e87d3"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_ee_distance</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">double</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">distance</span>);
|
||||
@ -893,10 +893,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9a4fb53" class="outline-4">
|
||||
<h4 id="org9a4fb53"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-orgaf72175" class="outline-4">
|
||||
<h4 id="orgaf72175"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org001a737" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgee3a95c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -992,8 +992,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc4c23c3" class="outline-4">
|
||||
<h4 id="orgc4c23c3"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orgf0d8091" class="outline-4">
|
||||
<h4 id="orgf0d8091"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-1-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_electron_provided</span>(<span style="color: #a0522d;">context</span>));
|
||||
@ -1027,8 +1027,8 @@ rc = qmckl_get_electron_ee_distance(context, ee_distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbe46d90" class="outline-3">
|
||||
<h3 id="orgbe46d90"><span class="section-number-3">2.2</span> Electron-electron rescaled distances</h3>
|
||||
<div id="outline-container-org73f8dc0" class="outline-3">
|
||||
<h3 id="org73f8dc0"><span class="section-number-3">2.2</span> Electron-electron rescaled distances</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
<code>ee_distance_rescaled</code> stores the matrix of the rescaled distances between all
|
||||
@ -1046,8 +1046,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge98b91d" class="outline-4">
|
||||
<h4 id="orge98b91d"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-org2afb9dd" class="outline-4">
|
||||
<h4 id="org2afb9dd"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_ee_distance_rescaled</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_rescaled</span>);
|
||||
@ -1056,10 +1056,10 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8b459ac" class="outline-4">
|
||||
<h4 id="org8b459ac"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org8d00d24" class="outline-4">
|
||||
<h4 id="org8d00d24"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orgb54e6ab" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga634f77" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1164,8 +1164,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org54d6ed8" class="outline-4">
|
||||
<h4 id="org54d6ed8"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-orgdcdd2d5" class="outline-4">
|
||||
<h4 id="orgdcdd2d5"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_electron_provided</span>(<span style="color: #a0522d;">context</span>));
|
||||
@ -1199,8 +1199,8 @@ rc = qmckl_get_electron_ee_distance_rescaled(context, ee_distance_rescaled);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org959a177" class="outline-3">
|
||||
<h3 id="org959a177"><span class="section-number-3">2.3</span> Electron-electron rescaled distance gradients and laplacian with respect to electron coords</h3>
|
||||
<div id="outline-container-org44ba1d9" class="outline-3">
|
||||
<h3 id="org44ba1d9"><span class="section-number-3">2.3</span> Electron-electron rescaled distance gradients and laplacian with respect to electron coords</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
The rescaled distances which is given as \(R = (1 - \exp{-\kappa r})/\kappa\)
|
||||
@ -1212,8 +1212,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4965533" class="outline-4">
|
||||
<h4 id="org4965533"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org0424901" class="outline-4">
|
||||
<h4 id="org0424901"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_ee_distance_rescaled_deriv_e</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_rescaled_deriv_e</span>);
|
||||
@ -1222,10 +1222,10 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org50760fe" class="outline-4">
|
||||
<h4 id="org50760fe"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-orgc73b698" class="outline-4">
|
||||
<h4 id="orgc73b698"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org840f22c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgef49729" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1330,8 +1330,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge6d3840" class="outline-4">
|
||||
<h4 id="orge6d3840"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-org89d5c83" class="outline-4">
|
||||
<h4 id="org89d5c83"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-3-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_electron_provided</span>(<span style="color: #a0522d;">context</span>));
|
||||
@ -1367,12 +1367,12 @@ rc = qmckl_get_electron_ee_distance_rescaled_deriv_e(context, ee_distance_rescal
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgd0e0d8c" class="outline-3">
|
||||
<h3 id="orgd0e0d8c"><span class="section-number-3">2.4</span> Electron-nucleus distances</h3>
|
||||
<div id="outline-container-org6870e6f" class="outline-3">
|
||||
<h3 id="org6870e6f"><span class="section-number-3">2.4</span> Electron-nucleus distances</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
</div>
|
||||
<div id="outline-container-orgc3b57a5" class="outline-4">
|
||||
<h4 id="orgc3b57a5"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-orgb13a51c" class="outline-4">
|
||||
<h4 id="orgb13a51c"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_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>);
|
||||
@ -1381,10 +1381,10 @@ rc = qmckl_get_electron_ee_distance_rescaled_deriv_e(context, ee_distance_rescal
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2e69ca0" class="outline-4">
|
||||
<h4 id="org2e69ca0"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-org66d2a57" class="outline-4">
|
||||
<h4 id="org66d2a57"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="org004c6d1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgde76e1f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1501,8 +1501,8 @@ rc = qmckl_get_electron_ee_distance_rescaled_deriv_e(context, ee_distance_rescal
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org326979e" class="outline-4">
|
||||
<h4 id="org326979e"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-orgf374e86" class="outline-4">
|
||||
<h4 id="orgf374e86"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-4-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">
|
||||
@ -1550,8 +1550,8 @@ rc = qmckl_get_electron_en_distance(context, &(en_distance[0][0][0]));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org28613d7" class="outline-3">
|
||||
<h3 id="org28613d7"><span class="section-number-3">2.5</span> Electron-nucleus rescaled distances</h3>
|
||||
<div id="outline-container-org62e81bb" class="outline-3">
|
||||
<h3 id="org62e81bb"><span class="section-number-3">2.5</span> Electron-nucleus rescaled distances</h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
<p>
|
||||
<code>en_distance_rescaled</code> stores the matrix of the rescaled distances between
|
||||
@ -1569,8 +1569,8 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1ee6ef0" class="outline-4">
|
||||
<h4 id="org1ee6ef0"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div id="outline-container-org094d7b0" class="outline-4">
|
||||
<h4 id="org094d7b0"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-5-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_distance_rescaled</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_rescaled</span>);
|
||||
@ -1579,10 +1579,10 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6ec173c" class="outline-4">
|
||||
<h4 id="org6ec173c"><span class="section-number-4">2.5.2</span> Compute</h4>
|
||||
<div id="outline-container-orgd397909" class="outline-4">
|
||||
<h4 id="orgd397909"><span class="section-number-4">2.5.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-5-2">
|
||||
<table id="org5660a8d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgd9f76b4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1714,8 +1714,8 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge7b35e2" class="outline-4">
|
||||
<h4 id="orge7b35e2"><span class="section-number-4">2.5.3</span> Test</h4>
|
||||
<div id="outline-container-orgeab612f" class="outline-4">
|
||||
<h4 id="orgeab612f"><span class="section-number-4">2.5.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-5-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">
|
||||
@ -1763,8 +1763,8 @@ rc = qmckl_get_electron_en_distance_rescaled(context, &(en_distance_rescaled
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7422cd9" class="outline-3">
|
||||
<h3 id="org7422cd9"><span class="section-number-3">2.6</span> Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</h3>
|
||||
<div id="outline-container-org6103b7e" class="outline-3">
|
||||
<h3 id="org6103b7e"><span class="section-number-3">2.6</span> Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
<p>
|
||||
The rescaled distances which is given as \(R = (1 - \exp{-\kappa r})/\kappa\)
|
||||
@ -1776,8 +1776,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfeedb92" class="outline-4">
|
||||
<h4 id="orgfeedb92"><span class="section-number-4">2.6.1</span> Get</h4>
|
||||
<div id="outline-container-orgb764395" class="outline-4">
|
||||
<h4 id="orgb764395"><span class="section-number-4">2.6.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-6-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_electron_en_distance_rescaled_deriv_e</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_rescaled_deriv_e</span>);
|
||||
@ -1786,10 +1786,10 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga3aac37" class="outline-4">
|
||||
<h4 id="orga3aac37"><span class="section-number-4">2.6.2</span> Compute</h4>
|
||||
<div id="outline-container-orgca9be8f" class="outline-4">
|
||||
<h4 id="orgca9be8f"><span class="section-number-4">2.6.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-6-2">
|
||||
<table id="orgb3d4b46" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3c7c7aa" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1922,8 +1922,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd16dafa" class="outline-4">
|
||||
<h4 id="orgd16dafa"><span class="section-number-4">2.6.3</span> Test</h4>
|
||||
<div id="outline-container-orgc8737e1" class="outline-4">
|
||||
<h4 id="orgc8737e1"><span class="section-number-4">2.6.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-6-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">
|
||||
@ -1978,7 +1978,7 @@ rc = qmckl_get_electron_en_distance_rescaled_deriv_e(context, &(en_distance_
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 21:45</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</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-06-23 Wed 21:45 -->
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<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,17 +311,17 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgc245fa2">1. Decoding errors</a></li>
|
||||
<li><a href="#orgf684a22">2. Data structure in context</a></li>
|
||||
<li><a href="#org16d5003">3. Updating errors in the context</a></li>
|
||||
<li><a href="#orgdcb176b">4. Get the error</a></li>
|
||||
<li><a href="#orgf9c3f98">5. Failing</a></li>
|
||||
<li><a href="#org8bd372c">1. Decoding errors</a></li>
|
||||
<li><a href="#org75f3cf5">2. Data structure in context</a></li>
|
||||
<li><a href="#orgd07190e">3. Updating errors in the context</a></li>
|
||||
<li><a href="#orgbd60f2c">4. Get the error</a></li>
|
||||
<li><a href="#orgb07505c">5. Failing</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc245fa2" class="outline-2">
|
||||
<h2 id="orgc245fa2"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-org8bd372c" class="outline-2">
|
||||
<h2 id="org8bd372c"><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
|
||||
@ -451,8 +451,8 @@ The text strings are extracted from the previous table.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf684a22" class="outline-2">
|
||||
<h2 id="orgf684a22"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-org75f3cf5" class="outline-2">
|
||||
<h2 id="org75f3cf5"><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
|
||||
@ -475,8 +475,8 @@ dynamic memory allocation.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org16d5003" class="outline-2">
|
||||
<h2 id="org16d5003"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<div id="outline-container-orgd07190e" class="outline-2">
|
||||
<h2 id="orgd07190e"><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>.
|
||||
@ -522,8 +522,8 @@ explaining the error. The exit code can't be <code>QMCKL_SUCCESS</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdcb176b" class="outline-2">
|
||||
<h2 id="orgdcb176b"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div id="outline-container-orgbd60f2c" class="outline-2">
|
||||
<h2 id="orgbd60f2c"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<p>
|
||||
Upon error, the error type and message can be obtained from the
|
||||
@ -564,8 +564,8 @@ function name and message is mandatory.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgf9c3f98" class="outline-2">
|
||||
<h2 id="orgf9c3f98"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div id="outline-container-orgb07505c" class="outline-2">
|
||||
<h2 id="orgb07505c"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
<p>
|
||||
To make a function fail, the <code>qmckl_failwith</code> function should be
|
||||
@ -628,7 +628,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-06-23 Wed 21:45</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</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-06-23 Wed 21:45 -->
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<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="#orgbdfd74e">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org081aa63">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#org6c2574e">3. Allocation/deallocation functions</a></li>
|
||||
<li><a href="#org3e23a08">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#orgc1c4a56">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#orgf7f9b43">3. Allocation/deallocation functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbdfd74e" class="outline-2">
|
||||
<h2 id="orgbdfd74e"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<div id="outline-container-org3e23a08" class="outline-2">
|
||||
<h2 id="org3e23a08"><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-org081aa63" class="outline-2">
|
||||
<h2 id="org081aa63"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<div id="outline-container-orgc1c4a56" class="outline-2">
|
||||
<h2 id="orgc1c4a56"><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-org6c2574e" class="outline-2">
|
||||
<h2 id="org6c2574e"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-orgf7f9b43" class="outline-2">
|
||||
<h2 id="orgf7f9b43"><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-06-23 Wed 21:45</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</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-06-23 Wed 21:45 -->
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Nucleus</title>
|
||||
@ -333,35 +333,35 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org6082cde">1. Context</a>
|
||||
<li><a href="#orgc7bbb87">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org662f300">1.1. Data structure</a></li>
|
||||
<li><a href="#org36ccfe2">1.2. Access functions</a></li>
|
||||
<li><a href="#org779ff83">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgc1e95f4">1.4. Test</a></li>
|
||||
<li><a href="#org01396fb">1.1. Data structure</a></li>
|
||||
<li><a href="#org6f268ca">1.2. Access functions</a></li>
|
||||
<li><a href="#orgf3159b8">1.3. Initialization functions</a></li>
|
||||
<li><a href="#orgf530cf9">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd64ad0c">2. Computation</a>
|
||||
<li><a href="#org0424afa">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#org47cad22">2.1. Nucleus-nucleus distances</a>
|
||||
<li><a href="#org3d7fd1e">2.1. Nucleus-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org7b324bf">2.1.1. Get</a></li>
|
||||
<li><a href="#org1e51035">2.1.2. Compute</a></li>
|
||||
<li><a href="#orga9a33b5">2.1.3. Test</a></li>
|
||||
<li><a href="#org56e41d5">2.1.1. Get</a></li>
|
||||
<li><a href="#org98643a0">2.1.2. Compute</a></li>
|
||||
<li><a href="#org1581235">2.1.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1e9b576">2.2. Nucleus-nucleus rescaled distances</a>
|
||||
<li><a href="#org1176055">2.2. Nucleus-nucleus rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#orga791f8f">2.2.1. Get</a></li>
|
||||
<li><a href="#org62c749a">2.2.2. Compute</a></li>
|
||||
<li><a href="#org5c00280">2.2.3. Test</a></li>
|
||||
<li><a href="#orgca9d5bd">2.2.1. Get</a></li>
|
||||
<li><a href="#org0a74b48">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgd4ee3c0">2.2.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgd84dbac">2.3. Nuclear repulsion energy</a>
|
||||
<li><a href="#orgbf79479">2.3. Nuclear repulsion energy</a>
|
||||
<ul>
|
||||
<li><a href="#org522b601">2.3.1. Get</a></li>
|
||||
<li><a href="#orgbd781e9">2.3.2. Compute</a></li>
|
||||
<li><a href="#org9f5996e">2.3.3. Test</a></li>
|
||||
<li><a href="#orgba276ec">2.3.1. Get</a></li>
|
||||
<li><a href="#org90b2c58">2.3.2. Compute</a></li>
|
||||
<li><a href="#orgd04d6d2">2.3.3. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -370,8 +370,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6082cde" class="outline-2">
|
||||
<h2 id="org6082cde"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgc7bbb87" class="outline-2">
|
||||
<h2 id="orgc7bbb87"><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:
|
||||
@ -463,8 +463,8 @@ The following data stored in the context:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org662f300" class="outline-3">
|
||||
<h3 id="org662f300"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org01396fb" class="outline-3">
|
||||
<h3 id="org01396fb"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">typedef</span> <span style="color: #a020f0;">struct</span> <span style="color: #228b22;">qmckl_nucleus_struct</span> {
|
||||
@ -523,8 +523,8 @@ this mechanism.
|
||||
|
||||
|
||||
|
||||
<div id="outline-container-org36ccfe2" class="outline-3">
|
||||
<h3 id="org36ccfe2"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org6f268ca" class="outline-3">
|
||||
<h3 id="org6f268ca"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
When all the data relative to nuclei have been set, the following
|
||||
@ -538,8 +538,8 @@ function returns <code>true</code>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org779ff83" class="outline-3">
|
||||
<h3 id="org779ff83"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgf3159b8" class="outline-3">
|
||||
<h3 id="orgf3159b8"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
To set the data relative to the nuclei in the context, the
|
||||
@ -574,8 +574,8 @@ atoms. The coordinates should be given in atomic units.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc1e95f4" class="outline-3">
|
||||
<h3 id="orgc1e95f4"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orgf530cf9" class="outline-3">
|
||||
<h3 id="orgf530cf9"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">nucl_num</span> = chbrclf_nucl_num;
|
||||
@ -659,8 +659,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd64ad0c" class="outline-2">
|
||||
<h2 id="orgd64ad0c"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org0424afa" class="outline-2">
|
||||
<h2 id="org0424afa"><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
|
||||
@ -673,12 +673,12 @@ current date is stored.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org47cad22" class="outline-3">
|
||||
<h3 id="org47cad22"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div id="outline-container-org3d7fd1e" class="outline-3">
|
||||
<h3 id="org3d7fd1e"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
</div>
|
||||
<div id="outline-container-org7b324bf" class="outline-4">
|
||||
<h4 id="org7b324bf"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org56e41d5" class="outline-4">
|
||||
<h4 id="org56e41d5"><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_nucleus_nn_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>);
|
||||
@ -687,10 +687,10 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1e51035" class="outline-4">
|
||||
<h4 id="org1e51035"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org98643a0" class="outline-4">
|
||||
<h4 id="org98643a0"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orgce7fa2d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgbcd258a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -768,8 +768,8 @@ current date is stored.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga9a33b5" class="outline-4">
|
||||
<h4 id="orga9a33b5"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-org1581235" class="outline-4">
|
||||
<h4 id="org1581235"><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>*/
|
||||
@ -789,12 +789,12 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org1e9b576" class="outline-3">
|
||||
<h3 id="org1e9b576"><span class="section-number-3">2.2</span> Nucleus-nucleus rescaled distances</h3>
|
||||
<div id="outline-container-org1176055" class="outline-3">
|
||||
<h3 id="org1176055"><span class="section-number-3">2.2</span> Nucleus-nucleus rescaled distances</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
</div>
|
||||
<div id="outline-container-orga791f8f" class="outline-4">
|
||||
<h4 id="orga791f8f"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orgca9d5bd" class="outline-4">
|
||||
<h4 id="orgca9d5bd"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_nucleus_nn_distance_rescaled</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_rescaled</span>);
|
||||
@ -803,10 +803,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org62c749a" class="outline-4">
|
||||
<h4 id="org62c749a"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org0a74b48" class="outline-4">
|
||||
<h4 id="org0a74b48"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="org950e2f0" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgf56c7f2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -885,8 +885,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5c00280" class="outline-4">
|
||||
<h4 id="org5c00280"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-orgd4ee3c0" class="outline-4">
|
||||
<h4 id="orgd4ee3c0"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-2-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -906,8 +906,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgd84dbac" class="outline-3">
|
||||
<h3 id="orgd84dbac"><span class="section-number-3">2.3</span> Nuclear repulsion energy</h3>
|
||||
<div id="outline-container-orgbf79479" class="outline-3">
|
||||
<h3 id="orgbf79479"><span class="section-number-3">2.3</span> Nuclear repulsion energy</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
\[
|
||||
@ -916,8 +916,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org522b601" class="outline-4">
|
||||
<h4 id="org522b601"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-orgba276ec" class="outline-4">
|
||||
<h4 id="orgba276ec"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div class="outline-text-4" id="text-2-3-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c"><span style="color: #228b22;">qmckl_exit_code</span> <span style="color: #0000ff;">qmckl_get_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: #a0522d;">energy</span>);
|
||||
@ -926,10 +926,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbd781e9" class="outline-4">
|
||||
<h4 id="orgbd781e9"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-org90b2c58" class="outline-4">
|
||||
<h4 id="org90b2c58"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="orga13c3b1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org311022c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1017,8 +1017,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org9f5996e" class="outline-4">
|
||||
<h4 id="org9f5996e"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-orgd04d6d2" class="outline-4">
|
||||
<h4 id="orgd04d6d2"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div class="outline-text-4" id="text-2-3-3">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-c">/* <span style="color: #b22222;">Reference input data </span>*/
|
||||
@ -1038,7 +1038,7 @@ rc = qmckl_get_nucleus_repulsion(context, &rep);
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 21:45</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</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-06-23 Wed 21:45 -->
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<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="#org1512d5c">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org64d2cd5">2. Precision</a></li>
|
||||
<li><a href="#org8c53473">3. Range</a></li>
|
||||
<li><a href="#orgb76751b">4. Helper functions</a></li>
|
||||
<li><a href="#org9e467d2">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#orge67a7da">2. Precision</a></li>
|
||||
<li><a href="#org1ecdc63">3. Range</a></li>
|
||||
<li><a href="#org521e1e1">4. Helper functions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1512d5c" class="outline-2">
|
||||
<h2 id="org1512d5c"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<div id="outline-container-org9e467d2" class="outline-2">
|
||||
<h2 id="org9e467d2"><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="orgb7ba188" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgbea264b" 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-org64d2cd5" class="outline-2">
|
||||
<h2 id="org64d2cd5"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-orge67a7da" class="outline-2">
|
||||
<h2 id="orge67a7da"><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-org8c53473" class="outline-2">
|
||||
<h2 id="org8c53473"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-org1ecdc63" class="outline-2">
|
||||
<h2 id="org1ecdc63"><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-orgb76751b" class="outline-2">
|
||||
<h2 id="orgb76751b"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-org521e1e1" class="outline-2">
|
||||
<h2 id="org521e1e1"><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-06-23 Wed 21:45</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</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-06-23 Wed 21:45 -->
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Data for Tests</title>
|
||||
@ -233,20 +233,20 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org808e5b5">1. CHBrClF</a>
|
||||
<li><a href="#orge832bd8">1. CHBrClF</a>
|
||||
<ul>
|
||||
<li><a href="#orgff5f600">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org21e4021">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#orgcf5e463">1.3. <span class="todo TODO">TODO</span> Molecular orbitals</a></li>
|
||||
<li><a href="#org0b95bf5">1.4. Electron coordinates</a></li>
|
||||
<li><a href="#org2d49b20">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org9bf98b7">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org2ad2f13">1.3. <span class="todo TODO">TODO</span> Molecular orbitals</a></li>
|
||||
<li><a href="#org9be6784">1.4. Electron coordinates</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org808e5b5" class="outline-2">
|
||||
<h2 id="org808e5b5"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div id="outline-container-orge832bd8" class="outline-2">
|
||||
<h2 id="orge832bd8"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
This test is the all-electron Hartree-Fock wave function of CHClBr,
|
||||
@ -330,8 +330,8 @@ and with a high maximum angular momentum.
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-orgff5f600" class="outline-3">
|
||||
<h3 id="orgff5f600"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-org2d49b20" class="outline-3">
|
||||
<h3 id="org2d49b20"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<pre class="example">
|
||||
5
|
||||
@ -361,8 +361,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org21e4021" class="outline-3">
|
||||
<h3 id="org21e4021"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div id="outline-container-org9bf98b7" class="outline-3">
|
||||
<h3 id="org9bf98b7"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<pre class="example">
|
||||
HYDROGEN
|
||||
@ -1175,11 +1175,11 @@ F 1
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgcf5e463" class="outline-3">
|
||||
<h3 id="orgcf5e463"><span class="section-number-3">1.3</span> <span class="todo TODO">TODO</span> Molecular orbitals</h3>
|
||||
<div id="outline-container-org2ad2f13" class="outline-3">
|
||||
<h3 id="org2ad2f13"><span class="section-number-3">1.3</span> <span class="todo TODO">TODO</span> Molecular orbitals</h3>
|
||||
</div>
|
||||
<div id="outline-container-org0b95bf5" class="outline-3">
|
||||
<h3 id="org0b95bf5"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org9be6784" class="outline-3">
|
||||
<h3 id="org9be6784"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
Electron coordinates are stored in atomic units in normal format.
|
||||
@ -1339,7 +1339,7 @@ Electron coordinates are stored in atomic units in normal format.
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="date">Created: 2021-06-23 Wed 21:45</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</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-06-23 Wed 21:45 -->
|
||||
<!-- 2021-06-23 Wed 22:00 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Utility functions</title>
|
||||
@ -333,13 +333,13 @@ for the JavaScript code in this tag.
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#org311357b">1. Matrix operations</a>
|
||||
<li><a href="#org8c53743">1. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#org1154110">1.1. <code>qmckl_transpose</code></a>
|
||||
<li><a href="#orga664369">1.1. <code>qmckl_transpose</code></a>
|
||||
<ul>
|
||||
<li><a href="#org8469682">1.1.1. Requirements</a></li>
|
||||
<li><a href="#org4cd6faf">1.1.2. C header</a></li>
|
||||
<li><a href="#org6212b3e">1.1.3. Source</a></li>
|
||||
<li><a href="#orgf33a386">1.1.1. Requirements</a></li>
|
||||
<li><a href="#org379d5bb">1.1.2. C header</a></li>
|
||||
<li><a href="#orgb6ce8d6">1.1.3. Source</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -348,18 +348,18 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org311357b" class="outline-2">
|
||||
<h2 id="org311357b"><span class="section-number-2">1</span> Matrix operations</h2>
|
||||
<div id="outline-container-org8c53743" class="outline-2">
|
||||
<h2 id="org8c53743"><span class="section-number-2">1</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org1154110" class="outline-3">
|
||||
<h3 id="org1154110"><span class="section-number-3">1.1</span> <code>qmckl_transpose</code></h3>
|
||||
<div id="outline-container-orga664369" class="outline-3">
|
||||
<h3 id="orga664369"><span class="section-number-3">1.1</span> <code>qmckl_transpose</code></h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</p>
|
||||
|
||||
<table id="org33b4834" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org961e845" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -424,8 +424,8 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8469682" class="outline-4">
|
||||
<h4 id="org8469682"><span class="section-number-4">1.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orgf33a386" class="outline-4">
|
||||
<h4 id="orgf33a386"><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>
|
||||
@ -439,8 +439,8 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4cd6faf" class="outline-4">
|
||||
<h4 id="org4cd6faf"><span class="section-number-4">1.1.2</span> C header</h4>
|
||||
<div id="outline-container-org379d5bb" class="outline-4">
|
||||
<h4 id="org379d5bb"><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_transpose</span> (
|
||||
@ -456,8 +456,8 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6212b3e" class="outline-4">
|
||||
<h4 id="org6212b3e"><span class="section-number-4">1.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgb6ce8d6" class="outline-4">
|
||||
<h4 id="orgb6ce8d6"><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: #a020f0;">function</span><span style="color: #a0522d;"> </span><span style="color: #0000ff;">qmckl_transpose_f</span><span style="color: #000000; background-color: #ffffff;">(context, m, n, A, LDA, B, LDB)</span><span style="color: #a0522d;"> </span><span style="color: #a020f0;">&</span>
|
||||
@ -516,7 +516,7 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 21:45</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 22:00</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