Changeset 512a2b in git for Singular/kspoly.cc
- Timestamp:
- Sep 18, 2000, 11:19:39 AM (24 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- d1655e92ca71fb37d1b57af88efdff5b65b8988b
- Parents:
- f3398d316400fe1ee1677fc397cacb80566ac664
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/kspoly.cc
rf3398d r512a2b 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kspoly.cc,v 1. 7 2000-09-12 16:00:58obachman Exp $ */4 /* $Id: kspoly.cc,v 1.8 2000-09-18 09:19:07 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - Routines for Spoly creation and reductions … … 10 10 #include "polys.h" 11 11 #include "numbers.h" 12 #include "p_Procs.h" 12 13 13 14 // Define to enable tests in this file … … 47 48 if (a2==NULL) 48 49 { 49 pDelete 1(&lm);50 pDeleteLm(&lm); 50 51 PR->p = p1; 51 52 if (coef != NULL) *coef = nInit(1); … … 74 75 int dummy; 75 76 PR->p = currRing->p_Procs->p_Minus_mm_Mult_qq(p1, lm, a2, 76 77 78 pDelete 1(&lm);77 dummy, spNoether, currRing); 78 79 pDeleteLm(&lm); 79 80 } 80 81 … … 148 149 149 150 // Clean-up time 150 pDelete 1(&m1);151 pDelete 1(&m2);151 pDeleteLm(&m1); 152 pDeleteLm(&m2); 152 153 153 154 if (co != 0) … … 373 374 if(cm==1) 374 375 { 375 p Free(m2);376 pLmFree(m2); 376 377 nNew(&(pGetCoeff(m1))); 377 378 return m1; … … 379 380 else 380 381 { 381 p Free(m1);382 pLmFree(m1); 382 383 nNew(&(pGetCoeff(m2))); 383 384 return m2; … … 391 392 if (!equal) 392 393 { 393 p Free(m2);394 pLmFree(m2); 394 395 nNew(&(pGetCoeff(m1))); 395 396 return m1; … … 399 400 if (a2==NULL) 400 401 { 401 p Free(m2);402 pLmFree(m2); 402 403 if (a1==NULL) 403 404 { 404 p Free(m1);405 pLmFree(m1); 405 406 return NULL; 406 407 } … … 409 410 if (a1==NULL) 410 411 { 411 p Free(m1);412 pLmFree(m1); 412 413 goto x2; 413 414 }
Note: See TracChangeset
for help on using the changeset viewer.