Changeset 2d0b446 in git
- Timestamp:
- Feb 23, 2021, 11:27:18 AM (3 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 1d57ef213b0947c87a3f00a2ec18f563d13a13fa
- Parents:
- 0aaff947bac7f5defc09a61304cf2cf83ab6dbede553ba7d16aaa3e3c4c747a4e9bb56c9d7de2a2e
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2021-02-23 11:27:18+01:00
- git-committer:
- GitHub <noreply@github.com>2021-02-23 11:27:18+01:00
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
.github/workflows/ci-sage.yml
r0aaff9 r2d0b446 43 43 tags: 44 44 - '*' 45 workflow_dispatch: 46 # Allow to run manually 45 47 46 48 env: … … 56 58 SAGE_REPO: sagemath/sage 57 59 SAGE_REF: develop 58 # Temporarily test on the branch from sage ticket for singular 4. 1.3upgrade60 # Temporarily test on the branch from sage ticket for singular 4.2 upgrade 59 61 SAGE_TRAC_GIT: git://trac.sagemath.org/sage.git 60 62 SAGE_TRAC_COMMAND: try … … 99 101 CONFIGURE_ARGS: --enable-experimental-packages --enable-download-from-upstream-url 100 102 SAGE_FAT_BINARY: yes 103 SAGE_LOCAL: /opt/sage-singular-${{ github.sha }} 101 104 102 105 runs-on: windows-latest … … 143 146 run: | 144 147 choco --version 145 PACKAGES= $(sed 's/#.*//;' ./build/pkgs/cygwin.txt ./build/pkgs/cygwin-bootstrap.txt)148 PACKAGES="python38 python38-pip" 146 149 choco install $PACKAGES --source cygwin 147 150 - name: Update Sage packages from upstream artifact 148 151 run: | 149 152 C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && ls -l upstream/ && export PATH="$(pwd)/build/bin:$PATH:/usr/local/bin:/usr/bin" && (cd upstream && bash -x update-pkgs.sh) && git diff' 150 - name: bootstrap 151 run: | 152 C:\\tools\\cygwin\\bin\\bash -l -c 'export PATH=/usr/local/bin:/usr/bin && cd $(cygpath -u "$GITHUB_WORKSPACE") && env && ./bootstrap' 153 - name: install additional cygwin packages with choco 154 if: contains(matrix.pkgs, 'standard') 155 shell: bash {0} 156 run: | 157 PACKAGES=$(sed 's/#.*//;' ./build/pkgs/*/distros/cygwin.txt) 158 choco install $PACKAGES --source cygwin 159 - name: configure 160 run: | 161 C:\\tools\\cygwin\\bin\\bash -l -c 'export PATH=/usr/local/bin:/usr/bin && cd $(cygpath -u "$GITHUB_WORKSPACE") && ./configure $CONFIGURE_ARGS' 162 - name: make $TARGETS 163 run: | 164 C:\\tools\\cygwin\\bin\\bash -l -x -c 'export PATH=/usr/local/bin:/usr/bin && cd $(cygpath -u "$GITHUB_WORKSPACE") && make -k -w V=0 base-toolchain && make -k -w V=1 $TARGETS' 165 - name: make $TARGETS_OPTIONAL 166 run: | 167 C:\\tools\\cygwin\\bin\\bash -l -x -c 'export PATH=/usr/local/bin:/usr/bin && cd $(cygpath -u "$GITHUB_WORKSPACE") && make -k -w V=1 $TARGETS_OPTIONAL' 153 - name: tox 154 run: | 155 C:\\tools\\cygwin\\bin\\bash -l -x -c 'python3.8 -m pip install tox' 156 C:\\tools\\cygwin\\bin\\bash -l -x -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && PREFIX="${{ env.SAGE_LOCAL }}" tox -e local-cygwin-choco-${{ matrix.pkgs }} -- $TARGETS' 168 157 - name: Prepare logs artifact 169 158 shell: bash … … 185 174 - name: Prepare sage-local artifact 186 175 # We specifically use the cygwin tar so that symlinks are saved/restored correctly on Windows. 187 # We remove the local/lib64 link, which will be recreated by the next stage.188 run: | 189 C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && rm -f local/lib64; tar -cf /tmp/sage-local-${{ env.STAGE }}.tar --remove-files local'176 # We remove the $SAGE_LOCAL/lib64 link, which will be recreated by the next stage. 177 run: | 178 C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && rm -f "${{ env.SAGE_LOCAL }}"/lib64; tar -cf /tmp/sage-local-${{ env.STAGE }}.tar --remove-files "${{ env.SAGE_LOCAL }}"' 190 179 if: always() 191 180 - uses: actions/upload-artifact@v2 … … 204 193 max-parallel: 32 205 194 matrix: 206 tox_system_factor: [ubuntu-trusty, ubuntu-xenial, ubuntu-bionic, ubuntu- eoan, ubuntu-focal, debian-jessie, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17, linuxmint-18, linuxmint-19, linuxmint-19.3, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, centos-7, centos-8, archlinux-latest, slackware-14.2, conda-forge, ubuntu-bionic-i386, ubuntu-eoan-i386, debian-buster-i386, centos-7-i386, raspbian-buster-armhf]195 tox_system_factor: [ubuntu-trusty, ubuntu-xenial, ubuntu-bionic, ubuntu-focal, ubuntu-groovy, ubuntu-hirsute, debian-jessie, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17, linuxmint-18, linuxmint-19, linuxmint-19.3, linuxmint-20.1, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, fedora-32, fedora-33, fedora-34, centos-7, centos-8, gentoo, archlinux-latest, slackware-14.2, conda-forge, ubuntu-bionic-i386, ubuntu-focal-i386, debian-buster-i386, centos-7-i386, raspbian-buster-armhf] 207 196 tox_packages_factor: [minimal, standard] 208 197 env: … … 235 224 run: | 236 225 sudo DEBIAN_FRONTEND=noninteractive apt-get update 237 sudo DEBIAN_FRONTEND=noninteractive apt-get install python-tox python3-setuptools226 sudo DEBIAN_FRONTEND=noninteractive apt-get install tox python3-setuptools 238 227 - name: Update Sage packages from upstream artifact 239 228 run: | … … 283 272 max-parallel: 4 284 273 matrix: 274 os: [ macos-10.15, macos-11.0 ] 285 275 tox_system_factor: [homebrew-macos, homebrew-macos-python3_xcode, homebrew-macos-python3_xcode-nokegonly, conda-forge-macos] 286 276 tox_packages_factor: [minimal, standard] 277 xcode_version_factor: [11.7, default, 12.3] 287 278 288 279 needs: [dist] … … 290 281 env: 291 282 TOX_ENV: local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }} 292 LOGS_ARTIFACT_NAME: logs-commit-${{ github.sha }}-tox-local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }} 283 LOGS_ARTIFACT_NAME: logs-commit-${{ github.sha }}-tox-local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}-${{ matrix.os }}-xcode_${{ matrix.xcode_version_factor }} 293 284 DOCKER_TARGETS: configured with-targets with-targets-optional 294 285 295 286 steps: 296 287 288 - name: Select Xcode version 289 run: | 290 if [ ${{ matrix.xcode_version_factor }} != default ]; then sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode_version_factor }}.app; fi 297 291 - name: Check out SageMath 298 292 uses: actions/checkout@v2 -
Singular/iparith.cc
re553ba r2d0b446 6715 6715 id_Delete((ideal *)&I,currRing); 6716 6716 res->data = (char *)m; 6717 return FALSE; 6718 } 6719 static BOOLEAN jjMODULO3(leftv res, leftv u, leftv v, leftv w) 6720 { 6721 if (w->rtyp!=IDHDL) return TRUE; /* idhdhl required */ 6722 intvec *w_u=(intvec *)atGet(u,"isHomog",INTVEC_CMD); 6723 tHomog hom=testHomog; 6724 if (w_u!=NULL) 6725 { 6726 w_u=ivCopy(w_u); 6727 hom=isHomog; 6728 } 6729 intvec *w_v=(intvec *)atGet(v,"isHomog",INTVEC_CMD); 6730 if (w_v!=NULL) 6731 { 6732 w_v=ivCopy(w_v); 6733 hom=isHomog; 6734 } 6735 if ((w_u!=NULL) && (w_v==NULL)) 6736 w_v=ivCopy(w_u); 6737 if ((w_v!=NULL) && (w_u==NULL)) 6738 w_u=ivCopy(w_v); 6739 ideal u_id=(ideal)u->Data(); 6740 ideal v_id=(ideal)v->Data(); 6741 if (w_u!=NULL) 6742 { 6743 if ((*w_u).compare((w_v))!=0) 6744 { 6745 WarnS("incompatible weights"); 6746 delete w_u; w_u=NULL; 6747 hom=testHomog; 6748 } 6749 else 6750 { 6751 if ((!idTestHomModule(u_id,currRing->qideal,w_v)) 6752 || (!idTestHomModule(v_id,currRing->qideal,w_v))) 6753 { 6754 WarnS("wrong weights"); 6755 delete w_u; w_u=NULL; 6756 hom=testHomog; 6757 } 6758 } 6759 } 6760 idhdl h=(idhdl)w->data; 6761 res->data = (char *)idModulo(u_id,v_id ,hom,&w_u, &(h->data.umatrix)); 6762 if (w_u!=NULL) 6763 { 6764 atSet(res,omStrDup("isHomog"),w_u,INTVEC_CMD); 6765 } 6766 delete w_v; 6767 //if (TEST_OPT_RETURN_SB) setFlag(res,FLAG_STD); 6717 6768 return FALSE; 6718 6769 } -
Singular/iparith.inc
re553ba r2d0b446 687 687 // operation: matrix (module, int, int) -> matrix 688 688 // operation: matrix (matrix, int, int) -> matrix 689 // operation: modulo (ideal, ideal, matrix) -> module 690 // operation: modulo (module, module, matrix) -> module 689 691 // operation: smatrix (module, int, int) -> smatrix 690 692 // operation: smatrix (smatrix, int, int) -> smatrix … … 1485 1487 iiArithAddCmd("mod", 0, 37, '/', 124); 1486 1488 iiArithAddCmd("module", 0, 278, 313, 125); 1487 iiArithAddCmd("modulo", 0, 451, CMD_2 , 126);1489 iiArithAddCmd("modulo", 0, 451, CMD_23, 126); 1488 1490 iiArithAddCmd("monitor", 0, 452, CMD_12, 127); 1489 1491 iiArithAddCmd("monomial", 0, 292, CMD_1, 128); -
Singular/table.h
re553ba r2d0b446 850 850 ,{D(jjMATRIX_Mo), MATRIX_CMD, MATRIX_CMD, MODUL_CMD, INT_CMD, INT_CMD, ALLOW_NC |ALLOW_RING} 851 851 ,{D(jjMATRIX_Ma), MATRIX_CMD, MATRIX_CMD, MATRIX_CMD, INT_CMD, INT_CMD, ALLOW_NC |ALLOW_RING} 852 ,{D(jjMODULO3), MODULO_CMD, MODUL_CMD, IDEAL_CMD, IDEAL_CMD, MATRIX_CMD, ALLOW_NC |ALLOW_RING} 853 ,{D(jjMODULO3), MODULO_CMD, MODUL_CMD, MODUL_CMD, MODUL_CMD, MATRIX_CMD, ALLOW_NC |ALLOW_RING} 852 854 ,{D(jjSMATRIX_Mo), SMATRIX_CMD,SMATRIX_CMD,MODUL_CMD, INT_CMD, INT_CMD, ALLOW_NC |ALLOW_RING} 853 855 ,{D(jjSMATRIX_Mo), SMATRIX_CMD,SMATRIX_CMD,SMATRIX_CMD,INT_CMD, INT_CMD, ALLOW_NC |ALLOW_RING} … … 1114 1116 { "mod", 0, '%' , MULDIV_OP}, 1115 1117 { "module", 0, MODUL_CMD , RING_DECL_LIST}, 1116 { "modulo", 0, MODULO_CMD , CMD_2 },1118 { "modulo", 0, MODULO_CMD , CMD_23}, 1117 1119 { "monitor", 0, MONITOR_CMD , CMD_12}, 1118 1120 { "monomial", 0, MONOM_CMD , CMD_1}, -
kernel/ideals.cc
re553ba r2d0b446 2284 2284 */ 2285 2285 //ideal idModulo (ideal h2,ideal h1) 2286 ideal idModulo (ideal h2,ideal h1, tHomog hom, intvec ** w )2286 ideal idModulo (ideal h2,ideal h1, tHomog hom, intvec ** w, matrix *T) 2287 2287 { 2288 2288 intvec *wtmp=NULL; 2289 if (T!=NULL) idDelete((ideal*)T); 2289 2290 2290 2291 int i,k,rk,flength=0,slength,length; … … 2405 2406 2406 2407 idTest(s_temp); 2407 unsigned save_opt ;2408 unsigned save_opt,save_opt2; 2408 2409 SI_SAVE_OPT1(save_opt); 2410 SI_SAVE_OPT2(save_opt2); 2409 2411 si_opt_1 |= Sy_bit(OPT_REDTAIL_SYZ); 2410 2412 ideal s_temp1 = kStd(s_temp,currRing->qideal,hom,&wtmp,NULL,length); 2411 2413 SI_RESTORE_OPT1(save_opt); 2414 SI_RESTORE_OPT2(save_opt2); 2412 2415 2413 2416 //if (wtmp!=NULL) Print("output weights:");wtmp->show(1);PrintLn(); … … 2421 2424 if (wtmp!=NULL) delete wtmp; 2422 2425 2423 for (i=0;i<IDELEMS(s_temp1);i++) 2424 { 2425 if ((s_temp1->m[i]!=NULL) 2426 && (((int)pGetComp(s_temp1->m[i]))<=length)) 2427 { 2428 p_Delete(&(s_temp1->m[i]),currRing); 2429 } 2430 else 2431 { 2432 p_Shift(&(s_temp1->m[i]),-length,currRing); 2426 if (T==NULL) 2427 { 2428 for (i=0;i<IDELEMS(s_temp1);i++) 2429 { 2430 if (s_temp1->m[i]!=NULL) 2431 { 2432 if (((int)pGetComp(s_temp1->m[i]))<=length) 2433 { 2434 p_Delete(&(s_temp1->m[i]),currRing); 2435 } 2436 else 2437 { 2438 p_Shift(&(s_temp1->m[i]),-length,currRing); 2439 } 2440 } 2441 } 2442 } 2443 else 2444 { 2445 *T=mpNew(IDELEMS(s_temp1),IDELEMS(h2)); 2446 for (i=0;i<IDELEMS(s_temp1);i++) 2447 { 2448 if (s_temp1->m[i]!=NULL) 2449 { 2450 if (((int)pGetComp(s_temp1->m[i]))<=length) 2451 { 2452 do 2453 { 2454 p_LmDelete(&(s_temp1->m[i]),currRing); 2455 } while((int)pGetComp(s_temp1->m[i])<=length); 2456 poly q = prMoveR( s_temp1->m[i], syz_ring,orig_ring); 2457 s_temp1->m[i] = NULL; 2458 if (q!=NULL) 2459 { 2460 q=pReverse(q); 2461 do 2462 { 2463 poly p = q; 2464 long t=pGetComp(p); 2465 pIter(q); 2466 pNext(p) = NULL; 2467 pSetComp(p,0); 2468 pSetmComp(p); 2469 MATELEM(*T,(int)t-length,i) = pAdd(MATELEM(*T,(int)t-k,i),p); 2470 } while (q != NULL); 2471 } 2472 } 2473 else 2474 { 2475 p_Shift(&(s_temp1->m[i]),-length,currRing); 2476 } 2477 } 2433 2478 } 2434 2479 } -
kernel/ideals.h
re553ba r2d0b446 189 189 } 190 190 191 ideal idModulo (ideal h1,ideal h2, tHomog h=testHomog, intvec ** w=NULL );191 ideal idModulo (ideal h1,ideal h2, tHomog h=testHomog, intvec ** w=NULL, matrix *T=NULL); 192 192 matrix idCoeffOfKBase(ideal arg, ideal kbase, poly how); 193 193
Note: See TracChangeset
for help on using the changeset viewer.