From 41eab9c06be88dc54c31fc0c061b4b45e750984c Mon Sep 17 00:00:00 2001 From: scemama Date: Thu, 8 Jul 2021 17:26:33 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20TREX-CoE?= =?UTF-8?q?/qmckl@e8a5103c92d10b6e767f6a2c7fba47331a383e2a=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.html | 4 +- qmckl.html | 102 ++++++------ qmckl_ao.html | 374 +++++++++++++++++++++++--------------------- qmckl_context.html | 44 +++--- qmckl_distance.html | 156 +++++++++--------- qmckl_electron.html | 220 +++++++++++++------------- qmckl_error.html | 34 ++-- qmckl_jastrow.html | 373 ++++++++++++++++++++++--------------------- qmckl_memory.html | 22 +-- qmckl_nucleus.html | 118 +++++++------- qmckl_numprec.html | 30 ++-- qmckl_tests.html | 58 +++---- qmckl_utils.html | 36 ++--- 13 files changed, 797 insertions(+), 774 deletions(-) diff --git a/README.html b/README.html index b9f7219..1878720 100644 --- a/README.html +++ b/README.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + QMCkl source code documentation @@ -353,7 +353,7 @@ and bug reports should be submitted at

Author: TREX CoE

-

Created: 2021-07-08 Thu 06:58

+

Created: 2021-07-08 Thu 17:26

Validate

diff --git a/qmckl.html b/qmckl.html index 4de874b..31913c0 100644 --- a/qmckl.html +++ b/qmckl.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Introduction @@ -333,30 +333,30 @@ for the JavaScript code in this tag.

Table of Contents

-
-

1 Using QMCkl

+
+

1 Using QMCkl

The qmckl.h header file installed in the ${prefix}/include directory @@ -385,12 +385,12 @@ Both files are located in the include/ directory.

-
-

2 Developing in QMCkl

+
+

2 Developing in QMCkl

-
-

2.1 Literate programming

+
+

2.1 Literate programming

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.

-
-

2.2 Source code editing

+
+

2.2 Source code editing

For a tutorial on literate programming with org-mode, follow this link. @@ -467,8 +467,8 @@ org-mode.

-
-

2.3 Choice of the programming language

+
+

2.3 Choice of the programming language

Most of the codes of the TREX CoE are written in Fortran with some scripts in @@ -516,8 +516,8 @@ For more guidelines on using Fortran to generate a C interface, see

-
-

2.4 Coding rules

+
+

2.4 Coding rules

The authors should follow the recommendations of the C99 @@ -535,8 +535,8 @@ Compliance can be checked with cppcheck as:

-
-

2.5 Design of the library

+
+

2.5 Design of the library

The proposed API should allow the library to: deal with memory transfers @@ -547,8 +547,8 @@ functions (see below).

-
-

2.6 Naming conventions

+
+

2.6 Naming conventions

To avoid namespace collisions, we use qmckl_ as a prefix for all exported @@ -573,8 +573,8 @@ form is allowed.

-
-

2.7 Application programming interface

+
+

2.7 Application programming interface

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.

-
-

2.8 Global state

+
+

2.8 Global state

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 context variable, built by the library with the -qmckl_context_create function. The =context= contains the global +qmckl_context_create function. The =context= contains the global state of the library, and is used as the first argument of many QMCkl functions.

@@ -628,8 +628,8 @@ the state is done by setters and getters, prefixed by
-
-

2.9 Headers

+
+

2.9 Headers

A single qmckl.h header to be distributed by the library @@ -717,8 +717,8 @@ and the types definitions should be written in the *fh_type.f90 fil

-
-

2.10 Low-level functions

+
+

2.10 Low-level functions

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).

These functions are pure, and unaware of the QMCkl -context. They are not allowed to allocate/deallocate memory, and +context. They are not allowed to allocate/deallocate memory, and if they need temporary memory it should be provided in input.

-
-

2.11 High-level functions

+
+

2.11 High-level functions

High-level functions are at the top of the function call tree. @@ -747,27 +747,27 @@ temporary storage, to simplify the use of accelerators.

The high-level functions should be pure, unless the introduction of non-purity is justified. All the side effects should be made in -the context variable. +the context variable.

-
-

2.12 Numerical precision

+
+

2.12 Numerical precision

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 context +functions will use the precision specified in the context variable.

-
-

2.13 Algorithms

+
+

2.13 Algorithms

Reducing the scaling of an algorithm usually implies also reducing @@ -783,7 +783,7 @@ implemented adapted to different problem sizes.

Author: TREX CoE

-

Created: 2021-07-08 Thu 06:58

+

Created: 2021-07-08 Thu 17:26

Validate

diff --git a/qmckl_ao.html b/qmckl_ao.html index cc9990f..5da7d62 100644 --- a/qmckl_ao.html +++ b/qmckl_ao.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Atomic Orbitals @@ -333,69 +333,70 @@ for the JavaScript code in this tag.

Table of Contents

-
-

1 Context

+
+

1 Context

