Changeset 634c98 in git
- Timestamp:
- Feb 20, 2001, 10:45:44 AM (23 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 367e88ed423dc4fe709d7c0e9346e03ea9a03baa
- Parents:
- 25c431d26faee1a17b854e49114f755c02aaf1ef
- Location:
- Singular
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/longalg.cc
r25c431 r634c98 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: longalg.cc,v 1.5 8 2001-01-20 12:38:41Singular Exp $ */4 /* $Id: longalg.cc,v 1.59 2001-02-20 09:45:44 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: algebraic numbers … … 2679 2679 poly p; 2680 2680 napoly za=((lnumber)z)->z; 2681 nMapFunc nMap=NULL; 2682 if (currRing->parameter!=NULL) 2683 nMap=currRing->algring->cf->cfSetMap(r->algring, currRing->algring); 2684 else 2685 nMap=currRing->cf->cfSetMap(r->algring, currRing); 2686 if (nMap==NULL) return NULL; /* emergency exit only */ 2681 2687 do 2682 2688 { … … 2691 2697 if (currRing->parameter!=NULL) 2692 2698 { 2699 assume(r->algring!=NULL); 2693 2700 pGetCoeff(p)=(number)omAlloc0Bin(rnumber_bin); 2694 2701 ((lnumber)pGetCoeff(p))->s=2; 2695 ((lnumber)pGetCoeff(p))->z=napInitz(n acCopy(napGetCoeff(za)));2702 ((lnumber)pGetCoeff(p))->z=napInitz(nMap(napGetCoeff(za))); 2696 2703 pa=((lnumber)pGetCoeff(p))->z; 2697 2704 } 2698 2705 else 2699 2706 { 2700 pGetCoeff(p)=n Copy(napGetCoeff(za));2707 pGetCoeff(p)=nMap(napGetCoeff(za)); 2701 2708 } 2702 2709 for(i=0;i<P;i++) -
Singular/numbers.cc
r25c431 r634c98 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: numbers.cc,v 1. 39 2001-01-30 13:37:04Singular Exp $ */4 /* $Id: numbers.cc,v 1.40 2001-02-20 09:45:43 Singular Exp $ */ 5 5 6 6 /* … … 254 254 r->cf->nGcd = naGcd; 255 255 r->cf->nLcm = naLcm; 256 r->cf-> nSetMap= naSetMap;256 r->cf->cfSetMap = naSetMap; 257 257 r->cf->nName = naName; 258 258 r->cf->nSize = naSize; … … 290 290 r->cf->nGcd = nlGcd; 291 291 r->cf->nLcm = nlLcm; 292 r->cf-> nSetMap = nlSetMap;292 r->cf->cfSetMap = nlSetMap; 293 293 r->cf->nSize = nlSize; 294 294 r->cf->nGetDenom = nlGetDenom; … … 325 325 r->cf->nGcd = ndGcd; 326 326 r->cf->nLcm = ndGcd; /* tricky, isn't it ?*/ 327 r->cf-> nSetMap = npSetMap;327 r->cf->cfSetMap = npSetMap; 328 328 /* nName= ndName; */ 329 329 /*nSize = ndSize;*/ … … 362 362 r->cf->nGcd = ndGcd; 363 363 r->cf->nLcm = ndGcd; /* tricky, isn't it ?*/ 364 r->cf-> nSetMap = nfSetMap;364 r->cf->cfSetMap = nfSetMap; 365 365 r->cf->nName= nfName; 366 366 /*nSize = ndSize;*/ … … 397 397 r->cf->nGcd = ndGcd; 398 398 r->cf->nLcm = ndGcd; /* tricky, isn't it ?*/ 399 r->cf-> nSetMap=nrSetMap;399 r->cf->cfSetMap=nrSetMap; 400 400 /* nName= ndName; */ 401 401 /*nSize = ndSize;*/ … … 433 433 r->cf->nGcd = ndGcd; 434 434 r->cf->nLcm = ndGcd; /* tricky, isn't it ?*/ 435 r->cf-> nSetMap=ngfSetMap;435 r->cf->cfSetMap=ngfSetMap; 436 436 r->cf->nName= ndName; 437 437 r->cf->nSize = ndSize; … … 469 469 r->cf->nGcd = ndGcd; 470 470 r->cf->nLcm = ndGcd; /* tricky, isn't it ?*/ 471 r->cf-> nSetMap=ngcSetMap;471 r->cf->cfSetMap=ngcSetMap; 472 472 r->cf->nPar=ngcPar; 473 473 r->cf->nRePart=ngcRePart; -
Singular/numbers.h
r25c431 r634c98 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: numbers.h,v 1.2 5 2001-01-18 16:54:19Singular Exp $ */6 /* $Id: numbers.h,v 1.26 2001-02-20 09:45:44 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT: interface to coefficient aritmetics … … 64 64 #define nDelete(A) (currRing)->cf->cfDelete(A,currRing) 65 65 66 #define nSetMap(R) (currRing->cf-> nSetMap(R,currRing))66 #define nSetMap(R) (currRing->cf->cfSetMap(R,currRing)) 67 67 extern char * (*nName)(number n); 68 68 -
Singular/structs.h
r25c431 r634c98 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: structs.h,v 1.5 6 2001-02-01 21:19:54 obachmanExp $ */6 /* $Id: structs.h,v 1.57 2001-02-20 09:45:43 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT … … 250 250 number (*nLcm)(number a, number b, const ring r); 251 251 void (*cfDelete)(number * a, const ring r); 252 nMapFunc (* nSetMap)(ring src, ring dst);252 nMapFunc (*cfSetMap)(ring src, ring dst); 253 253 char * (*nName)(number n); 254 254 //extern number (*nMap)(number from);
Note: See TracChangeset
for help on using the changeset viewer.