Changeset 950a94 in git


Ignore:
Timestamp:
Apr 5, 2021, 8:53:07 PM (3 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
3b920ed3c3de324ec3518b5635feb03d0ab430ba4ad5cdee02a913f5a35346f60310f09d427a9e92ec35b06cd0d64d898912171ca267d9a5c53beee3
Parents:
03514358a007bf6bb923bc7b510ec15fb877158b68efee280d28d45c36fe198205a93c29e0641ea8
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2021-04-05 20:53:07+02:00
git-committer:
GitHub <noreply@github.com>2021-04-05 20:53:07+02:00
Message:
Merge pull request #1078 from mkoeppe/DEFAULT_CHECKING_PATH_refactor_flint_check

m4/flint-check.m4: Refactor
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • Tst/Manual/letterplace_reduce.res.gz.uu

    r68efee r950a94  
    1 begin 640 letterplace_reduce.res.gz
    2 M'XL("$W=UUX"`VQE='1E<G!L86-E7W)E9'5C92YR97,`55'+;H,P$+SS%:NH
    3 M!W`<!$G3AU`MM>J%J.HAZ3V"X"(DBQ#C*-A?W[7C0",?9A^S,ZOU[N<S_P:`
    4 ME,%7_@$SU:M8-.4L`XSV3=NH,,H"B\`8"*X4EYTH#GPO>74^\+CEE[A7A0IV
    5 M7FGIE7XEYW5Y%1N;*P9C_!B#;-H:)+Q!0L.!:FHB6G43>\VNC"TRK-R[J'DI
    6 MBU!26$<3[8E!4_%"0(X\30:B80&&:&(H8$(&EV)$'1A,L4<&V\4'<TSQ(1HL
    7 M&T0[92:#YYO!!@W4Y=BK*LS_+?#"H#L*#=W-'V6T=S%>^$[PU0^<<,"M9-NW
    8 MM>ZH:8(W<)<..[I!3T>U`PN/<U<9^>G(/SE^,G:6T^W35>S^UW[<N0_3*'L(
    9 *_@"QU8$#"@(`````
     1begin 644 letterplace_reduce.res.gz
     2M'XL("(ZL5&`"`VQE='1E<G!L86-E7W)E9'5C92YR97,`?91-;Z,P$(;O^16C
     3M:@_&=0F0KZ[0(@&]I%KMH>FY%1!OA,H2((X:^/4[-A\VTF[%83SXF1G[G9$/
     4MKT_[7P#@!O!S'\&=N`B[R-,['W#UGI>Y():_D!:"``HN!&^J(LGX>\./UXS;
     5M)?^T+R(1B\.0R1LR_6XX/Z5]LFES%<"T7MO0Y.4)&O@!#B,WUK+.8L=*TYN@
     6M)UZ0D.G"XL33)B$-@XVEL6T`^9$G!>R1:^F-MO``'6UIQP`=>E,NKI@R';JX
     7M1V]R%S^X1Q<_M!W^[M#*J$X7V(T%GK&`^#Q?Q)'LC0,\!E"=BQ:JL3ZF:8<J
     8MW9!XEO#[$%!C@#J2W!Z/-4-=!S502I.*/6--A<J`A\'>JS\3[TY\K7AGVO&T
     9M]N[*AH^\**#Q>_NB"ZX-;&.TB#BLMA@)6<1BBSWI-KG;_[9IIT5R4<3R^B?E
     10M#93RVO6;AQ=VEP07!C5*F2!2UC1$[6H:T5BQ-8UII-E1Q;1G(\7&&-.S(8TG
     11MUG,&-NO96+$AQO1L1$/-NN8\X46R#RY(PD*+&5XT\U"1T4EG8#H#4Q/,9F`V
     12M`S,$]8&P<^=*Y.>28&L/D>4;[FN2%P:Z^GI4O?4T'@DE>'\+!5"6)@QP7F"Y
     13M=/3,>!L31Y$4+JW&P>2W$Z^U@5"U1D;],V:G!\Y[M-6[(Q^4ZX6XEO]M\1<T
     14'B5"CH@0`````
    1015`
    1116end
  • Tst/Manual/letterplace_reduce.stat

    r68efee r950a94  
    1 1 >> tst_memory_0 :: 1591205197:4132, 64 bit:4.1.3:x86_64-Linux:nepomuck:254776
    2 1 >> tst_memory_1 :: 1591205197:4132, 64 bit:4.1.3:x86_64-Linux:nepomuck:2183168
    3 1 >> tst_memory_2 :: 1591205197:4132, 64 bit:4.1.3:x86_64-Linux:nepomuck:2261944
    4 1 >> tst_timer_1 :: 1591205197:4132, 64 bit:4.1.3:x86_64-Linux:nepomuck:7
     11 >> tst_memory_0 :: 1616161934:4201, 64 bit:4.2.0:x86_64-Darwin:hoth.localdomain:385640
     21 >> tst_memory_1 :: 1616161934:4201, 64 bit:4.2.0:x86_64-Darwin:hoth.localdomain:2151440
     31 >> tst_memory_2 :: 1616161934:4201, 64 bit:4.2.0:x86_64-Darwin:hoth.localdomain:2265744
     41 >> tst_timer_1 :: 1616161934:4201, 64 bit:4.2.0:x86_64-Darwin:hoth.localdomain:5
  • Tst/Manual/letterplace_reduce.tst

    r68efee r950a94  
    1111reduce(q,J);
    1212
     13kill r; kill R;
     14
     15ring r = (0,q),(A,B,C),Dp;
     16ring R = freeAlgebra(r,7);
     17number nq = q^2 - 1/(q^2);
     18poly a = nq*A + q*B*C - 1/q*C*B;
     19poly b = nq*B + q*C*A - 1/q*A*C;
     20poly c = nq*C + q*A*B - 1/q*B*A;
     21ideal I = bracket(a,A), bracket(a,B), bracket(a,C),bracket(b,A), bracket(b,B), bracket(b,C),bracket(c,A), bracket(c,B), bracket(c,C);
     22option(redSB); option(redTail);
     23ideal J = twostd(I);
     24reduce(a*(A*B) - (A*B)*a, J); //0
     25reduce(a*(B*A) - (B*A)*a, J); // 0
     26reduce(bracket(a, A*B + B*A), J); // 0
     27
    1328tst_status(1);$
  • kernel/GBEngine/kstd2.cc

    r68efee r950a94  
    37823782  omfree(strat->S_2_R);
    37833783  omfree(strat->fromQ);
    3784 #ifdef HAVE_SHIFTBBA
    3785   // only LM of elements in S is shifted
    3786   // necessary to prevent deleting the tail multiple times
    3787   if (rIsLPRing(currRing))
    3788   {
    3789     for (int j = 0; j < IDELEMS(strat->Shdl); j++)
    3790     {
    3791       if (strat->Shdl->m[j]!=NULL && pmFirstVblock(strat->Shdl->m[j]) > 1)
    3792       {
    3793         // otherwise the tail would be freed multiple times
    3794         pNext(strat->Shdl->m[j]) = NULL;
    3795       }
    3796     }
    3797   }
    3798 #endif
    37993784  idDelete(&strat->Shdl);
    38003785  SI_RESTORE_OPT1(save1);
     
    39513936  omfree(strat->S_2_R);
    39523937  omfree(strat->fromQ);
    3953 #ifdef HAVE_SHIFTBBA
    3954   // only LM of elements in S is shifted
    3955   // necessary to prevent deleting the tail multiple times
    3956   if (rIsLPRing(currRing))
    3957   {
    3958     for (int j = 0; j < IDELEMS(strat->Shdl); j++)
    3959     {
    3960       if (strat->Shdl->m[j]!=NULL && pmFirstVblock(strat->Shdl->m[j]) > 1)
    3961       {
    3962         // otherwise the tail would be freed multiple times
    3963         pNext(strat->Shdl->m[j]) = NULL;
    3964       }
    3965     }
    3966   }
    3967 #endif
    39683938  idDelete(&strat->Shdl);
    39693939  SI_RESTORE_OPT1(save1);
  • kernel/GBEngine/kutil.cc

    r68efee r950a94  
    94559455  for (int i = maxPossibleShift; i > 0; i--)
    94569456  {
    9457 
    9458     LObject qq;
    9459     qq.p = pLPCopyAndShiftLM(p.p, i); // don't use Set() because it'll test the poly order
     9457    // NOTE: don't use "shared tails" here. In rare cases it can cause problems
     9458    // in `kNF2` because of lazy poly normalizations.
     9459    LObject qq(p_Copy(p.p, strat->tailRing));
     9460    p_mLPshift(qq.p, i, strat->tailRing);
    94609461    qq.shift = i;
    94619462    strat->initEcart(&qq); // initEcartBBA sets length, pLength, FDeg and ecart
  • m4/flint-check.m4

    r0351435 r950a94  
    1717
    1818AC_ARG_WITH(flint,
    19 [  --with-flint=<path>|yes|no  Use FLINT library. If argument is no, you do not have
    20                             the library installed on your machine (set as
    21                             default). If argument is yes or <empty> that means
    22                             the library is reachable with the standard search
    23                             path (/usr or /usr/local). Otherwise you give the
    24                             <path> to the directory which contain the library.
     19[  --with-flint=<path>|yes|no  Use FLINT library. By default (yes), Singular will
     20                            try to find the library and use it if found.
     21                            If argument is no, Singular will not use the
     22                            library even if it could be found on your machine.
     23                            Otherwise you can give the <path> to the directory
     24                            which contains the library.
    2525             ],
    2626             [if test "x$withval" = xyes ; then
    27                         FLINT_HOME_PATH="${DEFAULT_CHECKING_PATH}"
     27                        FLINT_HOME_PATH="DEFAULTS ${DEFAULT_CHECKING_PATH}"
    2828              elif test "x$withval" != xno ; then
    2929                        FLINT_HOME_PATH="$withval"
    3030             fi],
    31              [FLINT_HOME_PATH="${DEFAULT_CHECKING_PATH}"])
     31             [FLINT_HOME_PATH="DEFAULTS ${DEFAULT_CHECKING_PATH}"])
    3232
    3333dnl Check for existence
     
    3838
    3939flint_found="no"
    40 dnl check for system installed libraries if FLINT_HOME_PATH is the default
    41 if test "$FLINT_HOME_PATH" = "$DEFAULT_CHECKING_PATH" ; then
    42         FLINT_CFLAGS=""
    43         FLINT_LIBS="-lflint -lmpfr -lgmp"
    44 
    45         # we suppose that mpfr and mpir to be in the same place or available by default
    46         CFLAGS=" ${GMP_CPPFLAGS} ${BACKUP_CFLAGS}"
    47         LIBS="${FLINT_LIBS} ${GMP_LIBS} ${BACKUP_LIBS}"
    48 
    49         AC_TRY_LINK([#include <flint/fmpz.h>
    50                     ],
    51                     [fmpz_t x; fmpz_init(x);], [
    52                 flint_found="yes"
    53         ])
    54 fi
    55 
    5640dnl if flint was not previously found, search FLINT_HOME_PATH
    57 if test "x$flint_found" = "xno" ; then
    58         for FLINT_HOME in ${FLINT_HOME_PATH}
    59         do
    60 
     41for FLINT_HOME in ${FLINT_HOME_PATH}
     42do
     43        if test "$FLINT_HOME" = DEFAULTS; then
     44                FLINT_CFLAGS=""
     45                FLINT_LIBS="-lflint -lmpfr -lgmp"
     46        else
    6147                FLINT_CFLAGS="-I${FLINT_HOME}/include/"
    6248                FLINT_LIBS="-L${FLINT_HOME}/lib -Wl,-rpath,${FLINT_HOME}/lib -lflint -lmpfr -lgmp"
     49        fi
    6350
    6451        # we suppose that mpfr and mpir to be in the same place or available by default
     
    7259                        break
    7360                ])
    74         done
    75 fi
     61done
    7662
    7763AC_LANG_POP([C])
Note: See TracChangeset for help on using the changeset viewer.