QMCkl C header

Table of Contents

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>

1 Constants

1.1 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 ;

1.2 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

2 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"

3 End of header

#endif

Created: 2020-10-29 Thu 00:15

Emacs 25.2.2 (Org mode 8.2.10)

Validate