version 1.1.1.1, 1999/10/29 08:06:42 |
version 1.4, 1999/11/02 21:15:02 |
|
|
/* -*- mode: C; coding: euc-japan -*- */ |
/* -*- mode: C; coding: euc-japan -*- */ |
/* $OpenXM$ */ |
/* $OpenXM: OpenXM/src/ox_math/ox.h,v 1.3 1999/11/02 18:58:25 ohara Exp $ */ |
/* $Id$ */ |
/* $Id$ */ |
|
|
#ifndef _OX_H_ |
#ifndef _OX_H_ |
|
|
} cmo; |
} cmo; |
|
|
typedef cmo cmo_null; |
typedef cmo cmo_null; |
|
typedef cmo cmo_zero; |
|
typedef cmo cmo_dms_generic; |
|
|
typedef struct { |
typedef struct { |
int tag; |
int tag; |
|
|
|
|
typedef struct { |
typedef struct { |
int tag; |
int tag; |
|
int size; |
|
char *body; |
|
} cmo_datum; |
|
|
|
typedef struct { |
|
int tag; |
char *s; |
char *s; |
} cmo_string; |
} cmo_string; |
|
|
typedef struct { |
typedef struct { |
int tag; |
int tag; |
mpz_t mpz; |
cmo *ob; |
} cmo_zz; |
} cmo_mathcap; |
|
|
|
typedef cmo_mathcap cmo_error2; |
|
typedef cmo_mathcap cmo_ring_by_name; |
|
typedef cmo_mathcap cmo_indeterminate; |
|
|
typedef struct cell { |
typedef struct cell { |
struct cell *next; |
struct cell *next; |
cmo *cmo; |
cmo *cmo; |
|
|
} cmo_list; |
} cmo_list; |
|
|
typedef struct { |
typedef struct { |
|
int tag; |
|
int length; |
|
int *exps; |
|
cmo *coef; |
|
} cmo_monomial32; |
|
|
|
typedef struct { |
int tag; |
int tag; |
cmo_list *li; |
mpz_t mpz; |
} cmo_mathcap; |
} cmo_zz; |
|
|
typedef cmo_mathcap cmo_error; |
typedef struct { |
|
int tag; |
|
cmo *num; /* 分子 (cmo_zz) */ |
|
cmo *den; /* 分母 (cmo_zz) */ |
|
} cmo_qq; |
|
|
/* |
/* cmo_list の派生. append_cmo_list を使ってよい. */ |
typedef struct { |
typedef struct { |
int tag; |
int tag; |
} ox; |
int length; /* number of monomials */ |
*/ |
cell *head; /* a list of monomials */ |
|
cmo *ringdef; |
|
} cmo_distributed_polynomial; |
|
|
typedef cmo ox; |
typedef cmo ox; |
|
|
Line 109 typedef struct { |
|
Line 134 typedef struct { |
|
} ox_data; |
} ox_data; |
|
|
cell* new_cell(cmo* newcmo); |
cell* new_cell(cmo* newcmo); |
|
cmo_null* new_cmo_null(); |
cmo_int32* new_cmo_int32(int i); |
cmo_int32* new_cmo_int32(int i); |
cmo_list* new_cmo_list(); |
|
cmo_string* new_cmo_string(char* s); |
cmo_string* new_cmo_string(char* s); |
|
cmo_mathcap* new_cmo_mathcap(cmo* ob); |
|
cmo_list* new_cmo_list(); |
|
cmo_monomial32* new_cmo_monomial32(); |
|
cmo_monomial32* new_cmo_monomial32_size(int size); |
cmo_zz* new_cmo_zz(); |
cmo_zz* new_cmo_zz(); |
cmo_zz* new_cmo_zz_size(int size); |
cmo_zz* new_cmo_zz_size(int size); |
cmo_zz* new_cmo_zz_set_si(int integer); |
cmo_zz* new_cmo_zz_set_si(int integer); |
cmo_zz* new_cmo_zz_noinit(); |
cmo_zz* new_cmo_zz_noinit(); |
cmo_null* new_cmo_null(); |
cmo_zero* new_cmo_zero(); |
cmo_mathcap* new_cmo_mathcap(cmo_list* li); |
cmo_dms_generic* new_cmo_dms_generic(); |
cmo_error* new_cmo_error(cmo_list* li); |
cmo_ring_by_name* new_cmo_ring_by_name(cmo* ob); |
|
cmo_indeterminate* new_cmo_indeterminate(cmo* ob); |
|
cmo_error2* new_cmo_error2(cmo* ob); |
|
|
ox_data* new_ox_data(cmo* c); |
ox_data* new_ox_data(cmo* c); |
ox_command* new_ox_command(int sm_code); |
ox_command* new_ox_command(int sm_code); |
|
|
cmo_error* gen_error_object(int err_code); |
cmo_error2* gen_error_object(int err_code); |
cmo* make_mathcap_object(int version, char *id_string); |
cmo* make_mathcap_object(int version, char *id_string); |
|
|
void resize_mpz(mpz_ptr mpz, int size); |
void resize_mpz(mpz_ptr mpz, int size); |
Line 151 cmo* ox_pop_cmo(ox_file_t sv, int fd); |
|
Line 183 cmo* ox_pop_cmo(ox_file_t sv, int fd); |
|
void ox_reset(ox_file_t sv); |
void ox_reset(ox_file_t sv); |
ox_file_t ox_start(char* host, char* prog1, char* prog2); |
ox_file_t ox_start(char* host, char* prog1, char* prog2); |
|
|
char* dump_cmo(char* array, cmo* m); |
int init_dump_buff(char *buff); |
char* dump_ox_command(char* array, ox_command* m); |
int dump_cmo(cmo* m); |
char* dump_ox_data(char* array, ox_data* m); |
int dump_ox_command(ox_command* m); |
|
int dump_ox_data(ox_data* m); |
|
|
int print_cmo(cmo* c); |
int print_cmo(cmo* c); |
int print_cmo_int32(cmo_int32* c); |
int print_cmo_int32(cmo_int32* c); |
Line 167 int next_serial(); |
|
Line 200 int next_serial(); |
|
void setCmotypeDisable(int type); |
void setCmotypeDisable(int type); |
|
|
cmo_zz* new_cmo_zz_set_string(char *s); |
cmo_zz* new_cmo_zz_set_string(char *s); |
char* CONVERT_ZZ_TO_CSTRING(cmo_zz *c); |
char* convert_zz_to_cstring(cmo_zz *c); |
char* CONVERT_CMO_TO_CSTRING(cmo *m); |
char* convert_cmo_to_cstring(cmo *m); |
char* CONVERT_NULL_TO_CSTRING(); |
char* convert_null_to_cstring(); |
char* CONVERT_INT_TO_CSTRING(int integer); |
char* convert_int_to_cstring(int integer); |
|
|
#endif /* _OX_H_ */ |
#endif /* _OX_H_ */ |