Changeset a8bb72d in git
- Timestamp:
- Jun 8, 2005, 3:52:12 PM (18 years ago)
- Branches:
- (u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
- Children:
- cd6ff4925c1335a6a1617eccfabad9197484c383
- Parents:
- 261735d407471bf3413150f3179011e8eca56bd3
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/longalg.cc
r261735d ra8bb72d 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: longalg.cc,v 1. 9 2005-04-27 14:55:33Singular Exp $ */4 /* $Id: longalg.cc,v 1.10 2005-06-08 13:52:12 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: algebraic numbers … … 65 65 static ring nacRing; 66 66 67 #define napCopy(p) (napoly)p_Copy((poly)p,nacRing) 68 67 69 static number nadGcd( number a, number b, const ring r) { return nacInit(1); } 68 70 /*2 … … 86 88 else 87 89 naMinimalPoly = NULL; 90 if (r->minideal!=NULL) 91 { 92 naI=(naIdeal)omAllocBin(snaIdeal_bin); 93 naI->anz=IDELEMS(r->minideal); 94 naI->liste=(napoly*)omAlloc(naI->anz*sizeof(napoly)); 95 int j; 96 for (j=naI->anz-1; j>=0; j--) 97 { 98 lnumber a = (lnumber)pGetCoeff(r->minideal->m[j]); 99 naI->liste[j]=napCopy(a->z); 100 } 101 } 88 102 89 103 naNumbOfPar=rPar(r); … … 147 161 #define napSetCoeff(p,n) {nacDelete(&napGetCoeff(p),nacRing);napGetCoeff(p)=n;} 148 162 #define napDelete1(p) p_LmDelete((poly *)p, nacRing) 149 #define napCopy(p) (napoly)p_Copy((poly)p,nacRing)150 163 #define nap_Copy(p,r) (napoly)p_Copy((poly)p,r->algring) 151 164 #define napComp(p,q) p_LmCmp((poly)p,(poly)q, nacRing) -
kernel/ring.cc
r261735d ra8bb72d 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ring.cc,v 1. 39 2005-06-06 16:04:19Singular Exp $ */4 /* $Id: ring.cc,v 1.40 2005-06-08 13:52:12 Singular Exp $ */ 5 5 6 6 /* … … 276 276 { 277 277 PrintS("...\n"); 278 } 279 if (r->minideal!=NULL) 280 { 281 if (r==currRing) iiWriteMatrix((matrix)r->minideal,"// minpolys",1,0); 282 else PrintS("// minpolys=..."); 283 PrintLn(); 278 284 } 279 285 }
Note: See TracChangeset
for help on using the changeset viewer.