version 1.6, 2003/08/19 08:02:09 |
version 1.9, 2005/07/03 11:08:53 |
|
|
/* $OpenXM: OpenXM/src/kan96xx/Kan/gradedset.c,v 1.5 2003/07/30 09:00:52 takayama Exp $ */ |
/* $OpenXM: OpenXM/src/kan96xx/Kan/gradedset.c,v 1.8 2005/06/30 08:35:07 takayama Exp $ */ |
#include <stdio.h> |
#include <stdio.h> |
|
#include <stdlib.h> |
#include "datatype.h" |
#include "datatype.h" |
#include "extern2.h" |
#include "extern2.h" |
#include "gradedset.h" |
#include "gradedset.h" |
Line 62 struct gradedPolySet *newGradedPolySet(n) |
|
Line 63 struct gradedPolySet *newGradedPolySet(n) |
|
errorGradedSet("No more memory."); |
errorGradedSet("No more memory."); |
g->maxGrade = 0; |
g->maxGrade = 0; |
g->lim = n; |
g->lim = n; |
|
g->gb = 0; |
|
g->reduced = 0; |
return(g); |
return(g); |
} |
} |
|
|
Line 251 struct gradedPolySet *putPolyInG(g,fi,grade,index,syz, |
|
Line 254 struct gradedPolySet *putPolyInG(g,fi,grade,index,syz, |
|
gnew->polys[i] = newPolySet(INITSIZE); |
gnew->polys[i] = newPolySet(INITSIZE); |
} |
} |
gnew->maxGrade = g->maxGrade; |
gnew->maxGrade = g->maxGrade; |
|
gnew->gb = g->gb; gnew->reduced = g->reduced; |
g = gnew; |
g = gnew; |
} |
} |
|
|