Changeset e7cc1eb in git


Ignore:
Timestamp:
Dec 1, 2023, 11:32:32 AM (6 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
968c3de8bc8f0e58c68d8e1efc5ed7b3c6fdaf32
Parents:
873fc1222e995d7cb33f79d8f1792ce418c8c72c
Message:
idMinEmbedding_with_map_v, 4.3.2p11
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r873fc1 re7cc1eb  
    30843084      intvec **ww=&w;
    30853085      ideal mat;
    3086       int *g=(int*)omAlloc((v_id->rank+1)*sizeof(int));
     3086      int *g=(int*)omAlloc(v_id->rank*sizeof(int));
    30873087      res->data = (char *)idMinEmbedding_with_map_v(v_id,ww,mat,g);
    30883088      atSet(res,omStrDup("isHomog"),*ww,INTVEC_CMD);
     
    30903090      idDelete(&IDIDEAL(h));
    30913091      IDIDEAL(h)=mat;
    3092       for(int i=0;i<=v_id->rank;i++) Print("v[%d]:%d ",i,g[i]); PrintLn();
    3093       omFree(g);
     3092      for(int i=0;i<v_id->rank;i++) Print("v[%d]:%d ",i+1,g[i]); PrintLn();
     3093      omFreeSize(g,v_id->rank*sizeof(int));
    30943094      return FALSE;
    30953095    }
    30963096  }
    30973097  ideal mat;
    3098   int *g=(int*)omAlloc((v_id->rank+1)*sizeof(int));
     3098  int *g=(int*)omAlloc(v_id->rank*sizeof(int));
    30993099  res->data = (char *)idMinEmbedding_with_map_v(v_id,NULL,mat,g);
    3100   for(int i=0;i<=v_id->rank;i++) Print("v[%d]:%d ",i,g[i]); PrintLn();
    3101   omFree(g);
     3100  for(int i=0;i<v_id->rank;i++) Print("v[%d]:%d ",i+1,g[i]); PrintLn();
     3101  omFreeSize(g,v_id->rank*sizeof(int));
    31023102  idhdl h=(idhdl)ma->data;
    31033103  idDelete(&IDIDEAL(h));
  • kernel/ideals.cc

    r873fc1 re7cc1eb  
    27502750}
    27512751
    2752 ideal idMinEmbedding_with_map_v(ideal arg,intvec **w, ideal &trans, int* red_comp)
    2753 {
     2752ideal idMinEmbedding_with_map_v(ideal arg,intvec **w, ideal &trans, int* g)
     2753{
     2754  int *red_comp=(int*)omAlloc((arg->rank+1)*sizeof(int));
    27542755  int del=0;
    27552756  ideal res=idMinEmbedding1(arg,FALSE,w,red_comp,del);
    27562757  trans=idLift(arg,res,NULL,TRUE,FALSE,FALSE,NULL);
    2757   //idDeleteComps(res,red_comp,del);
     2758  int curr=0;
     2759  for(int i=1;i<=arg->rank;i++)
     2760  {
     2761    g[i-1]=red_comp[i];
     2762    if (red_comp[i]==curr) g[i-1]=0;
     2763    curr=red_comp[i];
     2764  }
     2765  omFree(red_comp);
    27582766  return res;
    27592767}
  • kernel/mod2.h

    r873fc1 re7cc1eb  
    2020#define SINGULAR_MINOR_VERSION 3
    2121#define SINGULAR_SUB_VERSION 2
    22 #define SINGULAR_PATCHLEVEL 10
     22#define SINGULAR_PATCHLEVEL 11
    2323#define S_ROOT_DIR ""
    2424
Note: See TracChangeset for help on using the changeset viewer.