version 1.3, 2003/11/15 09:06:20 |
version 1.6, 2013/10/18 01:28:52 |
|
|
/* $OpenXM: OpenXM/src/ox_ntl/ntl.h,v 1.2 2003/11/08 12:34:00 iwane Exp $ */ |
/* $OpenXM: OpenXM/src/ox_ntl/ntl.h,v 1.5 2008/09/19 10:55:40 iwane Exp $ */ |
|
|
#ifndef __NTL_H__ |
#ifndef __NTL_H__ |
#define __NTL_H__ |
#define __NTL_H__ |
|
|
#include <NTL/ZZXFactoring.h> |
#include <NTL/ZZXFactoring.h> |
#include <NTL/mat_ZZ.h> |
#include <NTL/mat_ZZ.h> |
#include "ox_toolkit.h" |
#include "ox_toolkit.h" |
#include "oxserv.h" |
#include "oxserv.h" /* for block interrupt input */ |
|
#include "oxstack.h" |
|
|
#define NTL_FAILURE (-1) |
#define NTL_FAILURE (-1) |
#define NTL_SUCCESS ( 0) |
#define NTL_SUCCESS ( 0) |
|
|
#define CMON_ZZX (CMO_PRIVATE + 3) |
#define CMON_ZZX (CMO_PRIVATE + 3) |
#define CMON_FACTORS (CMO_PRIVATE + 4) |
#define CMON_FACTORS (CMO_PRIVATE + 4) |
|
|
|
using namespace NTL; |
|
|
typedef struct cmon_mat_zz_tag { |
typedef struct cmon_mat_zz_tag { |
int tag; |
int tag; |
Line 59 cmon_zzx_t * new_cmon_zzx (ZZX &, cmo_indeterminate *x |
|
Line 61 cmon_zzx_t * new_cmon_zzx (ZZX &, cmo_indeterminate *x |
|
cmon_mat_zz_t * new_cmon_mat_zz (void); |
cmon_mat_zz_t * new_cmon_mat_zz (void); |
cmon_mat_zz_t * new_cmon_mat_zz (mat_ZZ &); |
cmon_mat_zz_t * new_cmon_mat_zz (mat_ZZ &); |
cmon_factors_t * new_cmon_factors (void); |
cmon_factors_t * new_cmon_factors (void); |
cmon_factors_t * new_cmon_factors (ZZ &, vec_pair_ZZX_long &, cmo_indeterminate *x, int); |
cmon_factors_t * new_cmon_factors (ZZ &, vec_pair_ZZX_long &, cmo_indeterminate *x); |
|
|
|
|
/*===========================================================================* |
/*===========================================================================* |
Line 71 void delete_cmon_mat_zz (cmon_mat_zz_t *); |
|
Line 73 void delete_cmon_mat_zz (cmon_mat_zz_t *); |
|
void delete_cmon_factors (cmon_factors_t *); |
void delete_cmon_factors (cmon_factors_t *); |
void delete_cmon (cmo *); |
void delete_cmon (cmo *); |
|
|
|
|
/*** ntlconv.cpp ***/ |
/*** ntlconv.cpp ***/ |
|
|
/*===========================================================================* |
/*===========================================================================* |
Line 89 cmo_list *vec_pair_ZZX_long_to_cmo (vec_pair_ZZX_long |
|
Line 92 cmo_list *vec_pair_ZZX_long_to_cmo (vec_pair_ZZX_long |
|
int cmo_to_mat_zz (mat_ZZ &, cmo *); |
int cmo_to_mat_zz (mat_ZZ &, cmo *); |
cmo_list *mat_zz_to_cmo (mat_ZZ &); |
cmo_list *mat_zz_to_cmo (mat_ZZ &); |
|
|
|
|
|
/*** ntl.cpp ***/ |
|
|
/*===========================================================================* |
/*===========================================================================* |
* NTL |
* NTL |
*===========================================================================*/ |
*===========================================================================*/ |
cmo *ntl_fctr (cmo **, int); |
oxstack_node *ntl_fctr (oxstack_node **, int); |
cmo *ntl_lll (cmo **, int); |
oxstack_node *ntl_lll (oxstack_node **, int); |
|
|
#endif /* !__NTL_H__*/ |
#endif /* !__NTL_H__*/ |