1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-11-03 12:43:57 +01:00

Deploying to gh-pages from @ TREX-CoE/qmckl@236307c4d4 🚀

This commit is contained in:
scemama 2021-09-06 07:49:30 +00:00
parent 0a9cc56b44
commit 7a8c54b0cb
14 changed files with 733 additions and 751 deletions

View File

@ -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-07-23 Fri 07:03 -->
<!-- 2021-09-06 Mon 07:49 -->
<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>
@ -353,7 +353,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-07-23 Fri 07:03</p>
<p class="date">Created: 2021-09-06 Mon 07:49</p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
</body>

View File

@ -1,11 +1,11 @@
;;; htmlize.el --- Convert buffer text and decorations to HTML. -*- lexical-binding: t -*-
;; Copyright (C) 1997-2003,2005,2006,2009,2011,2012,2014,2017,2018 Hrvoje Niksic
;; Copyright (C) 1997-2003,2005,2006,2009,2011,2012,2014,2017,2018,2020 Hrvoje Niksic
;; Author: Hrvoje Niksic <hniksic@gmail.com>
;; Homepage: https://github.com/hniksic/emacs-htmlize
;; Keywords: hypermedia, extensions
;; Version: 1.56
;; Version: 1.57
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@ -88,7 +88,7 @@
(defvar font-lock-support-mode)
(defvar global-font-lock-mode))
(defconst htmlize-version "1.56")
(defconst htmlize-version "1.57")
(defgroup htmlize nil
"Convert buffer text and faces to HTML."
@ -1045,7 +1045,7 @@ If no rgb.txt file is found, return nil."
(let ((size-list
(cl-loop
for f in face-list
for h = (face-attribute f :height)
for h = (and (facep f) (face-attribute f :height))
collect (if (eq h 'unspecified) nil h))))
(cl-reduce 'htmlize-merge-size (cons nil size-list)))))
@ -1273,24 +1273,6 @@ overlays that specify `face'."
faces :test 'equal))))
faces))
(if (>= emacs-major-version 25)
(defun htmlize-sorted-overlays-at (pos)
(overlays-at pos t))
(defun htmlize-sorted-overlays-at (pos)
;; Like OVERLAYS-AT with the SORTED argument, for older Emacsen.
(let ((overlays (overlays-at pos)))
(setq overlays (cl-sort overlays #'<
:key (lambda (o)
(- (overlay-end o) (overlay-start o)))))
(setq overlays
(cl-stable-sort overlays #'<
:key (lambda (o)
(let ((prio (overlay-get o 'priority)))
(if (numberp prio) prio 0)))))
(nreverse overlays))))
;; htmlize-faces-at-point returns the faces in use at point. The
;; faces are sorted by increasing priority, i.e. the last face takes
;; precedence.
@ -1310,7 +1292,7 @@ overlays that specify `face'."
;; Collect overlays at point that specify `face'.
(cl-delete-if-not (lambda (o)
(overlay-get o 'face))
(nreverse (htmlize-sorted-overlays-at (point)))))
(nreverse (overlays-at (point) t))))
list face-prop)
(dolist (overlay overlays)
(setq face-prop (overlay-get overlay 'face)

View File

@ -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-07-23 Fri 07:03 -->
<!-- 2021-09-06 Mon 07:49 -->
<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="#org898dbac">1. Using QMCkl</a></li>
<li><a href="#orgd384583">2. Developing in QMCkl</a>
<li><a href="#orgaf2d756">1. Using QMCkl</a></li>
<li><a href="#orga241355">2. Developing in QMCkl</a>
<ul>
<li><a href="#orgfd35f56">2.1. Literate programming</a></li>
<li><a href="#org9be69e9">2.2. Source code editing</a></li>
<li><a href="#org8feaf0e">2.3. Choice of the programming language</a></li>
<li><a href="#orgedade24">2.4. Coding rules</a></li>
<li><a href="#orgd74c3e1">2.5. Design of the library</a></li>
<li><a href="#orgb4a8317">2.6. Naming conventions</a></li>
<li><a href="#org2c98ed4">2.7. Application programming interface</a></li>
<li><a href="#org96553d6">2.8. Global state</a></li>
<li><a href="#org9a6012a">2.9. Headers</a></li>
<li><a href="#orge867202">2.10. Low-level functions</a></li>
<li><a href="#orgbc822d8">2.11. High-level functions</a></li>
<li><a href="#orga69826c">2.12. Numerical precision</a></li>
<li><a href="#org8a54673">2.13. Algorithms</a></li>
<li><a href="#org91a1e86">2.1. Literate programming</a></li>
<li><a href="#orgada97cd">2.2. Source code editing</a></li>
<li><a href="#org2930c90">2.3. Choice of the programming language</a></li>
<li><a href="#org033dd0c">2.4. Coding rules</a></li>
<li><a href="#org1d263ff">2.5. Design of the library</a></li>
<li><a href="#org5c29e73">2.6. Naming conventions</a></li>
<li><a href="#orgb17b1da">2.7. Application programming interface</a></li>
<li><a href="#orge4a59a9">2.8. Global state</a></li>
<li><a href="#orge9daf35">2.9. Headers</a></li>
<li><a href="#orgb1ee6ae">2.10. Low-level functions</a></li>
<li><a href="#orgb583087">2.11. High-level functions</a></li>
<li><a href="#org5d61eab">2.12. Numerical precision</a></li>
<li><a href="#orgfcac2b0">2.13. Algorithms</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-org898dbac" class="outline-2">
<h2 id="org898dbac"><span class="section-number-2">1</span> Using QMCkl</h2>
<div id="outline-container-orgaf2d756" class="outline-2">
<h2 id="orgaf2d756"><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-orgd384583" class="outline-2">
<h2 id="orgd384583"><span class="section-number-2">2</span> Developing in QMCkl</h2>
<div id="outline-container-orga241355" class="outline-2">
<h2 id="orga241355"><span class="section-number-2">2</span> Developing in QMCkl</h2>
<div class="outline-text-2" id="text-2">
</div>
<div id="outline-container-orgfd35f56" class="outline-3">
<h3 id="orgfd35f56"><span class="section-number-3">2.1</span> Literate programming</h3>
<div id="outline-container-org91a1e86" class="outline-3">
<h3 id="org91a1e86"><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-org9be69e9" class="outline-3">
<h3 id="org9be69e9"><span class="section-number-3">2.2</span> Source code editing</h3>
<div id="outline-container-orgada97cd" class="outline-3">
<h3 id="orgada97cd"><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-org8feaf0e" class="outline-3">
<h3 id="org8feaf0e"><span class="section-number-3">2.3</span> Choice of the programming language</h3>
<div id="outline-container-org2930c90" class="outline-3">
<h3 id="org2930c90"><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-orgedade24" class="outline-3">
<h3 id="orgedade24"><span class="section-number-3">2.4</span> Coding rules</h3>
<div id="outline-container-org033dd0c" class="outline-3">
<h3 id="org033dd0c"><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-orgd74c3e1" class="outline-3">
<h3 id="orgd74c3e1"><span class="section-number-3">2.5</span> Design of the library</h3>
<div id="outline-container-org1d263ff" class="outline-3">
<h3 id="org1d263ff"><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-orgb4a8317" class="outline-3">
<h3 id="orgb4a8317"><span class="section-number-3">2.6</span> Naming conventions</h3>
<div id="outline-container-org5c29e73" class="outline-3">
<h3 id="org5c29e73"><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-org2c98ed4" class="outline-3">
<h3 id="org2c98ed4"><span class="section-number-3">2.7</span> Application programming interface</h3>
<div id="outline-container-orgb17b1da" class="outline-3">
<h3 id="orgb17b1da"><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-org96553d6" class="outline-3">
<h3 id="org96553d6"><span class="section-number-3">2.8</span> Global state</h3>
<div id="outline-container-orge4a59a9" class="outline-3">
<h3 id="orge4a59a9"><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="org17e4f8d">=context=</a> contains the global
<code>qmckl_context_create</code> function. The <a id="org20979b0">=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-org9a6012a" class="outline-3">
<h3 id="org9a6012a"><span class="section-number-3">2.9</span> Headers</h3>
<div id="outline-container-orge9daf35" class="outline-3">
<h3 id="orge9daf35"><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-orge867202" class="outline-3">
<h3 id="orge867202"><span class="section-number-3">2.10</span> Low-level functions</h3>
<div id="outline-container-orgb1ee6ae" class="outline-3">
<h3 id="orgb1ee6ae"><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="#org17e4f8d"><code>context</code></a>. They are not allowed to allocate/deallocate memory, and
<a href="#org20979b0"><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-orgbc822d8" class="outline-3">
<h3 id="orgbc822d8"><span class="section-number-3">2.11</span> High-level functions</h3>
<div id="outline-container-orgb583087" class="outline-3">
<h3 id="orgb583087"><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="#org17e4f8d"><code>context</code></a> variable.
the <a href="#org20979b0"><code>context</code></a> variable.
</p>
</div>
</div>
<div id="outline-container-orga69826c" class="outline-3">
<h3 id="orga69826c"><span class="section-number-3">2.12</span> Numerical precision</h3>
<div id="outline-container-org5d61eab" class="outline-3">
<h3 id="org5d61eab"><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="#org17e4f8d"><code>context</code></a>
functions will use the precision specified in the <a href="#org20979b0"><code>context</code></a>
variable.
</p>
</div>
</div>
<div id="outline-container-org8a54673" class="outline-3">
<h3 id="org8a54673"><span class="section-number-3">2.13</span> Algorithms</h3>
<div id="outline-container-orgfcac2b0" class="outline-3">
<h3 id="orgfcac2b0"><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-07-23 Fri 07:03</p>
<p class="date">Created: 2021-09-06 Mon 07:49</p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
</body>

View File

@ -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-07-23 Fri 07:03 -->
<!-- 2021-09-06 Mon 07:49 -->
<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,71 +333,71 @@ for the JavaScript code in this tag.
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org60603d1">1. Context</a>
<li><a href="#org248bee3">1. Context</a>
<ul>
<li><a href="#org60b0e3f">1.1. Data structure</a></li>
<li><a href="#orgf07709b">1.2. Access functions</a></li>
<li><a href="#orgae120f1">1.3. Initialization functions</a></li>
<li><a href="#org1bb466a">1.4. Fortran interfaces</a></li>
<li><a href="#org958fd40">1.1. Data structure</a></li>
<li><a href="#org4359596">1.2. Access functions</a></li>
<li><a href="#org905f526">1.3. Initialization functions</a></li>
<li><a href="#orgb8e5316">1.4. Fortran interfaces</a></li>
</ul>
</li>
<li><a href="#org33a24d9">2. Radial part</a>
<li><a href="#orgba66f67">2. Radial part</a>
<ul>
<li><a href="#orgf5d1dc6">2.1. <span class="todo TODO">TODO</span> Helper functions to accelerate calculations</a></li>
<li><a href="#org1c595d3">2.2. General functions for Gaussian basis functions</a></li>
<li><a href="#org816c229">2.3. <span class="todo TODO">TODO</span> General functions for Slater basis functions</a></li>
<li><a href="#orga6ecbb4">2.4. <span class="todo TODO">TODO</span> General functions for Radial functions on a grid</a></li>
<li><a href="#orgecf62f0">2.5. Computation of primitives</a>
<li><a href="#org2f42618">2.1. <span class="todo TODO">TODO</span> Helper functions to accelerate calculations</a></li>
<li><a href="#org2e12a28">2.2. General functions for Gaussian basis functions</a></li>
<li><a href="#org380646b">2.3. <span class="todo TODO">TODO</span> General functions for Slater basis functions</a></li>
<li><a href="#org5e19243">2.4. <span class="todo TODO">TODO</span> General functions for Radial functions on a grid</a></li>
<li><a href="#org8f1d315">2.5. Computation of primitives</a>
<ul>
<li><a href="#org0c8a5fb">2.5.1. Get</a></li>
<li><a href="#org524641c">2.5.2. Provide</a></li>
<li><a href="#orgefaceff">2.5.3. Compute</a></li>
<li><a href="#orga2a7aae">2.5.4. Test</a></li>
<li><a href="#org04215ff">2.5.5. Ideas for improvement</a></li>
<li><a href="#org48d6298">2.5.1. Get</a></li>
<li><a href="#org5f9de69">2.5.2. Provide</a></li>
<li><a href="#orgde48c53">2.5.3. Compute</a></li>
<li><a href="#orga0e3d73">2.5.4. Test</a></li>
<li><a href="#orgf482487">2.5.5. Ideas for improvement</a></li>
</ul>
</li>
<li><a href="#org31bdc8e">2.6. Computation of shells</a>
<li><a href="#org6578e69">2.6. Computation of shells</a>
<ul>
<li><a href="#orgdee00ed">2.6.1. Get</a></li>
<li><a href="#org592f9c8">2.6.2. Provide</a></li>
<li><a href="#org0b1a84b">2.6.3. Compute</a></li>
<li><a href="#orga75e240">2.6.4. Test</a></li>
<li><a href="#org8ace801">2.6.1. Get</a></li>
<li><a href="#org4f57686">2.6.2. Provide</a></li>
<li><a href="#orge8e32ee">2.6.3. Compute</a></li>
<li><a href="#org355f3f7">2.6.4. Test</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#orgfb26abc">3. Polynomial part</a>
<li><a href="#org584658c">3. Polynomial part</a>
<ul>
<li><a href="#orgb1d8200">3.1. General functions for Powers of \(x-X_i\)</a>
<li><a href="#orgbfcc186">3.1. General functions for Powers of \(x-X_i\)</a>
<ul>
<li><a href="#org2ca7e95">3.1.1. Requirements</a></li>
<li><a href="#org6dbad48">3.1.2. C Header</a></li>
<li><a href="#orgf6e0d3d">3.1.3. Source</a></li>
<li><a href="#org2b88b75">3.1.4. C interface</a></li>
<li><a href="#orgdbce4f7">3.1.5. Fortran interface</a></li>
<li><a href="#orgf69bf39">3.1.6. Test</a></li>
<li><a href="#orgf6f5bd6">3.1.1. Requirements</a></li>
<li><a href="#org0ba8485">3.1.2. C Header</a></li>
<li><a href="#orgae47e0a">3.1.3. Source</a></li>
<li><a href="#org8806da9">3.1.4. C interface</a></li>
<li><a href="#orgac07561">3.1.5. Fortran interface</a></li>
<li><a href="#org6c42a8b">3.1.6. Test</a></li>
</ul>
</li>
<li><a href="#org8310ca0">3.2. General functions for Value, Gradient and Laplacian of a polynomial</a>
<li><a href="#org82326a1">3.2. General functions for Value, Gradient and Laplacian of a polynomial</a>
<ul>
<li><a href="#org8fac957">3.2.1. Requirements</a></li>
<li><a href="#org9d3a2c8">3.2.2. C Header</a></li>
<li><a href="#org1f93d06">3.2.3. Source</a></li>
<li><a href="#org6a87bff">3.2.4. C interface</a></li>
<li><a href="#orgc0deb2b">3.2.5. Fortran interface</a></li>
<li><a href="#org5543de9">3.2.6. Test</a></li>
<li><a href="#orgdfcea50">3.2.1. Requirements</a></li>
<li><a href="#org3010362">3.2.2. C Header</a></li>
<li><a href="#org9739876">3.2.3. Source</a></li>
<li><a href="#org4448d57">3.2.4. C interface</a></li>
<li><a href="#orgc290e1e">3.2.5. Fortran interface</a></li>
<li><a href="#org739a5ad">3.2.6. Test</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#org154c9eb">4. Combining radial and polynomial parts</a>
<li><a href="#orgb06de03">4. Combining radial and polynomial parts</a>
<ul>
<li>
<ul>
<li><a href="#orgb7dcdc8">4.0.1. Get</a></li>
<li><a href="#org7c0d5bf">4.0.2. Provide</a></li>
<li><a href="#org16717ab">4.0.3. Compute</a></li>
<li><a href="#org9dd67f0">4.0.4. Test</a></li>
<li><a href="#org442bb4b">4.0.1. Get</a></li>
<li><a href="#org2ad02e4">4.0.2. Provide</a></li>
<li><a href="#orgfad2e8f">4.0.3. Compute</a></li>
<li><a href="#orgfa252a9">4.0.4. Test</a></li>
</ul>
</li>
</ul>
@ -406,8 +406,8 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-org60603d1" class="outline-2">
<h2 id="org60603d1"><span class="section-number-2">1</span> Context</h2>
<div id="outline-container-org248bee3" class="outline-2">
<h2 id="org248bee3"><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:
@ -679,8 +679,8 @@ prim_factor = [ 1.0006253235944540e+01, 2.4169531573445120e+00, 7.96109248497664
</pre>
</div>
<div id="outline-container-org60b0e3f" class="outline-3">
<h3 id="org60b0e3f"><span class="section-number-3">1.1</span> Data structure</h3>
<div id="outline-container-org958fd40" class="outline-3">
<h3 id="org958fd40"><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> {
@ -753,8 +753,8 @@ this mechanism.
</div>
</div>
<div id="outline-container-orgf07709b" class="outline-3">
<h3 id="orgf07709b"><span class="section-number-3">1.2</span> Access functions</h3>
<div id="outline-container-org4359596" class="outline-3">
<h3 id="org4359596"><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
@ -768,8 +768,8 @@ function returns <code>true</code>.
</div>
</div>
<div id="outline-container-orgae120f1" class="outline-3">
<h3 id="orgae120f1"><span class="section-number-3">1.3</span> Initialization functions</h3>
<div id="outline-container-org905f526" class="outline-3">
<h3 id="org905f526"><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
@ -807,20 +807,20 @@ the context.
</div>
</div>
<div id="outline-container-org1bb466a" class="outline-3">
<h3 id="org1bb466a"><span class="section-number-3">1.4</span> Fortran interfaces</h3>
<div id="outline-container-orgb8e5316" class="outline-3">
<h3 id="orgb8e5316"><span class="section-number-3">1.4</span> Fortran interfaces</h3>
</div>
</div>
<div id="outline-container-org33a24d9" class="outline-2">
<h2 id="org33a24d9"><span class="section-number-2">2</span> Radial part</h2>
<div id="outline-container-orgba66f67" class="outline-2">
<h2 id="orgba66f67"><span class="section-number-2">2</span> Radial part</h2>
<div class="outline-text-2" id="text-2">
</div>
<div id="outline-container-orgf5d1dc6" class="outline-3">
<h3 id="orgf5d1dc6"><span class="section-number-3">2.1</span> <span class="todo TODO">TODO</span> Helper functions to accelerate calculations</h3>
<div id="outline-container-org2f42618" class="outline-3">
<h3 id="org2f42618"><span class="section-number-3">2.1</span> <span class="todo TODO">TODO</span> Helper functions to accelerate calculations</h3>
</div>
<div id="outline-container-org1c595d3" class="outline-3">
<h3 id="org1c595d3"><span class="section-number-3">2.2</span> General functions for Gaussian basis functions</h3>
<div id="outline-container-org2e12a28" class="outline-3">
<h3 id="org2e12a28"><span class="section-number-3">2.2</span> General functions for Gaussian basis functions</h3>
<div class="outline-text-3" id="text-2-2">
<p>
<code>qmckl_ao_gaussian_vgl</code> computes the values, gradients and
@ -1052,18 +1052,18 @@ Requirements
</div>
</div>
<div id="outline-container-org816c229" class="outline-3">
<h3 id="org816c229"><span class="section-number-3">2.3</span> <span class="todo TODO">TODO</span> General functions for Slater basis functions</h3>
<div id="outline-container-org380646b" class="outline-3">
<h3 id="org380646b"><span class="section-number-3">2.3</span> <span class="todo TODO">TODO</span> General functions for Slater basis functions</h3>
</div>
<div id="outline-container-orga6ecbb4" class="outline-3">
<h3 id="orga6ecbb4"><span class="section-number-3">2.4</span> <span class="todo TODO">TODO</span> General functions for Radial functions on a grid</h3>
<div id="outline-container-org5e19243" class="outline-3">
<h3 id="org5e19243"><span class="section-number-3">2.4</span> <span class="todo TODO">TODO</span> General functions for Radial functions on a grid</h3>
</div>
<div id="outline-container-orgecf62f0" class="outline-3">
<h3 id="orgecf62f0"><span class="section-number-3">2.5</span> Computation of primitives</h3>
<div id="outline-container-org8f1d315" class="outline-3">
<h3 id="org8f1d315"><span class="section-number-3">2.5</span> Computation of primitives</h3>
<div class="outline-text-3" id="text-2-5">
</div>
<div id="outline-container-org0c8a5fb" class="outline-4">
<h4 id="org0c8a5fb"><span class="section-number-4">2.5.1</span> Get</h4>
<div id="outline-container-org48d6298" class="outline-4">
<h4 id="org48d6298"><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_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>);
@ -1072,14 +1072,14 @@ Requirements
</div>
</div>
<div id="outline-container-org524641c" class="outline-4">
<h4 id="org524641c"><span class="section-number-4">2.5.2</span> Provide</h4>
<div id="outline-container-org5f9de69" class="outline-4">
<h4 id="org5f9de69"><span class="section-number-4">2.5.2</span> Provide</h4>
</div>
<div id="outline-container-orgefaceff" class="outline-4">
<h4 id="orgefaceff"><span class="section-number-4">2.5.3</span> Compute</h4>
<div id="outline-container-orgde48c53" class="outline-4">
<h4 id="orgde48c53"><span class="section-number-4">2.5.3</span> Compute</h4>
<div class="outline-text-4" id="text-2-5-3">
<table id="orgfe83903" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="orgf0fe9d7" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -1223,12 +1223,12 @@ Requirements
</div>
</div>
<div id="outline-container-orga2a7aae" class="outline-4">
<h4 id="orga2a7aae"><span class="section-number-4">2.5.4</span> Test</h4>
<div id="outline-container-orga0e3d73" class="outline-4">
<h4 id="orga0e3d73"><span class="section-number-4">2.5.4</span> Test</h4>
</div>
<div id="outline-container-org04215ff" class="outline-4">
<h4 id="org04215ff"><span class="section-number-4">2.5.5</span> Ideas for improvement</h4>
<div id="outline-container-orgf482487" class="outline-4">
<h4 id="orgf482487"><span class="section-number-4">2.5.5</span> Ideas for improvement</h4>
<div class="outline-text-4" id="text-2-5-5">
<div class="org-src-container">
<pre class="src src-c">// <span style="color: #b22222;">m : walkers</span>
@ -1265,12 +1265,12 @@ k=0;
</div>
</div>
<div id="outline-container-org31bdc8e" class="outline-3">
<h3 id="org31bdc8e"><span class="section-number-3">2.6</span> Computation of shells</h3>
<div id="outline-container-org6578e69" class="outline-3">
<h3 id="org6578e69"><span class="section-number-3">2.6</span> Computation of shells</h3>
<div class="outline-text-3" id="text-2-6">
</div>
<div id="outline-container-orgdee00ed" class="outline-4">
<h4 id="orgdee00ed"><span class="section-number-4">2.6.1</span> Get</h4>
<div id="outline-container-org8ace801" class="outline-4">
<h4 id="org8ace801"><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_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>);
@ -1279,14 +1279,14 @@ k=0;
</div>
</div>
<div id="outline-container-org592f9c8" class="outline-4">
<h4 id="org592f9c8"><span class="section-number-4">2.6.2</span> Provide</h4>
<div id="outline-container-org4f57686" class="outline-4">
<h4 id="org4f57686"><span class="section-number-4">2.6.2</span> Provide</h4>
</div>
<div id="outline-container-org0b1a84b" class="outline-4">
<h4 id="org0b1a84b"><span class="section-number-4">2.6.3</span> Compute</h4>
<div id="outline-container-orge8e32ee" class="outline-4">
<h4 id="orge8e32ee"><span class="section-number-4">2.6.3</span> Compute</h4>
<div class="outline-text-4" id="text-2-6-3">
<table id="orgfde3f3f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org06c11f2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -1518,14 +1518,14 @@ k=0;
</div>
</div>
<div id="outline-container-orga75e240" class="outline-4">
<h4 id="orga75e240"><span class="section-number-4">2.6.4</span> Test</h4>
<div id="outline-container-org355f3f7" class="outline-4">
<h4 id="org355f3f7"><span class="section-number-4">2.6.4</span> Test</h4>
</div>
</div>
</div>
<div id="outline-container-orgfb26abc" class="outline-2">
<h2 id="orgfb26abc"><span class="section-number-2">3</span> Polynomial part</h2>
<div id="outline-container-org584658c" class="outline-2">
<h2 id="org584658c"><span class="section-number-2">3</span> Polynomial part</h2>
<div class="outline-text-2" id="text-3">
<p>
Going from the atomic basis set to AOs implies a systematic
@ -1545,8 +1545,8 @@ f & : & f_{xxx}, f_{xxy}, f_{xxz}, f_{xyy}, f_{xyz}, f_{xzz}, f_{yyy}, f_{yyz},
\end{eqnarray}
</div>
<div id="outline-container-orgb1d8200" class="outline-3">
<h3 id="orgb1d8200"><span class="section-number-3">3.1</span> General functions for Powers of \(x-X_i\)</h3>
<div id="outline-container-orgbfcc186" class="outline-3">
<h3 id="orgbfcc186"><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>
@ -1558,7 +1558,7 @@ the \(n\) points:
\[ P_{ik} = X_i^k \]
</p>
<table id="orgba94a23" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org73e4621" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -1616,8 +1616,8 @@ the \(n\) points:
</table>
</div>
<div id="outline-container-org2ca7e95" class="outline-4">
<h4 id="org2ca7e95"><span class="section-number-4">3.1.1</span> Requirements</h4>
<div id="outline-container-orgf6f5bd6" class="outline-4">
<h4 id="orgf6f5bd6"><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>
@ -1630,8 +1630,8 @@ the \(n\) points:
</div>
</div>
<div id="outline-container-org6dbad48" class="outline-4">
<h4 id="org6dbad48"><span class="section-number-4">3.1.2</span> C Header</h4>
<div id="outline-container-org0ba8485" class="outline-4">
<h4 id="org0ba8485"><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> (
@ -1646,8 +1646,8 @@ the \(n\) points:
</div>
</div>
<div id="outline-container-orgf6e0d3d" class="outline-4">
<h4 id="orgf6e0d3d"><span class="section-number-4">3.1.3</span> Source</h4>
<div id="outline-container-orgae47e0a" class="outline-4">
<h4 id="orgae47e0a"><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>
@ -1698,15 +1698,15 @@ the \(n\) points:
</div>
</div>
<div id="outline-container-org2b88b75" class="outline-4">
<h4 id="org2b88b75"><span class="section-number-4">3.1.4</span> C interface</h4>
<div id="outline-container-org8806da9" class="outline-4">
<h4 id="org8806da9"><span class="section-number-4">3.1.4</span> C interface</h4>
</div>
<div id="outline-container-orgdbce4f7" class="outline-4">
<h4 id="orgdbce4f7"><span class="section-number-4">3.1.5</span> Fortran interface</h4>
<div id="outline-container-orgac07561" class="outline-4">
<h4 id="orgac07561"><span class="section-number-4">3.1.5</span> Fortran interface</h4>
</div>
<div id="outline-container-orgf69bf39" class="outline-4">
<h4 id="orgf69bf39"><span class="section-number-4">3.1.6</span> Test</h4>
<div id="outline-container-org6c42a8b" class="outline-4">
<h4 id="org6c42a8b"><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)
@ -1757,8 +1757,8 @@ the \(n\) points:
</div>
</div>
<div id="outline-container-org8310ca0" class="outline-3">
<h3 id="org8310ca0"><span class="section-number-3">3.2</span> General functions for Value, Gradient and Laplacian of a polynomial</h3>
<div id="outline-container-org82326a1" class="outline-3">
<h3 id="org82326a1"><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\)
@ -1803,7 +1803,7 @@ Laplacians at a given point in space, of all polynomials with an
angular momentum up to <code>lmax</code>.
</p>
<table id="orgb7c9fc6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="orgb390ead" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -1882,8 +1882,8 @@ angular momentum up to <code>lmax</code>.
</table>
</div>
<div id="outline-container-org8fac957" class="outline-4">
<h4 id="org8fac957"><span class="section-number-4">3.2.1</span> Requirements</h4>
<div id="outline-container-orgdfcea50" class="outline-4">
<h4 id="orgdfcea50"><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>
@ -1908,8 +1908,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
</div>
</div>
<div id="outline-container-org9d3a2c8" class="outline-4">
<h4 id="org9d3a2c8"><span class="section-number-4">3.2.2</span> C Header</h4>
<div id="outline-container-org3010362" class="outline-4">
<h4 id="org3010362"><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_compute_ao_vgl</span> (
@ -1927,8 +1927,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
</div>
</div>
<div id="outline-container-org1f93d06" class="outline-4">
<h4 id="org1f93d06"><span class="section-number-4">3.2.3</span> Source</h4>
<div id="outline-container-org9739876" class="outline-4">
<h4 id="org9739876"><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>
@ -2062,16 +2062,16 @@ For example, with a=0, b=2 and c=1 the string is "yyz"</li>
</div>
</div>
<div id="outline-container-org6a87bff" class="outline-4">
<h4 id="org6a87bff"><span class="section-number-4">3.2.4</span> C interface</h4>
<div id="outline-container-org4448d57" class="outline-4">
<h4 id="org4448d57"><span class="section-number-4">3.2.4</span> C interface</h4>
</div>
<div id="outline-container-orgc0deb2b" class="outline-4">
<h4 id="orgc0deb2b"><span class="section-number-4">3.2.5</span> Fortran interface</h4>
<div id="outline-container-orgc290e1e" class="outline-4">
<h4 id="orgc290e1e"><span class="section-number-4">3.2.5</span> Fortran interface</h4>
</div>
<div id="outline-container-org5543de9" class="outline-4">
<h4 id="org5543de9"><span class="section-number-4">3.2.6</span> Test</h4>
<div id="outline-container-org739a5ad" class="outline-4">
<h4 id="org739a5ad"><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)
@ -2176,12 +2176,12 @@ assert(0 == test_qmckl_ao_polynomial_vgl(context));
</div>
</div>
<div id="outline-container-org154c9eb" class="outline-2">
<h2 id="org154c9eb"><span class="section-number-2">4</span> Combining radial and polynomial parts</h2>
<div id="outline-container-orgb06de03" class="outline-2">
<h2 id="orgb06de03"><span class="section-number-2">4</span> Combining radial and polynomial parts</h2>
<div class="outline-text-2" id="text-4">
</div>
<div id="outline-container-orgb7dcdc8" class="outline-4">
<h4 id="orgb7dcdc8"><span class="section-number-4">4.0.1</span> Get</h4>
<div id="outline-container-org442bb4b" class="outline-4">
<h4 id="org442bb4b"><span class="section-number-4">4.0.1</span> Get</h4>
<div class="outline-text-4" id="text-4-0-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_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;">ao_vgl</span>);
@ -2190,14 +2190,14 @@ assert(0 == test_qmckl_ao_polynomial_vgl(context));
</div>
</div>
<div id="outline-container-org7c0d5bf" class="outline-4">
<h4 id="org7c0d5bf"><span class="section-number-4">4.0.2</span> Provide</h4>
<div id="outline-container-org2ad02e4" class="outline-4">
<h4 id="org2ad02e4"><span class="section-number-4">4.0.2</span> Provide</h4>
</div>
<div id="outline-container-org16717ab" class="outline-4">
<h4 id="org16717ab"><span class="section-number-4">4.0.3</span> Compute</h4>
<div id="outline-container-orgfad2e8f" class="outline-4">
<h4 id="orgfad2e8f"><span class="section-number-4">4.0.3</span> Compute</h4>
<div class="outline-text-4" id="text-4-0-3">
<table id="orgd4da61b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="orgccbb047" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -2473,14 +2473,14 @@ assert(0 == test_qmckl_ao_polynomial_vgl(context));
</div>
</div>
<div id="outline-container-org9dd67f0" class="outline-4">
<h4 id="org9dd67f0"><span class="section-number-4">4.0.4</span> Test</h4>
<div id="outline-container-orgfa252a9" class="outline-4">
<h4 id="orgfa252a9"><span class="section-number-4">4.0.4</span> Test</h4>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: TREX CoE</p>
<p class="date">Created: 2021-07-23 Fri 07:03</p>
<p class="date">Created: 2021-09-06 Mon 07:49</p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
</body>

View File

@ -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-07-23 Fri 07:03 -->
<!-- 2021-09-06 Mon 07:49 -->
<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="#org420a1ff">1. Context handling</a>
<li><a href="#orgc3b4f31">1. Context handling</a>
<ul>
<li><a href="#orge71f1d4">1.1. Data structure</a></li>
<li><a href="#org55bf5ea">1.2. Creation</a></li>
<li><a href="#org4ac29f0">1.3. Locking</a></li>
<li><a href="#orgbe62ed7">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
<li><a href="#org5593ff0">1.5. Destroy</a></li>
<li><a href="#org4359692">1.1. Data structure</a></li>
<li><a href="#org6d3f1e6">1.2. Creation</a></li>
<li><a href="#org841b710">1.3. Locking</a></li>
<li><a href="#org850ffea">1.4. <span class="todo TODO">TODO</span> Copy</a></li>
<li><a href="#orgc231007">1.5. Destroy</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-org420a1ff" class="outline-2">
<h2 id="org420a1ff"><span class="section-number-2">1</span> Context handling</h2>
<div id="outline-container-orgc3b4f31" class="outline-2">
<h2 id="orgc3b4f31"><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="orgcbf8b4d"><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="orge1d3178"><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-orge71f1d4" class="outline-3">
<h3 id="orge71f1d4"><span class="section-number-3">1.1</span> Data structure</h3>
<div id="outline-container-org4359692" class="outline-3">
<h3 id="org4359692"><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="#org55bf5ea">qmckl<sub>context</sub><sub>create</sub></a>, <a href="#org5593ff0">qmckl<sub>context</sub><sub>destroy</sub></a> and <a href="#orgbe62ed7">qmckl<sub>context</sub><sub>copy</sub></a>
<a href="#org6d3f1e6">qmckl<sub>context</sub><sub>create</sub></a>, <a href="#orgc231007">qmckl<sub>context</sub><sub>destroy</sub></a> and <a href="#org850ffea">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-org55bf5ea" class="outline-3">
<h3 id="org55bf5ea"><span class="section-number-3">1.2</span> Creation</h3>
<div id="outline-container-org6d3f1e6" class="outline-3">
<h3 id="org6d3f1e6"><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-org4ac29f0" class="outline-3">
<h3 id="org4ac29f0"><span class="section-number-3">1.3</span> Locking</h3>
<div id="outline-container-org841b710" class="outline-3">
<h3 id="org841b710"><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-orgbe62ed7" class="outline-3">
<h3 id="orgbe62ed7"><span class="section-number-3">1.4</span> <span class="todo TODO">TODO</span> Copy</h3>
<div id="outline-container-org850ffea" class="outline-3">
<h3 id="org850ffea"><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-org5593ff0" class="outline-3">
<h3 id="org5593ff0"><span class="section-number-3">1.5</span> Destroy</h3>
<div id="outline-container-orgc231007" class="outline-3">
<h3 id="orgc231007"><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-07-23 Fri 07:03</p>
<p class="date">Created: 2021-09-06 Mon 07:49</p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
</body>

View File

@ -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-07-23 Fri 07:03 -->
<!-- 2021-09-06 Mon 07:49 -->
<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="#org2bc2e98">1. Squared distance</a>
<li><a href="#org14b5fdf">1. Squared distance</a>
<ul>
<li><a href="#org5e0aa7b">1.1. <code>qmckl_distance_sq</code></a>
<li><a href="#orgfe2466e">1.1. <code>qmckl_distance_sq</code></a>
<ul>
<li><a href="#orgd6dcb20">1.1.1. Requirements</a></li>
<li><a href="#org839e7c7">1.1.2. C header</a></li>
<li><a href="#org3449089">1.1.3. Source</a></li>
<li><a href="#org1cf4d93">1.1.4. Performance</a></li>
<li><a href="#orgc7b8d69">1.1.1. Requirements</a></li>
<li><a href="#org9ad7fc9">1.1.2. C header</a></li>
<li><a href="#orgc80815b">1.1.3. Source</a></li>
<li><a href="#orgfe20a23">1.1.4. Performance</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#org1425073">2. Distance</a>
<li><a href="#org17c1a95">2. Distance</a>
<ul>
<li><a href="#orgc457ee9">2.1. <code>qmckl_distance</code></a>
<li><a href="#orga46e7ef">2.1. <code>qmckl_distance</code></a>
<ul>
<li><a href="#org1c577bd">2.1.1. Requirements</a></li>
<li><a href="#org2501a71">2.1.2. C header</a></li>
<li><a href="#org11ce5bc">2.1.3. Source</a></li>
<li><a href="#org381885a">2.1.4. Performance</a></li>
<li><a href="#orga4c6945">2.1.1. Requirements</a></li>
<li><a href="#org7df4952">2.1.2. C header</a></li>
<li><a href="#org2b33d78">2.1.3. Source</a></li>
<li><a href="#org34221ab">2.1.4. Performance</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#orgab54bbd">3. Rescaled Distance</a>
<li><a href="#orga8dee5c">3. Rescaled Distance</a>
<ul>
<li><a href="#org7ad3e62">3.1. <code>qmckl_distance_rescaled</code></a>
<li><a href="#orgc0c2609">3.1. <code>qmckl_distance_rescaled</code></a>
<ul>
<li><a href="#orgb00d9b5">3.1.1. Requirements</a></li>
<li><a href="#orgbf3c8b4">3.1.2. C header</a></li>
<li><a href="#orgfdc6245">3.1.3. Source</a></li>
<li><a href="#org9af5175">3.1.4. Performance</a></li>
<li><a href="#orgabbbf8c">3.1.1. Requirements</a></li>
<li><a href="#orgb249460">3.1.2. C header</a></li>
<li><a href="#orga15810e">3.1.3. Source</a></li>
<li><a href="#org5463bcd">3.1.4. Performance</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#org1cdc581">4. Rescaled Distance Derivatives</a>
<li><a href="#org11aaa38">4. Rescaled Distance Derivatives</a>
<ul>
<li><a href="#org1456bcd">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a>
<li><a href="#org10b29d3">4.1. <code>qmckl_distance_rescaled_deriv_e</code></a>
<ul>
<li><a href="#org266c817">4.1.1. Requirements</a></li>
<li><a href="#org0a48f4d">4.1.2. C header</a></li>
<li><a href="#org16b71e3">4.1.3. Source</a></li>
<li><a href="#orgc740631">4.1.4. Performance</a></li>
<li><a href="#orgdbcec82">4.1.1. Requirements</a></li>
<li><a href="#orga5b39c8">4.1.2. C header</a></li>
<li><a href="#orgf150e31">4.1.3. Source</a></li>
<li><a href="#org4f915db">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-org2bc2e98" class="outline-2">
<h2 id="org2bc2e98"><span class="section-number-2">1</span> Squared distance</h2>
<div id="outline-container-org14b5fdf" class="outline-2">
<h2 id="org14b5fdf"><span class="section-number-2">1</span> Squared distance</h2>
<div class="outline-text-2" id="text-1">
</div>
<div id="outline-container-org5e0aa7b" class="outline-3">
<h3 id="org5e0aa7b"><span class="section-number-3">1.1</span> <code>qmckl_distance_sq</code></h3>
<div id="outline-container-orgfe2466e" class="outline-3">
<h3 id="orgfe2466e"><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="org919745d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org2bfb7a9" 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-orgd6dcb20" class="outline-4">
<h4 id="orgd6dcb20"><span class="section-number-4">1.1.1</span> Requirements</h4>
<div id="outline-container-orgc7b8d69" class="outline-4">
<h4 id="orgc7b8d69"><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-org839e7c7" class="outline-4">
<h4 id="org839e7c7"><span class="section-number-4">1.1.2</span> C header</h4>
<div id="outline-container-org9ad7fc9" class="outline-4">
<h4 id="org9ad7fc9"><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-org3449089" class="outline-4">
<h4 id="org3449089"><span class="section-number-4">1.1.3</span> Source</h4>
<div id="outline-container-orgc80815b" class="outline-4">
<h4 id="orgc80815b"><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;">&amp;</span>
@ -672,8 +672,8 @@ between all pairs of points in two sets, one point within each set:
</div>
</div>
<div id="outline-container-org1cf4d93" class="outline-4">
<h4 id="org1cf4d93"><span class="section-number-4">1.1.4</span> Performance</h4>
<div id="outline-container-orgfe20a23" class="outline-4">
<h4 id="orgfe20a23"><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-org1425073" class="outline-2">
<h2 id="org1425073"><span class="section-number-2">2</span> Distance</h2>
<div id="outline-container-org17c1a95" class="outline-2">
<h2 id="org17c1a95"><span class="section-number-2">2</span> Distance</h2>
<div class="outline-text-2" id="text-2">
</div>
<div id="outline-container-orgc457ee9" class="outline-3">
<h3 id="orgc457ee9"><span class="section-number-3">2.1</span> <code>qmckl_distance</code></h3>
<div id="outline-container-orga46e7ef" class="outline-3">
<h3 id="orga46e7ef"><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="org2b33162" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org5a4dc28" 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-org1c577bd" class="outline-4">
<h4 id="org1c577bd"><span class="section-number-4">2.1.1</span> Requirements</h4>
<div id="outline-container-orga4c6945" class="outline-4">
<h4 id="orga4c6945"><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-org2501a71" class="outline-4">
<h4 id="org2501a71"><span class="section-number-4">2.1.2</span> C header</h4>
<div id="outline-container-org7df4952" class="outline-4">
<h4 id="org7df4952"><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-org11ce5bc" class="outline-4">
<h4 id="org11ce5bc"><span class="section-number-4">2.1.3</span> Source</h4>
<div id="outline-container-org2b33d78" class="outline-4">
<h4 id="org2b33d78"><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;">&amp;</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-org381885a" class="outline-4">
<h4 id="org381885a"><span class="section-number-4">2.1.4</span> Performance</h4>
<div id="outline-container-org34221ab" class="outline-4">
<h4 id="org34221ab"><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-orgab54bbd" class="outline-2">
<h2 id="orgab54bbd"><span class="section-number-2">3</span> Rescaled Distance</h2>
<div id="outline-container-orga8dee5c" class="outline-2">
<h2 id="orga8dee5c"><span class="section-number-2">3</span> Rescaled Distance</h2>
<div class="outline-text-2" id="text-3">
</div>
<div id="outline-container-org7ad3e62" class="outline-3">
<h3 id="org7ad3e62"><span class="section-number-3">3.1</span> <code>qmckl_distance_rescaled</code></h3>
<div id="outline-container-orgc0c2609" class="outline-3">
<h3 id="orgc0c2609"><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="orgb5ff32d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org1f3d17f" 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-orgb00d9b5" class="outline-4">
<h4 id="orgb00d9b5"><span class="section-number-4">3.1.1</span> Requirements</h4>
<div id="outline-container-orgabbbf8c" class="outline-4">
<h4 id="orgabbbf8c"><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-orgbf3c8b4" class="outline-4">
<h4 id="orgbf3c8b4"><span class="section-number-4">3.1.2</span> C header</h4>
<div id="outline-container-orgb249460" class="outline-4">
<h4 id="orgb249460"><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-orgfdc6245" class="outline-4">
<h4 id="orgfdc6245"><span class="section-number-4">3.1.3</span> Source</h4>
<div id="outline-container-orga15810e" class="outline-4">
<h4 id="orga15810e"><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;">&amp;</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-org9af5175" class="outline-4">
<h4 id="org9af5175"><span class="section-number-4">3.1.4</span> Performance</h4>
<div id="outline-container-org5463bcd" class="outline-4">
<h4 id="org5463bcd"><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-org1cdc581" class="outline-2">
<h2 id="org1cdc581"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
<div id="outline-container-org11aaa38" class="outline-2">
<h2 id="org11aaa38"><span class="section-number-2">4</span> Rescaled Distance Derivatives</h2>
<div class="outline-text-2" id="text-4">
</div>
<div id="outline-container-org1456bcd" class="outline-3">
<h3 id="org1456bcd"><span class="section-number-3">4.1</span> <code>qmckl_distance_rescaled_deriv_e</code></h3>
<div id="outline-container-org10b29d3" class="outline-3">
<h3 id="org10b29d3"><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="org95d7e9b" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="orgb6f0468" 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-org266c817" class="outline-4">
<h4 id="org266c817"><span class="section-number-4">4.1.1</span> Requirements</h4>
<div id="outline-container-orgdbcec82" class="outline-4">
<h4 id="orgdbcec82"><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-org0a48f4d" class="outline-4">
<h4 id="org0a48f4d"><span class="section-number-4">4.1.2</span> C header</h4>
<div id="outline-container-orga5b39c8" class="outline-4">
<h4 id="orga5b39c8"><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-org16b71e3" class="outline-4">
<h4 id="org16b71e3"><span class="section-number-4">4.1.3</span> Source</h4>
<div id="outline-container-orgf150e31" class="outline-4">
<h4 id="orgf150e31"><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;">&amp;</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-orgc740631" class="outline-4">
<h4 id="orgc740631"><span class="section-number-4">4.1.4</span> Performance</h4>
<div id="outline-container-org4f915db" class="outline-4">
<h4 id="org4f915db"><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-07-23 Fri 07:03</p>
<p class="date">Created: 2021-09-06 Mon 07:49</p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
</body>

View File

@ -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-07-23 Fri 07:03 -->
<!-- 2021-09-06 Mon 07:49 -->
<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="#org0d2a51a">1. Context</a>
<li><a href="#orgf45ef67">1. Context</a>
<ul>
<li><a href="#orgcaf06ae">1.1. Data structure</a></li>
<li><a href="#org28f7e71">1.2. Access functions</a>
<li><a href="#orgeeea15c">1.1. Data structure</a></li>
<li><a href="#orgec995ff">1.2. Access functions</a>
<ul>
<li><a href="#orgd200021">1.2.1. Number of electrons</a></li>
<li><a href="#org0c2486e">1.2.2. Number of walkers</a></li>
<li><a href="#orgb046a7f">1.2.3. Scaling factors Kappa</a></li>
<li><a href="#orgd00d9db">1.2.4. Electron coordinates</a></li>
<li><a href="#orgc14a189">1.2.1. Number of electrons</a></li>
<li><a href="#org911131e">1.2.2. Number of walkers</a></li>
<li><a href="#orgd24f5ec">1.2.3. Scaling factors Kappa</a></li>
<li><a href="#orgf7457ab">1.2.4. Electron coordinates</a></li>
</ul>
</li>
<li><a href="#org14ecce0">1.3. Initialization functions</a></li>
<li><a href="#org45fe183">1.4. Test</a></li>
<li><a href="#org8e229e2">1.3. Initialization functions</a></li>
<li><a href="#org8c16109">1.4. Test</a></li>
</ul>
</li>
<li><a href="#org554ae9d">2. Computation</a>
<li><a href="#org9ea74bd">2. Computation</a>
<ul>
<li><a href="#org4ca48cd">2.1. Electron-electron distances</a>
<li><a href="#orgb32f679">2.1. Electron-electron distances</a>
<ul>
<li><a href="#org9911a41">2.1.1. Get</a></li>
<li><a href="#org50d4794">2.1.2. Compute</a></li>
<li><a href="#orgf9b5834">2.1.3. Test</a></li>
<li><a href="#orgeff2407">2.1.1. Get</a></li>
<li><a href="#org701b1e5">2.1.2. Compute</a></li>
<li><a href="#orgb8b0111">2.1.3. Test</a></li>
</ul>
</li>
<li><a href="#org83a0273">2.2. Electron-electron rescaled distances</a>
<li><a href="#org2a8fa97">2.2. Electron-electron rescaled distances</a>
<ul>
<li><a href="#orgb97bf35">2.2.1. Get</a></li>
<li><a href="#org57d80ee">2.2.2. Compute</a></li>
<li><a href="#org8f18582">2.2.3. Test</a></li>
<li><a href="#org8fdd95a">2.2.1. Get</a></li>
<li><a href="#orga56769b">2.2.2. Compute</a></li>
<li><a href="#org2bcae0c">2.2.3. Test</a></li>
</ul>
</li>
<li><a href="#orgcf033cb">2.3. Electron-electron rescaled distance gradients and laplacian with respect to electron coords</a>
<li><a href="#org8a4d80d">2.3. Electron-electron rescaled distance gradients and laplacian with respect to electron coords</a>
<ul>
<li><a href="#org494f55a">2.3.1. Get</a></li>
<li><a href="#orgd0a61fc">2.3.2. Compute</a></li>
<li><a href="#orgb2ce0d6">2.3.3. Test</a></li>
<li><a href="#orge78e5b1">2.3.1. Get</a></li>
<li><a href="#orgc0a7142">2.3.2. Compute</a></li>
<li><a href="#org932b770">2.3.3. Test</a></li>
</ul>
</li>
<li><a href="#org85afd9f">2.4. Electron-nucleus distances</a>
<li><a href="#org0f4b2cd">2.4. Electron-nucleus distances</a>
<ul>
<li><a href="#org963e72f">2.4.1. Get</a></li>
<li><a href="#org56e8ec7">2.4.2. Compute</a></li>
<li><a href="#org333c4af">2.4.3. Test</a></li>
<li><a href="#org6d01f72">2.4.1. Get</a></li>
<li><a href="#org728220c">2.4.2. Compute</a></li>
<li><a href="#org31c5b31">2.4.3. Test</a></li>
</ul>
</li>
<li><a href="#org42ed690">2.5. Electron-nucleus rescaled distances</a>
<li><a href="#orgecc72bc">2.5. Electron-nucleus rescaled distances</a>
<ul>
<li><a href="#org30f7217">2.5.1. Get</a></li>
<li><a href="#org37087e3">2.5.2. Compute</a></li>
<li><a href="#org9b91484">2.5.3. Test</a></li>
<li><a href="#org670ff68">2.5.1. Get</a></li>
<li><a href="#orge01c706">2.5.2. Compute</a></li>
<li><a href="#org21600bb">2.5.3. Test</a></li>
</ul>
</li>
<li><a href="#orgc80e87c">2.6. Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</a>
<li><a href="#org67a4a83">2.6. Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords</a>
<ul>
<li><a href="#orgdf0fe3f">2.6.1. Get</a></li>
<li><a href="#orgdec122d">2.6.2. Compute</a></li>
<li><a href="#orgfbcb438">2.6.3. Test</a></li>
<li><a href="#orge3c7acc">2.6.1. Get</a></li>
<li><a href="#orgcd4272e">2.6.2. Compute</a></li>
<li><a href="#org4f20a8e">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-org0d2a51a" class="outline-2">
<h2 id="org0d2a51a"><span class="section-number-2">1</span> Context</h2>
<div id="outline-container-orgf45ef67" class="outline-2">
<h2 id="orgf45ef67"><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:
@ -557,8 +557,8 @@ The following data stored in the context:
</table>
</div>
<div id="outline-container-orgcaf06ae" class="outline-3">
<h3 id="orgcaf06ae"><span class="section-number-3">1.1</span> Data structure</h3>
<div id="outline-container-orgeeea15c" class="outline-3">
<h3 id="orgeeea15c"><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> {
@ -633,8 +633,8 @@ this mechanism.
</div>
</div>
<div id="outline-container-org28f7e71" class="outline-3">
<h3 id="org28f7e71"><span class="section-number-3">1.2</span> Access functions</h3>
<div id="outline-container-orgec995ff" class="outline-3">
<h3 id="orgec995ff"><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
@ -646,12 +646,12 @@ contains the requested data. Otherwise, this variable is untouched.
</p>
</div>
<div id="outline-container-orgd200021" class="outline-4">
<h4 id="orgd200021"><span class="section-number-4">1.2.1</span> Number of electrons</h4>
<div id="outline-container-orgc14a189" class="outline-4">
<h4 id="orgc14a189"><span class="section-number-4">1.2.1</span> Number of electrons</h4>
</div>
<div id="outline-container-org0c2486e" class="outline-4">
<h4 id="org0c2486e"><span class="section-number-4">1.2.2</span> Number of walkers</h4>
<div id="outline-container-org911131e" class="outline-4">
<h4 id="org911131e"><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
@ -660,12 +660,12 @@ the wave function. <code>walk_num</code> is the number of walkers.
</div>
</div>
<div id="outline-container-orgb046a7f" class="outline-4">
<h4 id="orgb046a7f"><span class="section-number-4">1.2.3</span> Scaling factors Kappa</h4>
<div id="outline-container-orgd24f5ec" class="outline-4">
<h4 id="orgd24f5ec"><span class="section-number-4">1.2.3</span> Scaling factors Kappa</h4>
</div>
<div id="outline-container-orgd00d9db" class="outline-4">
<h4 id="orgd00d9db"><span class="section-number-4">1.2.4</span> Electron coordinates</h4>
<div id="outline-container-orgf7457ab" class="outline-4">
<h4 id="orgf7457ab"><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
@ -709,8 +709,8 @@ The order of the indices is:
</div>
<div id="outline-container-org14ecce0" class="outline-3">
<h3 id="org14ecce0"><span class="section-number-3">1.3</span> Initialization functions</h3>
<div id="outline-container-org8e229e2" class="outline-3">
<h3 id="org8e229e2"><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
@ -797,8 +797,8 @@ in the context.
</div>
</div>
<div id="outline-container-org45fe183" class="outline-3">
<h3 id="org45fe183"><span class="section-number-3">1.4</span> Test</h3>
<div id="outline-container-org8c16109" class="outline-3">
<h3 id="org8c16109"><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>*/
@ -904,8 +904,8 @@ rc = qmckl_get_electron_coord (context, <span style="color: #8b2252;">'N'</span>
</div>
</div>
<div id="outline-container-org554ae9d" class="outline-2">
<h2 id="org554ae9d"><span class="section-number-2">2</span> Computation</h2>
<div id="outline-container-org9ea74bd" class="outline-2">
<h2 id="org9ea74bd"><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
@ -918,12 +918,12 @@ current date is stored.
</p>
</div>
<div id="outline-container-org4ca48cd" class="outline-3">
<h3 id="org4ca48cd"><span class="section-number-3">2.1</span> Electron-electron distances</h3>
<div id="outline-container-orgb32f679" class="outline-3">
<h3 id="orgb32f679"><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-org9911a41" class="outline-4">
<h4 id="org9911a41"><span class="section-number-4">2.1.1</span> Get</h4>
<div id="outline-container-orgeff2407" class="outline-4">
<h4 id="orgeff2407"><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>);
@ -932,10 +932,10 @@ current date is stored.
</div>
</div>
<div id="outline-container-org50d4794" class="outline-4">
<h4 id="org50d4794"><span class="section-number-4">2.1.2</span> Compute</h4>
<div id="outline-container-org701b1e5" class="outline-4">
<h4 id="org701b1e5"><span class="section-number-4">2.1.2</span> Compute</h4>
<div class="outline-text-4" id="text-2-1-2">
<table id="orgb4726b1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="orgd453859" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -1031,8 +1031,8 @@ current date is stored.
</div>
</div>
<div id="outline-container-orgf9b5834" class="outline-4">
<h4 id="orgf9b5834"><span class="section-number-4">2.1.3</span> Test</h4>
<div id="outline-container-orgb8b0111" class="outline-4">
<h4 id="orgb8b0111"><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>));
@ -1066,8 +1066,8 @@ rc = qmckl_get_electron_ee_distance(context, ee_distance);
</div>
</div>
<div id="outline-container-org83a0273" class="outline-3">
<h3 id="org83a0273"><span class="section-number-3">2.2</span> Electron-electron rescaled distances</h3>
<div id="outline-container-org2a8fa97" class="outline-3">
<h3 id="org2a8fa97"><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
@ -1085,8 +1085,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
</p>
</div>
<div id="outline-container-orgb97bf35" class="outline-4">
<h4 id="orgb97bf35"><span class="section-number-4">2.2.1</span> Get</h4>
<div id="outline-container-org8fdd95a" class="outline-4">
<h4 id="org8fdd95a"><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>);
@ -1095,10 +1095,10 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
</div>
</div>
<div id="outline-container-org57d80ee" class="outline-4">
<h4 id="org57d80ee"><span class="section-number-4">2.2.2</span> Compute</h4>
<div id="outline-container-orga56769b" class="outline-4">
<h4 id="orga56769b"><span class="section-number-4">2.2.2</span> Compute</h4>
<div class="outline-text-4" id="text-2-2-2">
<table id="orgba70f5c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="orge0785b4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -1203,8 +1203,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
</div>
</div>
<div id="outline-container-org8f18582" class="outline-4">
<h4 id="org8f18582"><span class="section-number-4">2.2.3</span> Test</h4>
<div id="outline-container-org2bcae0c" class="outline-4">
<h4 id="org2bcae0c"><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>));
@ -1238,8 +1238,8 @@ rc = qmckl_get_electron_ee_distance_rescaled(context, ee_distance_rescaled);
</div>
</div>
<div id="outline-container-orgcf033cb" class="outline-3">
<h3 id="orgcf033cb"><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-org8a4d80d" class="outline-3">
<h3 id="org8a4d80d"><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\)
@ -1251,8 +1251,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
</p>
</div>
<div id="outline-container-org494f55a" class="outline-4">
<h4 id="org494f55a"><span class="section-number-4">2.3.1</span> Get</h4>
<div id="outline-container-orge78e5b1" class="outline-4">
<h4 id="orge78e5b1"><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>);
@ -1261,10 +1261,10 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
</div>
</div>
<div id="outline-container-orgd0a61fc" class="outline-4">
<h4 id="orgd0a61fc"><span class="section-number-4">2.3.2</span> Compute</h4>
<div id="outline-container-orgc0a7142" class="outline-4">
<h4 id="orgc0a7142"><span class="section-number-4">2.3.2</span> Compute</h4>
<div class="outline-text-4" id="text-2-3-2">
<table id="org0791320" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org36c0cd6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -1369,8 +1369,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
</div>
</div>
<div id="outline-container-orgb2ce0d6" class="outline-4">
<h4 id="orgb2ce0d6"><span class="section-number-4">2.3.3</span> Test</h4>
<div id="outline-container-org932b770" class="outline-4">
<h4 id="org932b770"><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>));
@ -1405,12 +1405,12 @@ rc = qmckl_get_electron_ee_distance_rescaled_deriv_e(context, ee_distance_rescal
</div>
</div>
<div id="outline-container-org85afd9f" class="outline-3">
<h3 id="org85afd9f"><span class="section-number-3">2.4</span> Electron-nucleus distances</h3>
<div id="outline-container-org0f4b2cd" class="outline-3">
<h3 id="org0f4b2cd"><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-org963e72f" class="outline-4">
<h4 id="org963e72f"><span class="section-number-4">2.4.1</span> Get</h4>
<div id="outline-container-org6d01f72" class="outline-4">
<h4 id="org6d01f72"><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>);
@ -1419,10 +1419,10 @@ rc = qmckl_get_electron_ee_distance_rescaled_deriv_e(context, ee_distance_rescal
</div>
</div>
<div id="outline-container-org56e8ec7" class="outline-4">
<h4 id="org56e8ec7"><span class="section-number-4">2.4.2</span> Compute</h4>
<div id="outline-container-org728220c" class="outline-4">
<h4 id="org728220c"><span class="section-number-4">2.4.2</span> Compute</h4>
<div class="outline-text-4" id="text-2-4-2">
<table id="orgf14f567" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org5e17e11" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -1539,8 +1539,8 @@ rc = qmckl_get_electron_ee_distance_rescaled_deriv_e(context, ee_distance_rescal
</div>
</div>
<div id="outline-container-org333c4af" class="outline-4">
<h4 id="org333c4af"><span class="section-number-4">2.4.3</span> Test</h4>
<div id="outline-container-org31c5b31" class="outline-4">
<h4 id="org31c5b31"><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">
@ -1588,8 +1588,8 @@ rc = qmckl_get_electron_en_distance(context, &amp;(en_distance[0][0][0]));
</div>
</div>
<div id="outline-container-org42ed690" class="outline-3">
<h3 id="org42ed690"><span class="section-number-3">2.5</span> Electron-nucleus rescaled distances</h3>
<div id="outline-container-orgecc72bc" class="outline-3">
<h3 id="orgecc72bc"><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
@ -1607,8 +1607,8 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
</p>
</div>
<div id="outline-container-org30f7217" class="outline-4">
<h4 id="org30f7217"><span class="section-number-4">2.5.1</span> Get</h4>
<div id="outline-container-org670ff68" class="outline-4">
<h4 id="org670ff68"><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>);
@ -1617,10 +1617,10 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
</div>
</div>
<div id="outline-container-org37087e3" class="outline-4">
<h4 id="org37087e3"><span class="section-number-4">2.5.2</span> Compute</h4>
<div id="outline-container-orge01c706" class="outline-4">
<h4 id="orge01c706"><span class="section-number-4">2.5.2</span> Compute</h4>
<div class="outline-text-4" id="text-2-5-2">
<table id="org2cc827f" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org6da6693" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -1752,8 +1752,8 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
</div>
</div>
<div id="outline-container-org9b91484" class="outline-4">
<h4 id="org9b91484"><span class="section-number-4">2.5.3</span> Test</h4>
<div id="outline-container-org21600bb" class="outline-4">
<h4 id="org21600bb"><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">
@ -1801,8 +1801,8 @@ rc = qmckl_get_electron_en_distance_rescaled(context, &amp;(en_distance_rescaled
</div>
</div>
<div id="outline-container-orgc80e87c" class="outline-3">
<h3 id="orgc80e87c"><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-org67a4a83" class="outline-3">
<h3 id="org67a4a83"><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\)
@ -1814,8 +1814,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
</p>
</div>
<div id="outline-container-orgdf0fe3f" class="outline-4">
<h4 id="orgdf0fe3f"><span class="section-number-4">2.6.1</span> Get</h4>
<div id="outline-container-orge3c7acc" class="outline-4">
<h4 id="orge3c7acc"><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>);
@ -1824,10 +1824,10 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
</div>
</div>
<div id="outline-container-orgdec122d" class="outline-4">
<h4 id="orgdec122d"><span class="section-number-4">2.6.2</span> Compute</h4>
<div id="outline-container-orgcd4272e" class="outline-4">
<h4 id="orgcd4272e"><span class="section-number-4">2.6.2</span> Compute</h4>
<div class="outline-text-4" id="text-2-6-2">
<table id="org775f907" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org24f041e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -1960,8 +1960,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
</div>
</div>
<div id="outline-container-orgfbcb438" class="outline-4">
<h4 id="orgfbcb438"><span class="section-number-4">2.6.3</span> Test</h4>
<div id="outline-container-org4f20a8e" class="outline-4">
<h4 id="org4f20a8e"><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">
@ -2016,7 +2016,7 @@ rc = qmckl_get_electron_en_distance_rescaled_deriv_e(context, &amp;(en_distance_
</div>
<div id="postamble" class="status">
<p class="author">Author: TREX CoE</p>
<p class="date">Created: 2021-07-23 Fri 07:03</p>
<p class="date">Created: 2021-09-06 Mon 07:49</p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
</body>

View File

@ -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-07-23 Fri 07:03 -->
<!-- 2021-09-06 Mon 07:49 -->
<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="#org1cd3227">1. Decoding errors</a></li>
<li><a href="#org777c4e4">2. Data structure in context</a></li>
<li><a href="#org288f10b">3. Updating errors in the context</a></li>
<li><a href="#org45bb1ee">4. Get the error</a></li>
<li><a href="#orgc044da2">5. Failing</a></li>
<li><a href="#orge0db225">1. Decoding errors</a></li>
<li><a href="#org56d6773">2. Data structure in context</a></li>
<li><a href="#org1912bae">3. Updating errors in the context</a></li>
<li><a href="#org64e0f98">4. Get the error</a></li>
<li><a href="#org9173b7b">5. Failing</a></li>
</ul>
</div>
</div>
<div id="outline-container-org1cd3227" class="outline-2">
<h2 id="org1cd3227"><span class="section-number-2">1</span> Decoding errors</h2>
<div id="outline-container-orge0db225" class="outline-2">
<h2 id="orge0db225"><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-org777c4e4" class="outline-2">
<h2 id="org777c4e4"><span class="section-number-2">2</span> Data structure in context</h2>
<div id="outline-container-org56d6773" class="outline-2">
<h2 id="org56d6773"><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-org288f10b" class="outline-2">
<h2 id="org288f10b"><span class="section-number-2">3</span> Updating errors in the context</h2>
<div id="outline-container-org1912bae" class="outline-2">
<h2 id="org1912bae"><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-org45bb1ee" class="outline-2">
<h2 id="org45bb1ee"><span class="section-number-2">4</span> Get the error</h2>
<div id="outline-container-org64e0f98" class="outline-2">
<h2 id="org64e0f98"><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-orgc044da2" class="outline-2">
<h2 id="orgc044da2"><span class="section-number-2">5</span> Failing</h2>
<div id="outline-container-org9173b7b" class="outline-2">
<h2 id="org9173b7b"><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-07-23 Fri 07:03</p>
<p class="date">Created: 2021-09-06 Mon 07:49</p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
</body>

View File

@ -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-07-23 Fri 07:03 -->
<!-- 2021-09-06 Mon 07:49 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Jastrow Factor</title>
@ -333,100 +333,100 @@ for the JavaScript code in this tag.
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orgc261393">1. Context</a>
<li><a href="#orgb982550">1. Context</a>
<ul>
<li><a href="#orgfa7f002">1.1. Data structure</a></li>
<li><a href="#org661db50">1.2. Access functions</a></li>
<li><a href="#orgbeab5fa">1.3. Initialization functions</a></li>
<li><a href="#orgf05310c">1.4. Test</a></li>
<li><a href="#orgb7d2951">1.1. Data structure</a></li>
<li><a href="#org4ac541c">1.2. Access functions</a></li>
<li><a href="#org0d0fb6e">1.3. Initialization functions</a></li>
<li><a href="#orgf40f509">1.4. Test</a></li>
</ul>
</li>
<li><a href="#orgd4c6efe">2. Computation</a>
<li><a href="#org6f21e7e">2. Computation</a>
<ul>
<li><a href="#org4c3ebbe">2.1. Asymptotic component for \(f_{ee}\)</a>
<li><a href="#orgb9e2c64">2.1. Asymptotic component for \(f_{ee}\)</a>
<ul>
<li><a href="#org5938c2e">2.1.1. Get</a></li>
<li><a href="#orge8a3306">2.1.2. Compute</a></li>
<li><a href="#org6739a71">2.1.3. Test</a></li>
<li><a href="#orgf4b17ec">2.1.1. Get</a></li>
<li><a href="#org2ca608d">2.1.2. Compute</a></li>
<li><a href="#org0946dc2">2.1.3. Test</a></li>
</ul>
</li>
<li><a href="#org23c6624">2.2. Electron-electron component \(f_{ee}\)</a>
<li><a href="#org759b087">2.2. Electron-electron component \(f_{ee}\)</a>
<ul>
<li><a href="#orgaa7ae3d">2.2.1. Get</a></li>
<li><a href="#orgff1b66f">2.2.2. Compute</a></li>
<li><a href="#org06c6705">2.2.3. Test</a></li>
<li><a href="#org3be7c37">2.2.1. Get</a></li>
<li><a href="#org89f2d3c">2.2.2. Compute</a></li>
<li><a href="#orgd4d1a1e">2.2.3. Test</a></li>
</ul>
</li>
<li><a href="#orgfc7771f">2.3. Electron-electron component derivative \(f'_{ee}\)</a>
<li><a href="#org382e75c">2.3. Electron-electron component derivative \(f'_{ee}\)</a>
<ul>
<li><a href="#org8a98409">2.3.1. Get</a></li>
<li><a href="#org8ded74b">2.3.2. Compute</a></li>
<li><a href="#orgcf58c3b">2.3.3. Test</a></li>
<li><a href="#orgc8af410">2.3.1. Get</a></li>
<li><a href="#org9294778">2.3.2. Compute</a></li>
<li><a href="#org655703e">2.3.3. Test</a></li>
</ul>
</li>
<li><a href="#orgb36d85a">2.4. Electron-nucleus component \(f_{en}\)</a>
<li><a href="#org0b519c7">2.4. Electron-nucleus component \(f_{en}\)</a>
<ul>
<li><a href="#org1018496">2.4.1. Get</a></li>
<li><a href="#orgf28ab8f">2.4.2. Compute</a></li>
<li><a href="#org810943d">2.4.3. Test</a></li>
<li><a href="#orgd31e206">2.4.1. Get</a></li>
<li><a href="#org5ad24ec">2.4.2. Compute</a></li>
<li><a href="#org0c17982">2.4.3. Test</a></li>
</ul>
</li>
<li><a href="#orgf91d0a2">2.5. Electron-nucleus component derivative \(f'_{en}\)</a>
<li><a href="#org21013c4">2.5. Electron-nucleus component derivative \(f'_{en}\)</a>
<ul>
<li><a href="#orgb3646d1">2.5.1. Get</a></li>
<li><a href="#orga4c62ba">2.5.2. Compute</a></li>
<li><a href="#orgf458a4f">2.5.3. Test</a></li>
<li><a href="#org687a5fe">2.5.1. Get</a></li>
<li><a href="#org6e589e1">2.5.2. Compute</a></li>
<li><a href="#orgb8a3daf">2.5.3. Test</a></li>
</ul>
</li>
<li><a href="#org251b86c">2.6. Electron-electron rescaled distances for each order</a>
<li><a href="#org4cef40e">2.6. Electron-electron rescaled distances for each order</a>
<ul>
<li><a href="#orga850535">2.6.1. Get</a></li>
<li><a href="#orgcc6b147">2.6.2. Compute</a></li>
<li><a href="#org8741c04">2.6.3. Test</a></li>
<li><a href="#orgbaaaa04">2.6.1. Get</a></li>
<li><a href="#org79b2a38">2.6.2. Compute</a></li>
<li><a href="#org5c71c6b">2.6.3. Test</a></li>
</ul>
</li>
<li><a href="#orge95a369">2.7. Electron-electron rescaled distances for each order and derivatives</a>
<li><a href="#orgac64e04">2.7. Electron-electron rescaled distances for each order and derivatives</a>
<ul>
<li><a href="#orga07887c">2.7.1. Get</a></li>
<li><a href="#org7e08a10">2.7.2. Compute</a></li>
<li><a href="#orga7070e9">2.7.3. Test</a></li>
<li><a href="#org789ef6c">2.7.1. Get</a></li>
<li><a href="#org5c63249">2.7.2. Compute</a></li>
<li><a href="#org3179b0b">2.7.3. Test</a></li>
</ul>
</li>
<li><a href="#orgdb3a484">2.8. Electron-nucleus rescaled distances for each order</a>
<li><a href="#org594a3f6">2.8. Electron-nucleus rescaled distances for each order</a>
<ul>
<li><a href="#orgf41f700">2.8.1. Get</a></li>
<li><a href="#org5cd083c">2.8.2. Compute</a></li>
<li><a href="#org5f1e017">2.8.3. Test</a></li>
<li><a href="#org77bd3e9">2.8.1. Get</a></li>
<li><a href="#org6d9b85e">2.8.2. Compute</a></li>
<li><a href="#org16be71d">2.8.3. Test</a></li>
</ul>
</li>
<li><a href="#orga1d614c">2.9. Electron-nucleus rescaled distances for each order and derivatives</a>
<li><a href="#org44df07c">2.9. Electron-nucleus rescaled distances for each order and derivatives</a>
<ul>
<li><a href="#org156e282">2.9.1. Get</a></li>
<li><a href="#org0dd7715">2.9.2. Compute</a></li>
<li><a href="#orgab4739e">2.9.3. Test</a></li>
<li><a href="#org8946664">2.9.1. Get</a></li>
<li><a href="#org964cd68">2.9.2. Compute</a></li>
<li><a href="#orgf64202d">2.9.3. Test</a></li>
</ul>
</li>
<li><a href="#org52e5ca8">2.10. Prepare for electron-electron-nucleus Jastrow \(f_{een}\)</a>
<li><a href="#org35bca72">2.10. Prepare for electron-electron-nucleus Jastrow \(f_{een}\)</a>
<ul>
<li><a href="#org9d23817">2.10.1. Get</a></li>
<li><a href="#org7715375">2.10.2. Compute dim<sub>cord</sub><sub>vect</sub></a></li>
<li><a href="#orgca00b03">2.10.3. Compute cord<sub>vect</sub><sub>full</sub></a></li>
<li><a href="#orgec6c25c">2.10.4. Compute lkpm<sub>combined</sub><sub>index</sub></a></li>
<li><a href="#orgc838dda">2.10.5. Test</a></li>
<li><a href="#org5d0bddd">2.10.1. Get</a></li>
<li><a href="#org0f4a8c1">2.10.2. Compute dim<sub>cord</sub><sub>vect</sub></a></li>
<li><a href="#orgf15c865">2.10.3. Compute cord<sub>vect</sub><sub>full</sub></a></li>
<li><a href="#orgc127179">2.10.4. Compute lkpm<sub>combined</sub><sub>index</sub></a></li>
<li><a href="#orgb1de2cd">2.10.5. Test</a></li>
</ul>
</li>
<li><a href="#org48c27c4">2.11. Electron-electron-nucleus Jastrow \(f_{een}\)</a>
<li><a href="#org94d5991">2.11. Electron-electron-nucleus Jastrow \(f_{een}\)</a>
<ul>
<li><a href="#orgb84f867">2.11.1. Get</a></li>
<li><a href="#org4c0084f">2.11.2. Compute</a></li>
<li><a href="#org769f447">2.11.3. Test</a></li>
<li><a href="#orgfe31a15">2.11.1. Get</a></li>
<li><a href="#orgcdd2d8f">2.11.2. Compute</a></li>
<li><a href="#org818f87b">2.11.3. Test</a></li>
</ul>
</li>
<li><a href="#org6ff60b2">2.12. Electron-electron-nucleus Jastrow \(f_{een}\) derivative</a>
<li><a href="#org4223dc3">2.12. Electron-electron-nucleus Jastrow \(f_{een}\) derivative</a>
<ul>
<li><a href="#org526fa6a">2.12.1. Get</a></li>
<li><a href="#org78eacd0">2.12.2. Compute</a></li>
<li><a href="#org5d16c32">2.12.3. Test</a></li>
<li><a href="#org24b9986">2.12.1. Get</a></li>
<li><a href="#org7fb6bf5">2.12.2. Compute</a></li>
<li><a href="#org82bd50e">2.12.3. Test</a></li>
</ul>
</li>
</ul>
@ -435,14 +435,14 @@ for the JavaScript code in this tag.
</div>
</div>
<div id="outline-container-orgc261393" class="outline-2">
<h2 id="orgc261393"><span class="section-number-2">1</span> Context</h2>
<div id="outline-container-orgb982550" class="outline-2">
<h2 id="orgb982550"><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:
</p>
<table id="org2770cf9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org45f0d84" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -734,7 +734,7 @@ For H2O we have the following data:
</p>
<div class="org-src-container">
<pre class="src src-python" id="org30f65d8"><span style="color: #a020f0;">import</span> numpy <span style="color: #a020f0;">as</span> np
<pre class="src src-python" id="org5001736"><span style="color: #a020f0;">import</span> numpy <span style="color: #a020f0;">as</span> np
<span style="color: #a0522d;">elec_num</span> = 10
<span style="color: #a0522d;">nucl_num</span> = 2
@ -884,8 +884,8 @@ For H2O we have the following data:
</div>
</div>
<div id="outline-container-orgfa7f002" class="outline-3">
<h3 id="orgfa7f002"><span class="section-number-3">1.1</span> Data structure</h3>
<div id="outline-container-orgb7d2951" class="outline-3">
<h3 id="orgb7d2951"><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_jastrow_struct</span>{
@ -972,8 +972,8 @@ this mechanism.
</div>
</div>
<div id="outline-container-org661db50" class="outline-3">
<h3 id="org661db50"><span class="section-number-3">1.2</span> Access functions</h3>
<div id="outline-container-org4ac541c" class="outline-3">
<h3 id="org4ac541c"><span class="section-number-3">1.2</span> Access functions</h3>
<div class="outline-text-3" id="text-1-2">
<p>
Along with these core functions, calculation of the jastrow factor
@ -993,8 +993,8 @@ function returns <code>true</code>.
</div>
</div>
<div id="outline-container-orgbeab5fa" class="outline-3">
<h3 id="orgbeab5fa"><span class="section-number-3">1.3</span> Initialization functions</h3>
<div id="outline-container-org0d0fb6e" class="outline-3">
<h3 id="org0d0fb6e"><span class="section-number-3">1.3</span> Initialization functions</h3>
<div class="outline-text-3" id="text-1-3">
<p>
To prepare for the Jastrow and its derivative, all the following functions need to be
@ -1020,8 +1020,8 @@ are precontracted using BLAS LEVEL 3 operations for an optimal FLOP count.
</div>
</div>
<div id="outline-container-orgf05310c" class="outline-3">
<h3 id="orgf05310c"><span class="section-number-3">1.4</span> Test</h3>
<div id="outline-container-orgf40f509" class="outline-3">
<h3 id="orgf40f509"><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>*/
@ -1196,8 +1196,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2);
</div>
</div>
<div id="outline-container-orgd4c6efe" class="outline-2">
<h2 id="orgd4c6efe"><span class="section-number-2">2</span> Computation</h2>
<div id="outline-container-org6f21e7e" class="outline-2">
<h2 id="org6f21e7e"><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
@ -1210,8 +1210,8 @@ current date is stored.
</p>
</div>
<div id="outline-container-org4c3ebbe" class="outline-3">
<h3 id="org4c3ebbe"><span class="section-number-3">2.1</span> Asymptotic component for \(f_{ee}\)</h3>
<div id="outline-container-orgb9e2c64" class="outline-3">
<h3 id="orgb9e2c64"><span class="section-number-3">2.1</span> Asymptotic component for \(f_{ee}\)</h3>
<div class="outline-text-3" id="text-2-1">
<p>
Calculate the asymptotic component <code>asymp_jasb</code> to be substracted from the final
@ -1226,8 +1226,8 @@ via the <code>bord_vector</code> and the electron-electron rescale factor <code>
</p>
</div>
<div id="outline-container-org5938c2e" class="outline-4">
<h4 id="org5938c2e"><span class="section-number-4">2.1.1</span> Get</h4>
<div id="outline-container-orgf4b17ec" class="outline-4">
<h4 id="orgf4b17ec"><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_jastrow_asymp_jasb</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;">asymp_jasb</span>);
@ -1236,10 +1236,10 @@ via the <code>bord_vector</code> and the electron-electron rescale factor <code>
</div>
</div>
<div id="outline-container-orge8a3306" class="outline-4">
<h4 id="orge8a3306"><span class="section-number-4">2.1.2</span> Compute</h4>
<div id="outline-container-org2ca608d" class="outline-4">
<h4 id="org2ca608d"><span class="section-number-4">2.1.2</span> Compute</h4>
<div class="outline-text-4" id="text-2-1-2">
<table id="orgbb7f9d2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org16ae6ef" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -1344,8 +1344,8 @@ via the <code>bord_vector</code> and the electron-electron rescale factor <code>
</div>
<div id="outline-container-org6739a71" class="outline-4">
<h4 id="org6739a71"><span class="section-number-4">2.1.3</span> Test</h4>
<div id="outline-container-org0946dc2" class="outline-4">
<h4 id="org0946dc2"><span class="section-number-4">2.1.3</span> Test</h4>
<div class="outline-text-4" id="text-2-1-3">
<pre class="example">
asym_one : 0.43340325572525706
@ -1402,8 +1402,8 @@ rc = qmckl_get_jastrow_asymp_jasb(context, asymp_jasb);
</div>
</div>
<div id="outline-container-org23c6624" class="outline-3">
<h3 id="org23c6624"><span class="section-number-3">2.2</span> Electron-electron component \(f_{ee}\)</h3>
<div id="outline-container-org759b087" class="outline-3">
<h3 id="org759b087"><span class="section-number-3">2.2</span> Electron-electron component \(f_{ee}\)</h3>
<div class="outline-text-3" id="text-2-2">
<p>
Calculate the electron-electron jastrow component <code>factor_ee</code> using the <code>asymp_jasb</code>
@ -1418,8 +1418,8 @@ f_{ee} = \sum_{i,j<i} \left\{ \frac{ \eta B_0 C_{ij}}{1 - B_1 C_{ij}} - J_{asym
</div>
<div id="outline-container-orgaa7ae3d" class="outline-4">
<h4 id="orgaa7ae3d"><span class="section-number-4">2.2.1</span> Get</h4>
<div id="outline-container-org3be7c37" class="outline-4">
<h4 id="org3be7c37"><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_jastrow_factor_ee</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;">factor_ee</span>);
@ -1428,10 +1428,10 @@ f_{ee} = \sum_{i,j<i} \left\{ \frac{ \eta B_0 C_{ij}}{1 - B_1 C_{ij}} - J_{asym
</div>
</div>
<div id="outline-container-orgff1b66f" class="outline-4">
<h4 id="orgff1b66f"><span class="section-number-4">2.2.2</span> Compute</h4>
<div id="outline-container-org89f2d3c" class="outline-4">
<h4 id="org89f2d3c"><span class="section-number-4">2.2.2</span> Compute</h4>
<div class="outline-text-4" id="text-2-2-2">
<table id="orgced279c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org4b58ba6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -1598,8 +1598,8 @@ f_{ee} = \sum_{i,j<i} \left\{ \frac{ \eta B_0 C_{ij}}{1 - B_1 C_{ij}} - J_{asym
</div>
<div id="outline-container-org06c6705" class="outline-4">
<h4 id="org06c6705"><span class="section-number-4">2.2.3</span> Test</h4>
<div id="outline-container-orgd4d1a1e" class="outline-4">
<h4 id="orgd4d1a1e"><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;">Check if Jastrow is properly initialized </span>*/
@ -1617,8 +1617,8 @@ rc = qmckl_get_jastrow_factor_ee(context, factor_ee);
</div>
</div>
<div id="outline-container-orgfc7771f" class="outline-3">
<h3 id="orgfc7771f"><span class="section-number-3">2.3</span> Electron-electron component derivative \(f'_{ee}\)</h3>
<div id="outline-container-org382e75c" class="outline-3">
<h3 id="org382e75c"><span class="section-number-3">2.3</span> Electron-electron component derivative \(f'_{ee}\)</h3>
<div class="outline-text-3" id="text-2-3">
<p>
Calculate the derivative of the <code>factor_ee</code> using the <code>ee_distance_rescaled</code> and
@ -1633,8 +1633,8 @@ TODO: Add equation
</div>
<div id="outline-container-org8a98409" class="outline-4">
<h4 id="org8a98409"><span class="section-number-4">2.3.1</span> Get</h4>
<div id="outline-container-orgc8af410" class="outline-4">
<h4 id="orgc8af410"><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_jastrow_factor_ee_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;">factor_ee_deriv_e</span>);
@ -1643,10 +1643,10 @@ TODO: Add equation
</div>
</div>
<div id="outline-container-org8ded74b" class="outline-4">
<h4 id="org8ded74b"><span class="section-number-4">2.3.2</span> Compute</h4>
<div id="outline-container-org9294778" class="outline-4">
<h4 id="org9294778"><span class="section-number-4">2.3.2</span> Compute</h4>
<div class="outline-text-4" id="text-2-3-2">
<table id="orge08b65a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="orge059ac4" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -1853,8 +1853,8 @@ TODO: Add equation
</div>
<div id="outline-container-orgcf58c3b" class="outline-4">
<h4 id="orgcf58c3b"><span class="section-number-4">2.3.3</span> Test</h4>
<div id="outline-container-org655703e" class="outline-4">
<h4 id="org655703e"><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;">Check if Jastrow is properly initialized </span>*/
@ -1876,8 +1876,8 @@ rc = qmckl_get_jastrow_factor_ee_deriv_e(context, &amp;(factor_ee_deriv_e[0][0][
</div>
</div>
<div id="outline-container-orgb36d85a" class="outline-3">
<h3 id="orgb36d85a"><span class="section-number-3">2.4</span> Electron-nucleus component \(f_{en}\)</h3>
<div id="outline-container-org0b519c7" class="outline-3">
<h3 id="org0b519c7"><span class="section-number-3">2.4</span> Electron-nucleus component \(f_{en}\)</h3>
<div class="outline-text-3" id="text-2-4">
<p>
Calculate the electron-electron jastrow component <code>factor_en</code> using the <code>aord_vector</code>
@ -1892,8 +1892,8 @@ f_{en} = \sum_{i,j<i} \left\{ \frac{ A_0 C_{ij}}{1 - A_1 C_{ij}} + \sum^{nord}_{
</div>
<div id="outline-container-org1018496" class="outline-4">
<h4 id="org1018496"><span class="section-number-4">2.4.1</span> Get</h4>
<div id="outline-container-orgd31e206" class="outline-4">
<h4 id="orgd31e206"><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_jastrow_factor_en</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;">factor_en</span>);
@ -1902,10 +1902,10 @@ f_{en} = \sum_{i,j<i} \left\{ \frac{ A_0 C_{ij}}{1 - A_1 C_{ij}} + \sum^{nord}_{
</div>
</div>
<div id="outline-container-orgf28ab8f" class="outline-4">
<h4 id="orgf28ab8f"><span class="section-number-4">2.4.2</span> Compute</h4>
<div id="outline-container-org5ad24ec" class="outline-4">
<h4 id="org5ad24ec"><span class="section-number-4">2.4.2</span> Compute</h4>
<div class="outline-text-4" id="text-2-4-2">
<table id="org7c5e5e3" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="orgfa02337" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -2079,8 +2079,8 @@ f_{en} = \sum_{i,j<i} \left\{ \frac{ A_0 C_{ij}}{1 - A_1 C_{ij}} + \sum^{nord}_{
</div>
<div id="outline-container-org810943d" class="outline-4">
<h4 id="org810943d"><span class="section-number-4">2.4.3</span> Test</h4>
<div id="outline-container-org0c17982" class="outline-4">
<h4 id="org0c17982"><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">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
@ -2098,8 +2098,8 @@ rc = qmckl_get_jastrow_factor_en(context, factor_en);
</div>
</div>
<div id="outline-container-orgf91d0a2" class="outline-3">
<h3 id="orgf91d0a2"><span class="section-number-3">2.5</span> Electron-nucleus component derivative \(f'_{en}\)</h3>
<div id="outline-container-org21013c4" class="outline-3">
<h3 id="org21013c4"><span class="section-number-3">2.5</span> Electron-nucleus component derivative \(f'_{en}\)</h3>
<div class="outline-text-3" id="text-2-5">
<p>
Calculate the electron-electron jastrow component <code>factor_en_deriv_e</code> derivative
@ -2112,8 +2112,8 @@ TODO: write equations.
</p>
</div>
<div id="outline-container-orgb3646d1" class="outline-4">
<h4 id="orgb3646d1"><span class="section-number-4">2.5.1</span> Get</h4>
<div id="outline-container-org687a5fe" class="outline-4">
<h4 id="org687a5fe"><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_jastrow_factor_en_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;">factor_en_deriv_e</span>);
@ -2122,10 +2122,10 @@ TODO: write equations.
</div>
</div>
<div id="outline-container-orga4c62ba" class="outline-4">
<h4 id="orga4c62ba"><span class="section-number-4">2.5.2</span> Compute</h4>
<div id="outline-container-org6e589e1" class="outline-4">
<h4 id="org6e589e1"><span class="section-number-4">2.5.2</span> Compute</h4>
<div class="outline-text-4" id="text-2-5-2">
<table id="org2a0b07e" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="orgd7b7880" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -2338,8 +2338,8 @@ TODO: write equations.
</div>
<div id="outline-container-orgf458a4f" class="outline-4">
<h4 id="orgf458a4f"><span class="section-number-4">2.5.3</span> Test</h4>
<div id="outline-container-orgb8a3daf" class="outline-4">
<h4 id="orgb8a3daf"><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">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
@ -2361,8 +2361,8 @@ rc = qmckl_get_jastrow_factor_en_deriv_e(context, &amp;(factor_en_deriv_e[0][0][
</div>
</div>
<div id="outline-container-org251b86c" class="outline-3">
<h3 id="org251b86c"><span class="section-number-3">2.6</span> Electron-electron rescaled distances for each order</h3>
<div id="outline-container-org4cef40e" class="outline-3">
<h3 id="org4cef40e"><span class="section-number-3">2.6</span> Electron-electron rescaled distances for each order</h3>
<div class="outline-text-3" id="text-2-6">
<p>
<code>een_rescaled_e</code> stores the table of the rescaled distances between all
@ -2380,8 +2380,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
</p>
</div>
<div id="outline-container-orga850535" class="outline-4">
<h4 id="orga850535"><span class="section-number-4">2.6.1</span> Get</h4>
<div id="outline-container-orgbaaaa04" class="outline-4">
<h4 id="orgbaaaa04"><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_jastrow_een_rescaled_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</span>);
@ -2390,10 +2390,10 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
</div>
</div>
<div id="outline-container-orgcc6b147" class="outline-4">
<h4 id="orgcc6b147"><span class="section-number-4">2.6.2</span> Compute</h4>
<div id="outline-container-org79b2a38" class="outline-4">
<h4 id="org79b2a38"><span class="section-number-4">2.6.2</span> Compute</h4>
<div class="outline-text-4" id="text-2-6-2">
<table id="org84032b5" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org46cc7ec" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -2552,8 +2552,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
</div>
</div>
<div id="outline-container-org8741c04" class="outline-4">
<h4 id="org8741c04"><span class="section-number-4">2.6.3</span> Test</h4>
<div id="outline-container-org5c71c6b" class="outline-4">
<h4 id="org5c71c6b"><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"><span style="color: #0000ff;">assert</span>(<span style="color: #228b22;">qmckl_electron_provided</span>(<span style="color: #a0522d;">context</span>));
@ -2576,8 +2576,8 @@ rc = qmckl_get_jastrow_een_rescaled_e(context, &amp;(een_rescaled_e[0][0][0][0])
</div>
</div>
<div id="outline-container-orge95a369" class="outline-3">
<h3 id="orge95a369"><span class="section-number-3">2.7</span> Electron-electron rescaled distances for each order and derivatives</h3>
<div id="outline-container-orgac64e04" class="outline-3">
<h3 id="orgac64e04"><span class="section-number-3">2.7</span> Electron-electron rescaled distances for each order and derivatives</h3>
<div class="outline-text-3" id="text-2-7">
<p>
<code>een_rescaled_e</code> stores the table of the rescaled distances between all
@ -2591,8 +2591,8 @@ TODO: write formulae
</div>
<div id="outline-container-orga07887c" class="outline-4">
<h4 id="orga07887c"><span class="section-number-4">2.7.1</span> Get</h4>
<div id="outline-container-org789ef6c" class="outline-4">
<h4 id="org789ef6c"><span class="section-number-4">2.7.1</span> Get</h4>
<div class="outline-text-4" id="text-2-7-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_jastrow_een_rescaled_e_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</span>);
@ -2601,10 +2601,10 @@ TODO: write formulae
</div>
</div>
<div id="outline-container-org7e08a10" class="outline-4">
<h4 id="org7e08a10"><span class="section-number-4">2.7.2</span> Compute</h4>
<div id="outline-container-org5c63249" class="outline-4">
<h4 id="org5c63249"><span class="section-number-4">2.7.2</span> Compute</h4>
<div class="outline-text-4" id="text-2-7-2">
<table id="org213fee6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org281320d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -2783,8 +2783,8 @@ TODO: write formulae
</div>
<div id="outline-container-orga7070e9" class="outline-4">
<h4 id="orga7070e9"><span class="section-number-4">2.7.3</span> Test</h4>
<div id="outline-container-org3179b0b" class="outline-4">
<h4 id="org3179b0b"><span class="section-number-4">2.7.3</span> Test</h4>
<div class="outline-text-4" id="text-2-7-3">
<div class="org-src-container">
<pre class="src src-c">//<span style="color: #b22222;">assert(qmckl_electron_provided(context));</span>
@ -2795,8 +2795,8 @@ TODO: write formulae
</div>
</div>
<div id="outline-container-orgdb3a484" class="outline-3">
<h3 id="orgdb3a484"><span class="section-number-3">2.8</span> Electron-nucleus rescaled distances for each order</h3>
<div id="outline-container-org594a3f6" class="outline-3">
<h3 id="org594a3f6"><span class="section-number-3">2.8</span> Electron-nucleus rescaled distances for each order</h3>
<div class="outline-text-3" id="text-2-8">
<p>
<code>een_rescaled_n</code> stores the table of the rescaled distances between
@ -2814,8 +2814,8 @@ where \(C_{ia}\) is the matrix of electron-nucleus distances.
</p>
</div>
<div id="outline-container-orgf41f700" class="outline-4">
<h4 id="orgf41f700"><span class="section-number-4">2.8.1</span> Get</h4>
<div id="outline-container-org77bd3e9" class="outline-4">
<h4 id="org77bd3e9"><span class="section-number-4">2.8.1</span> Get</h4>
<div class="outline-text-4" id="text-2-8-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_jastrow_een_rescaled_n</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>);
@ -2824,10 +2824,10 @@ where \(C_{ia}\) is the matrix of electron-nucleus distances.
</div>
</div>
<div id="outline-container-org5cd083c" class="outline-4">
<h4 id="org5cd083c"><span class="section-number-4">2.8.2</span> Compute</h4>
<div id="outline-container-org6d9b85e" class="outline-4">
<h4 id="org6d9b85e"><span class="section-number-4">2.8.2</span> Compute</h4>
<div class="outline-text-4" id="text-2-8-2">
<table id="org60703f6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="orgd929b6a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -2983,8 +2983,8 @@ where \(C_{ia}\) is the matrix of electron-nucleus distances.
</div>
</div>
<div id="outline-container-org5f1e017" class="outline-4">
<h4 id="org5f1e017"><span class="section-number-4">2.8.3</span> Test</h4>
<div id="outline-container-org16be71d" class="outline-4">
<h4 id="org16be71d"><span class="section-number-4">2.8.3</span> Test</h4>
<div class="outline-text-4" id="text-2-8-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>));
@ -3006,8 +3006,8 @@ rc = qmckl_get_jastrow_een_rescaled_n(context, &amp;(een_rescaled_n[0][0][0][0])
</div>
</div>
<div id="outline-container-orga1d614c" class="outline-3">
<h3 id="orga1d614c"><span class="section-number-3">2.9</span> Electron-nucleus rescaled distances for each order and derivatives</h3>
<div id="outline-container-org44df07c" class="outline-3">
<h3 id="org44df07c"><span class="section-number-3">2.9</span> Electron-nucleus rescaled distances for each order and derivatives</h3>
<div class="outline-text-3" id="text-2-9">
<p>
<code>een_rescaled_n_deriv_e</code> stores the table of the rescaled distances between
@ -3016,8 +3016,8 @@ electrons and nucleii raised to the power \(p\) defined by <code>cord_num</code>
</div>
<div id="outline-container-org156e282" class="outline-4">
<h4 id="org156e282"><span class="section-number-4">2.9.1</span> Get</h4>
<div id="outline-container-org8946664" class="outline-4">
<h4 id="org8946664"><span class="section-number-4">2.9.1</span> Get</h4>
<div class="outline-text-4" id="text-2-9-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_jastrow_een_rescaled_n_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</span>);
@ -3026,10 +3026,10 @@ electrons and nucleii raised to the power \(p\) defined by <code>cord_num</code>
</div>
</div>
<div id="outline-container-org0dd7715" class="outline-4">
<h4 id="org0dd7715"><span class="section-number-4">2.9.2</span> Compute</h4>
<div id="outline-container-org964cd68" class="outline-4">
<h4 id="org964cd68"><span class="section-number-4">2.9.2</span> Compute</h4>
<div class="outline-text-4" id="text-2-9-2">
<table id="org83f47dc" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org103b5be" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -3231,8 +3231,8 @@ electrons and nucleii raised to the power \(p\) defined by <code>cord_num</code>
</div>
</div>
<div id="outline-container-orgab4739e" class="outline-4">
<h4 id="orgab4739e"><span class="section-number-4">2.9.3</span> Test</h4>
<div id="outline-container-orgf64202d" class="outline-4">
<h4 id="orgf64202d"><span class="section-number-4">2.9.3</span> Test</h4>
<div class="outline-text-4" id="text-2-9-3">
<div class="org-src-container">
<pre class="src src-c">//<span style="color: #b22222;">assert(qmckl_electron_provided(context));</span>
@ -3243,8 +3243,8 @@ electrons and nucleii raised to the power \(p\) defined by <code>cord_num</code>
</div>
</div>
<div id="outline-container-org52e5ca8" class="outline-3">
<h3 id="org52e5ca8"><span class="section-number-3">2.10</span> Prepare for electron-electron-nucleus Jastrow \(f_{een}\)</h3>
<div id="outline-container-org35bca72" class="outline-3">
<h3 id="org35bca72"><span class="section-number-3">2.10</span> Prepare for electron-electron-nucleus Jastrow \(f_{een}\)</h3>
<div class="outline-text-3" id="text-2-10">
<p>
Prepare <code>cord_vect_full</code> and <code>lkpm_combined_index</code> tables required for the
@ -3253,8 +3253,8 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
</p>
</div>
<div id="outline-container-org9d23817" class="outline-4">
<h4 id="org9d23817"><span class="section-number-4">2.10.1</span> Get</h4>
<div id="outline-container-org5d0bddd" class="outline-4">
<h4 id="org5d0bddd"><span class="section-number-4">2.10.1</span> Get</h4>
<div class="outline-text-4" id="text-2-10-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_jastrow_dim_cord_vect</span>(<span style="color: #228b22;">qmckl_context</span> <span style="color: #a0522d;">context</span>, <span style="color: #228b22;">int64_t</span>* <span style="color: #a020f0;">const</span> <span style="color: #a0522d;">dim_cord_vect</span>);
@ -3265,10 +3265,10 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
</div>
</div>
<div id="outline-container-org7715375" class="outline-4">
<h4 id="org7715375"><span class="section-number-4">2.10.2</span> Compute dim<sub>cord</sub><sub>vect</sub></h4>
<div id="outline-container-org0f4a8c1" class="outline-4">
<h4 id="org0f4a8c1"><span class="section-number-4">2.10.2</span> Compute dim<sub>cord</sub><sub>vect</sub></h4>
<div class="outline-text-4" id="text-2-10-2">
<table id="org65087c6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org7c2ea51" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -3358,10 +3358,10 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
</div>
<div id="outline-container-orgca00b03" class="outline-4">
<h4 id="orgca00b03"><span class="section-number-4">2.10.3</span> Compute cord<sub>vect</sub><sub>full</sub></h4>
<div id="outline-container-orgf15c865" class="outline-4">
<h4 id="orgf15c865"><span class="section-number-4">2.10.3</span> Compute cord<sub>vect</sub><sub>full</sub></h4>
<div class="outline-text-4" id="text-2-10-3">
<table id="org27d5d4a" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org21ae621" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -3501,10 +3501,10 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
</div>
<div id="outline-container-orgec6c25c" class="outline-4">
<h4 id="orgec6c25c"><span class="section-number-4">2.10.4</span> Compute lkpm<sub>combined</sub><sub>index</sub></h4>
<div id="outline-container-orgc127179" class="outline-4">
<h4 id="orgc127179"><span class="section-number-4">2.10.4</span> Compute lkpm<sub>combined</sub><sub>index</sub></h4>
<div class="outline-text-4" id="text-2-10-4">
<table id="orgdac2dc9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="orge6ca686" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -3614,8 +3614,8 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
</div>
<div id="outline-container-orgc838dda" class="outline-4">
<h4 id="orgc838dda"><span class="section-number-4">2.10.5</span> Test</h4>
<div id="outline-container-orgb1de2cd" class="outline-4">
<h4 id="orgb1de2cd"><span class="section-number-4">2.10.5</span> Test</h4>
<div class="outline-text-4" id="text-2-10-5">
<div class="org-src-container">
<pre class="src src-c">//<span style="color: #b22222;">assert(qmckl_electron_provided(context));</span>
@ -3627,8 +3627,8 @@ calculation of the three-body jastrow <code>factor_een</code> and its derivative
</div>
</div>
<div id="outline-container-org48c27c4" class="outline-3">
<h3 id="org48c27c4"><span class="section-number-3">2.11</span> Electron-electron-nucleus Jastrow \(f_{een}\)</h3>
<div id="outline-container-org94d5991" class="outline-3">
<h3 id="org94d5991"><span class="section-number-3">2.11</span> Electron-electron-nucleus Jastrow \(f_{een}\)</h3>
<div class="outline-text-3" id="text-2-11">
<p>
Calculate the electron-electron-nuclear three-body jastrow component <code>factor_een</code>
@ -3640,8 +3640,8 @@ TODO: write equations.
</p>
</div>
<div id="outline-container-orgb84f867" class="outline-4">
<h4 id="orgb84f867"><span class="section-number-4">2.11.1</span> Get</h4>
<div id="outline-container-orgfe31a15" class="outline-4">
<h4 id="orgfe31a15"><span class="section-number-4">2.11.1</span> Get</h4>
<div class="outline-text-4" id="text-2-11-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_jastrow_factor_een</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;">factor_een</span>);
@ -3650,10 +3650,10 @@ TODO: write equations.
</div>
</div>
<div id="outline-container-org4c0084f" class="outline-4">
<h4 id="org4c0084f"><span class="section-number-4">2.11.2</span> Compute</h4>
<div id="outline-container-orgcdd2d8f" class="outline-4">
<h4 id="orgcdd2d8f"><span class="section-number-4">2.11.2</span> Compute</h4>
<div class="outline-text-4" id="text-2-11-2">
<table id="orgf1c7e97" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org9decf84" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -3838,8 +3838,8 @@ TODO: write equations.
</div>
<div id="outline-container-org769f447" class="outline-4">
<h4 id="org769f447"><span class="section-number-4">2.11.3</span> Test</h4>
<div id="outline-container-org818f87b" class="outline-4">
<h4 id="org818f87b"><span class="section-number-4">2.11.3</span> Test</h4>
<div class="outline-text-4" id="text-2-11-3">
<div class="org-src-container">
<pre class="src src-c">/* <span style="color: #b22222;">Check if Jastrow is properly initialized </span>*/
@ -3852,8 +3852,8 @@ TODO: write equations.
</div>
</div>
<div id="outline-container-org6ff60b2" class="outline-3">
<h3 id="org6ff60b2"><span class="section-number-3">2.12</span> Electron-electron-nucleus Jastrow \(f_{een}\) derivative</h3>
<div id="outline-container-org4223dc3" class="outline-3">
<h3 id="org4223dc3"><span class="section-number-3">2.12</span> Electron-electron-nucleus Jastrow \(f_{een}\) derivative</h3>
<div class="outline-text-3" id="text-2-12">
<p>
Calculate the electron-electron-nuclear three-body jastrow component <code>factor_een_deriv_e</code>
@ -3865,8 +3865,8 @@ TODO: write equations.
</p>
</div>
<div id="outline-container-org526fa6a" class="outline-4">
<h4 id="org526fa6a"><span class="section-number-4">2.12.1</span> Get</h4>
<div id="outline-container-org24b9986" class="outline-4">
<h4 id="org24b9986"><span class="section-number-4">2.12.1</span> Get</h4>
<div class="outline-text-4" id="text-2-12-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_jastrow_factor_een_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;">factor_een_deriv_e</span>);
@ -3875,10 +3875,10 @@ TODO: write equations.
</div>
</div>
<div id="outline-container-org78eacd0" class="outline-4">
<h4 id="org78eacd0"><span class="section-number-4">2.12.2</span> Compute</h4>
<div id="outline-container-org7fb6bf5" class="outline-4">
<h4 id="org7fb6bf5"><span class="section-number-4">2.12.2</span> Compute</h4>
<div class="outline-text-4" id="text-2-12-2">
<table id="orgfd6afca" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org229b4e9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
@ -4103,8 +4103,8 @@ TODO: write equations.
</div>
<div id="outline-container-org5d16c32" class="outline-4">
<h4 id="org5d16c32"><span class="section-number-4">2.12.3</span> Test</h4>
<div id="outline-container-org82bd50e" class="outline-4">
<h4 id="org82bd50e"><span class="section-number-4">2.12.3</span> Test</h4>
<div class="outline-text-4" id="text-2-12-3">
<div class="org-src-container">
<pre class="src src-c">///<span style="color: #b22222;">* Check if Jastrow is properly initialized */</span>
@ -4118,7 +4118,7 @@ TODO: write equations.
</div>
<div id="postamble" class="status">
<p class="author">Author: TREX CoE</p>
<p class="date">Created: 2021-07-23 Fri 07:03</p>
<p class="date">Created: 2021-09-06 Mon 07:49</p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
</body>

View File

@ -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-07-23 Fri 07:03 -->
<!-- 2021-09-06 Mon 07:49 -->
<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="#org56ab81c">1. Memory data structure for the context</a></li>
<li><a href="#org61447a1">2. Passing info to allocation routines</a></li>
<li><a href="#orga937e34">3. Allocation/deallocation functions</a></li>
<li><a href="#org7fdd4cb">1. Memory data structure for the context</a></li>
<li><a href="#org7346be0">2. Passing info to allocation routines</a></li>
<li><a href="#org6f4dae7">3. Allocation/deallocation functions</a></li>
</ul>
</div>
</div>
<div id="outline-container-org56ab81c" class="outline-2">
<h2 id="org56ab81c"><span class="section-number-2">1</span> Memory data structure for the context</h2>
<div id="outline-container-org7fdd4cb" class="outline-2">
<h2 id="org7fdd4cb"><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-org61447a1" class="outline-2">
<h2 id="org61447a1"><span class="section-number-2">2</span> Passing info to allocation routines</h2>
<div id="outline-container-org7346be0" class="outline-2">
<h2 id="org7346be0"><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-orga937e34" class="outline-2">
<h2 id="orga937e34"><span class="section-number-2">3</span> Allocation/deallocation functions</h2>
<div id="outline-container-org6f4dae7" class="outline-2">
<h2 id="org6f4dae7"><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-07-23 Fri 07:03</p>
<p class="date">Created: 2021-09-06 Mon 07:49</p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
</body>

View File

@ -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-07-23 Fri 07:03 -->
<!-- 2021-09-06 Mon 07:49 -->
<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="#orgea94b88">1. Context</a>
<li><a href="#orge9224a2">1. Context</a>
<ul>
<li><a href="#org536e6a9">1.1. Data structure</a></li>
<li><a href="#org7c19c98">1.2. Access functions</a></li>
<li><a href="#orgfd755c7">1.3. Initialization functions</a></li>
<li><a href="#org4d7263e">1.4. Test</a></li>
<li><a href="#orge715458">1.1. Data structure</a></li>
<li><a href="#org78739f6">1.2. Access functions</a></li>
<li><a href="#org58403ab">1.3. Initialization functions</a></li>
<li><a href="#org639d468">1.4. Test</a></li>
</ul>
</li>
<li><a href="#orgc1d32f7">2. Computation</a>
<li><a href="#orgc867767">2. Computation</a>
<ul>
<li><a href="#org3352d7b">2.1. Nucleus-nucleus distances</a>
<li><a href="#org7986611">2.1. Nucleus-nucleus distances</a>
<ul>
<li><a href="#orgd553357">2.1.1. Get</a></li>
<li><a href="#org1ceb857">2.1.2. Compute</a></li>
<li><a href="#org5e05de3">2.1.3. Test</a></li>
<li><a href="#orgc5240c2">2.1.1. Get</a></li>
<li><a href="#orga5863ca">2.1.2. Compute</a></li>
<li><a href="#orgff7fca7">2.1.3. Test</a></li>
</ul>
</li>
<li><a href="#orgfdb23a6">2.2. Nucleus-nucleus rescaled distances</a>
<li><a href="#org8a9dd25">2.2. Nucleus-nucleus rescaled distances</a>
<ul>
<li><a href="#org5305b38">2.2.1. Get</a></li>
<li><a href="#orgd9b97a7">2.2.2. Compute</a></li>
<li><a href="#org3a0d1fa">2.2.3. Test</a></li>
<li><a href="#orgea85b5f">2.2.1. Get</a></li>
<li><a href="#orgd877680">2.2.2. Compute</a></li>
<li><a href="#orgb7992f3">2.2.3. Test</a></li>
</ul>
</li>
<li><a href="#orgac46fe1">2.3. Nuclear repulsion energy</a>
<li><a href="#orgac4d433">2.3. Nuclear repulsion energy</a>
<ul>
<li><a href="#org495b405">2.3.1. Get</a></li>
<li><a href="#org7d545e7">2.3.2. Compute</a></li>
<li><a href="#orgacd2d03">2.3.3. Test</a></li>
<li><a href="#orgbacbe27">2.3.1. Get</a></li>
<li><a href="#org0bdaf49">2.3.2. Compute</a></li>
<li><a href="#orga9fc487">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-orgea94b88" class="outline-2">
<h2 id="orgea94b88"><span class="section-number-2">1</span> Context</h2>
<div id="outline-container-orge9224a2" class="outline-2">
<h2 id="orge9224a2"><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-org536e6a9" class="outline-3">
<h3 id="org536e6a9"><span class="section-number-3">1.1</span> Data structure</h3>
<div id="outline-container-orge715458" class="outline-3">
<h3 id="orge715458"><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-org7c19c98" class="outline-3">
<h3 id="org7c19c98"><span class="section-number-3">1.2</span> Access functions</h3>
<div id="outline-container-org78739f6" class="outline-3">
<h3 id="org78739f6"><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-orgfd755c7" class="outline-3">
<h3 id="orgfd755c7"><span class="section-number-3">1.3</span> Initialization functions</h3>
<div id="outline-container-org58403ab" class="outline-3">
<h3 id="org58403ab"><span class="section-number-3">1.3</span> Initialization functions</h3>
<div class="outline-text-3" id="text-1-3">
<p>
To set the data relative to the nuclei in the context, the
@ -574,8 +574,8 @@ atoms. The coordinates should be given in atomic units.
</div>
</div>
<div id="outline-container-org4d7263e" class="outline-3">
<h3 id="org4d7263e"><span class="section-number-3">1.4</span> Test</h3>
<div id="outline-container-org639d468" class="outline-3">
<h3 id="org639d468"><span class="section-number-3">1.4</span> Test</h3>
<div class="outline-text-3" id="text-1-4">
<div class="org-src-container">
<pre class="src src-c"><span style="color: #a020f0;">const</span> <span style="color: #228b22;">int64_t</span> <span style="color: #a0522d;">nucl_num</span> = chbrclf_nucl_num;
@ -659,8 +659,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2);
</div>
</div>
<div id="outline-container-orgc1d32f7" class="outline-2">
<h2 id="orgc1d32f7"><span class="section-number-2">2</span> Computation</h2>
<div id="outline-container-orgc867767" class="outline-2">
<h2 id="orgc867767"><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-org3352d7b" class="outline-3">
<h3 id="org3352d7b"><span class="section-number-3">2.1</span> Nucleus-nucleus distances</h3>
<div id="outline-container-org7986611" class="outline-3">
<h3 id="org7986611"><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-orgd553357" class="outline-4">
<h4 id="orgd553357"><span class="section-number-4">2.1.1</span> Get</h4>
<div id="outline-container-orgc5240c2" class="outline-4">
<h4 id="orgc5240c2"><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-org1ceb857" class="outline-4">
<h4 id="org1ceb857"><span class="section-number-4">2.1.2</span> Compute</h4>
<div id="outline-container-orga5863ca" class="outline-4">
<h4 id="orga5863ca"><span class="section-number-4">2.1.2</span> Compute</h4>
<div class="outline-text-4" id="text-2-1-2">
<table id="org12ae492" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="orgc6c8a09" 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-org5e05de3" class="outline-4">
<h4 id="org5e05de3"><span class="section-number-4">2.1.3</span> Test</h4>
<div id="outline-container-orgff7fca7" class="outline-4">
<h4 id="orgff7fca7"><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-orgfdb23a6" class="outline-3">
<h3 id="orgfdb23a6"><span class="section-number-3">2.2</span> Nucleus-nucleus rescaled distances</h3>
<div id="outline-container-org8a9dd25" class="outline-3">
<h3 id="org8a9dd25"><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-org5305b38" class="outline-4">
<h4 id="org5305b38"><span class="section-number-4">2.2.1</span> Get</h4>
<div id="outline-container-orgea85b5f" class="outline-4">
<h4 id="orgea85b5f"><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-orgd9b97a7" class="outline-4">
<h4 id="orgd9b97a7"><span class="section-number-4">2.2.2</span> Compute</h4>
<div id="outline-container-orgd877680" class="outline-4">
<h4 id="orgd877680"><span class="section-number-4">2.2.2</span> Compute</h4>
<div class="outline-text-4" id="text-2-2-2">
<table id="org37470ca" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org9b13f75" 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-org3a0d1fa" class="outline-4">
<h4 id="org3a0d1fa"><span class="section-number-4">2.2.3</span> Test</h4>
<div id="outline-container-orgb7992f3" class="outline-4">
<h4 id="orgb7992f3"><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-orgac46fe1" class="outline-3">
<h3 id="orgac46fe1"><span class="section-number-3">2.3</span> Nuclear repulsion energy</h3>
<div id="outline-container-orgac4d433" class="outline-3">
<h3 id="orgac4d433"><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-org495b405" class="outline-4">
<h4 id="org495b405"><span class="section-number-4">2.3.1</span> Get</h4>
<div id="outline-container-orgbacbe27" class="outline-4">
<h4 id="orgbacbe27"><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-org7d545e7" class="outline-4">
<h4 id="org7d545e7"><span class="section-number-4">2.3.2</span> Compute</h4>
<div id="outline-container-org0bdaf49" class="outline-4">
<h4 id="org0bdaf49"><span class="section-number-4">2.3.2</span> Compute</h4>
<div class="outline-text-4" id="text-2-3-2">
<table id="org91b2310" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="orgecbad31" 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-orgacd2d03" class="outline-4">
<h4 id="orgacd2d03"><span class="section-number-4">2.3.3</span> Test</h4>
<div id="outline-container-orga9fc487" class="outline-4">
<h4 id="orga9fc487"><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, &amp;rep);
</div>
<div id="postamble" class="status">
<p class="author">Author: TREX CoE</p>
<p class="date">Created: 2021-07-23 Fri 07:03</p>
<p class="date">Created: 2021-09-06 Mon 07:49</p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
</body>

View File

@ -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-07-23 Fri 07:03 -->
<!-- 2021-09-06 Mon 07:49 -->
<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="#org5b3b661">1. Control of the numerical precision</a></li>
<li><a href="#org0d5941e">2. Precision</a></li>
<li><a href="#org4a5e43e">3. Range</a></li>
<li><a href="#orge80aabf">4. Helper functions</a></li>
<li><a href="#orgfffd522">1. Control of the numerical precision</a></li>
<li><a href="#org59dacd0">2. Precision</a></li>
<li><a href="#org9d1fdbf">3. Range</a></li>
<li><a href="#org8c142eb">4. Helper functions</a></li>
</ul>
</div>
</div>
<div id="outline-container-org5b3b661" class="outline-2">
<h2 id="org5b3b661"><span class="section-number-2">1</span> Control of the numerical precision</h2>
<div id="outline-container-orgfffd522" class="outline-2">
<h2 id="orgfffd522"><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="org8206359" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org2e0b139" 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-org0d5941e" class="outline-2">
<h2 id="org0d5941e"><span class="section-number-2">2</span> Precision</h2>
<div id="outline-container-org59dacd0" class="outline-2">
<h2 id="org59dacd0"><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-org4a5e43e" class="outline-2">
<h2 id="org4a5e43e"><span class="section-number-2">3</span> Range</h2>
<div id="outline-container-org9d1fdbf" class="outline-2">
<h2 id="org9d1fdbf"><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-orge80aabf" class="outline-2">
<h2 id="orge80aabf"><span class="section-number-2">4</span> Helper functions</h2>
<div id="outline-container-org8c142eb" class="outline-2">
<h2 id="org8c142eb"><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-07-23 Fri 07:03</p>
<p class="date">Created: 2021-09-06 Mon 07:49</p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
</body>

View File

@ -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-07-23 Fri 07:03 -->
<!-- 2021-09-06 Mon 07:49 -->
<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,27 +233,27 @@ for the JavaScript code in this tag.
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org554255b">1. CHBrClF</a>
<li><a href="#org998c662">1. CHBrClF</a>
<ul>
<li><a href="#org951a18d">1.1. XYZ coordinates</a></li>
<li><a href="#org28b819d">1.2. Atomic basis set</a></li>
<li><a href="#org95a0ac1">1.3. <span class="todo TODO">TODO</span> Molecular orbitals</a></li>
<li><a href="#orgc2a88c3">1.4. Electron coordinates</a></li>
<li><a href="#orge8f1cb1">1.1. XYZ coordinates</a></li>
<li><a href="#org74eece7">1.2. Atomic basis set</a></li>
<li><a href="#orgb8382f5">1.3. <span class="todo TODO">TODO</span> Molecular orbitals</a></li>
<li><a href="#orgcfea72b">1.4. Electron coordinates</a></li>
</ul>
</li>
<li><a href="#orgbe24881">2. N2</a>
<li><a href="#org231277d">2. N2</a>
<ul>
<li><a href="#orgbe4421a">2.1. XYZ coordinates</a></li>
<li><a href="#org52b333b">2.2. Electron coordinates</a></li>
<li><a href="#org10878a4">2.3. Jastrow related data</a></li>
<li><a href="#orgddfecf7">2.1. XYZ coordinates</a></li>
<li><a href="#orgfbf3594">2.2. Electron coordinates</a></li>
<li><a href="#org33095a5">2.3. Jastrow related data</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-org554255b" class="outline-2">
<h2 id="org554255b"><span class="section-number-2">1</span> CHBrClF</h2>
<div id="outline-container-org998c662" class="outline-2">
<h2 id="org998c662"><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,
@ -337,8 +337,8 @@ and with a high maximum angular momentum.
</div>
<div id="outline-container-org951a18d" class="outline-3">
<h3 id="org951a18d"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
<div id="outline-container-orge8f1cb1" class="outline-3">
<h3 id="orge8f1cb1"><span class="section-number-3">1.1</span> XYZ coordinates</h3>
<div class="outline-text-3" id="text-1-1">
<pre class="example">
5
@ -368,8 +368,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
</div>
</div>
<div id="outline-container-org28b819d" class="outline-3">
<h3 id="org28b819d"><span class="section-number-3">1.2</span> Atomic basis set</h3>
<div id="outline-container-org74eece7" class="outline-3">
<h3 id="org74eece7"><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
@ -1214,11 +1214,11 @@ F 1
</div>
</div>
<div id="outline-container-org95a0ac1" class="outline-3">
<h3 id="org95a0ac1"><span class="section-number-3">1.3</span> <span class="todo TODO">TODO</span> Molecular orbitals</h3>
<div id="outline-container-orgb8382f5" class="outline-3">
<h3 id="orgb8382f5"><span class="section-number-3">1.3</span> <span class="todo TODO">TODO</span> Molecular orbitals</h3>
</div>
<div id="outline-container-orgc2a88c3" class="outline-3">
<h3 id="orgc2a88c3"><span class="section-number-3">1.4</span> Electron coordinates</h3>
<div id="outline-container-orgcfea72b" class="outline-3">
<h3 id="orgcfea72b"><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.
@ -1378,8 +1378,8 @@ Electron coordinates are stored in atomic units in normal format.
</div>
<div id="outline-container-orgbe24881" class="outline-2">
<h2 id="orgbe24881"><span class="section-number-2">2</span> N2</h2>
<div id="outline-container-org231277d" class="outline-2">
<h2 id="org231277d"><span class="section-number-2">2</span> N2</h2>
<div class="outline-text-2" id="text-2">
<p>
This test is mainly for the Jastrow factor and was supplied by
@ -1420,8 +1420,8 @@ treated by pseudopotentials thus excluded from the actual calculation.
</table>
</div>
<div id="outline-container-orgbe4421a" class="outline-3">
<h3 id="orgbe4421a"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
<div id="outline-container-orgddfecf7" class="outline-3">
<h3 id="orgddfecf7"><span class="section-number-3">2.1</span> XYZ coordinates</h3>
<div class="outline-text-3" id="text-2-1">
<pre class="example">
2
@ -1448,8 +1448,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
</div>
</div>
<div id="outline-container-org52b333b" class="outline-3">
<h3 id="org52b333b"><span class="section-number-3">2.2</span> Electron coordinates</h3>
<div id="outline-container-orgfbf3594" class="outline-3">
<h3 id="orgfbf3594"><span class="section-number-3">2.2</span> Electron coordinates</h3>
<div class="outline-text-3" id="text-2-2">
<p>
Electron coordinates are stored in atomic units in normal format.
@ -1478,8 +1478,8 @@ Electron coordinates are stored in atomic units in normal format.
</div>
</div>
<div id="outline-container-org10878a4" class="outline-3">
<h3 id="org10878a4"><span class="section-number-3">2.3</span> Jastrow related data</h3>
<div id="outline-container-org33095a5" class="outline-3">
<h3 id="org33095a5"><span class="section-number-3">2.3</span> Jastrow related data</h3>
<div class="outline-text-3" id="text-2-3">
<p>
This test is mainly for the Jastrow factor and was supplied by
@ -1578,7 +1578,7 @@ Ramon Panades Baruetta.
</div>
</div>
<div id="postamble" class="status">
<p class="date">Created: 2021-07-23 Fri 07:03</p>
<p class="date">Created: 2021-09-06 Mon 07:49</p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
</body>

View File

@ -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-07-23 Fri 07:03 -->
<!-- 2021-09-06 Mon 07:49 -->
<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="#org2de9fa6">1. Matrix operations</a>
<li><a href="#orgde6f2eb">1. Matrix operations</a>
<ul>
<li><a href="#orgd7538a3">1.1. <code>qmckl_transpose</code></a>
<li><a href="#orgd7b95d5">1.1. <code>qmckl_transpose</code></a>
<ul>
<li><a href="#orge93c42b">1.1.1. Requirements</a></li>
<li><a href="#org332bcd2">1.1.2. C header</a></li>
<li><a href="#orge467e3b">1.1.3. Source</a></li>
<li><a href="#orge6454ae">1.1.1. Requirements</a></li>
<li><a href="#orgeb1b7b2">1.1.2. C header</a></li>
<li><a href="#org82c7bb4">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-org2de9fa6" class="outline-2">
<h2 id="org2de9fa6"><span class="section-number-2">1</span> Matrix operations</h2>
<div id="outline-container-orgde6f2eb" class="outline-2">
<h2 id="orgde6f2eb"><span class="section-number-2">1</span> Matrix operations</h2>
<div class="outline-text-2" id="text-1">
</div>
<div id="outline-container-orgd7538a3" class="outline-3">
<h3 id="orgd7538a3"><span class="section-number-3">1.1</span> <code>qmckl_transpose</code></h3>
<div id="outline-container-orgd7b95d5" class="outline-3">
<h3 id="orgd7b95d5"><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="org3358848" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<table id="org80a52c7" 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-orge93c42b" class="outline-4">
<h4 id="orge93c42b"><span class="section-number-4">1.1.1</span> Requirements</h4>
<div id="outline-container-orge6454ae" class="outline-4">
<h4 id="orge6454ae"><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-org332bcd2" class="outline-4">
<h4 id="org332bcd2"><span class="section-number-4">1.1.2</span> C header</h4>
<div id="outline-container-orgeb1b7b2" class="outline-4">
<h4 id="orgeb1b7b2"><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-orge467e3b" class="outline-4">
<h4 id="orge467e3b"><span class="section-number-4">1.1.3</span> Source</h4>
<div id="outline-container-org82c7bb4" class="outline-4">
<h4 id="org82c7bb4"><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;">&amp;</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-07-23 Fri 07:03</p>
<p class="date">Created: 2021-09-06 Mon 07:49</p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
</body>