diff --git a/index.html b/index.html index f05846f..5844750 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- +The ultimate goal of QMCkl is to provide a high-performance @@ -348,8 +348,8 @@ compiled.
Fortran is one of the most common languages used by the community, @@ -373,8 +373,8 @@ justified.
Any text editor can be used to edit org-mode files. For a better @@ -409,8 +409,8 @@ And pandoc can convert multiple markdown formats into org-mode.
The Fortran source files should provide a C interface using @@ -428,8 +428,8 @@ For more guidelines on using Fortran to generate a C interface, see
To improve readability, we maintain a consistent coding style in
@@ -448,8 +448,8 @@ Coding style can be automatically checked with
-
The proposed API should allow the library to:
@@ -465,8 +465,8 @@ functions (see below).
Use
The application programming interface (API) is designed to be
@@ -521,8 +521,8 @@ bindings in other languages in other repositories.
Global variables should be avoided in the library, because it is
@@ -549,8 +549,8 @@ versions can be destroyed with
Low-level functions are very simple functions which are leaves of
@@ -565,8 +565,8 @@ if they need temporary memory it should be provided in input.
High-level functions are at the top of the function call tree.
@@ -584,8 +584,8 @@ the
The number of bits of precision required for a function should be
@@ -599,8 +599,8 @@ variable.
Reducing the scaling of an algorithm usually implies also reducing
@@ -613,8 +613,8 @@ implemented adapted to different problem sizes.
This file produces the
These are the codes returned by the functions to indicate success
@@ -673,7 +673,7 @@ or failure. All such functions should have as a return type
Controlling numerical precision enables optimizations. Here, the
@@ -697,8 +697,8 @@ range are defined.
We override the allocation functions to enable the possibility of
@@ -714,8 +714,8 @@ optimized libraries to fine-tune the memory allocation.
Memory allocation function, letting the library choose how the
@@ -740,7 +740,7 @@ memory will be allocated, and a pointer is returned to the user.
This file is written in C because it is more natural to express the
@@ -807,8 +807,8 @@ context in C than in Fortran.
The context variable is a handle for the state of the library, and
@@ -826,7 +826,7 @@ A value of 0 for the context is equivalent to a
Data structure for the info related to the atomic orbitals
@@ -852,7 +852,7 @@ basis set.
The tag is used internally to check if the memory domain pointed
@@ -885,7 +885,7 @@ by a pointer is a valid context.
Checks if the domain pointed by the pointer is a valid context.
@@ -900,7 +900,7 @@ otherwise.
To create a new context, use
This function makes a shallow copy of the current context.
@@ -999,7 +999,7 @@ for the new context
Returns the previous context
@@ -1068,7 +1068,7 @@ Returns 0 for the 0-valued context
Destroys the current context, leaving the ancestors untouched.
@@ -1121,7 +1121,7 @@ Destroys the current context, leaving the ancestors untouched.
For H2 with the following basis set,
@@ -1208,7 +1208,7 @@ COEFFICIENT = [ 0.006068, 0.045308, 0.202822, 0.503903, 0.383421,
Updates the data describing the AO basis set into the context.
@@ -1288,7 +1288,7 @@ Updates the data describing the AO basis set into the context.
Sets the data describing the AO basis set into the context.
@@ -1517,7 +1517,7 @@ Sets the data describing the AO basis set into the context.
The following functions set and get the expected required
@@ -1596,7 +1596,7 @@ integer. The update functions return
Modifies the parameter for the numerical precision in a given context.
@@ -1608,7 +1608,7 @@ Modifies the parameter for the numerical precision in a given context.
Modifies the parameter for the numerical range in a given context.
@@ -1655,7 +1655,7 @@ Modifies the parameter for the numerical range in a given context.
Returns a copy of the context with a different precision parameter.
@@ -1702,7 +1702,7 @@ Returns a copy of the context with a different precision parameter.
Returns a copy of the context with a different precision parameter.
@@ -1746,7 +1746,7 @@ Returns a copy of the context with a different precision parameter.
Returns the value of the numerical precision in the context
@@ -1791,7 +1791,7 @@ Returns the value of the numerical precision in the context
Returns the value of the numerical range in the context
@@ -1830,7 +1830,7 @@ Returns the value of the numerical range in the context
Returns \(\epsilon = 2^{1-n}\) where
Function for the computation of distances between particles.
@@ -1917,12 +1917,12 @@ Function for the computation of distances between particles.
Computes the matrix of the squared distances between all pairs of
@@ -1934,7 +1934,7 @@ points in two sets, one point within each set:
1.5 Design of the library
+1.5 Design of the library
1.5.1 Naming conventions
+1.5.1 Naming conventions
qmckl_
as a prefix for all exported functions and variables.
@@ -491,8 +491,8 @@ form is allowed.
1.5.2 Application programming interface
+1.5.2 Application programming interface
1.5.3 Global state
+1.5.3 Global state
qmckl_context_destroy
.
1.5.4 Low-level functions
+1.5.4 Low-level functions
1.5.5 High-level functions
+1.5.5 High-level functions
context
variable.
1.5.6 Numerical precision
+1.5.6 Numerical precision
1.6 Algorithms
+1.6 Algorithms
1.7 Rules for the API
+1.7 Rules for the API
stdint
should be used for integers (int32_t
, int64_t
)2 Documentation
+2 Documentation
2.1
+qmckl.h
header file2.1
qmckl.h
header fileqmckl.h
header file, which is to be included
@@ -643,12 +643,12 @@ We also create here the qmckl_f.f90
which is the Fortran interface
2.1.1 Constants
+2.1.1 Constants
-
+
qmckl_exit_cod
+
2.2 Memory management
+2.2 Memory management
2.2.1
+qmckl_malloc
2.2.1
qmckl_malloc
-
+
void* qmckl_malloc(const qmckl_context ctx, const size_t size) {
@@ -758,8 +758,8 @@ memory will be allocated, and a pointer is returned to the user.
2.2.2
+qmckl_free
2.2.2
qmckl_free
void qmckl_free(void *ptr);
@@ -777,7 +777,7 @@ memory will be allocated, and a pointer is returned to the user.
-
+
void qmckl_free(void *ptr) {
@@ -790,8 +790,8 @@ memory will be allocated, and a pointer is returned to the user.
2.3 Context
+2.3 Context
2.3.1 Context
+2.3.1 Context
NULL
pointer.
-
+
+
qmckl_context_check
+qmckl_context_check
-
+
qmckl_context qmckl_context_check(const qmckl_context context) {
@@ -920,7 +920,7 @@ otherwise.
-
qmckl_context_create
+qmckl_context_create
qmckl_context_create()
.
@@ -939,7 +939,7 @@ Returns 0
upon failure to allocate the internal data structure
-
+
qmckl_context qmckl_context_create() {
@@ -963,7 +963,7 @@ Returns
0
upon failure to allocate the internal data structure
+
interface
@@ -978,7 +978,7 @@ Returns
0
upon failure to allocate the internal data structure
-qmckl_context_copy
+qmckl_context_copy
-
+
qmckl_context qmckl_context_copy(const qmckl_context context) {
@@ -1032,7 +1032,7 @@ for the new context
+
interface
@@ -1048,7 +1048,7 @@ for the new context
-
qmckl_context_previous
+qmckl_context_previous
-
+
qmckl_context qmckl_context_previous(const qmckl_context context) {
@@ -1086,7 +1086,7 @@ Returns 0 for the 0-valued context
+
interface
@@ -1102,7 +1102,7 @@ Returns 0 for the 0-valued context
-
qmckl_context_destroy
+qmckl_context_destroy
-
+
qmckl_exit_code qmckl_context_destroy(const qmckl_context context) {
@@ -1141,7 +1141,7 @@ Destroys the current context, leaving the ancestors untouched.
+
interface
@@ -1159,8 +1159,8 @@ Destroys the current context, leaving the ancestors untouched.
2.3.2 Basis set
+2.3.2 Basis set
-
qmckl_context_update_ao_basis
+qmckl_context_update_ao_basis
-
+
qmckl_exit_code
@@ -1407,7 +1407,7 @@ Updates the data describing the AO basis set into the context.
+
interface
@@ -1433,11 +1433,11 @@ Updates the data describing the AO basis set into the context.
qmckl_context_set_ao_basis
+qmckl_context_set_ao_basis
-
+
qmckl_context
@@ -1546,7 +1546,7 @@ Sets the data describing the AO basis set into the context.
+
interface
@@ -1572,14 +1572,14 @@ Sets the data describing the AO basis set into the context.
2.3.3 Precision
+2.3.3 Precision
QMCKL_SUCCESS
or
-
qmckl_context_update_precision
+qmckl_context_update_precision
-
+
qmckl_exit_code qmckl_context_update_precision(const qmckl_context context, const int precision) {
@@ -1627,7 +1627,7 @@ Modifies the parameter for the numerical precision in a given context.
+
interface
@@ -1643,7 +1643,7 @@ Modifies the parameter for the numerical precision in a given context.
-
qmckl_context_update_range
+qmckl_context_update_range
-
+
qmckl_exit_code qmckl_context_update_range(const qmckl_context context, const int range) {
@@ -1674,7 +1674,7 @@ Modifies the parameter for the numerical range in a given context.
+
interface
@@ -1690,7 +1690,7 @@ Modifies the parameter for the numerical range in a given context.
-
qmckl_context_set_precision
+qmckl_context_set_precision
-
+
qmckl_context qmckl_context_set_precision(const qmckl_context context, const int precision) {
@@ -1718,7 +1718,7 @@ Returns a copy of the context with a different precision parameter.
+
interface
@@ -1734,7 +1734,7 @@ Returns a copy of the context with a different precision parameter.
-
qmckl_context_set_range
+qmckl_context_set_range
-
+
qmckl_context qmckl_context_set_range(const qmckl_context context, const int range) {
@@ -1762,7 +1762,7 @@ Returns a copy of the context with a different precision parameter.
+
interface
@@ -1779,7 +1779,7 @@ Returns a copy of the context with a different precision parameter.
-
qmckl_context_get_precision
+qmckl_context_get_precision
-
+
int qmckl_context_get_precision(const qmckl_context context) {
@@ -1803,7 +1803,7 @@ Returns the value of the numerical precision in the context
+
interface
@@ -1818,7 +1818,7 @@ Returns the value of the numerical precision in the context
-
qmckl_context_get_range
+qmckl_context_get_range
-
+
int qmckl_context_get_range(const qmckl_context context) {
@@ -1842,7 +1842,7 @@ Returns the value of the numerical range in the context
+
interface
@@ -1858,7 +1858,7 @@ Returns the value of the numerical range in the context
-
qmckl_context_get_epsilon
+qmckl_context_get_epsilon
n
is the precision
@@ -1870,7 +1870,7 @@ Returns \(\epsilon = 2^{1-n}\) where n
is the precision
-
+
double qmckl_context_get_epsilon(const qmckl_context context) {
@@ -1882,7 +1882,7 @@ Returns \(\epsilon = 2^{1-n}\) where
n
is the precision
+
interface
@@ -1900,8 +1900,8 @@ Returns \(\epsilon = 2^{1-n}\) where
n
is the precision
2.4 Computation of distances
+2.4 Computation of distances
2.4.1 Squared distance
+2.4.1 Squared distance
-
qmckl_distance_sq
+qmckl_distance_sq
-
+