[2c47b73] | 1 | /** |
---|
| 2 | * @file sz_double.h |
---|
| 3 | * @author Sheng Di |
---|
| 4 | * @date July, 2017 |
---|
| 5 | * @brief Header file for the sz_double.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_Double_H |
---|
| 11 | #define _SZ_Double_H |
---|
| 12 | |
---|
| 13 | #ifdef __cplusplus |
---|
| 14 | extern "C" { |
---|
| 15 | #endif |
---|
| 16 | |
---|
| 17 | #include <stdio.h> |
---|
| 18 | unsigned char* SZ_skip_compress_double(double* data, size_t dataLength, size_t* outSize); |
---|
| 19 | |
---|
| 20 | void computeReqLength_double(double realPrecision, short radExpo, int* reqLength, double* medianValue); |
---|
| 21 | unsigned int optimize_intervals_double_1D(double *oriData, size_t dataLength, double realPrecision); |
---|
| 22 | unsigned int optimize_intervals_double_2D(double *oriData, size_t r1, size_t r2, double realPrecision); |
---|
| 23 | unsigned int optimize_intervals_double_3D(double *oriData, size_t r1, size_t r2, size_t r3, double realPrecision); |
---|
| 24 | unsigned int optimize_intervals_double_4D(double *oriData, size_t r1, size_t r2, size_t r3, size_t r4, double realPrecision); |
---|
| 25 | |
---|
| 26 | unsigned int optimize_intervals_double_3D_opt(double *oriData, size_t r1, size_t r2, size_t r3, double realPrecision); |
---|
| 27 | unsigned int optimize_intervals_double_2D_opt(double *oriData, size_t r1, size_t r2, double realPrecision); |
---|
| 28 | unsigned int optimize_intervals_double_1D_opt(double *oriData, size_t dataLength, double realPrecision); |
---|
| 29 | |
---|
| 30 | TightDataPointStorageD* SZ_compress_double_1D_MDQ(double *oriData, |
---|
| 31 | size_t dataLength, double realPrecision, double valueRangeSize, double medianValue_d); |
---|
| 32 | void SZ_compress_args_double_StoreOriData(double* oriData, size_t dataLength, TightDataPointStorageD* tdps, unsigned char** newByteData, size_t *outSize); |
---|
| 33 | |
---|
| 34 | char SZ_compress_args_double_NoCkRngeNoGzip_1D(unsigned char** newByteData, double *oriData, size_t dataLength, double realPrecision, size_t *outSize, double valueRangeSize, double medianValue_d); |
---|
| 35 | |
---|
| 36 | TightDataPointStorageD* SZ_compress_double_2D_MDQ(double *oriData, size_t r1, size_t r2, double realPrecision, double valueRangeSize, double medianValue_d); |
---|
| 37 | char SZ_compress_args_double_NoCkRngeNoGzip_2D(unsigned char** newByteData, double *oriData, size_t r1, size_t r2, double realPrecision, size_t *outSize, double valueRangeSize, double medianValue_d); |
---|
| 38 | |
---|
| 39 | TightDataPointStorageD* SZ_compress_double_3D_MDQ(double *oriData, size_t r1, size_t r2, size_t r3, double realPrecision, double valueRangeSize, double medianValue_d); |
---|
| 40 | char SZ_compress_args_double_NoCkRngeNoGzip_3D(unsigned char** newByteData, double *oriData, size_t r1, size_t r2, size_t r3, double realPrecision, size_t *outSize, double valueRangeSize, double medianValue_d); |
---|
| 41 | |
---|
| 42 | TightDataPointStorageD* SZ_compress_double_4D_MDQ(double *oriData, size_t r1, size_t r2, size_t r3, size_t r4, double realPrecision, double valueRangeSize, double medianValue_d); |
---|
| 43 | char SZ_compress_args_double_NoCkRngeNoGzip_4D(unsigned char** newByteData, double *oriData, size_t r1, size_t r2, size_t r3, size_t r4, double realPrecision, size_t *outSize, double valueRangeSize, double medianValue_d); |
---|
| 44 | |
---|
| 45 | void SZ_compress_args_double_withinRange(unsigned char** newByteData, double *oriData, size_t dataLength, size_t *outSize); |
---|
| 46 | |
---|
| 47 | int SZ_compress_args_double_wRngeNoGzip(unsigned char** newByteData, double *oriData, |
---|
| 48 | size_t r5, size_t r4, size_t r3, size_t r2, size_t r1, size_t *outSize, |
---|
| 49 | int errBoundMode, double absErr_Bound, double relBoundRatio, double pwrErrRatio); |
---|
| 50 | |
---|
| 51 | int SZ_compress_args_double(unsigned char** newByteData, double *oriData, |
---|
| 52 | size_t r5, size_t r4, size_t r3, size_t r2, size_t r1, size_t *outSize, |
---|
| 53 | int errBoundMode, double absErr_Bound, double relBoundRatio, double pwRelBoundRatio); |
---|
| 54 | |
---|
| 55 | void SZ_compress_args_double_NoCkRnge_1D_subblock(unsigned char* compressedBytes, double *oriData, double realPrecision, size_t *outSize, double valueRangeSize, double medianValue_d, |
---|
| 56 | size_t r1, size_t s1, size_t e1); |
---|
| 57 | void SZ_compress_args_double_NoCkRnge_2D_subblock(unsigned char* compressedBytes, double *oriData, double realPrecision, size_t *outSize, double valueRangeSize, double medianValue_d, |
---|
| 58 | size_t r2, size_t r1, size_t s2, size_t s1, size_t e2, size_t e1); |
---|
| 59 | void SZ_compress_args_double_NoCkRnge_3D_subblock(unsigned char* compressedBytes, double *oriData, double realPrecision, size_t *outSize, double valueRangeSize, double medianValue_d, |
---|
| 60 | size_t r3, size_t r2, size_t r1, size_t s3, size_t s2, size_t s1, size_t e3, size_t e2, size_t e1); |
---|
| 61 | void SZ_compress_args_double_NoCkRnge_4D_subblock(unsigned char* compressedBytes, double *oriData, double realPrecision, size_t *outSize, double valueRangeSize, double medianValue_d, |
---|
| 62 | size_t r4, size_t r3, size_t r2, size_t r1, size_t s4, size_t s3, size_t s2, size_t s1, size_t e4, size_t e3, size_t e2, size_t e1); |
---|
| 63 | |
---|
| 64 | unsigned int optimize_intervals_double_1D_subblock(double *oriData, double realPrecision, size_t r1, size_t s1, size_t e1); |
---|
| 65 | unsigned int optimize_intervals_double_2D_subblock(double *oriData, double realPrecision, size_t r1, size_t r2, size_t s1, size_t s2, size_t e1, size_t e2); |
---|
| 66 | unsigned int optimize_intervals_double_3D_subblock(double *oriData, double realPrecision, size_t r1, size_t r2, size_t r3, size_t s1, size_t s2, size_t s3, size_t e1, size_t e2, size_t e3); |
---|
| 67 | unsigned int optimize_intervals_double_4D_subblock(double *oriData, double realPrecision, size_t r1, size_t r2, size_t r3, size_t r4, size_t s1, size_t s2, size_t s3, size_t s4, size_t e1, size_t e2, size_t e3, size_t e4); |
---|
| 68 | |
---|
| 69 | TightDataPointStorageD* SZ_compress_double_1D_MDQ_subblock(double *oriData, double realPrecision, double valueRangeSize, double medianValue_d, |
---|
| 70 | size_t r1, size_t s1, size_t e1); |
---|
| 71 | TightDataPointStorageD* SZ_compress_double_2D_MDQ_subblock(double *oriData, double realPrecision, double valueRangeSize, double medianValue_d, |
---|
| 72 | size_t r1, size_t r2, size_t s1, size_t s2, size_t e1, size_t e2); |
---|
| 73 | TightDataPointStorageD* SZ_compress_double_3D_MDQ_subblock(double *oriData, double realPrecision, double valueRangeSize, double medianValue_d, |
---|
| 74 | size_t r1, size_t r2, size_t r3, size_t s1, size_t s2, size_t s3, size_t e1, size_t e2, size_t e3); |
---|
| 75 | TightDataPointStorageD* SZ_compress_double_4D_MDQ_subblock(double *oriData, double realPrecision, double valueRangeSize, double medianValue_d, |
---|
| 76 | size_t r1, size_t r2, size_t r3, size_t r4, size_t s1, size_t s2, size_t s3, size_t s4, size_t e1, size_t e2, size_t e3, size_t e4); |
---|
| 77 | |
---|
| 78 | #ifdef __cplusplus |
---|
| 79 | } |
---|
| 80 | #endif |
---|
| 81 | |
---|
| 82 | #endif /* ----- #ifndef _SZ_Double_H ----- */ |
---|
| 83 | |
---|