Changeset 70d976 in git


Ignore:
Timestamp:
Mar 10, 2014, 2:15:11 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
daa13f7cda0d499a1e8ef40d88b9b73bf2494fc2
Parents:
283b70e49eea4578aec6c525038a9ce8df08977bc31461d231f9fdd0c0b673f01d45452a804692e0
Message:
Merge pull request #535 from surface-smoothers/update.memoryholes.HOWTO

update FindMemoryHoles howto
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).
     1Here is a HowTo for locating memory holes in Singular:
     2
     30.) 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
     91.) configure Singular with options
     10     " --enable-debug --with-track-fl --with-track-backtrace "
     11     or similar (see available options from 'cd omalloc/ && ./configure --help )
    3122.) Use system("mtrack", [<level>, [<filename>]]) to get a report about
    413    unused memory, where
  • Singular/iparith.cc

    rc31461 r70d976  
    25262526  const int n = L->nr; assume (n >= 0);
    25272527  std::vector<ideal> V(n + 1);
    2528  
     2528
    25292529  for(int i = n; i >= 0; i--) V[i] = (ideal)(L->m[i].Data());
    2530    
     2530
    25312531  res->data=interpolation(V, (intvec*)v->Data());
    25322532  setFlag(res,FLAG_STD);
     
    51145114  switch (t)
    51155115  {
    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;
    51365137    case DEF_CMD:
    51375138    case NONE:           res->data=omStrDup("none"); break;
  • libpolys/polys/monomials/ring.h

    rc31461 r70d976  
    416416#ifdef HAVE_RINGS
    417417static 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) ); }
    419419
    420420static 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) ); }
    422422
    423423static 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) ); }
    425425
    426426static 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) ); }
    428428
    429429static inline BOOLEAN rField_is_Ring(const ring r)
Note: See TracChangeset for help on using the changeset viewer.