| version 1.44, 2002/12/27 07:37:57 |
version 1.49, 2003/06/21 02:09:15 |
|
|
| * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
| * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
| * |
* |
| * $OpenXM: OpenXM_contrib2/asir2000/builtin/gr.c,v 1.43 2002/07/18 02:23:53 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/builtin/gr.c,v 1.48 2003/06/05 09:40:39 noro Exp $ |
| */ |
*/ |
| #include "ca.h" |
#include "ca.h" |
| #include "parse.h" |
#include "parse.h" |
|
|
| |
|
| int PCoeffs; |
int PCoeffs; |
| int DP_Print = 0; |
int DP_Print = 0; |
| |
int DP_PrintShort = 0; |
| int DP_Multiple = 0; |
int DP_Multiple = 0; |
| int DP_NFStat = 0; |
int DP_NFStat = 0; |
| LIST Dist = 0; |
LIST Dist = 0; |
| Line 101 static int NoCriB = 0; |
|
| Line 102 static int NoCriB = 0; |
|
| static int NoGC = 0; |
static int NoGC = 0; |
| static int NoMC = 0; |
static int NoMC = 0; |
| static int NoRA = 0; |
static int NoRA = 0; |
| static int DP_PrintShort = 0; |
|
| static int ShowMag = 0; |
static int ShowMag = 0; |
| static int Stat = 0; |
static int Stat = 0; |
| static int Denominator = 1; |
static int Denominator = 1; |
| Line 668 NODE gb_f4_mod(NODE f,int m) |
|
| Line 668 NODE gb_f4_mod(NODE f,int m) |
|
| bt1 = mknode(2,BDY(sd)->dl,BDY(r)); |
bt1 = mknode(2,BDY(sd)->dl,BDY(r)); |
| MKNODE(bt,bt1,blist); blist = bt; |
MKNODE(bt,bt1,blist); blist = bt; |
| symb_merge(s,dt,nv); |
symb_merge(s,dt,nv); |
| /* fprintf(stderr,"%d-",length(s)); */ |
/* fprintf(stderr,"%d-",length(s0)); */ |
| nred++; |
nred++; |
| } |
} |
| } |
} |
| Line 1159 void prim_part(DP f,int m,DP *r) |
|
| Line 1159 void prim_part(DP f,int m,DP *r) |
|
| if ( PCoeffs ) |
if ( PCoeffs ) |
| dp_prim_mod(f,m,r); |
dp_prim_mod(f,m,r); |
| else |
else |
| *r = f; |
_dp_monic(f,m,r); |
| } else { |
} else { |
| if ( dp_fcoeffs || PCoeffs ) |
if ( dp_fcoeffs || PCoeffs ) |
| dp_prim(f,r); |
dp_prim(f,r); |
| Line 2195 void dp_load(int index,DP *p) |
|
| Line 2195 void dp_load(int index,DP *p) |
|
| sprintf(path,"%s%c%d",Demand,DELIM,index); |
sprintf(path,"%s%c%d",Demand,DELIM,index); |
| if ( !(fp = fopen(path,"rb") ) ) |
if ( !(fp = fopen(path,"rb") ) ) |
| error("dp_load : cannot open a file"); |
error("dp_load : cannot open a file"); |
| skipvl(fp); loadobj(fp,(Obj *)p); fclose(fp); |
if ( PCoeffs ) |
| |
loadvl(fp); |
| |
else |
| |
skipvl(fp); |
| |
loadobj(fp,(Obj *)p); fclose(fp); |
| } |
} |
| } |
} |
| |
|
| Line 2208 int dp_load_t(int index,DP *p) |
|
| Line 2212 int dp_load_t(int index,DP *p) |
|
| if ( !(fp = fopen(path,"rb") ) ) |
if ( !(fp = fopen(path,"rb") ) ) |
| return 0; |
return 0; |
| else { |
else { |
| skipvl(fp); loadobj(fp,(Obj *)p); fclose(fp); return 1; |
if ( PCoeffs ) |
| |
loadvl(fp); |
| |
else |
| |
skipvl(fp); |
| |
loadobj(fp,(Obj *)p); fclose(fp); return 1; |
| } |
} |
| } |
} |
| |
|