Changeset e7cc1eb in git
- Timestamp:
- Dec 1, 2023, 11:32:32 AM (6 months ago)
- Branches:
- (u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
- Children:
- 968c3de8bc8f0e58c68d8e1efc5ed7b3c6fdaf32
- Parents:
- 873fc1222e995d7cb33f79d8f1792ce418c8c72c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
r873fc1 re7cc1eb 3084 3084 intvec **ww=&w; 3085 3085 ideal mat; 3086 int *g=(int*)omAlloc( (v_id->rank+1)*sizeof(int));3086 int *g=(int*)omAlloc(v_id->rank*sizeof(int)); 3087 3087 res->data = (char *)idMinEmbedding_with_map_v(v_id,ww,mat,g); 3088 3088 atSet(res,omStrDup("isHomog"),*ww,INTVEC_CMD); … … 3090 3090 idDelete(&IDIDEAL(h)); 3091 3091 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)); 3094 3094 return FALSE; 3095 3095 } 3096 3096 } 3097 3097 ideal mat; 3098 int *g=(int*)omAlloc( (v_id->rank+1)*sizeof(int));3098 int *g=(int*)omAlloc(v_id->rank*sizeof(int)); 3099 3099 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)); 3102 3102 idhdl h=(idhdl)ma->data; 3103 3103 idDelete(&IDIDEAL(h)); -
kernel/ideals.cc
r873fc1 re7cc1eb 2750 2750 } 2751 2751 2752 ideal idMinEmbedding_with_map_v(ideal arg,intvec **w, ideal &trans, int* red_comp) 2753 { 2752 ideal idMinEmbedding_with_map_v(ideal arg,intvec **w, ideal &trans, int* g) 2753 { 2754 int *red_comp=(int*)omAlloc((arg->rank+1)*sizeof(int)); 2754 2755 int del=0; 2755 2756 ideal res=idMinEmbedding1(arg,FALSE,w,red_comp,del); 2756 2757 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); 2758 2766 return res; 2759 2767 } -
kernel/mod2.h
r873fc1 re7cc1eb 20 20 #define SINGULAR_MINOR_VERSION 3 21 21 #define SINGULAR_SUB_VERSION 2 22 #define SINGULAR_PATCHLEVEL 1 022 #define SINGULAR_PATCHLEVEL 11 23 23 #define S_ROOT_DIR "" 24 24
Note: See TracChangeset
for help on using the changeset viewer.