Changeset 70d976 in git
- Timestamp:
- Mar 10, 2014, 2:15:11 PM (10 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- daa13f7cda0d499a1e8ef40d88b9b73bf2494fc2
- Parents:
- 283b70e49eea4578aec6c525038a9ce8df08977bc31461d231f9fdd0c0b673f01d45452a804692e0
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/HOWTO.FindMemoryHoles
r283b70 r70d976 1 Here is a first short HowTo on how to locate memory holes in Singular: 2 1.) Make sure you build with -DOM_TRACK=5 (e.g. use Singulart, Singularg). 1 Here is a HowTo for locating memory holes in Singular: 2 3 0.) disable optimization and define flag OM_TRACK=5 : 4 set 5 CXXFLAGS=" -O0 -DOM_TRACK=5 " 6 CFLAGS=" -O0 -DOM_TRACK=5 " 7 explicitly, since configure option '--disable-optimizationflags' does not enable -O0 8 9 1.) configure Singular with options 10 " --enable-debug --with-track-fl --with-track-backtrace " 11 or similar (see available options from 'cd omalloc/ && ./configure --help ) 3 12 2.) Use system("mtrack", [<level>, [<filename>]]) to get a report about 4 13 unused memory, where -
Singular/iparith.cc
rc31461 r70d976 2526 2526 const int n = L->nr; assume (n >= 0); 2527 2527 std::vector<ideal> V(n + 1); 2528 2528 2529 2529 for(int i = n; i >= 0; i--) V[i] = (ideal)(L->m[i].Data()); 2530 2530 2531 2531 res->data=interpolation(V, (intvec*)v->Data()); 2532 2532 setFlag(res,FLAG_STD); … … 5114 5114 switch (t) 5115 5115 { 5116 case INT_CMD: res->data=omStrDup("int"); break; 5117 case POLY_CMD: res->data=omStrDup("poly"); break; 5118 case VECTOR_CMD: res->data=omStrDup("vector"); break; 5119 case STRING_CMD: res->data=omStrDup("string"); break; 5120 case INTVEC_CMD: res->data=omStrDup("intvec"); break; 5121 case IDEAL_CMD: res->data=omStrDup("ideal"); break; 5122 case MATRIX_CMD: res->data=omStrDup("matrix"); break; 5123 case MODUL_CMD: res->data=omStrDup("module"); break; 5124 case MAP_CMD: res->data=omStrDup("map"); break; 5125 case PROC_CMD: res->data=omStrDup("proc"); break; 5126 case RING_CMD: res->data=omStrDup("ring"); break; 5127 case QRING_CMD: res->data=omStrDup("qring"); break; 5128 case INTMAT_CMD: res->data=omStrDup("intmat"); break; 5129 case BIGINTMAT_CMD: res->data=omStrDup("bigintmat"); break; 5130 case NUMBER_CMD: res->data=omStrDup("number"); break; 5131 case BIGINT_CMD: res->data=omStrDup("bigint"); break; 5132 case LIST_CMD: res->data=omStrDup("list"); break; 5133 case PACKAGE_CMD: res->data=omStrDup("package"); break; 5134 case LINK_CMD: res->data=omStrDup("link"); break; 5135 case RESOLUTION_CMD: res->data=omStrDup("resolution");break; 5116 case INT_CMD: 5117 case POLY_CMD: 5118 case VECTOR_CMD: 5119 case STRING_CMD: 5120 case INTVEC_CMD: 5121 case IDEAL_CMD: 5122 case MATRIX_CMD: 5123 case MODUL_CMD: 5124 case MAP_CMD: 5125 case PROC_CMD: 5126 case RING_CMD: 5127 case QRING_CMD: 5128 case INTMAT_CMD: 5129 case BIGINTMAT_CMD: 5130 case NUMBER_CMD: 5131 case BIGINT_CMD: 5132 case LIST_CMD: 5133 case PACKAGE_CMD: 5134 case LINK_CMD: 5135 case RESOLUTION_CMD: 5136 res->data=omStrDup(Tok2Cmdname(t)); break; 5136 5137 case DEF_CMD: 5137 5138 case NONE: res->data=omStrDup("none"); break; -
libpolys/polys/monomials/ring.h
rc31461 r70d976 416 416 #ifdef HAVE_RINGS 417 417 static inline BOOLEAN rField_is_Ring_2toM(const ring r) 418 { assume(r != NULL); assume(r->cf != NULL); return ( getCoeffType(r->cf) == n_Z2m &&nCoeff_is_Ring_2toM(r->cf) ); }418 { assume(r != NULL); assume(r->cf != NULL); return ( nCoeff_is_Ring_2toM(r->cf) ); } 419 419 420 420 static inline BOOLEAN rField_is_Ring_ModN(const ring r) 421 { assume(r != NULL); assume(r->cf != NULL); return ( getCoeffType(r->cf) == n_Zn &&nCoeff_is_Ring_ModN(r->cf) ); }421 { assume(r != NULL); assume(r->cf != NULL); return ( nCoeff_is_Ring_ModN(r->cf) ); } 422 422 423 423 static inline BOOLEAN rField_is_Ring_PtoM(const ring r) 424 { assume(r != NULL); assume(r->cf != NULL); return ( getCoeffType(r->cf) == n_Znm &&nCoeff_is_Ring_PtoM(r->cf) ); }424 { assume(r != NULL); assume(r->cf != NULL); return ( nCoeff_is_Ring_PtoM(r->cf) ); } 425 425 426 426 static inline BOOLEAN rField_is_Ring_Z(const ring r) 427 { assume(r != NULL); assume(r->cf != NULL); return ( getCoeffType(r->cf) == n_Z &&nCoeff_is_Ring_Z(r->cf) ); }427 { assume(r != NULL); assume(r->cf != NULL); return ( nCoeff_is_Ring_Z(r->cf) ); } 428 428 429 429 static inline BOOLEAN rField_is_Ring(const ring r)
Note: See TracChangeset
for help on using the changeset viewer.