version 1.9, 2020/06/30 01:52:17 |
version 1.12, 2021/11/29 09:19:33 |
|
|
/* $OpenXM: OpenXM_contrib2/asir2018/engine/nd.h,v 1.8 2020/06/19 10:18:13 noro Exp $ */ |
/* $OpenXM: OpenXM_contrib2/asir2018/engine/nd.h,v 1.11 2020/10/26 02:41:05 noro Exp $ */ |
#include "ca.h" |
#include "ca.h" |
#include "parse.h" |
#include "parse.h" |
#include "ox.h" |
#include "ox.h" |
Line 30 typedef struct oPGeoBucket { |
|
Line 30 typedef struct oPGeoBucket { |
|
|
|
typedef struct oSIG { |
typedef struct oSIG { |
int pos; |
int pos; |
DL dl; |
DL dl,dl2; |
} *SIG; |
} *SIG; |
|
|
/* distributed polynomial; linked list rep. */ |
/* distributed polynomial; linked list rep. */ |
Line 89 typedef struct oND_pairs { |
|
Line 89 typedef struct oND_pairs { |
|
int sugar; |
int sugar; |
int sugar2; |
int sugar2; |
SIG sig; |
SIG sig; |
|
int zero; |
UINT lcm[1]; |
UINT lcm[1]; |
} *ND_pairs; |
} *ND_pairs; |
|
|
Line 163 extern int *current_module_weight_vector; |
|
Line 164 extern int *current_module_weight_vector; |
|
#define CP(x) ((x)->c.p) |
#define CP(x) ((x)->c.p) |
#define CA(x) ((x)->c.a) |
#define CA(x) ((x)->c.a) |
#define DL(x) ((x)->dl) |
#define DL(x) ((x)->dl) |
|
#define DL2(x) ((x)->dl2) |
#define SG(x) ((x)->sugar) |
#define SG(x) ((x)->sugar) |
#define LEN(x) ((x)->len) |
#define LEN(x) ((x)->len) |
#define LCM(x) ((x)->lcm) |
#define LCM(x) ((x)->lcm) |
Line 196 extern int *current_module_weight_vector; |
|
Line 198 extern int *current_module_weight_vector; |
|
((r)=(RHist)MALLOC(sizeof(struct oRHist)+(nd_wpd-1)*sizeof(UINT))) |
((r)=(RHist)MALLOC(sizeof(struct oRHist)+(nd_wpd-1)*sizeof(UINT))) |
#define NEWND_pairs(m) \ |
#define NEWND_pairs(m) \ |
if(!_ndp_free_list)_NDP_alloc();\ |
if(!_ndp_free_list)_NDP_alloc();\ |
(m)=_ndp_free_list; _ndp_free_list = NEXT(_ndp_free_list) |
(m)=_ndp_free_list; (m)->zero = 0; _ndp_free_list = NEXT(_ndp_free_list) |
#define NEWNM(m)\ |
#define NEWNM(m)\ |
if(!_nm_free_list)_NM_alloc();\ |
if(!_nm_free_list)_NM_alloc();\ |
(m)=_nm_free_list; _nm_free_list = NEXT(_nm_free_list) |
(m)=_nm_free_list; _nm_free_list = NEXT(_nm_free_list) |
Line 209 NV(d)=(n); LEN(d)=(len); BDY(d)=(m) |
|
Line 211 NV(d)=(n); LEN(d)=(len); BDY(d)=(m) |
|
#define NEWNM_ind_pair(p)\ |
#define NEWNM_ind_pair(p)\ |
((p)=(NM_ind_pair)MALLOC(sizeof(struct oNM_ind_pair))) |
((p)=(NM_ind_pair)MALLOC(sizeof(struct oNM_ind_pair))) |
#define NEWSIG(r) \ |
#define NEWSIG(r) \ |
((r)=(SIG)MALLOC(sizeof(struct oSIG)),NEWDL((r)->dl,nd_nvar)) |
((r)=(SIG)MALLOC(sizeof(struct oSIG)),NEWDL((r)->dl,nd_nvar),NEWDL((r)->dl2,nd_nvar)) |
|
|
/* allocate and link a new object */ |
/* allocate and link a new object */ |
#define NEXTRHist(r,c) \ |
#define NEXTRHist(r,c) \ |
Line 328 void ndp_print(ND_pairs d); |
|
Line 330 void ndp_print(ND_pairs d); |
|
/* setup, reconstruct */ |
/* setup, reconstruct */ |
void nd_init_ord(struct order_spec *spec); |
void nd_init_ord(struct order_spec *spec); |
ND_pairs nd_reconstruct(int trace,ND_pairs ndp); |
ND_pairs nd_reconstruct(int trace,ND_pairs ndp); |
|
void nd_reconstruct_s(int trace,ND_pairs *ndp); |
int ndv_setup(int mod,int trace,NODE f,int dont_sort,int dont_removecont,int sba); |
int ndv_setup(int mod,int trace,NODE f,int dont_sort,int dont_removecont,int sba); |
void nd_setup_parameters(int nvar,int max); |
void nd_setup_parameters(int nvar,int max); |
BlockMask nd_create_blockmask(struct order_spec *ord); |
BlockMask nd_create_blockmask(struct order_spec *ord); |