Changeset d523f3 in git
- Timestamp:
- Mar 14, 2005, 5:17:07 PM (18 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- a686c9c02d0bfc59b2d80093c2835e26db7d14be
- Parents:
- 0b1cef8f45439b72a4d1a61eda044890a7780a7f
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/ideals.cc
r0b1cef rd523f3 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ideals.cc,v 1. 6 2005-02-17 09:42:19Singular Exp $ */4 /* $Id: ideals.cc,v 1.7 2005-03-14 16:17:07 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - all basic methods to manipulate ideals … … 331 331 #ifdef PDEBUG 332 332 ideal idDBCopy(ideal h1,char *f,int l) 333 #else334 ideal idCopy (ideal h1)335 #endif336 333 { 337 334 int i; 338 335 ideal h2; 339 336 340 #ifdef PDEBUG341 337 idDBTest(h1,PDEBUG,f,l); 342 #endif343 338 //#ifdef TEST 344 339 if (h1 == NULL) 345 340 { 346 #ifdef PDEBUG347 341 h2=idDBInit(1,1,f,l); 348 #else349 h2=idInit(1,1);350 #endif351 342 } 352 343 else 353 344 //#endif 354 345 { 355 #ifdef PDEBUG356 346 h2=idDBInit(IDELEMS(h1),h1->rank,f,l); 357 #else358 h2=idInit(IDELEMS(h1),h1->rank);359 #endif360 347 for (i=IDELEMS(h1)-1; i>=0; i--) 361 348 h2->m[i] = pCopy(h1->m[i]); 349 } 350 return h2; 351 } 352 #endif 353 354 ideal id_Copy (ideal h1, const ring r) 355 { 356 int i; 357 ideal h2; 358 359 //#ifdef TEST 360 if (h1 == NULL) 361 { 362 h2=idInit(1,1); 363 } 364 else 365 //#endif 366 { 367 h2=idInit(IDELEMS(h1),h1->rank); 368 for (i=IDELEMS(h1)-1; i>=0; i--) 369 h2->m[i] = p_Copy(h1->m[i],r); 362 370 } 363 371 return h2; -
kernel/ideals.h
r0b1cef rd523f3 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: ideals.h,v 1. 2 2004-07-16 08:43:00Singular Exp $ */6 /* $Id: ideals.h,v 1.3 2005-03-14 16:17:07 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT - all basic methods to manipulate ideals … … 44 44 #endif 45 45 46 ideal id_Copy (ideal h1,const ring r); 46 47 #ifdef PDEBUG 47 48 ideal idDBCopy(ideal h1,char *f,int l); 48 49 #define idCopy(A) idDBCopy(A,__FILE__,__LINE__) 49 50 #else 50 ideal idCopy (ideal h1); 51 #define idCopy(A) id_Copy(A,currRing) 51 52 #endif 52 53 /*adds two ideals without simplifying the result*/
Note: See TracChangeset
for help on using the changeset viewer.