1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-11-19 20:42:50 +01:00
qmckl/src/qmckl.org

1.9 KiB

QMCkl C header

This file produces the qmckl.h header file, which is included in all other C header files. It is the main entry point to the library.

#ifndef QMCKL_H
#define QMCKL_H
#include <stdlib.h>
#include <stdint.h>

Constants

Success/failure

These are the codes returned by the functions to indicate success or failure. All such functions should have as a return type qmckl_exit_code.

#define QMCKL_SUCCESS 0
#define QMCKL_FAILURE 1

typedef int32_t qmckl_exit_code;
typedef int64_t qmckl_context ;

Precision-related constants

Controlling numerical precision enables optimizations. Here, the default parameters determining the target numerical precision and range are defined.

#define QMCKL_DEFAULT_PRECISION 53
#define QMCKL_DEFAULT_RANGE     11

Header files

All the functions expoed in the API are defined in the following header files.

#include "qmckl_memory.h"
#include "qmckl_context.h"

#include "qmckl_distance.h"
#include "qmckl_ao.h"

End of header

#endif