The following arrays are stored in the context: @@ -436,6 +437,12 @@ The following arrays are stored in the context: Index of the first shell of each nucleus + +nucleus_shell_num +[nucl_num] +Number of shells per nucleus + + shell_ang_mom [shell_num] @@ -508,31 +515,44 @@ Computed data: -primitive_vgl -[prim_num][5][walk_num][elec_num] -Value, gradients, Laplacian of the primitives at electron positions +nucleus_max_ang_mom +[nucl_num] +Maximum angular momentum for each nucleus -primitive_vgl_date -uint64_t -Late modification date of Value, gradients, Laplacian of the primitives at electron positions - - - -shell_vgl -[prim_num][5][walk_num][elec_num] -Value, gradients, Laplacian of the primitives at electron positions - - - -shell_vgl_date -uint64_t -Late modification date of Value, gradients, Laplacian of the shells at electron positions +nucleus_range +[nucl_num] +Distance beyond which all the AOs are zero +primitive_vgl +[5][walk_num][elec_num][prim_num] +Value, gradients, Laplacian of the primitives at electron positions + + + +primitive_vgl_date +uint64_t +Late modification date of Value, gradients, Laplacian of the primitives at electron positions + + + +shell_vgl +[5][walk_num][elec_num][shell_num] +Value, gradients, Laplacian of the primitives at electron positions + + + +shell_vgl_date +uint64_t +Late modification date of Value, gradients, Laplacian of the shells at electron positions + + + + nucl_shell_index [nucl_num] Index of the first shell for each nucleus @@ -555,12 +575,6 @@ Computed data: [prim_num] Normalization factors of the sorted primtives - - -nuclear_radius -[nucl_num] -Distance beyond which all the AOs are zero - @@ -617,8 +631,8 @@ prim_factor = [ 1.0006253235944540e+01, 2.4169531573445120e+00, 7.96109248497664

-
-

1.1 Data structure

+
+

1.1 Data structure

typedef struct qmckl_ao_basis_struct {
@@ -636,7 +650,9 @@ prim_factor = [ 1.0006253235944540e+01, 2.4169531573445120e+00, 7.96109248497664
   double  * prim_factor ;
 
   int64_t * nucleus_prim_index;
-  double  * coefficient_normalized ;
+  double  * coefficient_normalized;
+  int32_t * nucleus_max_ang_mom;
+  double  * nucleus_range;
   double  * primitive_vgl;
   int64_t   primitive_vgl_date;
   double  * shell_vgl;
@@ -684,8 +700,8 @@ this mechanism.
 
-
-

1.2 Access functions

+
+

1.2 Access functions

When all the data for the AOs have been provided, the following @@ -699,8 +715,8 @@ function returns true.

-
-

1.3 Initialization functions

+
+

1.3 Initialization functions

To set the basis set, all the following functions need to be @@ -735,18 +751,21 @@ the context.

-
-

1.4 Fortran interfaces

+
+

1.4 Fortran interfaces

-
-

2 Radial part

+
+

2 Radial part

-
-

2.1 General functions for Gaussian basis functions

-
+
+

2.1 TODO Helper functions to accelerate calculations

+
+
+

2.2 General functions for Gaussian basis functions

+

qmckl_ao_gaussian_vgl computes the values, gradients and Laplacians at a given point of n Gaussian functions centered at @@ -977,19 +996,19 @@ Requirements

-
-

2.2 TODO General functions for Slater basis functions

+
+

2.3 TODO General functions for Slater basis functions

-
-

2.3 TODO General functions for Radial functions on a grid

+
+

2.4 TODO General functions for Radial functions on a grid

-
-

2.4 DONE Computation of primitives

-
+
+

2.5 Computation of primitives

+
-
-

2.4.1 Get

-
+
+

2.5.1 Get

+
qmckl_exit_code qmckl_get_ao_basis_primitive_vgl(qmckl_context context, double* const primitive_vgl);
 
@@ -997,14 +1016,14 @@ Requirements
-
-

2.4.2 Provide

+
+

2.5.2 Provide

-
-

2.4.3 Compute

-
- +
+

2.5.3 Compute

+
+
@@ -1082,7 +1101,7 @@ Requirements - + @@ -1105,7 +1124,7 @@ Requirements double precision , intent(in) :: elec_coord(elec_num,3,walk_num)double precision , intent(in) :: nucl_coord(nucl_num,3)double precision , intent(in) :: expo(prim_num) - double precision , intent(out) :: primitive_vgl(elec_num,walk_num,5,prim_num) + double precision , intent(out) :: primitive_vgl(prim_num,elec_num,walk_num,5)integer*8 :: inucl, iprim, iwalk, ielecdouble precision :: x, y, z, two_a, ar2, r2, v, cutoff @@ -1131,11 +1150,11 @@ Requirements v = dexp(-ar2) two_a = -2.d0 * expo(iprim) * v - primitive_vgl(ielec, iwalk, 1, iprim) = v - primitive_vgl(ielec, iwalk, 2, iprim) = two_a * x - primitive_vgl(ielec, iwalk, 3, iprim) = two_a * y - primitive_vgl(ielec, iwalk, 4, iprim) = two_a * z - primitive_vgl(ielec, iwalk, 5, iprim) = two_a * (3.d0 - 2.d0*ar2) + primitive_vgl(iprim, ielec, iwalk, 1) = v + primitive_vgl(iprim, ielec, iwalk, 2) = two_a * x + primitive_vgl(iprim, ielec, iwalk, 3) = two_a * y + primitive_vgl(iprim, ielec, iwalk, 4) = two_a * z + primitive_vgl(iprim, ielec, iwalk, 5) = two_a * (3.d0 - 2.d0*ar2) end doend do @@ -1148,13 +1167,13 @@ Requirements -
-

2.4.4 Test

+
+

2.5.4 Test

-
-

2.4.5 Ideas for improvement

-
+
+

2.5.5 Ideas for improvement

+
// m : walkers
 // j : electrons
@@ -1190,13 +1209,13 @@ k=0;
 
-
-

2.5 Computation of shells

-
+
+

2.6 Computation of shells

+
-
-

2.5.1 Get

-
+
+

2.6.1 Get

+
qmckl_exit_code qmckl_get_ao_basis_shell_vgl(qmckl_context context, double* const shell_vgl);
 
@@ -1204,14 +1223,14 @@ k=0;
-
-

2.5.2 Provide

+
+

2.6.2 Provide

-
-

2.5.3 Compute

-
-
doubleprimitivevgl[primnum][5][walknum][elecnum]primitivevgl[5][walknum][elecnum][primnum] out Value, gradients and Laplacian of the primitives
+
+

2.6.3 Compute

+
+
@@ -1324,7 +1343,7 @@ k=0; - + @@ -1353,7 +1372,7 @@ k=0; double precision , intent(in) :: nucl_coord(nucl_num,3)double precision , intent(in) :: expo(prim_num)double precision , intent(in) :: coef_normalized(prim_num) - double precision , intent(out) :: shell_vgl(elec_num,walk_num,5,shell_num) + double precision , intent(out) :: shell_vgl(shell_num,elec_num,walk_num,5)integer*8 :: inucl, iprim, iwalk, ielec, ishelldouble precision :: x, y, z, two_a, ar2, r2, v, cutoff @@ -1365,19 +1384,24 @@ k=0; cutoff = -dlog(1.d-15) do inucl=1,nucl_num - do ishell=nucleus_index(inucl)+1, nucleus_index(inucl)+nucleus_shell_num(inucl) - ! C is zero-based, so shift bounds by one - do iwalk = 1, walk_num - do ielec = 1, elec_num + do iwalk = 1, walk_num + do ielec = 1, elec_num - shell_vgl(ielec, iwalk, 1:5, ishell) = 0.d0 + x = elec_coord(ielec,1,iwalk) - nucl_coord(inucl,1) + y = elec_coord(ielec,2,iwalk) - nucl_coord(inucl,2) + z = elec_coord(ielec,3,iwalk) - nucl_coord(inucl,3) - x = elec_coord(ielec,1,iwalk) - nucl_coord(inucl,1) - y = elec_coord(ielec,2,iwalk) - nucl_coord(inucl,2) - z = elec_coord(ielec,3,iwalk) - nucl_coord(inucl,3) + r2 = x*x + y*y + z*z - r2 = x*x + y*y + z*z + do ishell=nucleus_index(inucl)+1, nucleus_index(inucl)+nucleus_shell_num(inucl) + ! C is zero-based, so shift bounds by one + + shell_vgl(ishell, ielec, iwalk, 1) = 0.d0 + shell_vgl(ishell, ielec, iwalk, 2) = 0.d0 + shell_vgl(ishell, ielec, iwalk, 3) = 0.d0 + shell_vgl(ishell, ielec, iwalk, 4) = 0.d0 + shell_vgl(ishell, ielec, iwalk, 5) = 0.d0 do iprim = shell_prim_index(ishell)+1, shell_prim_index(ishell)+shell_prim_num(ishell) @@ -1389,20 +1413,20 @@ k=0; v = coef_normalized(iprim) * dexp(-ar2) two_a = -2.d0 * expo(iprim) * v - shell_vgl(ielec, iwalk, 1, ishell) = & - shell_vgl(ielec, iwalk, 1, ishell) + v + shell_vgl(ishell, ielec, iwalk, 1) = & + shell_vgl(ishell, ielec, iwalk, 1) + v - shell_vgl(ielec, iwalk, 2, ishell) = & - shell_vgl(ielec, iwalk, 2, ishell) + two_a * x + shell_vgl(ishell, ielec, iwalk, 2) = & + shell_vgl(ishell, ielec, iwalk, 2) + two_a * x - shell_vgl(ielec, iwalk, 3, ishell) = & - shell_vgl(ielec, iwalk, 3, ishell) + two_a * y + shell_vgl(ishell, ielec, iwalk, 3) = & + shell_vgl(ishell, ielec, iwalk, 3) + two_a * y - shell_vgl(ielec, iwalk, 4, ishell) = & - shell_vgl(ielec, iwalk, 4, ishell) + two_a * z + shell_vgl(ishell, ielec, iwalk, 4) = & + shell_vgl(ishell, ielec, iwalk, 4) + two_a * z - shell_vgl(ielec, iwalk, 5, ishell) = & - shell_vgl(ielec, iwalk, 5, ishell) + two_a * (3.d0 - 2.d0*ar2) + shell_vgl(ishell, ielec, iwalk, 5) = & + shell_vgl(ishell, ielec, iwalk, 5) + two_a * (3.d0 - 2.d0*ar2) end do @@ -1419,18 +1443,18 @@ k=0; -
-

2.5.4 Test

+
+

2.6.4 Test

-
-

3 Polynomial part

+
+

3 Polynomial part

-
-

3.1 General functions for Powers of \(x-X_i\)

+
+

3.1 General functions for Powers of \(x-X_i\)

The qmckl_ao_power function computes all the powers of the n @@ -1442,7 +1466,7 @@ the \(n\) points: \[ P_{ik} = X_i^k \]

-
doubleshell_vgl[shell_num][5][walk_num][elec_num]shell_vgl[5][walk_num][elec_num][shell_num] out Value, gradients and Laplacian of the shells
+
@@ -1500,8 +1524,8 @@ the \(n\) points:
-
-

3.1.1 Requirements

+
+

3.1.1 Requirements

  • context is not QMCKL_NULL_CONTEXT
  • @@ -1514,8 +1538,8 @@ the \(n\) points:
-
-

3.1.2 C Header

+
+

3.1.2 C Header

qmckl_exit_code qmckl_ao_power (
@@ -1530,8 +1554,8 @@ the \(n\) points:
 
-
-

3.1.3 Source

+
+

3.1.3 Source

integer function qmckl_ao_power_f(context, n, X, LMAX, P, ldp) result(info)
@@ -1582,15 +1606,15 @@ the \(n\) points:
 
-
-

3.1.4 C interface

+
+

3.1.4 C interface

-
-

3.1.5 Fortran interface

+
+

3.1.5 Fortran interface

-
-

3.1.6 Test

+
+

3.1.6 Test

integer(c_int32_t) function test_qmckl_ao_power(context) bind(C)
@@ -1641,8 +1665,8 @@ the \(n\) points:
 
-
-

3.2 General functions for Value, Gradient and Laplacian of a polynomial

+
+

3.2 General functions for Value, Gradient and Laplacian of a polynomial

A polynomial is centered on a nucleus \(\mathbf{R}_i\) @@ -1687,7 +1711,7 @@ Laplacians at a given point in space, of all polynomials with an angular momentum up to lmax.

- +
@@ -1766,8 +1790,8 @@ angular momentum up to lmax.
-
-

3.2.1 Requirements

+
+

3.2.1 Requirements

  • context is not QMCKL_NULL_CONTEXT
  • @@ -1792,8 +1816,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"
-
-

3.2.2 C Header

+
+

3.2.2 C Header

qmckl_exit_code qmckl_ao_polynomial_vgl (
@@ -1811,8 +1835,8 @@ For example, with a=0, b=2 and c=1 the string is "yyz"
 
-
-

3.2.3 Source

+
+

3.2.3 Source

integer function qmckl_ao_polynomial_vgl_f(context, X, R, lmax, n, L, ldl, VGL, ldv) result(info)
@@ -1947,16 +1971,16 @@ For example, with a=0, b=2 and c=1 the string is "yyz"
 
-
-

3.2.4 C interface

+
+

3.2.4 C interface

-
-

3.2.5 Fortran interface

+
+

3.2.5 Fortran interface

-
-

3.2.6 Test

+
+

3.2.6 Test

integer(c_int32_t) function test_qmckl_ao_polynomial_vgl(context) bind(C)
@@ -2061,13 +2085,13 @@ assert(0 == test_qmckl_ao_polynomial_vgl(context));
 
-
-

4 Combining radial and polynomial parts

+
+

4 Combining radial and polynomial parts

Author: TREX CoE

-

Created: 2021-07-08 Thu 06:58

+

Created: 2021-07-08 Thu 17:26

Validate

diff --git a/qmckl_context.html b/qmckl_context.html index 9445dd3..34b2a24 100644 --- a/qmckl_context.html +++ b/qmckl_context.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Context @@ -311,21 +311,21 @@ for the JavaScript code in this tag.

Table of Contents

-
-

1 Context handling

+
+

1 Context handling

The context variable is a handle for the state of the library, @@ -338,7 +338,7 @@ A value of QMCKL_NULL_CONTEXT for the context is equivalent to a

-
typedef int64_t qmckl_context ;
+
typedef int64_t qmckl_context ;
 #define QMCKL_NULL_CONTEXT (qmckl_context) 0
 
@@ -356,8 +356,8 @@ and ctx is a qmckl_context_struct* pointer.

-
-

1.1 Data structure

+
+

1.1 Data structure

The context keeps a ``date'' that allows to check which data needs @@ -367,7 +367,7 @@ coordinates are updated.

When a new element is added to the context, the functions -qmcklcontextcreate, qmcklcontextdestroy and qmcklcontextcopy +qmcklcontextcreate, qmcklcontextdestroy and qmcklcontextcopy should be updated inorder to make deep copies.

@@ -416,8 +416,8 @@ if the context is valid, QMCKL_NULL_CONTEXT otherwise.
-
-

1.2 Creation

+
+

1.2 Creation

To create a new context, qmckl_context_create() should be used. @@ -502,8 +502,8 @@ To create a new context, qmckl_context_create() should be used.

-
-

1.3 Locking

+
+

1.3 Locking

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

-
-

1.4 TODO Copy

+
+

1.4 TODO Copy

qmckl_context_copy 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

-
-

1.5 Destroy

+
+

1.5 Destroy

The context is destroyed with qmckl_context_destroy, leaving the ancestors untouched. @@ -652,7 +652,7 @@ It frees the context, and returns the previous context.

Author: TREX CoE

-

Created: 2021-07-08 Thu 06:58

+

Created: 2021-07-08 Thu 17:26

Validate

diff --git a/qmckl_distance.html b/qmckl_distance.html index a391c1d..6b7764f 100644 --- a/qmckl_distance.html +++ b/qmckl_distance.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Inter-particle distances @@ -333,50 +333,50 @@ for the JavaScript code in this tag.

Table of Contents

-
-

1 Squared distance

+
+

1 Squared distance

-
-

1.1 qmckl_distance_sq

+
+

1.1 qmckl_distance_sq

qmckl_distance_sq computes the matrix of the squared distances @@ -403,7 +403,7 @@ between all pairs of points in two sets, one point within each set: \]

- +
@@ -496,8 +496,8 @@ between all pairs of points in two sets, one point within each set:
-
-

1.1.1 Requirements

+
+

1.1.1 Requirements

  • context is not QMCKL_NULL_CONTEXT
  • @@ -515,8 +515,8 @@ between all pairs of points in two sets, one point within each set:
-
-

1.1.2 C header

+
+

1.1.2 C header

qmckl_exit_code qmckl_distance_rescaled_deriv_e (
@@ -536,8 +536,8 @@ between all pairs of points in two sets, one point within each set:
 
-
-

1.1.3 Source

+
+

1.1.3 Source

integer function qmckl_distance_sq_f(context, transa, transb, m, n, &
@@ -672,8 +672,8 @@ between all pairs of points in two sets, one point within each set:
 
-
-

1.1.4 Performance

+
+

1.1.4 Performance

This function is more efficient when A and B are @@ -683,12 +683,12 @@ transposed.

-
-

2 Distance

+
+

2 Distance

-
-

2.1 qmckl_distance

+
+

2.1 qmckl_distance

qmckl_distance computes the matrix of the distances between all @@ -706,7 +706,7 @@ If the input array is normal ('N'), the xyz coordinates are in the leading dimension: [n][3] in C and (3,n) in Fortran.

- +
@@ -799,8 +799,8 @@ the leading dimension: [n][3] in C and (3,n) in Fortra
-
-

2.1.1 Requirements

+
+

2.1.1 Requirements

  • context is not QMCKL_NULL_CONTEXT
  • @@ -818,8 +818,8 @@ the leading dimension: [n][3] in C and (3,n) in Fortra
-
-

2.1.2 C header

+
+

2.1.2 C header

qmckl_exit_code qmckl_distance_rescaled_deriv_e (
@@ -839,8 +839,8 @@ the leading dimension: [n][3] in C and (3,n) in Fortra
 
-
-

2.1.3 Source

+
+

2.1.3 Source

integer function qmckl_distance_f(context, transa, transb, m, n, &
@@ -1007,8 +1007,8 @@ the leading dimension: [n][3] in C and (3,n) in Fortra
 
-
-

2.1.4 Performance

+
+

2.1.4 Performance

This function is more efficient when A and B are transposed. @@ -1018,12 +1018,12 @@ This function is more efficient when A and B are trans

-
-

3 Rescaled Distance

+
+

3 Rescaled Distance

-
-

3.1 qmckl_distance_rescaled

+
+

3.1 qmckl_distance_rescaled

qmckl_distance_rescaled computes the matrix of the rescaled distances between all @@ -1041,7 +1041,7 @@ If the input array is normal ('N'), the xyz coordinates are in the leading dimension: [n][3] in C and (3,n) in Fortran.

- +
@@ -1141,8 +1141,8 @@ the leading dimension: [n][3] in C and (3,n) in Fortra
-
-

3.1.1 Requirements

+
+

3.1.1 Requirements

  • context is not QMCKL_NULL_CONTEXT
  • @@ -1160,8 +1160,8 @@ the leading dimension: [n][3] in C and (3,n) in Fortra
-
-

3.1.2 C header

+
+

3.1.2 C header

qmckl_exit_code qmckl_distance_rescaled_deriv_e (
@@ -1182,8 +1182,8 @@ the leading dimension: [n][3] in C and (3,n) in Fortra
 
-
-

3.1.3 Source

+
+

3.1.3 Source

integer function qmckl_distance_rescaled_f(context, transa, transb, m, n, &
@@ -1353,8 +1353,8 @@ the leading dimension: [n][3] in C and (3,n) in Fortra
 
-
-

3.1.4 Performance

+
+

3.1.4 Performance

This function is more efficient when A and B are transposed. @@ -1363,12 +1363,12 @@ This function is more efficient when A and B are trans

-
-

4 Rescaled Distance Derivatives

+
+

4 Rescaled Distance Derivatives

-
-

4.1 qmckl_distance_rescaled_deriv_e

+
+

4.1 qmckl_distance_rescaled_deriv_e

qmckl_distance_rescaled_deriv_e computes the matrix of the gradient and laplacian of the @@ -1435,7 +1435,7 @@ If the input array is normal ('N'), the xyz coordinates are in the leading dimension: [n][3] in C and (3,n) in Fortran.

- +
@@ -1535,8 +1535,8 @@ the leading dimension: [n][3] in C and (3,n) in Fortra
-
-

4.1.1 Requirements

+
+

4.1.1 Requirements

  • context is not QMCKL_NULL_CONTEXT
  • @@ -1554,8 +1554,8 @@ the leading dimension: [n][3] in C and (3,n) in Fortra
-
-

4.1.2 C header

+
+

4.1.2 C header

qmckl_exit_code qmckl_distance_rescaled_deriv_e (
@@ -1576,8 +1576,8 @@ the leading dimension: [n][3] in C and (3,n) in Fortra
 
-
-

4.1.3 Source

+
+

4.1.3 Source

integer function qmckl_distance_rescaled_deriv_e_f(context, transa, transb, m, n, &
@@ -1768,8 +1768,8 @@ the leading dimension: [n][3] in C and (3,n) in Fortra
 
-
-

4.1.4 Performance

+
+

4.1.4 Performance

This function is more efficient when A and B are transposed. @@ -1781,7 +1781,7 @@ This function is more efficient when A and B are trans

Author: TREX CoE

-

Created: 2021-07-08 Thu 06:58

+

Created: 2021-07-08 Thu 17:26

Validate

diff --git a/qmckl_electron.html b/qmckl_electron.html index 4f0ba4b..22b3204 100644 --- a/qmckl_electron.html +++ b/qmckl_electron.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Electrons @@ -333,63 +333,63 @@ for the JavaScript code in this tag.

Table of Contents

-
-

1 Context

+
+

1 Context

The following data stored in the context: @@ -557,8 +557,8 @@ The following data stored in the context:

-
-

1.1 Data structure

+
+

1.1 Data structure

typedef struct qmckl_electron_struct {
@@ -633,8 +633,8 @@ this mechanism.
 
-
-

1.2 Access functions

+
+

1.2 Access functions

Access functions return QMCKL_SUCCESS when the data has been @@ -646,12 +646,12 @@ contains the requested data. Otherwise, this variable is untouched.

-
-

1.2.1 Number of electrons

+
+

1.2.1 Number of electrons

-
-

1.2.2 Number of walkers

+
+

1.2.2 Number of walkers

A walker is a set of electron coordinates that are arguments of @@ -660,12 +660,12 @@ the wave function. walk_num is the number of walkers.

-
-

1.2.3 Scaling factors Kappa

+
+

1.2.3 Scaling factors Kappa

-
-

1.2.4 Electron coordinates

+
+

1.2.4 Electron coordinates

Returns the current electron coordinates. The pointer is assumed @@ -709,8 +709,8 @@ The order of the indices is:

-
-

1.3 Initialization functions

+
+

1.3 Initialization functions

To set the data relative to the electrons in the context, the @@ -797,8 +797,8 @@ in the context.

-
-

1.4 Test

+
+

1.4 Test

/* Reference input data */
@@ -904,8 +904,8 @@ rc = qmckl_get_electron_coord (context, 'N'
 
-
-

2 Computation

+
+

2 Computation

The computed data is stored in the context so that it can be reused @@ -918,12 +918,12 @@ current date is stored.

-
-

2.1 Electron-electron distances

+
+

2.1 Electron-electron distances

-
-

2.1.1 Get

+
+

2.1.1 Get

qmckl_exit_code qmckl_get_electron_ee_distance(qmckl_context context, double* const distance);
@@ -932,10 +932,10 @@ current date is stored.
 
-
-

2.1.2 Compute

+
+

2.1.2 Compute

- +
@@ -1031,8 +1031,8 @@ current date is stored. -
-

2.1.3 Test

+
+

2.1.3 Test

assert(qmckl_electron_provided(context));
@@ -1066,8 +1066,8 @@ rc = qmckl_get_electron_ee_distance(context, ee_distance);
 
-
-

2.2 Electron-electron rescaled distances

+
+

2.2 Electron-electron rescaled distances

ee_distance_rescaled stores the matrix of the rescaled distances between all @@ -1085,8 +1085,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.

-
-

2.2.1 Get

+
+

2.2.1 Get

qmckl_exit_code qmckl_get_electron_ee_distance_rescaled(qmckl_context context, double* const distance_rescaled);
@@ -1095,10 +1095,10 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
 
-
-

2.2.2 Compute

+
+

2.2.2 Compute

-
+
@@ -1203,8 +1203,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances. -
-

2.2.3 Test

+
+

2.2.3 Test

assert(qmckl_electron_provided(context));
@@ -1238,8 +1238,8 @@ rc = qmckl_get_electron_ee_distance_rescaled(context, ee_distance_rescaled);
 
-
-

2.3 Electron-electron rescaled distance gradients and laplacian with respect to electron coords

+
+

2.3 Electron-electron rescaled distance gradients and laplacian with respect to electron coords

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\).

-
-

2.3.1 Get

+
+

2.3.1 Get

qmckl_exit_code qmckl_get_electron_ee_distance_rescaled_deriv_e(qmckl_context context, double* const distance_rescaled_deriv_e);
@@ -1261,10 +1261,10 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
 
-
-

2.3.2 Compute

+
+

2.3.2 Compute

-
+
@@ -1369,8 +1369,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\). -
-

2.3.3 Test

+
+

2.3.3 Test

assert(qmckl_electron_provided(context));
@@ -1405,12 +1405,12 @@ rc = qmckl_get_electron_ee_distance_rescaled_deriv_e(context, ee_distance_rescal
 
-
-

2.4 Electron-nucleus distances

+
+

2.4 Electron-nucleus distances

-
-

2.4.1 Get

+
+

2.4.1 Get

qmckl_exit_code qmckl_get_electron_en_distance(qmckl_context context, double* distance);
@@ -1419,10 +1419,10 @@ rc = qmckl_get_electron_ee_distance_rescaled_deriv_e(context, ee_distance_rescal
 
-
-

2.4.2 Compute

+
+

2.4.2 Compute

-
+
@@ -1539,8 +1539,8 @@ rc = qmckl_get_electron_ee_distance_rescaled_deriv_e(context, ee_distance_rescal -
-

2.4.3 Test

+
+

2.4.3 Test

@@ -1588,8 +1588,8 @@ rc = qmckl_get_electron_en_distance(context, &(en_distance[0][0][0]));
 
-
-

2.5 Electron-nucleus rescaled distances

+
+

2.5 Electron-nucleus rescaled distances

en_distance_rescaled stores the matrix of the rescaled distances between @@ -1607,8 +1607,8 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.

-
-

2.5.1 Get

+
+

2.5.1 Get

qmckl_exit_code qmckl_get_electron_en_distance_rescaled(qmckl_context context, double* distance_rescaled);
@@ -1617,10 +1617,10 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances.
 
-
-

2.5.2 Compute

+
+

2.5.2 Compute

-
+
@@ -1752,8 +1752,8 @@ where \(C_{ij}\) is the matrix of electron-nucleus distances. -
-

2.5.3 Test

+
+

2.5.3 Test

@@ -1801,8 +1801,8 @@ rc = qmckl_get_electron_en_distance_rescaled(context, &(en_distance_rescaled
 
-
-

2.6 Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords

+
+

2.6 Electron-nucleus rescaled distance gradients and laplacian with respect to electron coords

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\).

-
-

2.6.1 Get

+
+

2.6.1 Get

qmckl_exit_code qmckl_get_electron_en_distance_rescaled_deriv_e(qmckl_context context, double* distance_rescaled_deriv_e);
@@ -1824,10 +1824,10 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\).
 
-
-

2.6.2 Compute

+
+

2.6.2 Compute

-
+
@@ -1960,8 +1960,8 @@ gives the Laplacian \(\partial x^2 + \partial y^2 + \partial z^2\). -
-

2.6.3 Test

+
+

2.6.3 Test

@@ -2016,7 +2016,7 @@ rc = qmckl_get_electron_en_distance_rescaled_deriv_e(context, &(en_distance_
 

Author: TREX CoE

-

Created: 2021-07-08 Thu 06:58

+

Created: 2021-07-08 Thu 17:26

Validate

diff --git a/qmckl_error.html b/qmckl_error.html index 84fc436..ba385e0 100644 --- a/qmckl_error.html +++ b/qmckl_error.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Error handling @@ -311,17 +311,17 @@ for the JavaScript code in this tag.

Table of Contents

-
-

1 Decoding errors

+
+

1 Decoding errors

To decode the error messages, qmckl_string_of_error converts an @@ -451,8 +451,8 @@ The text strings are extracted from the previous table.

-
-

2 Data structure in context

+
+

2 Data structure in context

The strings are declared with a maximum fixed size to avoid @@ -475,8 +475,8 @@ dynamic memory allocation.

-
-

3 Updating errors in the context

+
+

3 Updating errors in the context

The error is updated in the context using qmckl_set_error. @@ -522,8 +522,8 @@ explaining the error. The exit code can't be QMCKL_SUCCESS.

-
-

4 Get the error

+
+

4 Get the error

Upon error, the error type and message can be obtained from the @@ -564,8 +564,8 @@ function name and message is mandatory.

-
-

5 Failing

+
+

5 Failing

To make a function fail, the qmckl_failwith function should be @@ -628,7 +628,7 @@ For example, this function can be used as

Author: TREX CoE

-

Created: 2021-07-08 Thu 06:58

+

Created: 2021-07-08 Thu 17:26

Validate

diff --git a/qmckl_jastrow.html b/qmckl_jastrow.html index 64bb7d0..86e41c2 100644 --- a/qmckl_jastrow.html +++ b/qmckl_jastrow.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Jastrow Factor @@ -333,100 +333,100 @@ for the JavaScript code in this tag.

Table of Contents

-
-

1 Context

+
+

1 Context

The following data stored in the context:

-
+
@@ -734,7 +734,7 @@ For H2O we have the following data:

-
import numpy as np
+
import numpy as np
 
 elec_num     = 10
 nucl_num     = 2
@@ -884,8 +884,8 @@ For H2O we have the following data:
 
-
-

1.1 Data structure

+
+

1.1 Data structure

typedef struct qmckl_jastrow_struct{
@@ -972,8 +972,8 @@ this mechanism.
 
-
-

1.2 Access functions

+
+

1.2 Access functions

Along with these core functions, calculation of the jastrow factor @@ -993,8 +993,8 @@ function returns true.

-
-

1.3 Initialization functions

+
+

1.3 Initialization functions

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.

-
-

1.4 Test

+
+

1.4 Test

/* Reference input data */
@@ -1036,7 +1036,6 @@ are precontracted using BLAS LEVEL 3 operations for an optimal FLOP count.
 
 const double*   nucl_charge   = n2_charge;
 int64_t  nucl_num      = n2_nucl_num;
-double*  charge        = n2_charge;
 double*  nucl_coord    = &(n2_nucl_coord[0][0]);
 
 /* Provide Electron data */
@@ -1197,8 +1196,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2);
 
-
-

2 Computation

+
+

2 Computation

The computed data is stored in the context so that it can be reused @@ -1211,8 +1210,8 @@ current date is stored.

-
-

2.1 Asymptotic component for \(f_{ee}\)

+
+

2.1 Asymptotic component for \(f_{ee}\)

Calculate the asymptotic component asymp_jasb to be substracted from the final @@ -1227,8 +1226,8 @@ via the bord_vector and the electron-electron rescale factor

-
-

2.1.1 Get

+
+

2.1.1 Get

qmckl_exit_code qmckl_get_jastrow_asymp_jasb(qmckl_context context, double* const asymp_jasb);
@@ -1237,10 +1236,10 @@ via the bord_vector and the electron-electron rescale factor 
 
-
-

2.1.2 Compute

+
+

2.1.2 Compute

-
+
@@ -1345,8 +1344,8 @@ via the bord_vector and the electron-electron rescale factor -
-

2.1.3 Test

+
+

2.1.3 Test

 asym_one         :  0.43340325572525706
@@ -1403,8 +1402,8 @@ rc = qmckl_get_jastrow_asymp_jasb(context, asymp_jasb);
 
-
-

2.2 Electron-electron component \(f_{ee}\)

+
+

2.2 Electron-electron component \(f_{ee}\)

Calculate the electron-electron jastrow component factor_ee using the asymp_jasb @@ -1419,8 +1418,8 @@ f_{ee} = \sum_{i,j -

-

2.2.1 Get

+
+

2.2.1 Get

qmckl_exit_code qmckl_get_jastrow_factor_ee(qmckl_context context, double* const factor_ee);
@@ -1429,10 +1428,10 @@ f_{ee} = \sum_{i,j
 
-
-

2.2.2 Compute

+
+

2.2.2 Compute

-
+
@@ -1599,8 +1598,8 @@ f_{ee} = \sum_{i,j -
-

2.2.3 Test

+
+

2.2.3 Test

/* Check if Jastrow is properly initialized */
@@ -1618,8 +1617,8 @@ rc = qmckl_get_jastrow_factor_ee(context, factor_ee);
 
-
-

2.3 Electron-electron component derivative \(f'_{ee}\)

+
+

2.3 Electron-electron component derivative \(f'_{ee}\)

Calculate the derivative of the factor_ee using the ee_distance_rescaled and @@ -1634,8 +1633,8 @@ TODO: Add equation

-
-

2.3.1 Get

+
+

2.3.1 Get

qmckl_exit_code qmckl_get_jastrow_factor_ee_deriv_e(qmckl_context context, double* const factor_ee_deriv_e);
@@ -1644,10 +1643,10 @@ TODO: Add equation
 
-
-

2.3.2 Compute

+
+

2.3.2 Compute

-
+
@@ -1854,8 +1853,8 @@ TODO: Add equation -
-

2.3.3 Test

+
+

2.3.3 Test

/* Check if Jastrow is properly initialized */
@@ -1877,8 +1876,8 @@ rc = qmckl_get_jastrow_factor_ee_deriv_e(context, &(factor_ee_deriv_e[0][0][
 
-
-

2.4 Electron-nucleus component \(f_{en}\)

+
+

2.4 Electron-nucleus component \(f_{en}\)

Calculate the electron-electron jastrow component factor_en using the aord_vector @@ -1893,8 +1892,8 @@ f_{en} = \sum_{i,j -

-

2.4.1 Get

+
+

2.4.1 Get

qmckl_exit_code qmckl_get_jastrow_factor_en(qmckl_context context, double* const factor_en);
@@ -1903,10 +1902,10 @@ f_{en} = \sum_{i,j
 
-
-

2.4.2 Compute

+
+

2.4.2 Compute

-
+
@@ -2080,8 +2079,8 @@ f_{en} = \sum_{i,j -
-

2.4.3 Test

+
+

2.4.3 Test

/* Check if Jastrow is properly initialized */
@@ -2099,8 +2098,8 @@ rc = qmckl_get_jastrow_factor_en(context, factor_en);
 
-
-

2.5 Electron-nucleus component derivative \(f'_{en}\)

+
+

2.5 Electron-nucleus component derivative \(f'_{en}\)

Calculate the electron-electron jastrow component factor_en_deriv_e derivative @@ -2113,8 +2112,8 @@ TODO: write equations.

-
-

2.5.1 Get

+
+

2.5.1 Get

qmckl_exit_code qmckl_get_jastrow_factor_en_deriv_e(qmckl_context context, double* const factor_en_deriv_e);
@@ -2123,10 +2122,10 @@ TODO: write equations.
 
-
-

2.5.2 Compute

+
+

2.5.2 Compute

-
+
@@ -2339,8 +2338,8 @@ TODO: write equations. -
-

2.5.3 Test

+
+

2.5.3 Test

/* Check if Jastrow is properly initialized */
@@ -2362,8 +2361,8 @@ rc = qmckl_get_jastrow_factor_en_deriv_e(context, &(factor_en_deriv_e[0][0][
 
-
-

2.6 Electron-electron rescaled distances for each order

+
+

2.6 Electron-electron rescaled distances for each order

een_rescaled_e stores the table of the rescaled distances between all @@ -2381,8 +2380,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances.

-
-

2.6.1 Get

+
+

2.6.1 Get

qmckl_exit_code qmckl_get_jastrow_een_rescaled_e(qmckl_context context, double* const distance_rescaled);
@@ -2391,10 +2390,10 @@ where \(C_{ij}\) is the matrix of electron-electron distances.
 
-
-

2.6.2 Compute

+
+

2.6.2 Compute

-
+
@@ -2553,8 +2552,8 @@ where \(C_{ij}\) is the matrix of electron-electron distances. -
-

2.6.3 Test

+
+

2.6.3 Test

assert(qmckl_electron_provided(context));
@@ -2577,8 +2576,8 @@ rc = qmckl_get_jastrow_een_rescaled_e(context, &(een_rescaled_e[0][0][0][0])
 
-
-

2.7 Electron-electron rescaled distances for each order and derivatives

+
+

2.7 Electron-electron rescaled distances for each order and derivatives

een_rescaled_e stores the table of the rescaled distances between all @@ -2592,8 +2591,8 @@ TODO: write formulae

-
-

2.7.1 Get

+
+

2.7.1 Get

qmckl_exit_code qmckl_get_jastrow_een_rescaled_e_deriv_e(qmckl_context context, double* const distance_rescaled);
@@ -2602,10 +2601,10 @@ TODO: write formulae
 
-
-

2.7.2 Compute

+
+

2.7.2 Compute

-
+
@@ -2784,8 +2783,8 @@ TODO: write formulae -
-

2.7.3 Test

+
+

2.7.3 Test

//assert(qmckl_electron_provided(context));
@@ -2796,8 +2795,8 @@ TODO: write formulae
 
-
-

2.8 Electron-nucleus rescaled distances for each order

+
+

2.8 Electron-nucleus rescaled distances for each order

een_rescaled_n stores the table of the rescaled distances between @@ -2815,8 +2814,8 @@ where \(C_{ia}\) is the matrix of electron-nucleus distances.

-
-

2.8.1 Get

+
+

2.8.1 Get

qmckl_exit_code qmckl_get_jastrow_een_rescaled_n(qmckl_context context, double* const distance_rescaled);
@@ -2825,10 +2824,10 @@ where \(C_{ia}\) is the matrix of electron-nucleus distances.
 
-
-

2.8.2 Compute

+
+

2.8.2 Compute

-
+
@@ -2984,8 +2983,8 @@ where \(C_{ia}\) is the matrix of electron-nucleus distances. -
-

2.8.3 Test

+
+

2.8.3 Test

assert(qmckl_electron_provided(context));
@@ -3007,8 +3006,8 @@ rc = qmckl_get_jastrow_een_rescaled_n(context, &(een_rescaled_n[0][0][0][0])
 
-
-

2.9 Electron-nucleus rescaled distances for each order and derivatives

+
+

2.9 Electron-nucleus rescaled distances for each order and derivatives

een_rescaled_n_deriv_e stores the table of the rescaled distances between @@ -3017,8 +3016,8 @@ electrons and nucleii raised to the power \(p\) defined by cord_num

-
-

2.9.1 Get

+
+

2.9.1 Get

qmckl_exit_code qmckl_get_jastrow_een_rescaled_n_deriv_e(qmckl_context context, double* const distance_rescaled);
@@ -3027,10 +3026,10 @@ electrons and nucleii raised to the power \(p\) defined by cord_num
 
-
-

2.9.2 Compute

+
+

2.9.2 Compute

-
+
@@ -3232,8 +3231,8 @@ electrons and nucleii raised to the power \(p\) defined by cord_num -
-

2.9.3 Test

+
+

2.9.3 Test

//assert(qmckl_electron_provided(context));
@@ -3244,8 +3243,8 @@ electrons and nucleii raised to the power \(p\) defined by cord_num
 
-
-

2.10 Prepare for electron-electron-nucleus Jastrow \(f_{een}\)

+
+

2.10 Prepare for electron-electron-nucleus Jastrow \(f_{een}\)

Prepare cord_vect_full and lkpm_combined_index tables required for the @@ -3254,8 +3253,8 @@ calculation of the three-body jastrow factor_een and its derivative

-
-

2.10.1 Get

+
+

2.10.1 Get

qmckl_exit_code qmckl_get_jastrow_dim_cord_vect(qmckl_context context, int64_t* const dim_cord_vect);
@@ -3266,10 +3265,10 @@ calculation of the three-body jastrow factor_een and its derivative
 
-
-

2.10.2 Compute dimcordvect

+
+

2.10.2 Compute dimcordvect

-
+
@@ -3359,10 +3358,10 @@ calculation of the three-body jastrow factor_een and its derivative -
-

2.10.3 Compute cordvectfull

+
+

2.10.3 Compute cordvectfull

-
+
@@ -3502,10 +3501,10 @@ calculation of the three-body jastrow factor_een and its derivative -
-

2.10.4 Compute lkpmcombinedindex

+
+

2.10.4 Compute lkpmcombinedindex

-
+
@@ -3615,8 +3614,8 @@ calculation of the three-body jastrow factor_een and its derivative -
-

2.10.5 Test

+
+

2.10.5 Test

//assert(qmckl_electron_provided(context));
@@ -3628,8 +3627,8 @@ calculation of the three-body jastrow factor_een and its derivative
 
-
-

2.11 Electron-electron-nucleus Jastrow \(f_{een}\)

+
+

2.11 Electron-electron-nucleus Jastrow \(f_{een}\)

Calculate the electron-electron-nuclear three-body jastrow component factor_een @@ -3641,8 +3640,8 @@ TODO: write equations.

-
-

2.11.1 Get

+
+

2.11.1 Get

qmckl_exit_code qmckl_get_jastrow_factor_een(qmckl_context context, double* const factor_een);
@@ -3651,10 +3650,10 @@ TODO: write equations.
 
-
-

2.11.2 Compute

+
+

2.11.2 Compute

-
+
@@ -3839,8 +3838,8 @@ TODO: write equations. -
-

2.11.3 Test

+
+

2.11.3 Test

/* Check if Jastrow is properly initialized */
@@ -3853,8 +3852,8 @@ TODO: write equations.
 
-
-

2.12 Electron-electron-nucleus Jastrow \(f_{een}\) derivative

+
+

2.12 Electron-electron-nucleus Jastrow \(f_{een}\) derivative

Calculate the electron-electron-nuclear three-body jastrow component factor_een_deriv_e @@ -3866,8 +3865,8 @@ TODO: write equations.

-
-

2.12.1 Get

+
+

2.12.1 Get

qmckl_exit_code qmckl_get_jastrow_factor_een_deriv_e(qmckl_context context, double* const factor_een_deriv_e);
@@ -3876,10 +3875,10 @@ TODO: write equations.
 
-
-

2.12.2 Compute

+
+

2.12.2 Compute

-
+
@@ -4104,8 +4103,8 @@ TODO: write equations. -
-

2.12.3 Test

+
+

2.12.3 Test

///* Check if Jastrow is properly initialized */
@@ -4119,7 +4118,7 @@ TODO: write equations.
 

Author: TREX CoE

-

Created: 2021-07-08 Thu 06:58

+

Created: 2021-07-08 Thu 17:26

Validate

diff --git a/qmckl_memory.html b/qmckl_memory.html index 7299655..b339003 100644 --- a/qmckl_memory.html +++ b/qmckl_memory.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Memory management @@ -311,15 +311,15 @@ for the JavaScript code in this tag.

Table of Contents

-
-

1 Memory data structure for the context

+
+

1 Memory data structure for the context

Every time a new block of memory is allocated, the information @@ -361,8 +361,8 @@ array, and the number of allocated blocks.

-
-

2 Passing info to allocation routines

+
+

2 Passing info to allocation routines

Passing information to the allocation routine should be done by @@ -371,8 +371,8 @@ passing an instance of a qmckl_memory_info_struct.

-
-

3 Allocation/deallocation functions

+
+

3 Allocation/deallocation functions

Memory allocation inside the library should be done with @@ -535,7 +535,7 @@ allocation and needs to be updated.

Author: TREX CoE

-

Created: 2021-07-08 Thu 06:58

+

Created: 2021-07-08 Thu 17:26

Validate

diff --git a/qmckl_nucleus.html b/qmckl_nucleus.html index ef20700..977660a 100644 --- a/qmckl_nucleus.html +++ b/qmckl_nucleus.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Nucleus @@ -333,35 +333,35 @@ for the JavaScript code in this tag.

Table of Contents

-
-

1 Context

+
+

1 Context

The following data stored in the context: @@ -463,8 +463,8 @@ The following data stored in the context:

-
-

1.1 Data structure

+
+

1.1 Data structure

typedef struct qmckl_nucleus_struct {
@@ -523,8 +523,8 @@ this mechanism.
 
 
 
-
-

1.2 Access functions

+
+

1.2 Access functions

When all the data relative to nuclei have been set, the following @@ -538,8 +538,8 @@ function returns true.

-
-

1.3 Initialization functions

+
+

1.3 Initialization functions

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.

-
-

1.4 Test

+
+

1.4 Test

const int64_t   nucl_num      = chbrclf_nucl_num;
@@ -659,8 +659,8 @@ rc = qmckl_get_nucleus_charge(context, nucl_charge2);
 
-
-

2 Computation

+
+

2 Computation

The computed data is stored in the context so that it can be reused @@ -673,12 +673,12 @@ current date is stored.

-
-

2.1 Nucleus-nucleus distances

+
+

2.1 Nucleus-nucleus distances

-
-

2.1.1 Get

+
+

2.1.1 Get

qmckl_exit_code qmckl_get_nucleus_nn_distance(qmckl_context context, double* distance);
@@ -687,10 +687,10 @@ current date is stored.
 
-
-

2.1.2 Compute

+
+

2.1.2 Compute

- +
@@ -768,8 +768,8 @@ current date is stored. -
-

2.1.3 Test

+
+

2.1.3 Test

/* Reference input data */
@@ -789,12 +789,12 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
 
-
-

2.2 Nucleus-nucleus rescaled distances

+
+

2.2 Nucleus-nucleus rescaled distances

-
-

2.2.1 Get

+
+

2.2.1 Get

qmckl_exit_code qmckl_get_nucleus_nn_distance_rescaled(qmckl_context context, double* distance_rescaled);
@@ -803,10 +803,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
 
-
-

2.2.2 Compute

+
+

2.2.2 Compute

-
+
@@ -885,8 +885,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance); -
-

2.2.3 Test

+
+

2.2.3 Test

/* Reference input data */
@@ -906,8 +906,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
 
-
-

2.3 Nuclear repulsion energy

+
+

2.3 Nuclear repulsion energy

\[ @@ -916,8 +916,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);

-
-

2.3.1 Get

+
+

2.3.1 Get

qmckl_exit_code qmckl_get_nucleus_repulsion(qmckl_context context, double* energy);
@@ -926,10 +926,10 @@ rc = qmckl_get_nucleus_nn_distance(context, distance);
 
-
-

2.3.2 Compute

+
+

2.3.2 Compute

-
+
@@ -1017,8 +1017,8 @@ rc = qmckl_get_nucleus_nn_distance(context, distance); -
-

2.3.3 Test

+
+

2.3.3 Test

/* Reference input data */
@@ -1038,7 +1038,7 @@ rc = qmckl_get_nucleus_repulsion(context, &rep);
 

Author: TREX CoE

-

Created: 2021-07-08 Thu 06:58

+

Created: 2021-07-08 Thu 17:26

Validate

diff --git a/qmckl_numprec.html b/qmckl_numprec.html index dffe04b..e015638 100644 --- a/qmckl_numprec.html +++ b/qmckl_numprec.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Numerical precision @@ -333,16 +333,16 @@ for the JavaScript code in this tag.

Table of Contents

-
-

1 Control of the numerical precision

+
+

1 Control of the numerical precision

Controlling numerical precision enables optimizations. Here, the @@ -353,7 +353,7 @@ Arithmetic (IEEE 754), refers to the number of exponent bits.

-
+
@@ -397,8 +397,8 @@ integer. The update functions return QMCKL_SUCCESS or -
-

2 Precision

+
+

2 Precision

qmckl_context_set_numprec_precision modifies the parameter for the @@ -485,8 +485,8 @@ numerical precision in the context.

-
-

3 Range

+
+

3 Range

qmckl_set_numprec_range modifies the parameter for the numerical @@ -561,8 +561,8 @@ range in a given context.

-
-

4 Helper functions

+
+

4 Helper functions

qmckl_get_numprec_epsilon returns \(\epsilon = 2^{1-n}\) where n is the precision. @@ -581,7 +581,7 @@ We need to remove the sign bit from the precision.

Author: TREX CoE

-

Created: 2021-07-08 Thu 06:58

+

Created: 2021-07-08 Thu 17:26

Validate

diff --git a/qmckl_tests.html b/qmckl_tests.html index c76e390..754e5d3 100644 --- a/qmckl_tests.html +++ b/qmckl_tests.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Data for Tests @@ -233,27 +233,27 @@ for the JavaScript code in this tag.

Table of Contents

-
-

1 CHBrClF

+
+

1 CHBrClF

This test is the all-electron Hartree-Fock wave function of CHClBr, @@ -337,8 +337,8 @@ and with a high maximum angular momentum.

-
-

1.1 XYZ coordinates

+
+

1.1 XYZ coordinates

   5
@@ -368,8 +368,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
 
-
-

1.2 Atomic basis set

+
+

1.2 Atomic basis set

 HYDROGEN
@@ -1182,11 +1182,11 @@ F   1
 
-
-

1.3 TODO Molecular orbitals

+
+

1.3 TODO Molecular orbitals

-
-

1.4 Electron coordinates

+
+

1.4 Electron coordinates

Electron coordinates are stored in atomic units in normal format. @@ -1346,8 +1346,8 @@ Electron coordinates are stored in atomic units in normal format.

-
-

2 N2

+
+

2 N2

This test is mainly for the Jastrow factor and was supplied by @@ -1388,8 +1388,8 @@ treated by pseudopotentials thus excluded from the actual calculation.

-
-

2.1 XYZ coordinates

+
+

2.1 XYZ coordinates

   2
@@ -1416,8 +1416,8 @@ Nuclear coordinates are stored in atomic units in transposed format.
 
-
-

2.2 Electron coordinates

+
+

2.2 Electron coordinates

Electron coordinates are stored in atomic units in normal format. @@ -1446,8 +1446,8 @@ Electron coordinates are stored in atomic units in normal format.

-
-

2.3 Jastrow related data

+
+

2.3 Jastrow related data

This test is mainly for the Jastrow factor and was supplied by @@ -1546,7 +1546,7 @@ Ramon Panades Baruetta.

-

Created: 2021-07-08 Thu 06:58

+

Created: 2021-07-08 Thu 17:26

Validate

diff --git a/qmckl_utils.html b/qmckl_utils.html index 5b60fa2..ac878cf 100644 --- a/qmckl_utils.html +++ b/qmckl_utils.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Utility functions @@ -333,13 +333,13 @@ for the JavaScript code in this tag.

Table of Contents

-
-

1 Matrix operations

+
+

1 Matrix operations

-
-

1.1 qmckl_transpose

+
+

1.1 qmckl_transpose

Transposes a matrix: \(B_{ji} = A_{ij}\)

- +
@@ -424,8 +424,8 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
-
-

1.1.1 Requirements

+
+

1.1.1 Requirements

  • context is not QMCKL_NULL_CONTEXT
  • @@ -439,8 +439,8 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
-
-

1.1.2 C header

+
+

1.1.2 C header

qmckl_exit_code qmckl_transpose (
@@ -456,8 +456,8 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
 
-
-

1.1.3 Source

+
+

1.1.3 Source

integer function qmckl_transpose_f(context, m, n, A, LDA, B, LDB) &
@@ -516,7 +516,7 @@ Transposes a matrix: \(B_{ji} = A_{ij}\)
 

Author: TREX CoE

-

Created: 2021-07-08 Thu 06:58

+

Created: 2021-07-08 Thu 17:26

Validate