mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-11-03 20:54:09 +01:00
Deploying to gh-pages from @ TREX-CoE/qmckl@569b78666e 🚀
This commit is contained in:
parent
97c82ed9cf
commit
8789926957
@ -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 07:11 -->
|
||||
<!-- 2021-06-23 Wed 21:45 -->
|
||||
<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 07:11</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 21:45</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 07:11 -->
|
||||
<!-- 2021-06-23 Wed 21:45 -->
|
||||
<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="#org1e694b4">1. Using QMCkl</a></li>
|
||||
<li><a href="#org44609d6">2. Developing in QMCkl</a>
|
||||
<li><a href="#orgb95a92d">1. Using QMCkl</a></li>
|
||||
<li><a href="#org9642395">2. Developing in QMCkl</a>
|
||||
<ul>
|
||||
<li><a href="#orgf601e94">2.1. Literate programming</a></li>
|
||||
<li><a href="#orgb36456a">2.2. Source code editing</a></li>
|
||||
<li><a href="#orgb965a06">2.3. Choice of the programming language</a></li>
|
||||
<li><a href="#orgf51497a">2.4. Coding rules</a></li>
|
||||
<li><a href="#orge897fea">2.5. Design of the library</a></li>
|
||||
<li><a href="#org23d8f45">2.6. Naming conventions</a></li>
|
||||
<li><a href="#orgea8b3fa">2.7. Application programming interface</a></li>
|
||||
<li><a href="#orgf0cd900">2.8. Global state</a></li>
|
||||
<li><a href="#org34851fb">2.9. Headers</a></li>
|
||||
<li><a href="#org76e1dad">2.10. Low-level functions</a></li>
|
||||
<li><a href="#orgb2da620">2.11. High-level functions</a></li>
|
||||
<li><a href="#orgaa71a26">2.12. Numerical precision</a></li>
|
||||
<li><a href="#org326acaa">2.13. Algorithms</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1e694b4" class="outline-2">
|
||||
<h2 id="org1e694b4"><span class="section-number-2">1</span> Using QMCkl</h2>
|
||||
<div id="outline-container-orgb95a92d" class="outline-2">
|
||||
<h2 id="orgb95a92d"><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-org44609d6" class="outline-2">
|
||||
<h2 id="org44609d6"><span class="section-number-2">2</span> Developing in QMCkl</h2>
|
||||
<div id="outline-container-org9642395" class="outline-2">
|
||||
<h2 id="org9642395"><span class="section-number-2">2</span> Developing in QMCkl</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgf601e94" class="outline-3">
|
||||
<h3 id="orgf601e94"><span class="section-number-3">2.1</span> Literate programming</h3>
|
||||
<div id="outline-container-org20970cc" class="outline-3">
|
||||
<h3 id="org20970cc"><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-orgb36456a" class="outline-3">
|
||||
<h3 id="orgb36456a"><span class="section-number-3">2.2</span> Source code editing</h3>
|
||||
<div id="outline-container-org7b6558c" class="outline-3">
|
||||
<h3 id="org7b6558c"><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-orgb965a06" class="outline-3">
|
||||
<h3 id="orgb965a06"><span class="section-number-3">2.3</span> Choice of the programming language</h3>
|
||||
<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 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-orgf51497a" class="outline-3">
|
||||
<h3 id="orgf51497a"><span class="section-number-3">2.4</span> Coding rules</h3>
|
||||
<div id="outline-container-orgd936a2f" class="outline-3">
|
||||
<h3 id="orgd936a2f"><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-orge897fea" class="outline-3">
|
||||
<h3 id="orge897fea"><span class="section-number-3">2.5</span> Design of the library</h3>
|
||||
<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 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-org23d8f45" class="outline-3">
|
||||
<h3 id="org23d8f45"><span class="section-number-3">2.6</span> Naming conventions</h3>
|
||||
<div id="outline-container-org001a6bc" class="outline-3">
|
||||
<h3 id="org001a6bc"><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-orgea8b3fa" class="outline-3">
|
||||
<h3 id="orgea8b3fa"><span class="section-number-3">2.7</span> Application programming interface</h3>
|
||||
<div id="outline-container-org177791f" class="outline-3">
|
||||
<h3 id="org177791f"><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-orgf0cd900" class="outline-3">
|
||||
<h3 id="orgf0cd900"><span class="section-number-3">2.8</span> Global state</h3>
|
||||
<div id="outline-container-orgda964f8" class="outline-3">
|
||||
<h3 id="orgda964f8"><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="orga7da58f">=context=</a> contains the global
|
||||
<code>qmckl_context_create</code> function. The <a id="org0ee79c2">=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-org34851fb" class="outline-3">
|
||||
<h3 id="org34851fb"><span class="section-number-3">2.9</span> Headers</h3>
|
||||
<div id="outline-container-org138452d" class="outline-3">
|
||||
<h3 id="org138452d"><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-org76e1dad" class="outline-3">
|
||||
<h3 id="org76e1dad"><span class="section-number-3">2.10</span> Low-level functions</h3>
|
||||
<div id="outline-container-orgdf26aac" class="outline-3">
|
||||
<h3 id="orgdf26aac"><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="#orga7da58f"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
|
||||
<a href="#org0ee79c2"><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-orgb2da620" class="outline-3">
|
||||
<h3 id="orgb2da620"><span class="section-number-3">2.11</span> High-level functions</h3>
|
||||
<div id="outline-container-orge027c20" class="outline-3">
|
||||
<h3 id="orge027c20"><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="#orga7da58f"><code>context</code></a> variable.
|
||||
the <a href="#org0ee79c2"><code>context</code></a> variable.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaa71a26" class="outline-3">
|
||||
<h3 id="orgaa71a26"><span class="section-number-3">2.12</span> Numerical precision</h3>
|
||||
<div id="outline-container-org1707fa5" class="outline-3">
|
||||
<h3 id="org1707fa5"><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="#orga7da58f"><code>context</code></a>
|
||||
functions will use the precision specified in the <a href="#org0ee79c2"><code>context</code></a>
|
||||
variable.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org326acaa" class="outline-3">
|
||||
<h3 id="org326acaa"><span class="section-number-3">2.13</span> Algorithms</h3>
|
||||
<div id="outline-container-org7a081d4" class="outline-3">
|
||||
<h3 id="org7a081d4"><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 07:11</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 21:45</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 07:11 -->
|
||||
<!-- 2021-06-23 Wed 21:45 -->
|
||||
<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="#orgaa2e6a1">1. Context</a>
|
||||
<li><a href="#org01f1b0e">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgc161e2e">1.1. Data structure</a></li>
|
||||
<li><a href="#org0c389e4">1.2. Access functions</a></li>
|
||||
<li><a href="#org3125122">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org951571a">1.4. <span class="todo TODO">TODO</span> Fortran interfaces</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org12635a6">2. Radial part</a>
|
||||
<li><a href="#org5639d76">2. Radial part</a>
|
||||
<ul>
|
||||
<li><a href="#org8e3f471">2.1. General functions for Gaussian basis functions</a></li>
|
||||
<li><a href="#org2a3cb8b">2.2. <span class="todo TODO">TODO</span> General functions for Slater basis functions</a></li>
|
||||
<li><a href="#orgde1f8cf">2.3. <span class="todo TODO">TODO</span> General functions for Radial functions on a grid</a></li>
|
||||
<li><a href="#org3ef4c7f">2.4. <span class="done DONE">DONE</span> Computation of primitives</a>
|
||||
<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>
|
||||
<ul>
|
||||
<li><a href="#orgc61ce63">2.4.1. Get</a></li>
|
||||
<li><a href="#org7e29b59">2.4.2. Provide</a></li>
|
||||
<li><a href="#org0f910cc">2.4.3. Compute</a></li>
|
||||
<li><a href="#org68bd1aa">2.4.4. Test</a></li>
|
||||
<li><a href="#orgee24714">2.4.5. Ideas for improvement</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org258c301">2.5. Computation of shells</a>
|
||||
<li><a href="#org233af32">2.5. Computation of shells</a>
|
||||
<ul>
|
||||
<li><a href="#org526e87a">2.5.1. Get</a></li>
|
||||
<li><a href="#orge1b512f">2.5.2. Provide</a></li>
|
||||
<li><a href="#orgde2c312">2.5.3. Compute</a></li>
|
||||
<li><a href="#org25c3c3b">2.5.4. Test</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org975ed4c">3. Polynomial part</a>
|
||||
<li><a href="#orgb04f886">3. Polynomial part</a>
|
||||
<ul>
|
||||
<li><a href="#orgdaf24fa">3.1. General functions for Powers of \(x-X_i\)</a>
|
||||
<li><a href="#org4959188">3.1. General functions for Powers of \(x-X_i\)</a>
|
||||
<ul>
|
||||
<li><a href="#orgbd46014">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orgf4f8f8a">3.1.2. C Header</a></li>
|
||||
<li><a href="#org78f713f">3.1.3. Source</a></li>
|
||||
<li><a href="#org8069888">3.1.4. C interface</a></li>
|
||||
<li><a href="#org0ccd90f">3.1.5. Fortran interface</a></li>
|
||||
<li><a href="#orgff8b36a">3.1.6. Test</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8fa5cf0">3.2. General functions for Value, Gradient and Laplacian of a polynomial</a>
|
||||
<li><a href="#org7090c39">3.2. General functions for Value, Gradient and Laplacian of a polynomial</a>
|
||||
<ul>
|
||||
<li><a href="#org4787db6">3.2.1. Requirements</a></li>
|
||||
<li><a href="#org73d3e12">3.2.2. C Header</a></li>
|
||||
<li><a href="#org7af979d">3.2.3. Source</a></li>
|
||||
<li><a href="#org4ff8f76">3.2.4. C interface</a></li>
|
||||
<li><a href="#org1f99233">3.2.5. Fortran interface</a></li>
|
||||
<li><a href="#org912e628">3.2.6. Test</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org4a577ae">4. Combining radial and polynomial parts</a></li>
|
||||
<li><a href="#org6381df9">4. Combining radial and polynomial parts</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgaa2e6a1" class="outline-2">
|
||||
<h2 id="orgaa2e6a1"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org01f1b0e" class="outline-2">
|
||||
<h2 id="org01f1b0e"><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-orgc161e2e" class="outline-3">
|
||||
<h3 id="orgc161e2e"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgb22a76e" class="outline-3">
|
||||
<h3 id="orgb22a76e"><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-org0c389e4" class="outline-3">
|
||||
<h3 id="org0c389e4"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org62c9e79" class="outline-3">
|
||||
<h3 id="org62c9e79"><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-org3125122" class="outline-3">
|
||||
<h3 id="org3125122"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-orgbd957a8" class="outline-3">
|
||||
<h3 id="orgbd957a8"><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-org951571a" class="outline-3">
|
||||
<h3 id="org951571a"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Fortran interfaces</h3>
|
||||
<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>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org12635a6" class="outline-2">
|
||||
<h2 id="org12635a6"><span class="section-number-2">2</span> Radial part</h2>
|
||||
<div id="outline-container-org5639d76" class="outline-2">
|
||||
<h2 id="org5639d76"><span class="section-number-2">2</span> Radial part</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-org8e3f471" class="outline-3">
|
||||
<h3 id="org8e3f471"><span class="section-number-3">2.1</span> General functions for Gaussian basis functions</h3>
|
||||
<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 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-org2a3cb8b" class="outline-3">
|
||||
<h3 id="org2a3cb8b"><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-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>
|
||||
<div id="outline-container-orgde1f8cf" class="outline-3">
|
||||
<h3 id="orgde1f8cf"><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-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>
|
||||
<div id="outline-container-org3ef4c7f" class="outline-3">
|
||||
<h3 id="org3ef4c7f"><span class="section-number-3">2.4</span> <span class="done DONE">DONE</span> Computation of primitives</h3>
|
||||
<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 class="outline-text-3" id="text-2-4">
|
||||
</div>
|
||||
<div id="outline-container-orgc61ce63" class="outline-4">
|
||||
<h4 id="orgc61ce63"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-orgd7b3b3b" class="outline-4">
|
||||
<h4 id="orgd7b3b3b"><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-org7e29b59" class="outline-4">
|
||||
<h4 id="org7e29b59"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
<div id="outline-container-orgcb5883f" class="outline-4">
|
||||
<h4 id="orgcb5883f"><span class="section-number-4">2.4.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0f910cc" class="outline-4">
|
||||
<h4 id="org0f910cc"><span class="section-number-4">2.4.3</span> Compute</h4>
|
||||
<div id="outline-container-org1828bdd" class="outline-4">
|
||||
<h4 id="org1828bdd"><span class="section-number-4">2.4.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-3">
|
||||
<table id="orgaddafbc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8dfd5af" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1140,12 +1140,12 @@ Requirements
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org68bd1aa" class="outline-4">
|
||||
<h4 id="org68bd1aa"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
<div id="outline-container-org0de6823" class="outline-4">
|
||||
<h4 id="org0de6823"><span class="section-number-4">2.4.4</span> Test</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgee24714" class="outline-4">
|
||||
<h4 id="orgee24714"><span class="section-number-4">2.4.5</span> Ideas for improvement</h4>
|
||||
<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 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-org258c301" class="outline-3">
|
||||
<h3 id="org258c301"><span class="section-number-3">2.5</span> Computation of shells</h3>
|
||||
<div id="outline-container-org233af32" class="outline-3">
|
||||
<h3 id="org233af32"><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-org526e87a" class="outline-4">
|
||||
<h4 id="org526e87a"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div id="outline-container-orgabce2fc" class="outline-4">
|
||||
<h4 id="orgabce2fc"><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-orge1b512f" class="outline-4">
|
||||
<h4 id="orge1b512f"><span class="section-number-4">2.5.2</span> Provide</h4>
|
||||
<div id="outline-container-org43024a9" class="outline-4">
|
||||
<h4 id="org43024a9"><span class="section-number-4">2.5.2</span> Provide</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgde2c312" class="outline-4">
|
||||
<h4 id="orgde2c312"><span class="section-number-4">2.5.3</span> Compute</h4>
|
||||
<div id="outline-container-org705820e" class="outline-4">
|
||||
<h4 id="org705820e"><span class="section-number-4">2.5.3</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-5-3">
|
||||
<table id="org941fcad" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4bd4bb3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1410,18 +1410,18 @@ k=0;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-org25c3c3b" class="outline-4">
|
||||
<h4 id="org25c3c3b"><span class="section-number-4">2.5.4</span> Test</h4>
|
||||
<div id="outline-container-org62d6b09" class="outline-4">
|
||||
<h4 id="org62d6b09"><span class="section-number-4">2.5.4</span> Test</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org975ed4c" class="outline-2">
|
||||
<h2 id="org975ed4c"><span class="section-number-2">3</span> Polynomial part</h2>
|
||||
<div id="outline-container-orgb04f886" class="outline-2">
|
||||
<h2 id="orgb04f886"><span class="section-number-2">3</span> Polynomial part</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-orgdaf24fa" class="outline-3">
|
||||
<h3 id="orgdaf24fa"><span class="section-number-3">3.1</span> General functions for Powers of \(x-X_i\)</h3>
|
||||
<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 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="orgc49af49" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4370aba" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
@ -1491,8 +1491,8 @@ the \(n\) points:
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbd46014" class="outline-4">
|
||||
<h4 id="orgbd46014"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org1513d3f" class="outline-4">
|
||||
<h4 id="org1513d3f"><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-orgf4f8f8a" class="outline-4">
|
||||
<h4 id="orgf4f8f8a"><span class="section-number-4">3.1.2</span> C Header</h4>
|
||||
<div id="outline-container-orgcb30f38" class="outline-4">
|
||||
<h4 id="orgcb30f38"><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-org78f713f" class="outline-4">
|
||||
<h4 id="org78f713f"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgff4c4d3" class="outline-4">
|
||||
<h4 id="orgff4c4d3"><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-org8069888" class="outline-4">
|
||||
<h4 id="org8069888"><span class="section-number-4">3.1.4</span> C interface</h4>
|
||||
<div id="outline-container-org8b64b01" class="outline-4">
|
||||
<h4 id="org8b64b01"><span class="section-number-4">3.1.4</span> C interface</h4>
|
||||
</div>
|
||||
<div id="outline-container-org0ccd90f" class="outline-4">
|
||||
<h4 id="org0ccd90f"><span class="section-number-4">3.1.5</span> Fortran interface</h4>
|
||||
<div id="outline-container-org2377600" class="outline-4">
|
||||
<h4 id="org2377600"><span class="section-number-4">3.1.5</span> Fortran interface</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgff8b36a" class="outline-4">
|
||||
<h4 id="orgff8b36a"><span class="section-number-4">3.1.6</span> Test</h4>
|
||||
<div id="outline-container-org9cbf357" class="outline-4">
|
||||
<h4 id="org9cbf357"><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-org8fa5cf0" class="outline-3">
|
||||
<h3 id="org8fa5cf0"><span class="section-number-3">3.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
|
||||
<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 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="orgfa0a59d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org1bb3e63" 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-org4787db6" class="outline-4">
|
||||
<h4 id="org4787db6"><span class="section-number-4">3.2.1</span> Requirements</h4>
|
||||
<div id="outline-container-org568793c" class="outline-4">
|
||||
<h4 id="org568793c"><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-org73d3e12" class="outline-4">
|
||||
<h4 id="org73d3e12"><span class="section-number-4">3.2.2</span> C Header</h4>
|
||||
<div id="outline-container-orga3068b9" class="outline-4">
|
||||
<h4 id="orga3068b9"><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-org7af979d" class="outline-4">
|
||||
<h4 id="org7af979d"><span class="section-number-4">3.2.3</span> Source</h4>
|
||||
<div id="outline-container-org36ce59f" class="outline-4">
|
||||
<h4 id="org36ce59f"><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-org4ff8f76" class="outline-4">
|
||||
<h4 id="org4ff8f76"><span class="section-number-4">3.2.4</span> C interface</h4>
|
||||
<div id="outline-container-org9a99b8e" class="outline-4">
|
||||
<h4 id="org9a99b8e"><span class="section-number-4">3.2.4</span> C interface</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1f99233" class="outline-4">
|
||||
<h4 id="org1f99233"><span class="section-number-4">3.2.5</span> Fortran interface</h4>
|
||||
<div id="outline-container-org42448cf" class="outline-4">
|
||||
<h4 id="org42448cf"><span class="section-number-4">3.2.5</span> Fortran interface</h4>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org912e628" class="outline-4">
|
||||
<h4 id="org912e628"><span class="section-number-4">3.2.6</span> Test</h4>
|
||||
<div id="outline-container-org7217bc9" class="outline-4">
|
||||
<h4 id="org7217bc9"><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-org4a577ae" class="outline-2">
|
||||
<h2 id="org4a577ae"><span class="section-number-2">4</span> Combining radial and polynomial parts</h2>
|
||||
<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>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: TREX CoE</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 07:11</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 21:45</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 07:11 -->
|
||||
<!-- 2021-06-23 Wed 21:45 -->
|
||||
<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="#org5c15ccc">1. Context handling</a>
|
||||
<li><a href="#org494e91b">1. Context handling</a>
|
||||
<ul>
|
||||
<li><a href="#orge61cead">1.1. Data structure</a></li>
|
||||
<li><a href="#org4555e40">1.2. Creation</a></li>
|
||||
<li><a href="#orgb890b4d">1.3. Locking</a></li>
|
||||
<li><a href="#org15bf139">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
|
||||
<li><a href="#org05b484a">1.5. Destroy</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5c15ccc" class="outline-2">
|
||||
<h2 id="org5c15ccc"><span class="section-number-2">1</span> Context handling</h2>
|
||||
<div id="outline-container-org494e91b" class="outline-2">
|
||||
<h2 id="org494e91b"><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="org8358299"><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="orga1a4a89"><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-orge61cead" class="outline-3">
|
||||
<h3 id="orge61cead"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-orgdf56559" class="outline-3">
|
||||
<h3 id="orgdf56559"><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="#org4555e40">qmckl<sub>context</sub><sub>create</sub></a>, <a href="#org05b484a">qmckl<sub>context</sub><sub>destroy</sub></a> and <a href="#org15bf139">qmckl<sub>context</sub><sub>copy</sub></a>
|
||||
<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>
|
||||
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-org4555e40" class="outline-3">
|
||||
<h3 id="org4555e40"><span class="section-number-3">1.2</span> Creation</h3>
|
||||
<div id="outline-container-orga5b1b90" class="outline-3">
|
||||
<h3 id="orga5b1b90"><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-orgb890b4d" class="outline-3">
|
||||
<h3 id="orgb890b4d"><span class="section-number-3">1.3</span> Locking</h3>
|
||||
<div id="outline-container-org636816f" class="outline-3">
|
||||
<h3 id="org636816f"><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-org15bf139" class="outline-3">
|
||||
<h3 id="org15bf139"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
|
||||
<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 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-org05b484a" class="outline-3">
|
||||
<h3 id="org05b484a"><span class="section-number-3">1.5</span> Destroy</h3>
|
||||
<div id="outline-container-org7bfb80b" class="outline-3">
|
||||
<h3 id="org7bfb80b"><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 07:11</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 21:45</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 07:11 -->
|
||||
<!-- 2021-06-23 Wed 21:45 -->
|
||||
<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="#org179c060">1. Squared distance</a>
|
||||
<li><a href="#org7c813d6">1. Squared distance</a>
|
||||
<ul>
|
||||
<li><a href="#org952e53a">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<li><a href="#orgb28ba92">1.1. <code>qmckl_distance_sq</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgb1a81bb">1.1.1. Requirements</a></li>
|
||||
<li><a href="#org67deece">1.1.2. C header</a></li>
|
||||
<li><a href="#org2dc57a5">1.1.3. Source</a></li>
|
||||
<li><a href="#org991581d">1.1.4. Performance</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org201d8ea">2. Distance</a>
|
||||
<li><a href="#org9d0e425">2. Distance</a>
|
||||
<ul>
|
||||
<li><a href="#orgc0d231d">2.1. <code>qmckl_distance</code></a>
|
||||
<li><a href="#org4f48d8b">2.1. <code>qmckl_distance</code></a>
|
||||
<ul>
|
||||
<li><a href="#org7af5e85">2.1.1. Requirements</a></li>
|
||||
<li><a href="#org9167984">2.1.2. C header</a></li>
|
||||
<li><a href="#orgfc3aa80">2.1.3. Source</a></li>
|
||||
<li><a href="#orgaf74717">2.1.4. Performance</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org72d3a99">3. Rescaled Distance</a>
|
||||
<li><a href="#org8fae589">3. Rescaled Distance</a>
|
||||
<ul>
|
||||
<li><a href="#org3da47f9">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<li><a href="#org827e933">3.1. <code>qmckl_distance_rescaled</code></a>
|
||||
<ul>
|
||||
<li><a href="#org7a6d12b">3.1.1. Requirements</a></li>
|
||||
<li><a href="#orgce82f14">3.1.2. C header</a></li>
|
||||
<li><a href="#orgefd0e4a">3.1.3. Source</a></li>
|
||||
<li><a href="#orgaee4052">3.1.4. Performance</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3df37d5">4. Rescaled Distance Derivatives</a>
|
||||
<li><a href="#org4c60f92">4. Rescaled Distance Derivatives</a>
|
||||
<ul>
|
||||
<li><a href="#org2abe6e9">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a>
|
||||
<li><a href="#org9f6b902">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgec4ef63">4.1.1. Requirements</a></li>
|
||||
<li><a href="#org22a1c12">4.1.2. C header</a></li>
|
||||
<li><a href="#org00f7f61">4.1.3. Source</a></li>
|
||||
<li><a href="#orgbe1724b">4.1.4. Performance</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -385,12 +385,12 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org179c060" class="outline-2">
|
||||
<h2 id="org179c060"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div id="outline-container-org7c813d6" class="outline-2">
|
||||
<h2 id="org7c813d6"><span class="section-number-2">1</span> Squared distance</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org952e53a" class="outline-3">
|
||||
<h3 id="org952e53a"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
|
||||
<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 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="orgd6d4e82" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org0b3473a" 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-orgb1a81bb" class="outline-4">
|
||||
<h4 id="orgb1a81bb"><span class="section-number-4">1.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org2cc13c7" class="outline-4">
|
||||
<h4 id="org2cc13c7"><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-org67deece" class="outline-4">
|
||||
<h4 id="org67deece"><span class="section-number-4">1.1.2</span> C header</h4>
|
||||
<div id="outline-container-org3e26027" class="outline-4">
|
||||
<h4 id="org3e26027"><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-org2dc57a5" class="outline-4">
|
||||
<h4 id="org2dc57a5"><span class="section-number-4">1.1.3</span> Source</h4>
|
||||
<div id="outline-container-org8648067" class="outline-4">
|
||||
<h4 id="org8648067"><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-org991581d" class="outline-4">
|
||||
<h4 id="org991581d"><span class="section-number-4">1.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgf6bc6d6" class="outline-4">
|
||||
<h4 id="orgf6bc6d6"><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-org201d8ea" class="outline-2">
|
||||
<h2 id="org201d8ea"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div id="outline-container-org9d0e425" class="outline-2">
|
||||
<h2 id="org9d0e425"><span class="section-number-2">2</span> Distance</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div id="outline-container-orgc0d231d" class="outline-3">
|
||||
<h3 id="orgc0d231d"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
|
||||
<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 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="org1106b0e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org3a7920b" 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-org7af5e85" class="outline-4">
|
||||
<h4 id="org7af5e85"><span class="section-number-4">2.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org74affd3" class="outline-4">
|
||||
<h4 id="org74affd3"><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-org9167984" class="outline-4">
|
||||
<h4 id="org9167984"><span class="section-number-4">2.1.2</span> C header</h4>
|
||||
<div id="outline-container-org11b7494" class="outline-4">
|
||||
<h4 id="org11b7494"><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-orgfc3aa80" class="outline-4">
|
||||
<h4 id="orgfc3aa80"><span class="section-number-4">2.1.3</span> Source</h4>
|
||||
<div id="outline-container-org9cc39e1" class="outline-4">
|
||||
<h4 id="org9cc39e1"><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-orgaf74717" class="outline-4">
|
||||
<h4 id="orgaf74717"><span class="section-number-4">2.1.4</span> Performance</h4>
|
||||
<div id="outline-container-org578e78d" class="outline-4">
|
||||
<h4 id="org578e78d"><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-org72d3a99" class="outline-2">
|
||||
<h2 id="org72d3a99"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div id="outline-container-org8fae589" class="outline-2">
|
||||
<h2 id="org8fae589"><span class="section-number-2">3</span> Rescaled Distance</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div id="outline-container-org3da47f9" class="outline-3">
|
||||
<h3 id="org3da47f9"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
|
||||
<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 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="org716db08" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org925b4ab" 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-org7a6d12b" class="outline-4">
|
||||
<h4 id="org7a6d12b"><span class="section-number-4">3.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org0cbb09f" class="outline-4">
|
||||
<h4 id="org0cbb09f"><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-orgce82f14" class="outline-4">
|
||||
<h4 id="orgce82f14"><span class="section-number-4">3.1.2</span> C header</h4>
|
||||
<div id="outline-container-org1d469c1" class="outline-4">
|
||||
<h4 id="org1d469c1"><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-orgefd0e4a" class="outline-4">
|
||||
<h4 id="orgefd0e4a"><span class="section-number-4">3.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgdcade6a" class="outline-4">
|
||||
<h4 id="orgdcade6a"><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-orgaee4052" class="outline-4">
|
||||
<h4 id="orgaee4052"><span class="section-number-4">3.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgcf2ed06" class="outline-4">
|
||||
<h4 id="orgcf2ed06"><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-org3df37d5" class="outline-2">
|
||||
<h2 id="org3df37d5"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div id="outline-container-org4c60f92" class="outline-2">
|
||||
<h2 id="org4c60f92"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-org2abe6e9" class="outline-3">
|
||||
<h3 id="org2abe6e9"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_deriv_e</code></h3>
|
||||
<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 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="org744bafa" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb8ce5fe" 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-orgec4ef63" class="outline-4">
|
||||
<h4 id="orgec4ef63"><span class="section-number-4">4.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-orga8bbd37" class="outline-4">
|
||||
<h4 id="orga8bbd37"><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-org22a1c12" class="outline-4">
|
||||
<h4 id="org22a1c12"><span class="section-number-4">4.1.2</span> C header</h4>
|
||||
<div id="outline-container-org55679a4" class="outline-4">
|
||||
<h4 id="org55679a4"><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-org00f7f61" class="outline-4">
|
||||
<h4 id="org00f7f61"><span class="section-number-4">4.1.3</span> Source</h4>
|
||||
<div id="outline-container-orgea0f44b" class="outline-4">
|
||||
<h4 id="orgea0f44b"><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-orgbe1724b" class="outline-4">
|
||||
<h4 id="orgbe1724b"><span class="section-number-4">4.1.4</span> Performance</h4>
|
||||
<div id="outline-container-orgd0f2221" class="outline-4">
|
||||
<h4 id="orgd0f2221"><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 07:11</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 21:45</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 07:11 -->
|
||||
<!-- 2021-06-23 Wed 21:45 -->
|
||||
<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="#orgbb6a780">1. Context</a>
|
||||
<li><a href="#orgbd82973">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#org75a32c7">1.1. Data structure</a></li>
|
||||
<li><a href="#org1766714">1.2. Access functions</a>
|
||||
<li><a href="#org16f628b">1.1. Data structure</a></li>
|
||||
<li><a href="#org1953d86">1.2. Access functions</a>
|
||||
<ul>
|
||||
<li><a href="#org3ade913">1.2.1. Number of electrons</a></li>
|
||||
<li><a href="#org10b5356">1.2.2. Number of walkers</a></li>
|
||||
<li><a href="#org546df1f">1.2.3. Scaling factors Kappa</a></li>
|
||||
<li><a href="#orgc980401">1.2.4. Electron coordinates</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2cf02da">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org656a853">1.4. Test</a></li>
|
||||
<li><a href="#org3c9fce0">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org85013a0">1.4. Test</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb256d7d">2. Computation</a>
|
||||
<li><a href="#org1ec4681">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgb5e109c">2.1. Electron-electron distances</a>
|
||||
<li><a href="#org15d7aa8">2.1. Electron-electron distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgfd03383">2.1.1. Get</a></li>
|
||||
<li><a href="#org7838ed8">2.1.2. Compute</a></li>
|
||||
<li><a href="#orgbd048c6">2.1.3. Test</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgec03e10">2.2. Electron-electron rescaled distances</a>
|
||||
<li><a href="#orgbe46d90">2.2. Electron-electron rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#orge8e56a0">2.2.1. Get</a></li>
|
||||
<li><a href="#org0740383">2.2.2. Compute</a></li>
|
||||
<li><a href="#org95fd85a">2.2.3. Test</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org60f53aa">2.3. Electron-electron rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<li><a href="#org959a177">2.3. Electron-electron rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<ul>
|
||||
<li><a href="#org0c60ea2">2.3.1. Get</a></li>
|
||||
<li><a href="#org95a0bdb">2.3.2. Compute</a></li>
|
||||
<li><a href="#org860d062">2.3.3. Test</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7990b66">2.4. Electron-nucleus distances</a>
|
||||
<li><a href="#orgd0e0d8c">2.4. Electron-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org29ac189">2.4.1. Get</a></li>
|
||||
<li><a href="#orgd834e80">2.4.2. Compute</a></li>
|
||||
<li><a href="#org3246a41">2.4.3. Test</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgcdcfbc8">2.5. Electron-nucleus rescaled distances</a>
|
||||
<li><a href="#org28613d7">2.5. Electron-nucleus rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#orgcbfe652">2.5.1. Get</a></li>
|
||||
<li><a href="#orgdd5f3a1">2.5.2. Compute</a></li>
|
||||
<li><a href="#org72da3c5">2.5.3. Test</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge6b246b">2.6. Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<li><a href="#org7422cd9">2.6. Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</a>
|
||||
<ul>
|
||||
<li><a href="#org5fce423">2.6.1. Get</a></li>
|
||||
<li><a href="#orgdc62198">2.6.2. Compute</a></li>
|
||||
<li><a href="#org11bc09a">2.6.3. Test</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -398,8 +398,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgbb6a780" class="outline-2">
|
||||
<h2 id="orgbb6a780"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-orgbd82973" class="outline-2">
|
||||
<h2 id="orgbd82973"><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-org75a32c7" class="outline-3">
|
||||
<h3 id="org75a32c7"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org16f628b" class="outline-3">
|
||||
<h3 id="org16f628b"><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-org1766714" class="outline-3">
|
||||
<h3 id="org1766714"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org1953d86" class="outline-3">
|
||||
<h3 id="org1953d86"><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-org3ade913" class="outline-4">
|
||||
<h4 id="org3ade913"><span class="section-number-4">1.2.1</span> Number of electrons</h4>
|
||||
<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>
|
||||
|
||||
<div id="outline-container-org10b5356" class="outline-4">
|
||||
<h4 id="org10b5356"><span class="section-number-4">1.2.2</span> Number of walkers</h4>
|
||||
<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 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-org546df1f" class="outline-4">
|
||||
<h4 id="org546df1f"><span class="section-number-4">1.2.3</span> Scaling factors Kappa</h4>
|
||||
<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>
|
||||
|
||||
<div id="outline-container-orgc980401" class="outline-4">
|
||||
<h4 id="orgc980401"><span class="section-number-4">1.2.4</span> Electron coordinates</h4>
|
||||
<div id="outline-container-org8bd050c" class="outline-4">
|
||||
<h4 id="org8bd050c"><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-org2cf02da" class="outline-3">
|
||||
<h3 id="org2cf02da"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org3c9fce0" class="outline-3">
|
||||
<h3 id="org3c9fce0"><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-org656a853" class="outline-3">
|
||||
<h3 id="org656a853"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-org85013a0" class="outline-3">
|
||||
<h3 id="org85013a0"><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-orgb256d7d" class="outline-2">
|
||||
<h2 id="orgb256d7d"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-org1ec4681" class="outline-2">
|
||||
<h2 id="org1ec4681"><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-orgb5e109c" class="outline-3">
|
||||
<h3 id="orgb5e109c"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
|
||||
<div id="outline-container-org15d7aa8" class="outline-3">
|
||||
<h3 id="org15d7aa8"><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-orgfd03383" class="outline-4">
|
||||
<h4 id="orgfd03383"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org302d000" class="outline-4">
|
||||
<h4 id="org302d000"><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-org7838ed8" class="outline-4">
|
||||
<h4 id="org7838ed8"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org9a4fb53" class="outline-4">
|
||||
<h4 id="org9a4fb53"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="org2529881" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org001a737" 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-orgbd048c6" class="outline-4">
|
||||
<h4 id="orgbd048c6"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orgc4c23c3" class="outline-4">
|
||||
<h4 id="orgc4c23c3"><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-orgec03e10" class="outline-3">
|
||||
<h3 id="orgec03e10"><span class="section-number-3">2.2</span> Electron-electron rescaled distances</h3>
|
||||
<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 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-orge8e56a0" class="outline-4">
|
||||
<h4 id="orge8e56a0"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orge98b91d" class="outline-4">
|
||||
<h4 id="orge98b91d"><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-org0740383" class="outline-4">
|
||||
<h4 id="org0740383"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org8b459ac" class="outline-4">
|
||||
<h4 id="org8b459ac"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orgdafdc71" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb54e6ab" 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-org95fd85a" class="outline-4">
|
||||
<h4 id="org95fd85a"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org54d6ed8" class="outline-4">
|
||||
<h4 id="org54d6ed8"><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-org60f53aa" class="outline-3">
|
||||
<h3 id="org60f53aa"><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-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 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-org0c60ea2" class="outline-4">
|
||||
<h4 id="org0c60ea2"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org4965533" class="outline-4">
|
||||
<h4 id="org4965533"><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-org95a0bdb" class="outline-4">
|
||||
<h4 id="org95a0bdb"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-org50760fe" class="outline-4">
|
||||
<h4 id="org50760fe"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org7e7d2ea" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org840f22c" 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-org860d062" class="outline-4">
|
||||
<h4 id="org860d062"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-orge6d3840" class="outline-4">
|
||||
<h4 id="orge6d3840"><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-org7990b66" class="outline-3">
|
||||
<h3 id="org7990b66"><span class="section-number-3">2.4</span> Electron-nucleus distances</h3>
|
||||
<div id="outline-container-orgd0e0d8c" class="outline-3">
|
||||
<h3 id="orgd0e0d8c"><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-org29ac189" class="outline-4">
|
||||
<h4 id="org29ac189"><span class="section-number-4">2.4.1</span> Get</h4>
|
||||
<div id="outline-container-orgc3b57a5" class="outline-4">
|
||||
<h4 id="orgc3b57a5"><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-orgd834e80" class="outline-4">
|
||||
<h4 id="orgd834e80"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div id="outline-container-org2e69ca0" class="outline-4">
|
||||
<h4 id="org2e69ca0"><span class="section-number-4">2.4.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-4-2">
|
||||
<table id="org3a70a1e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org004c6d1" 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-org3246a41" class="outline-4">
|
||||
<h4 id="org3246a41"><span class="section-number-4">2.4.3</span> Test</h4>
|
||||
<div id="outline-container-org326979e" class="outline-4">
|
||||
<h4 id="org326979e"><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-orgcdcfbc8" class="outline-3">
|
||||
<h3 id="orgcdcfbc8"><span class="section-number-3">2.5</span> Electron-nucleus rescaled distances</h3>
|
||||
<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 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-orgcbfe652" class="outline-4">
|
||||
<h4 id="orgcbfe652"><span class="section-number-4">2.5.1</span> Get</h4>
|
||||
<div id="outline-container-org1ee6ef0" class="outline-4">
|
||||
<h4 id="org1ee6ef0"><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-orgdd5f3a1" class="outline-4">
|
||||
<h4 id="orgdd5f3a1"><span class="section-number-4">2.5.2</span> Compute</h4>
|
||||
<div id="outline-container-org6ec173c" class="outline-4">
|
||||
<h4 id="org6ec173c"><span class="section-number-4">2.5.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-5-2">
|
||||
<table id="org50d142d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org5660a8d" 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-org72da3c5" class="outline-4">
|
||||
<h4 id="org72da3c5"><span class="section-number-4">2.5.3</span> Test</h4>
|
||||
<div id="outline-container-orge7b35e2" class="outline-4">
|
||||
<h4 id="orge7b35e2"><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-orge6b246b" class="outline-3">
|
||||
<h3 id="orge6b246b"><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-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 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-org5fce423" class="outline-4">
|
||||
<h4 id="org5fce423"><span class="section-number-4">2.6.1</span> Get</h4>
|
||||
<div id="outline-container-orgfeedb92" class="outline-4">
|
||||
<h4 id="orgfeedb92"><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-orgdc62198" class="outline-4">
|
||||
<h4 id="orgdc62198"><span class="section-number-4">2.6.2</span> Compute</h4>
|
||||
<div id="outline-container-orga3aac37" class="outline-4">
|
||||
<h4 id="orga3aac37"><span class="section-number-4">2.6.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-6-2">
|
||||
<table id="org63388e5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb3d4b46" 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-org11bc09a" class="outline-4">
|
||||
<h4 id="org11bc09a"><span class="section-number-4">2.6.3</span> Test</h4>
|
||||
<div id="outline-container-orgd16dafa" class="outline-4">
|
||||
<h4 id="orgd16dafa"><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 07:11</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 21:45</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 07:11 -->
|
||||
<!-- 2021-06-23 Wed 21:45 -->
|
||||
<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="#org74ac0e5">1. Decoding errors</a></li>
|
||||
<li><a href="#orge0fc487">2. Data structure in context</a></li>
|
||||
<li><a href="#org06981fd">3. Updating errors in the context</a></li>
|
||||
<li><a href="#orgdafb430">4. Get the error</a></li>
|
||||
<li><a href="#org434bf54">5. Failing</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org74ac0e5" class="outline-2">
|
||||
<h2 id="org74ac0e5"><span class="section-number-2">1</span> Decoding errors</h2>
|
||||
<div id="outline-container-orgc245fa2" class="outline-2">
|
||||
<h2 id="orgc245fa2"><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-orge0fc487" class="outline-2">
|
||||
<h2 id="orge0fc487"><span class="section-number-2">2</span> Data structure in context</h2>
|
||||
<div id="outline-container-orgf684a22" class="outline-2">
|
||||
<h2 id="orgf684a22"><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-org06981fd" class="outline-2">
|
||||
<h2 id="org06981fd"><span class="section-number-2">3</span> Updating errors in the context</h2>
|
||||
<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 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-orgdafb430" class="outline-2">
|
||||
<h2 id="orgdafb430"><span class="section-number-2">4</span> Get the error</h2>
|
||||
<div id="outline-container-orgdcb176b" class="outline-2">
|
||||
<h2 id="orgdcb176b"><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-org434bf54" class="outline-2">
|
||||
<h2 id="org434bf54"><span class="section-number-2">5</span> Failing</h2>
|
||||
<div id="outline-container-orgf9c3f98" class="outline-2">
|
||||
<h2 id="orgf9c3f98"><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 07:11</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 21:45</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 07:11 -->
|
||||
<!-- 2021-06-23 Wed 21:45 -->
|
||||
<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="#org80e944b">1. Memory data structure for the context</a></li>
|
||||
<li><a href="#org4f67244">2. Passing info to allocation routines</a></li>
|
||||
<li><a href="#org0f15031">3. Allocation/deallocation functions</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org80e944b" class="outline-2">
|
||||
<h2 id="org80e944b"><span class="section-number-2">1</span> Memory data structure for the context</h2>
|
||||
<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 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-org4f67244" class="outline-2">
|
||||
<h2 id="org4f67244"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
|
||||
<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 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-org0f15031" class="outline-2">
|
||||
<h2 id="org0f15031"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
|
||||
<div id="outline-container-org6c2574e" class="outline-2">
|
||||
<h2 id="org6c2574e"><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 07:11</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 21:45</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 07:11 -->
|
||||
<!-- 2021-06-23 Wed 21:45 -->
|
||||
<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="#orgde6704e">1. Context</a>
|
||||
<li><a href="#org6082cde">1. Context</a>
|
||||
<ul>
|
||||
<li><a href="#orgd135fe7">1.1. Data structure</a></li>
|
||||
<li><a href="#orgaf03341">1.2. Access functions</a></li>
|
||||
<li><a href="#org5ca0afb">1.3. Initialization functions</a></li>
|
||||
<li><a href="#org5d9b395">1.4. Test</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org633b0ac">2. Computation</a>
|
||||
<li><a href="#orgd64ad0c">2. Computation</a>
|
||||
<ul>
|
||||
<li><a href="#orgc8f6f9d">2.1. Nucleus-nucleus distances</a>
|
||||
<li><a href="#org47cad22">2.1. Nucleus-nucleus distances</a>
|
||||
<ul>
|
||||
<li><a href="#org6a58a1c">2.1.1. Get</a></li>
|
||||
<li><a href="#org22223fe">2.1.2. Compute</a></li>
|
||||
<li><a href="#org4414643">2.1.3. Test</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgb8a4f85">2.2. Nucleus-nucleus rescaled distances</a>
|
||||
<li><a href="#org1e9b576">2.2. Nucleus-nucleus rescaled distances</a>
|
||||
<ul>
|
||||
<li><a href="#org407ba5b">2.2.1. Get</a></li>
|
||||
<li><a href="#orga6bbf7b">2.2.2. Compute</a></li>
|
||||
<li><a href="#orgd0a1ae8">2.2.3. Test</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org124871b">2.3. Nuclear repulsion energy</a>
|
||||
<li><a href="#orgd84dbac">2.3. Nuclear repulsion energy</a>
|
||||
<ul>
|
||||
<li><a href="#org731e8e1">2.3.1. Get</a></li>
|
||||
<li><a href="#orge56c857">2.3.2. Compute</a></li>
|
||||
<li><a href="#orgff75475">2.3.3. Test</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -370,8 +370,8 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgde6704e" class="outline-2">
|
||||
<h2 id="orgde6704e"><span class="section-number-2">1</span> Context</h2>
|
||||
<div id="outline-container-org6082cde" class="outline-2">
|
||||
<h2 id="org6082cde"><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-orgd135fe7" class="outline-3">
|
||||
<h3 id="orgd135fe7"><span class="section-number-3">1.1</span> Data structure</h3>
|
||||
<div id="outline-container-org662f300" class="outline-3">
|
||||
<h3 id="org662f300"><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-orgaf03341" class="outline-3">
|
||||
<h3 id="orgaf03341"><span class="section-number-3">1.2</span> Access functions</h3>
|
||||
<div id="outline-container-org36ccfe2" class="outline-3">
|
||||
<h3 id="org36ccfe2"><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-org5ca0afb" class="outline-3">
|
||||
<h3 id="org5ca0afb"><span class="section-number-3">1.3</span> Initialization functions</h3>
|
||||
<div id="outline-container-org779ff83" class="outline-3">
|
||||
<h3 id="org779ff83"><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,14 +574,14 @@ atoms. The coordinates should be given in atomic units.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org5d9b395" class="outline-3">
|
||||
<h3 id="org5d9b395"><span class="section-number-3">1.4</span> Test</h3>
|
||||
<div id="outline-container-orgc1e95f4" class="outline-3">
|
||||
<h3 id="orgc1e95f4"><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;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">nucl_charge</span> = chbrclf_charge;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span>* <span style="color: #a0522d;">nucl_coord</span> = &(chbrclf_nucl_coord[0][0]);
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">nucl_rescale_factor_kappa</span> = 2.0;
|
||||
<span style="color: #a020f0;">const</span> <span style="color: #228b22;">double</span> <span style="color: #a0522d;">nucl_rescale_factor_kappa</span> = 2.0;
|
||||
|
||||
/* <span style="color: #b22222;">--- </span>*/
|
||||
|
||||
@ -659,8 +659,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org633b0ac" class="outline-2">
|
||||
<h2 id="org633b0ac"><span class="section-number-2">2</span> Computation</h2>
|
||||
<div id="outline-container-orgd64ad0c" class="outline-2">
|
||||
<h2 id="orgd64ad0c"><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-orgc8f6f9d" class="outline-3">
|
||||
<h3 id="orgc8f6f9d"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
|
||||
<div id="outline-container-org47cad22" class="outline-3">
|
||||
<h3 id="org47cad22"><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-org6a58a1c" class="outline-4">
|
||||
<h4 id="org6a58a1c"><span class="section-number-4">2.1.1</span> Get</h4>
|
||||
<div id="outline-container-org7b324bf" class="outline-4">
|
||||
<h4 id="org7b324bf"><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-org22223fe" class="outline-4">
|
||||
<h4 id="org22223fe"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div id="outline-container-org1e51035" class="outline-4">
|
||||
<h4 id="org1e51035"><span class="section-number-4">2.1.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
<table id="orgfad18b8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgce7fa2d" 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-org4414643" class="outline-4">
|
||||
<h4 id="org4414643"><span class="section-number-4">2.1.3</span> Test</h4>
|
||||
<div id="outline-container-orga9a33b5" class="outline-4">
|
||||
<h4 id="orga9a33b5"><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-orgb8a4f85" class="outline-3">
|
||||
<h3 id="orgb8a4f85"><span class="section-number-3">2.2</span> Nucleus-nucleus rescaled distances</h3>
|
||||
<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 class="outline-text-3" id="text-2-2">
|
||||
</div>
|
||||
<div id="outline-container-org407ba5b" class="outline-4">
|
||||
<h4 id="org407ba5b"><span class="section-number-4">2.2.1</span> Get</h4>
|
||||
<div id="outline-container-orga791f8f" class="outline-4">
|
||||
<h4 id="orga791f8f"><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-orga6bbf7b" class="outline-4">
|
||||
<h4 id="orga6bbf7b"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div id="outline-container-org62c749a" class="outline-4">
|
||||
<h4 id="org62c749a"><span class="section-number-4">2.2.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-2-2">
|
||||
<table id="orgd9a3ebb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org950e2f0" 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-orgd0a1ae8" class="outline-4">
|
||||
<h4 id="orgd0a1ae8"><span class="section-number-4">2.2.3</span> Test</h4>
|
||||
<div id="outline-container-org5c00280" class="outline-4">
|
||||
<h4 id="org5c00280"><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-org124871b" class="outline-3">
|
||||
<h3 id="org124871b"><span class="section-number-3">2.3</span> Nuclear repulsion energy</h3>
|
||||
<div id="outline-container-orgd84dbac" class="outline-3">
|
||||
<h3 id="orgd84dbac"><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-org731e8e1" class="outline-4">
|
||||
<h4 id="org731e8e1"><span class="section-number-4">2.3.1</span> Get</h4>
|
||||
<div id="outline-container-org522b601" class="outline-4">
|
||||
<h4 id="org522b601"><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-orge56c857" class="outline-4">
|
||||
<h4 id="orge56c857"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div id="outline-container-orgbd781e9" class="outline-4">
|
||||
<h4 id="orgbd781e9"><span class="section-number-4">2.3.2</span> Compute</h4>
|
||||
<div class="outline-text-4" id="text-2-3-2">
|
||||
<table id="org45e3b7b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orga13c3b1" 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-orgff75475" class="outline-4">
|
||||
<h4 id="orgff75475"><span class="section-number-4">2.3.3</span> Test</h4>
|
||||
<div id="outline-container-org9f5996e" class="outline-4">
|
||||
<h4 id="org9f5996e"><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 07:11</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 21:45</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 07:11 -->
|
||||
<!-- 2021-06-23 Wed 21:45 -->
|
||||
<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="#org8221179">1. Control of the numerical precision</a></li>
|
||||
<li><a href="#org95bd538">2. Precision</a></li>
|
||||
<li><a href="#orgc0f48e6">3. Range</a></li>
|
||||
<li><a href="#orged0d0e3">4. Helper functions</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8221179" class="outline-2">
|
||||
<h2 id="org8221179"><span class="section-number-2">1</span> Control of the numerical precision</h2>
|
||||
<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 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="orgcfbfdcb" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgb7ba188" 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-org95bd538" class="outline-2">
|
||||
<h2 id="org95bd538"><span class="section-number-2">2</span> Precision</h2>
|
||||
<div id="outline-container-org64d2cd5" class="outline-2">
|
||||
<h2 id="org64d2cd5"><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-orgc0f48e6" class="outline-2">
|
||||
<h2 id="orgc0f48e6"><span class="section-number-2">3</span> Range</h2>
|
||||
<div id="outline-container-org8c53473" class="outline-2">
|
||||
<h2 id="org8c53473"><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-orged0d0e3" class="outline-2">
|
||||
<h2 id="orged0d0e3"><span class="section-number-2">4</span> Helper functions</h2>
|
||||
<div id="outline-container-orgb76751b" class="outline-2">
|
||||
<h2 id="orgb76751b"><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 07:11</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 21:45</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 07:11 -->
|
||||
<!-- 2021-06-23 Wed 21:45 -->
|
||||
<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="#org6e7d363">1. CHBrClF</a>
|
||||
<li><a href="#org808e5b5">1. CHBrClF</a>
|
||||
<ul>
|
||||
<li><a href="#orgcc68c5e">1.1. XYZ coordinates</a></li>
|
||||
<li><a href="#org0cbbe08">1.2. Atomic basis set</a></li>
|
||||
<li><a href="#org788f773">1.3. <span class="todo TODO">TODO</span> Molecular orbitals</a></li>
|
||||
<li><a href="#org3b9e449">1.4. Electron coordinates</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6e7d363" class="outline-2">
|
||||
<h2 id="org6e7d363"><span class="section-number-2">1</span> CHBrClF</h2>
|
||||
<div id="outline-container-org808e5b5" class="outline-2">
|
||||
<h2 id="org808e5b5"><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-orgcc68c5e" class="outline-3">
|
||||
<h3 id="orgcc68c5e"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
|
||||
<div id="outline-container-orgff5f600" class="outline-3">
|
||||
<h3 id="orgff5f600"><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-org0cbbe08" class="outline-3">
|
||||
<h3 id="org0cbbe08"><span class="section-number-3">1.2</span> Atomic basis set</h3>
|
||||
<div id="outline-container-org21e4021" class="outline-3">
|
||||
<h3 id="org21e4021"><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-org788f773" class="outline-3">
|
||||
<h3 id="org788f773"><span class="section-number-3">1.3</span> <span class="todo TODO">TODO</span> Molecular orbitals</h3>
|
||||
<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>
|
||||
<div id="outline-container-org3b9e449" class="outline-3">
|
||||
<h3 id="org3b9e449"><span class="section-number-3">1.4</span> Electron coordinates</h3>
|
||||
<div id="outline-container-org0b95bf5" class="outline-3">
|
||||
<h3 id="org0b95bf5"><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 07:11</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 21:45</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 07:11 -->
|
||||
<!-- 2021-06-23 Wed 21:45 -->
|
||||
<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="#org7a4e0b6">1. Matrix operations</a>
|
||||
<li><a href="#org311357b">1. Matrix operations</a>
|
||||
<ul>
|
||||
<li><a href="#org1338f5e">1.1. <code>qmckl_transpose</code></a>
|
||||
<li><a href="#org1154110">1.1. <code>qmckl_transpose</code></a>
|
||||
<ul>
|
||||
<li><a href="#orgc3d8cbb">1.1.1. Requirements</a></li>
|
||||
<li><a href="#org06e2bbe">1.1.2. C header</a></li>
|
||||
<li><a href="#orga7a5663">1.1.3. Source</a></li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -348,18 +348,18 @@ for the JavaScript code in this tag.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7a4e0b6" class="outline-2">
|
||||
<h2 id="org7a4e0b6"><span class="section-number-2">1</span> Matrix operations</h2>
|
||||
<div id="outline-container-org311357b" class="outline-2">
|
||||
<h2 id="org311357b"><span class="section-number-2">1</span> Matrix operations</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org1338f5e" class="outline-3">
|
||||
<h3 id="org1338f5e"><span class="section-number-3">1.1</span> <code>qmckl_transpose</code></h3>
|
||||
<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 class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
Transposes a matrix: \(B_{ji} = A_{ij}\)
|
||||
</p>
|
||||
|
||||
<table id="org74da88f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org33b4834" 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-orgc3d8cbb" class="outline-4">
|
||||
<h4 id="orgc3d8cbb"><span class="section-number-4">1.1.1</span> Requirements</h4>
|
||||
<div id="outline-container-org8469682" class="outline-4">
|
||||
<h4 id="org8469682"><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-org06e2bbe" class="outline-4">
|
||||
<h4 id="org06e2bbe"><span class="section-number-4">1.1.2</span> C header</h4>
|
||||
<div id="outline-container-org4cd6faf" class="outline-4">
|
||||
<h4 id="org4cd6faf"><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-orga7a5663" class="outline-4">
|
||||
<h4 id="orga7a5663"><span class="section-number-4">1.1.3</span> Source</h4>
|
||||
<div id="outline-container-org6212b3e" class="outline-4">
|
||||
<h4 id="org6212b3e"><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 07:11</p>
|
||||
<p class="date">Created: 2021-06-23 Wed 21:45</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