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

Revision 2c47b73, 2.6 KB 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 sz_float.h
3 *  @author Sheng Di
4 *  @date July, 2017
5 *  @brief Header file for the sz_float.c.
6 *  (C) 2016 by Mathematics and Computer Science (MCS), Argonne National Laboratory.
7 *      See COPYRIGHT in top-level directory.
8 */
9
10#ifndef _SZ_Float_PWR_H
11#define _SZ_Float_PWR_H
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17void compute_segment_precisions_float_1D(float *oriData, size_t dataLength, float* pwrErrBound, unsigned char* pwrErrBoundBytes, double globalPrecision);
18unsigned int optimize_intervals_float_1D_pwr(float *oriData, size_t dataLength, float* pwrErrBound);
19
20void compute_segment_precisions_float_2D(float *oriData, float* pwrErrBound, 
21size_t r1, size_t r2, size_t R2, size_t edgeSize, unsigned char* pwrErrBoundBytes, float Min, float Max, double globalPrecision);
22
23unsigned int optimize_intervals_float_2D_pwr(float *oriData, size_t r1, size_t r2, size_t R2, size_t edgeSize, float* pwrErrBound); 
24
25void compute_segment_precisions_float_3D(float *oriData, float* pwrErrBound, 
26size_t r1, size_t r2, size_t r3, size_t R2, size_t R3, size_t edgeSize, unsigned char* pwrErrBoundBytes, float Min, float Max, double globalPrecision);
27
28unsigned int optimize_intervals_float_3D_pwr(float *oriData, size_t r1, size_t r2, size_t r3, size_t R2, size_t R3, size_t edgeSize, float* pwrErrBound);
29
30void SZ_compress_args_float_NoCkRngeNoGzip_1D_pwr(unsigned char** newByteData, float *oriData, double globalPrecision, size_t dataLength, size_t *outSize, float min, float max);
31
32void SZ_compress_args_float_NoCkRngeNoGzip_2D_pwr(unsigned char** newByteData, float *oriData, double globalPrecision, size_t r1, size_t r2, 
33size_t *outSize, float min, float max);
34
35void SZ_compress_args_float_NoCkRngeNoGzip_3D_pwr(unsigned char** newByteData, float *oriData, double globalPrecision, size_t r1, size_t r2, 
36size_t r3, size_t *outSize, float min, float max);
37
38void createRangeGroups_float(float** posGroups, float** negGroups, int** posFlags, int** negFlags);
39void compressGroupIDArray_float(char* groupID, TightDataPointStorageF* tdps);
40int* generateGroupLowerBounds();
41TightDataPointStorageF* SZ_compress_float_1D_MDQ_pwrGroup(float* oriData, size_t dataLength, int errBoundMode, 
42double absErrBound, double relBoundRatio, double pwrErrRatio, float valueRangeSize, float medianValue_f);
43
44void SZ_compress_args_float_NoCkRngeNoGzip_1D_pwrgroup(unsigned char** newByteData, float *oriData,
45size_t dataLength, double absErrBound, double relBoundRatio, double pwrErrRatio, float valueRangeSize, float medianValue_f, size_t *outSize);
46
47#ifdef __cplusplus
48}
49#endif
50
51#endif /* ----- #ifndef _SZ_Float_PWR_H  ----- */
52
Note: See TracBrowser for help on using the repository browser.