source: thirdparty/SZ/sz/include/sz_double_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_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_PWR_H
11#define _SZ_Double_PWR_H
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#include <stdio.h>
18
19void compute_segment_precisions_double_1D(double *oriData, size_t dataLength, double* pwrErrBound, unsigned char* pwrErrBoundBytes, double globalPrecision);
20unsigned int optimize_intervals_double_1D_pwr(double *oriData, size_t dataLength, double* pwrErrBound); 
21void compute_segment_precisions_double_2D(double *oriData, double* pwrErrBound, 
22size_t r1, size_t r2, size_t R2, size_t edgeSize, unsigned char* pwrErrBoundBytes, double Min, double Max, double globalPrecision);
23unsigned int optimize_intervals_double_2D_pwr(double *oriData, size_t r1, size_t r2, size_t R2, size_t edgeSize, double* pwrErrBound);
24void compute_segment_precisions_double_3D(double *oriData, double* pwrErrBound, 
25size_t r1, size_t r2, size_t r3, size_t R2, size_t R3, size_t edgeSize, unsigned char* pwrErrBoundBytes, double Min, double Max, double globalPrecision);
26unsigned int optimize_intervals_double_3D_pwr(double *oriData, size_t r1, size_t r2, size_t r3, size_t R2, size_t R3, size_t edgeSize, double* pwrErrBound);
27void SZ_compress_args_double_NoCkRngeNoGzip_1D_pwr(unsigned char** newByteData, double *oriData, double globalPrecision, size_t dataLength, size_t *outSize, double min, double max);
28void SZ_compress_args_double_NoCkRngeNoGzip_2D_pwr(unsigned char** newByteData, double *oriData, double globalPrecision, size_t r1, size_t r2,
29size_t *outSize, double min, double max);
30void SZ_compress_args_double_NoCkRngeNoGzip_3D_pwr(unsigned char** newByteData, double *oriData, double globalPrecision, 
31size_t r1, size_t r2, size_t r3, size_t *outSize, double min, double max);
32
33void createRangeGroups_double(double** posGroups, double** negGroups, int** posFlags, int** negFlags);
34void compressGroupIDArray_double(char* groupID, TightDataPointStorageD* tdps);
35TightDataPointStorageD* SZ_compress_double_1D_MDQ_pwrGroup(double* oriData, size_t dataLength, int errBoundMode, 
36double absErrBound, double relBoundRatio, double pwrErrRatio, double valueRangeSize, double medianValue_f);
37void SZ_compress_args_double_NoCkRngeNoGzip_1D_pwrgroup(unsigned char** newByteData, double *oriData,
38size_t dataLength, double absErrBound, double relBoundRatio, double pwrErrRatio, double valueRangeSize, double medianValue_f, size_t *outSize);
39
40#ifdef __cplusplus
41}
42#endif
43
44#endif /* ----- #ifndef _SZ_Double_PWR_H  ----- */
45
Note: See TracBrowser for help on using the repository browser.