version 1.5, 1999/11/03 10:56:40 |
version 1.7, 1999/11/06 21:39:36 |
|
|
/* -*- mode: C; coding: euc-japan -*- */ |
/* -*- mode: C; coding: euc-japan -*- */ |
/* $OpenXM: OpenXM/src/ox_math/ox.h,v 1.4 1999/11/02 21:15:02 ohara Exp $ */ |
/* $OpenXM: OpenXM/src/ox_math/ox.h,v 1.6 1999/11/04 18:13:48 ohara Exp $ */ |
|
|
#ifndef _OX_H_ |
#ifndef _OX_H_ |
|
|
Line 103 typedef struct cell { |
|
Line 103 typedef struct cell { |
|
typedef struct { |
typedef struct { |
int tag; |
int tag; |
int length; /* リストの長さ(必要??) */ |
int length; /* リストの長さ(必要??) */ |
cell *head; |
cell head[1]; |
} cmo_list; |
} cmo_list; |
|
|
|
|
typedef struct { |
typedef struct { |
int tag; |
int tag; |
int length; |
int length; |
Line 127 typedef struct { |
|
Line 128 typedef struct { |
|
/* cmo_list の派生. append_cmo_list を使ってよい. */ |
/* cmo_list の派生. append_cmo_list を使ってよい. */ |
typedef struct { |
typedef struct { |
int tag; |
int tag; |
int length; /* number of monomials */ |
int length; /* number of monomials */ |
cell *head; /* a list of monomials */ |
cell head[1]; /* a list of monomials */ |
cmo *ringdef; |
cmo *ringdef; |
} cmo_distributed_polynomial; |
} cmo_distributed_polynomial; |
|
|
Line 144 typedef struct { |
|
Line 145 typedef struct { |
|
cmo *cmo; |
cmo *cmo; |
} ox_data; |
} ox_data; |
|
|
cell* new_cell(cmo* newcmo); |
|
cmo_null* new_cmo_null(); |
cmo_null* new_cmo_null(); |
cmo_int32* new_cmo_int32(int i); |
cmo_int32* new_cmo_int32(int i); |
cmo_string* new_cmo_string(char* s); |
cmo_string* new_cmo_string(char* s); |
Line 157 cmo_zz* new_cmo_zz_size(int size); |
|
Line 157 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_zero* new_cmo_zero(); |
cmo_zero* new_cmo_zero(); |
|
cmo_distributed_polynomial* new_cmo_distributed_polynomial(); |
cmo_dms_generic* new_cmo_dms_generic(); |
cmo_dms_generic* new_cmo_dms_generic(); |
cmo_ring_by_name* new_cmo_ring_by_name(cmo* ob); |
cmo_ring_by_name* new_cmo_ring_by_name(cmo* ob); |
cmo_indeterminate* new_cmo_indeterminate(cmo* ob); |
cmo_indeterminate* new_cmo_indeterminate(cmo* ob); |
Line 181 int send_ox_cmo(int fd, cmo* m); |
|
Line 182 int send_ox_cmo(int fd, cmo* m); |
|
void send_ox_command(int fd, int sm_command); |
void send_ox_command(int fd, int sm_command); |
int send_ox_tag(int fd, int tag); |
int send_ox_tag(int fd, int tag); |
|
|
int append_cmo_list(cmo_list* this, cmo *newcmo); |
int append_cmo_list(cmo_list* this, cmo *ob); |
int length_cmo_list(cmo_list* this); |
int length_cmo_list(cmo_list* this); |
cell* next_cell(cell *this); |
cell* next_cell(cell *this); |
int cmolen_cmo(cmo* m); |
int cmolen_cmo(cmo* m); |