version 1.1, 2018/09/19 05:45:07 |
version 1.7, 2019/08/21 00:37:47 |
|
|
/* $OpenXM$ */ |
/* $OpenXM: OpenXM_contrib2/asir2018/engine/nd.h,v 1.6 2018/10/23 04:53:38 noro Exp $ */ |
#include "ca.h" |
#include "ca.h" |
#include "parse.h" |
#include "parse.h" |
#include "ox.h" |
#include "ox.h" |
Line 45 typedef struct oNDV { |
|
Line 45 typedef struct oNDV { |
|
} *NDV; |
} *NDV; |
|
|
typedef union oNDC { |
typedef union oNDC { |
int m; |
long m; |
Z z; |
Z z; |
LM lm; |
LM lm; |
Z gz; |
|
P p; |
P p; |
R r; |
R r; |
DAlg a; |
DAlg a; |
Line 145 extern int *current_module_weight_vector; |
|
Line 144 extern int *current_module_weight_vector; |
|
#define HCU(d) ((d)->body->c) |
#define HCU(d) ((d)->body->c) |
#define HCM(d) ((d)->body->c.m) |
#define HCM(d) ((d)->body->c.m) |
#define HCLM(d) ((d)->body->c.lm) |
#define HCLM(d) ((d)->body->c.lm) |
#define HCQ(d) ((d)->body->c.z) |
#define HCZ(d) ((d)->body->c.z) |
#define HCZ(d) ((d)->body->c.gz) |
|
#define HCP(d) ((d)->body->c.p) |
#define HCP(d) ((d)->body->c.p) |
#define HCA(d) ((d)->body->c.a) |
#define HCA(d) ((d)->body->c.a) |
#define CM(x) ((x)->c.m) |
#define CM(x) ((x)->c.m) |
#define CLM(x) ((x)->c.lm) |
#define CLM(x) ((x)->c.lm) |
#define CQ(x) ((x)->c.z) |
#define CZ(x) ((x)->c.z) |
#define CZ(x) ((x)->c.gz) |
|
#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) |
Line 264 int ndv_newps(int m,NDV a,NDV aq,int f4); |
|
Line 261 int ndv_newps(int m,NDV a,NDV aq,int f4); |
|
|
|
/* top level functions */ |
/* top level functions */ |
void nd_gr(LIST f,LIST v,int m,int homo,int retdp,int f4,struct order_spec *ord,LIST *rp); |
void nd_gr(LIST f,LIST v,int m,int homo,int retdp,int f4,struct order_spec *ord,LIST *rp); |
void nd_gr_trace(LIST f,LIST v,int trace,int homo,int f4,struct order_spec *ord,LIST *rp); |
void nd_gr_trace(LIST f,LIST v,int trace,int homo,int retdp,int f4,struct order_spec *ord,LIST *rp); |
NODE nd_f4(int m,int checkonly,int **indp); |
NODE nd_f4(int m,int checkonly,int **indp); |
NODE nd_gb(int m,int ishomo,int checkonly,int gensyz,int **indp); |
NODE nd_gb(int m,int ishomo,int checkonly,int gensyz,int **indp); |
NODE nd_gb_trace(int m,int ishomo,int **indp); |
NODE nd_gb_trace(int m,int ishomo,int **indp); |
Line 293 INLINE int ndl_hash_value(UINT *d); |
|
Line 290 INLINE int ndl_hash_value(UINT *d); |
|
INLINE int ndl_find_reducer(UINT *g); |
INLINE int ndl_find_reducer(UINT *g); |
int nd_sp(int mod,int trace,ND_pairs p,ND *nf); |
int nd_sp(int mod,int trace,ND_pairs p,ND *nf); |
int nd_sp_f4(int m,int trace,ND_pairs l,PGeoBucket bucket); |
int nd_sp_f4(int m,int trace,ND_pairs l,PGeoBucket bucket); |
int nd_nf(int mod,ND d,ND g,NDV *ps,int full,NDC dn,ND *nf); |
int nd_nf(int mod,ND d,ND g,NDV *ps,int full,ND *nf); |
int nd_nf_pbucket(int mod,ND g,NDV *ps,int full,ND *nf); |
int nd_nf_pbucket(int mod,ND g,NDV *ps,int full,ND *nf); |
|
|
/* finalizers */ |
/* finalizers */ |
Line 386 P ndvtop(int mod,VL vl,VL dvl,NDV p); |
|
Line 383 P ndvtop(int mod,VL vl,VL dvl,NDV p); |
|
NDV ndtondv(int mod,ND p); |
NDV ndtondv(int mod,ND p); |
ND ndvtond(int mod,NDV p); |
ND ndvtond(int mod,NDV p); |
Z *nm_ind_pair_to_vect(int m,UINT *s0,int n,NM_ind_pair pair); |
Z *nm_ind_pair_to_vect(int m,UINT *s0,int n,NM_ind_pair pair); |
IndArray nm_ind_pair_to_vect_compress(int m,UINT *s0,int n,int *s0hash,NM_ind_pair pair); |
IndArray nm_ind_pair_to_vect_compress(int m,UINT *s0,int n,NM_ind_pair pair,int prevh); |
int nd_to_vect(int mod,UINT *s0,int n,ND d,UINT *r); |
int nd_to_vect(int mod,UINT *s0,int n,ND d,UINT *r); |
int nd_to_vect_q(UINT *s0,int n,ND d,Z *r); |
int nd_to_vect_q(UINT *s0,int n,ND d,Z *r); |
NDV vect_to_ndv_q(Z *vect,int spcol,int col,int *rhead,UINT *s0vect); |
NDV vect_to_ndv_q(Z *vect,int spcol,int col,int *rhead,UINT *s0vect); |
int nd_to_vect64(int mod,UINT *s0,int n,ND d,U64 *r); |
|
int ndv_reduce_vect64(int m,U64 *svect,U64 *cvect,int col,IndArray *imat,NM_ind_pair *rp0,int nred); |
|
NDV vect64_to_ndv(U64 *vect,int spcol,int col,int *rhead,UINT *s0vect); |
|
void red_by_vect64(int m, U64 *p,unsigned int *c,U64 *r,unsigned int hc,int len); |
|
|
|
/* elimination */ |
/* elimination */ |
int nd_gauss_elim_mod(UINT **mat0,int *sugar,ND_pairs *spactive,int row,int col,int md,int *colstat); |
int nd_gauss_elim_mod(UINT **mat0,int *sugar,ND_pairs *spactive,int row,int col,int md,int *colstat); |
int nd_gauss_elim_sf(UINT **mat0,int *sugar,int row,int col,int md,int *colstat); |
int nd_gauss_elim_sf(UINT **mat0,int *sugar,int row,int col,int md,int *colstat); |
int nd_gauss_elim_q(Z **mat0,int *sugar,int row,int col,int *colstat); |
int nd_gauss_elim_q(Z **mat0,int *sugar,int row,int col,int *colstat); |
int nd_gauss_elim_mod64(U64 **mat,int *sugar,ND_pairs *spactive,int row,int col,int md,int *colstat); |
|
|
|
int ndl_ww_lex_compare(UINT *a1,UINT *a2); |
int ndl_ww_lex_compare(UINT *a1,UINT *a2); |
|
|
|
#if SIZEOF_LONG == 8 |
|
int nd_to_vect64(int mod,UINT *s0,int n,ND d,mp_limb_t *r); |
|
int ndv_reduce_vect64(int m,mp_limb_t *svect,mp_limb_t *cvect,int col,IndArray *imat,NM_ind_pair *rp0,int nred); |
|
NDV vect64_to_ndv(mp_limb_t *vect,int spcol,int col,int *rhead,UINT *s0vect); |
|
void red_by_vect64(int m, mp_limb_t *p,unsigned int *c,mp_limb_t *r,unsigned int hc,int len); |
|
int nd_gauss_elim_mod64(mp_limb_t **mat,int *sugar,ND_pairs *spactive,int row,int col,int md,int *colstat); |
|
#endif |
|
|
|
|