Changeset 4b7db8 in git


Ignore:
Timestamp:
Oct 12, 2012, 12:44:08 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
e2c21a2830ff139bc7175101732d2b833c240e49
Parents:
7ec05993a90b8b8d6cd1f03ce111460365a98194
Message:
fix: how to build ring from lists without order for components (rCompose)
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r7ec0599 r4b7db8  
    8181#include <polys/coeffrings.h>
    8282
    83 lists rDecompose(const ring r); ring rCompose(const lists  L);
     83lists rDecompose(const ring r);
     84ring rCompose(const lists  L, const BOOLEAN check_comp=TRUE);
    8485
    8586
  • Singular/ipshell.cc

    r7ec0599 r4b7db8  
    21302130}
    21312131
    2132 ring rCompose(const lists  L)
     2132ring rCompose(const lists  L, const BOOLEAN check_comp)
    21332133{
    21342134  if ((L->nr!=3)
     
    22082208      if( R->cf == NULL )
    22092209      {
    2210         ring extRing = rCompose((lists)L->m[0].Data());
     2210        ring extRing = rCompose((lists)L->m[0].Data(),FALSE);
    22112211
    22122212        if (extRing==NULL)
     
    24492449        Werror("ordering incomplete: size (%d) should be %d",R->block1[j],R->N);
    24502450        goto rCompose_err;
     2451      }
     2452    }
     2453    if (check_comp)
     2454    {
     2455      BOOLEAN comp_order=FALSE;
     2456      int jj;
     2457      for(jj=0;jj<n;jj++)
     2458      {
     2459        if ((R->order[jj]==ringorder_c) ||
     2460            (R->order[jj]==ringorder_C)) { comp_order=TRUE; break; }
     2461      }
     2462      if (!comp_order)
     2463      {
     2464        R->order=(int*)omRealloc0Size(R->order,n*sizeof(int),(n+1)*sizeof(int));
     2465        R->block0=(int*)omRealloc0Size(R->block0,n*sizeof(int),(n+1)*sizeof(int));
     2466        R->block1=(int*)omRealloc0Size(R->block1,n*sizeof(int),(n+1)*sizeof(int));
     2467        R->wvhdl=(int**)omRealloc0Size(R->wvhdl,n*sizeof(int_ptr),(n+1)*sizeof(int_ptr));
     2468        R->order[n-1]=ringorder_C;
     2469        R->block0[n-1]=0;
     2470        R->block1[n-1]=0;
     2471        R->wvhdl[n-1]=NULL;
     2472        n++;
    24512473      }
    24522474    }
  • Tst/Manual/setglobalrings.res.gz.uu

    r7ec0599 r4b7db8  
    1 begin 640 setglobalrings.res.gz
    2 M'XL("*9?<DX``W-E=&=L;V)A;')I;F=S+G)E<P"]4M%*PS`4?>]77(8/+81N
    3 MZYS*BD74EX&(;+Y+TM8:3).29'/=UWO3=MU0H>S%^]+;<VY.SKED_?JX?`:`
    4 M:0)/RWL866-#P=DH!NS>N.36#V+/?2%)P.2V$(I1H;DL3"CSK]!8:KUUIQ)U
    5 M*H56+%7;5JEG9PFX<["Z]2>$$A80?T=JL@](5AVG+G]>XPP<R'D"=ZO8&X^Q
    6 M3S^HIJG--3>6I["`28M'4"%1YLC@'^(4&+14R66E1`U=]4?DIF0XK=YA2[5!
    7 M?-;B33&ATD^W(L25SO(F0U:=3!QK`1)O-J[=00W[/V2B4YF'/MD5)GL92/;+
    8 L9C1D4PS:Q.7T'J[==L\V,?^G79V7Y29I7K![GAOC3X/XPOL&T6//\NP"````
     1begin 644 setglobalrings.res.gz
     2M'XL("-OS=U```W-E=&=L;V)A;')I;F=S+G)E<P"]4]%.@S`4?><K;A8?(&G8
     3M!D[-B(U17Y888S;?30N(C:4E;3?'OMX6&%MT">J#]X7+.;>GY]S`ZOE^\0@`
     4M4PP/BUL8&6U"SN@H`=N],,&,'R2>>P+&H'-3<$D)5TP4.A3Y1Z@-,=ZJ4XDZ
     5ME4))FLI-J]2S,09W#I;7_@011`/D;U&-=@'*JL/4^==KG($].<-PLTR\\=CV
     6MZ1M1)#6Y8MJP%.8P:?$(*DN4N67LF\4)4&BIDHE*\AJZZH^(=4GMM'R%#5':
     7MXG&+-T6Y3-_=BBPN598W&;+J:.)0<Q#V9NW:+=2P.R$3'<O<]<DN;+*G@63?
     8M;$9#-OF@3;N<GYN\=.O_M<O9/RWSKV'CTV&O</,/N`]\K?UID)QYGX?O8&0N
     9#`P``
    910`
    1011end
  • Tst/Manual/setglobalrings.stat

    r7ec0599 r4b7db8  
    1 1 >> tst_memory_0 :: 1316104113:3132- exportiert :3-1-3:ix86-Linux:mamawutz:260384
    2 1 >> tst_memory_1 :: 1316104113:3132- exportiert :3-1-3:ix86-Linux:mamawutz:666332
    3 1 >> tst_memory_2 :: 1316104113:3132- exportiert :3-1-3:ix86-Linux:mamawutz:699116
    4 1 >> tst_timer_1 :: 1316104113:3132- exportiert :3-1-3:ix86-Linux:mamawutz:14
     11 >> tst_memory_0 :: 1350038491:3150:3-1-5:ix86-Linux:mamawutz:263036
     21 >> tst_memory_1 :: 1350038491:3150:3-1-5:ix86-Linux:mamawutz:2239256
     31 >> tst_memory_2 :: 1350038491:3150:3-1-5:ix86-Linux:mamawutz:2272040
     41 >> tst_timer_1 :: 1350038491:3150:3-1-5:ix86-Linux:mamawutz:6
Note: See TracChangeset for help on using the changeset viewer.