Changeset 47ab5b in git
- Timestamp:
- Feb 8, 2012, 6:48:08 PM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- e5fc00c615e47e7757b8c95660e3a8ac06ffdef0
- Parents:
- 237b4dda7a8a6ccfcc5966b92c779cebeebc30cc
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-08 18:48:08+01:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-08 22:31:58+01:00
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipshell.cc
r237b4dd r47ab5b 1695 1695 { 1696 1696 L->m[2].rtyp=STRING_CMD; 1697 L->m[2].data=(void *)omStrDup( rParameter(R)[0]);1697 L->m[2].data=(void *)omStrDup(*rParameter(R)); 1698 1698 } 1699 1699 // ---------------------------------------- … … 1756 1756 // ---------------------------------------- 1757 1757 // 0: char/ cf - ring 1758 #if 1 /* TODO */1759 1758 if (rField_is_numeric(r)) 1760 1759 { … … 1775 1774 1776 1775 rDecomposeCF(&(L->m[0]), r->cf->extRing, r); 1777 }else 1776 } 1777 else 1778 1778 { 1779 1779 assume( nCoeff_is_GF(r->cf) ); … … 1788 1788 Lv->Init(1); 1789 1789 Lv->m[0].rtyp=STRING_CMD; 1790 Lv->m[0].data=(void *)omStrDup( rParameter(r)[0]);1790 Lv->m[0].data=(void *)omStrDup(*rParameter(r)); 1791 1791 Lc->m[1].rtyp=LIST_CMD; 1792 1792 Lc->m[1].data=(void*)Lv; … … 1822 1822 } 1823 1823 else 1824 #endif1825 1824 { 1826 1825 L->m[0].rtyp=INT_CMD; … … 1904 1903 L->m[3].data=(void *)idCopy(r->qideal); 1905 1904 // ---------------------------------------- 1906 1905 #ifdef HAVE_PLURAL // NC! in rDecompose 1907 1906 if (rIsPluralRing(r)) 1908 1907 { … … 1912 1911 L->m[5].data=(void *)mp_Copy(r->GetNC()->D, r, r); 1913 1912 } 1914 1913 #endif 1915 1914 return L; 1916 1915 } … … 1926 1925 return; 1927 1926 } 1928 R->cf->ch=-1;1927 // R->cf->ch=0; 1929 1928 // ---------------------------------------- 1930 1929 // 1: … … 5062 5061 5063 5062 // set the parameter name 5064 if (complex_flag) { 5065 if (pn->next == NULL) 5066 param.par_name=(const char*)"i"; //default to i 5067 else 5068 param.par_name = (const char*)pn->next->name; 5063 if (complex_flag) 5064 { 5065 if (pn->next == NULL) 5066 param.par_name=(const char*)"i"; //default to i 5067 else 5068 param.par_name = (const char*)pn->next->name; 5069 5069 } 5070 5070 -
libpolys/coeffs/gnumpc.cc
r237b4dd r47ab5b 377 377 BOOLEAN ngcCoeffIsEqual (const coeffs r, n_coeffType n, void * parameter) 378 378 { 379 if (n==ID) { 379 if (n==ID) 380 { 380 381 LongComplexInfo* p = (LongComplexInfo *)(parameter); 381 if (p->float_len == r->float_len && p->float_len2 == r->float_len2 && 382 strcmp(p->par_name, r->complex_parameter)) 383 return TRUE; 384 } 385 return FALSE; 382 383 if ( 384 (p->float_len == r->float_len) && 385 (p->float_len2 == r->float_len2) 386 ) 387 if (strcmp(p->par_name, r->complex_parameter) == 0) 388 return (TRUE); 389 } 390 return (FALSE); 386 391 } 387 392 -
libpolys/polys/monomials/ring.cc
r237b4dd r47ab5b 581 581 } 582 582 583 /// TODO: make it a virtual method of coeffs, together with: 584 /// Decompose & Compose, rParameter & rPar 583 585 char * rCharStr(ring r) 584 586 { -
libpolys/polys/monomials/ring.h
r237b4dd r47ab5b 526 526 return rVar( R ); 527 527 } 528 else if (nCoeff_is_long_C(C)) 529 { 530 return 1; 531 } 528 532 return 0; 529 533 } … … 546 550 { 547 551 return &(C->m_nfParameter); 552 } 553 else if (nCoeff_is_long_C(C)) 554 { 555 return &(C->complex_parameter); 548 556 } 549 557 return NULL;
Note: See TracChangeset
for help on using the changeset viewer.