version 1.14, 2003/03/23 20:17:35 |
version 1.15, 2003/03/30 08:05:22 |
|
|
/* -*- mode: C -*- */ |
/* -*- mode: C -*- */ |
/* $OpenXM: OpenXM/src/ox_toolkit/ox_toolkit.h,v 1.13 2003/02/03 23:13:23 ohara Exp $ */ |
/* $OpenXM: OpenXM/src/ox_toolkit/ox_toolkit.h,v 1.14 2003/03/23 20:17:35 ohara Exp $ */ |
|
|
#ifndef _OX_TOOLKIT_H_ |
#ifndef _OX_TOOLKIT_H_ |
|
|
|
|
#include <stdio.h> |
#include <stdio.h> |
#if defined(WITH_GMP) |
#if defined(WITH_GMP) |
#include <gmp.h> |
#include <gmp.h> |
|
#else |
|
#include "gmp_fake.h" |
#endif /* WITH_GMP */ |
#endif /* WITH_GMP */ |
#include <ox/cmotag.h> |
#include <ox/cmotag.h> |
#include <ox/oxMessageTag.h> |
#include <ox/oxMessageTag.h> |
|
|
cmo *coef; |
cmo *coef; |
} cmo_monomial32; |
} cmo_monomial32; |
|
|
#if defined(WITH_GMP) |
|
typedef struct { |
typedef struct { |
int tag; |
int tag; |
mpz_t mpz; |
mpz_t mpz; |
Line 104 typedef struct { |
|
Line 105 typedef struct { |
|
cmo *num; /* Bunshi (cmo_zz) */ |
cmo *num; /* Bunshi (cmo_zz) */ |
cmo *den; /* Bunbo (cmo_zz) */ |
cmo *den; /* Bunbo (cmo_zz) */ |
} cmo_qq; |
} cmo_qq; |
#endif /* WITH_GMP */ |
|
|
|
typedef struct { |
typedef struct { |
int tag; |
int tag; |
Line 141 cmo_mathcap* new_cmo_mathcap(cmo* ob); |
|
Line 141 cmo_mathcap* new_cmo_mathcap(cmo* ob); |
|
cmo_list* new_cmo_list(); |
cmo_list* new_cmo_list(); |
cmo_monomial32* new_cmo_monomial32(); |
cmo_monomial32* new_cmo_monomial32(); |
cmo_monomial32* new_cmo_monomial32_size(int size); |
cmo_monomial32* new_cmo_monomial32_size(int size); |
#if defined(WITH_GMP) |
|
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_set_mpz(mpz_ptr z); |
cmo_zz* new_cmo_zz_set_mpz(mpz_ptr z); |
cmo_zz* new_cmo_zz_noinit(); |
cmo_zz* new_cmo_zz_noinit(); |
cmo_zz* new_cmo_zz_set_string(char* s); |
cmo_zz* new_cmo_zz_set_string(char* s); |
#endif /* WITH_GMP */ |
|
cmo_zero* new_cmo_zero(); |
cmo_zero* new_cmo_zero(); |
cmo_double* new_cmo_double(double d); |
cmo_double* new_cmo_double(double d); |
cmo_distributed_polynomial* new_cmo_distributed_polynomial(); |
cmo_distributed_polynomial* new_cmo_distributed_polynomial(); |
Line 209 void dump_ox_command(ox_command* m); |
|
Line 207 void dump_ox_command(ox_command* m); |
|
void dump_ox_data(ox_data* m); |
void dump_ox_data(ox_data* m); |
|
|
void print_cmo(cmo* c); |
void print_cmo(cmo* c); |
#if defined(WITH_GMP) |
|
void resize_mpz(mpz_ptr mpz, int size); |
void resize_mpz(mpz_ptr mpz, int size); |
#endif /* WITH_GMP */ |
|
|
|
typedef cmo *(*hook_t)(OXFILE *, cmo *); |
typedef cmo *(*hook_t)(OXFILE *, cmo *); |
|
|