Changeset 85fd90 in git
- Timestamp:
- Sep 28, 2011, 5:48:27 PM (12 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- d56ad872d739d42e59b1beb8ccc89be2a204530d
- Parents:
- 32cc7e437ee85bf7d555756eb824eadce50d50c7
- git-author:
- Burcin Erocal <burcin@erocal.org>2011-09-28 17:48:27+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:13:41+01:00
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipshell.cc
r32cc7e r85fd90 5025 5025 && ((strcmp(pn->name,"real")==0) || (strcmp(pn->name,"complex")==0))) 5026 5026 { 5027 LongComplexInfo param; 5027 5028 BOOLEAN complex_flag=(strcmp(pn->name,"complex")==0); 5028 5029 const int ch=0; 5029 5030 if ((pn->next!=NULL) && (pn->next->Typ()==INT_CMD)) 5030 5031 { 5031 WarnS("not implemented: size for real/complex");5032 5032 float_len=(int)(long)pn->next->Data(); 5033 5033 float_len2=float_len; … … 5036 5036 { 5037 5037 float_len2=(int)(long)pn->next->Data(); 5038 WarnS("not implemented: size for real/complex");5039 5038 pn=pn->next; 5040 5039 } 5041 5040 } 5042 if ((pn->next==NULL) && complex_flag) 5043 { 5044 pn->next=(leftv)omAlloc0Bin(sleftv_bin); 5045 pn->next->name=omStrDup("i"); 5046 } 5047 else 5048 WarnS("not implemented: name for i (complex)"); 5049 cf=nInitChar(complex_flag ? n_long_C: n_long_R,NULL); 5041 // set the parameter name 5042 if (complex_flag) { 5043 if (pn->next == NULL) 5044 param.par_name=(const char*)"i"; //default to i 5045 else 5046 param.par_name = (const char*)pn->next->name; 5047 } 5048 5049 param.float_len = float_len; 5050 param.float_len2 = float_len2; 5051 cf=nInitChar(complex_flag ? n_long_C: n_long_R, (void*)¶m); 5050 5052 5051 5053 assume( cf != NULL ); -
kernel/polys.cc
r32cc7e r85fd90 10 10 ideal currQuotient = NULL; 11 11 12 /* -------------------------------------------------------- */ 13 /*2 14 * change all global variables to fit the description of the new ring 15 */ 16 17 void p_SetGlobals(const ring r, BOOLEAN complete) 18 { 19 // // // if (r->ppNoether!=NULL) p_Delete(&r->ppNoether,r); // ??? 20 21 if (complete) 22 { 23 test &= ~ TEST_RINGDEP_OPTS; 24 test |= r->options; 25 } 26 } 27 12 28 void rChangeCurrRing(ring r) 13 29 { 14 30 currRing = r; 15 31 currQuotient = r->qideal; 16 test &= ~ TEST_RINGDEP_OPTS; 17 test |= r->options; 32 //------------ global variables related to coefficients ------------ 33 nSetChar(r->cf); 34 //------------ global variables related to polys ------------------- 35 p_SetGlobals(r); 18 36 } 37 /* 38 39 /// internally changes the gloabl ring and resets the relevant 40 /// global variables: 41 /// SHOULD BE DEPRECATED NOW...? 42 void rChangeCurrRing(ring r) 43 { 44 // if (!rMinpolyIsNULL(currRing)) 45 // { 46 // omCheckAddr(currRing->cf->minpoly); 47 // } 48 //------------ set global ring vars -------------------------------- 49 //currRing = r; 50 //currQuotient=NULL; 51 if (r != NULL) 52 { 53 rTest(r); 54 //------------ set global ring vars -------------------------------- 55 //currQuotient=r->qideal; 56 57 //------------ global variables related to coefficients ------------ 58 nSetChar(r->cf); 59 60 //------------ global variables related to polys ------------------- 61 p_SetGlobals(r); 62 //------------ global variables related to factory ----------------- 63 } 64 } 65 */ -
kernel/polys.h
r32cc7e r85fd90 13 13 14 14 extern ring currRing; 15 extern void rChangeCurrRing(ring r); 15 void rChangeCurrRing(ring r); 16 17 void p_SetGlobals(const ring r, BOOLEAN complete = TRUE); 16 18 17 19 #include <coeffs/numbers.h> -
libpolys/polys/monomials/p_polys.cc
r32cc7e r85fd90 2958 2958 } 2959 2959 2960 /* -------------------------------------------------------- */2961 /*22962 * change all global variables to fit the description of the new ring2963 */2964 2965 void p_SetGlobals(const ring r, BOOLEAN complete)2966 {2967 // // // if (r->ppNoether!=NULL) p_Delete(&r->ppNoether,r); // ???2968 2969 if (complete)2970 {2971 test &= ~ TEST_RINGDEP_OPTS;2972 test |= r->options;2973 }2974 }2975 2960 // 2976 2961 // resets the pFDeg and pLDeg: if pLDeg is not given, it is -
libpolys/polys/monomials/p_polys.h
r32cc7e r85fd90 1890 1890 1891 1891 /*-------------ring management:----------------------*/ 1892 void p_SetGlobals(const ring r, BOOLEAN complete = TRUE);1893 1892 1894 1893 // resets the pFDeg and pLDeg: if pLDeg is not given, it is -
libpolys/polys/monomials/ring.cc
r32cc7e r85fd90 102 102 // return FALSE; 103 103 //} 104 105 /*106 107 /// internally changes the gloabl ring and resets the relevant108 /// global variables:109 /// SHOULD BE DEPRECATED NOW...?110 void rChangeCurrRing(ring r)111 {112 // if (!rMinpolyIsNULL(currRing))113 // {114 // omCheckAddr(currRing->cf->minpoly);115 // }116 //------------ set global ring vars --------------------------------117 //currRing = r;118 //currQuotient=NULL;119 if (r != NULL)120 {121 rTest(r);122 //------------ set global ring vars --------------------------------123 //currQuotient=r->qideal;124 125 //------------ global variables related to coefficients ------------126 nSetChar(r->cf);127 128 //------------ global variables related to polys -------------------129 p_SetGlobals(r);130 //------------ global variables related to factory -----------------131 }132 }133 */134 104 135 105 ring rDefault(const coeffs cf, int N, char **n,int ord_size, int *ord, int *block0, int *block1)
Note: See TracChangeset
for help on using the changeset viewer.