source: thirdparty/SZ/sz/include/DynamicDoubleArray.h @ 2c47b73

Revision 2c47b73, 850 bytes checked in by Hal Finkel <hfinkel@…>, 6 years ago (diff)

more work on adding SZ (latest version)

  • Property mode set to 100644
Line 
1/**
2 *  @file DynamicDoubleArray.h
3 *  @author Sheng Di
4 *  @date April, 2016
5 *  @brief Header file for Dynamic Double Array.
6 *  (C) 2016 by Mathematics and Computer Science (MCS), Argonne National Laboratory.
7 *      See COPYRIGHT in top-level directory.
8 */
9
10#ifndef _DynamicDoubleArray_H
11#define _DynamicDoubleArray_H
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#include <stdio.h>
18
19typedef struct DynamicDoubleArray
20{       
21        double* array;
22        size_t size;
23        double capacity;
24} DynamicDoubleArray;
25
26void new_DDA(DynamicDoubleArray **dda, size_t cap);
27void convertDDAtoDoubles(DynamicDoubleArray *dba, double **data);
28void free_DDA(DynamicDoubleArray *dda);
29double getDDA_Data(DynamicDoubleArray *dda, size_t pos);
30void addDDA_Data(DynamicDoubleArray *dda, double value);
31
32#ifdef __cplusplus
33}
34#endif
35
36#endif /* ----- #ifndef _DynamicDoubleArray_H  ----- */
Note: See TracBrowser for help on using the repository browser.