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

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

more work on adding SZ (latest version)

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