khoca 0.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. khoca-0.3/.github/workflows/push_docker.yml +20 -0
  2. khoca-0.3/.github/workflows/run_tests.yml +37 -0
  3. khoca-0.3/.github/workflows/upload_pypi.yml +18 -0
  4. khoca-0.3/.gitignore +11 -0
  5. khoca-0.3/COPYING +674 -0
  6. khoca-0.3/Dockerfile +26 -0
  7. khoca-0.3/INSTALL +36 -0
  8. khoca-0.3/MANIFEST.in +1 -0
  9. khoca-0.3/Makefile +83 -0
  10. khoca-0.3/PKG-INFO +221 -0
  11. khoca-0.3/README.md +191 -0
  12. khoca-0.3/__init__.py +317 -0
  13. khoca-0.3/bin/BraidToMyPD.py +51 -0
  14. khoca-0.3/bin/KrasnerGaussToMyPD.py +43 -0
  15. khoca-0.3/bin/KrasnerGaussToMyPDLib.py +122 -0
  16. khoca-0.3/bin/pseudoBraidToKrasnerGauss.py +41 -0
  17. khoca-0.3/bin/pseudoBraidToKrasnerGaussLib.py +46 -0
  18. khoca-0.3/converters/binToHuman.py +116 -0
  19. khoca-0.3/converters/humanToBin.py +131 -0
  20. khoca-0.3/converters/montesinos.py +143 -0
  21. khoca-0.3/data/KhovanovMinus +11 -0
  22. khoca-0.3/data/KhovanovMinus.bin +0 -0
  23. khoca-0.3/data/KhovanovPlus +11 -0
  24. khoca-0.3/data/KhovanovPlus.bin +0 -0
  25. khoca-0.3/data/KrasnerMinus +20 -0
  26. khoca-0.3/data/KrasnerMinus.bin +0 -0
  27. khoca-0.3/data/KrasnerPlus +20 -0
  28. khoca-0.3/data/KrasnerPlus.bin +0 -0
  29. khoca-0.3/docker/entrypoint.sh +4 -0
  30. khoca-0.3/khoca.egg-info/PKG-INFO +221 -0
  31. khoca-0.3/khoca.egg-info/SOURCES.txt +69 -0
  32. khoca-0.3/khoca.egg-info/dependency_links.txt +1 -0
  33. khoca-0.3/khoca.egg-info/not-zip-safe +1 -0
  34. khoca-0.3/khoca.egg-info/top_level.txt +6 -0
  35. khoca-0.3/khoca.py +446 -0
  36. khoca-0.3/pyproject.toml +8 -0
  37. khoca-0.3/pytest.ini +4 -0
  38. khoca-0.3/setup.cfg +7 -0
  39. khoca-0.3/setup.py +125 -0
  40. khoca-0.3/src/compilerFlagsInfo.cpp +1 -0
  41. khoca-0.3/src/krasner/krasner.cpp +821 -0
  42. khoca-0.3/src/krasner/krasner.h +494 -0
  43. khoca-0.3/src/krasner/krasnerExplicitTemplates.cpp +72 -0
  44. khoca-0.3/src/planar_algebra/coefficient_rings.cpp +457 -0
  45. khoca-0.3/src/planar_algebra/coefficient_rings.h +303 -0
  46. khoca-0.3/src/planar_algebra/coefficient_rings_explicitTemplates.cpp +38 -0
  47. khoca-0.3/src/planar_algebra/explicitTemplates.cpp +87 -0
  48. khoca-0.3/src/planar_algebra/planar_algebra.cpp +1159 -0
  49. khoca-0.3/src/planar_algebra/planar_algebra.h +729 -0
  50. khoca-0.3/src/planar_algebra/smith.cpp +217 -0
  51. khoca-0.3/src/planar_algebra/smith.h +22 -0
  52. khoca-0.3/src/planar_algebra/sparsemat.cpp +715 -0
  53. khoca-0.3/src/planar_algebra/sparsemat.h +288 -0
  54. khoca-0.3/src/planar_algebra/sparsematExplicitTemplates.cpp +125 -0
  55. khoca-0.3/src/python_interface/pui.cpp +18863 -0
  56. khoca-0.3/src/python_interface/pui.pyx +288 -0
  57. khoca-0.3/src/python_interface/pythonInterface.cpp +471 -0
  58. khoca-0.3/src/python_interface/pythonInterface.h +71 -0
  59. khoca-0.3/src/shared.cpp +71 -0
  60. khoca-0.3/src/shared.h +95 -0
@@ -0,0 +1,20 @@
1
+ name: Publish Docker
2
+
3
+ on:
4
+ create:
5
+ tag:
6
+ - '*'
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@master
14
+ - name: Publish to Registry
15
+ uses: elgohr/Publish-Docker-Github-Action@master
16
+ with:
17
+ name: soehms/khoca
18
+ username: ${{ secrets.DOCKER_USER }}
19
+ password: ${{ secrets.DOCKER_API_TOKEN }}
20
+ tag_names: true
@@ -0,0 +1,37 @@
1
+ # This workflow runs tests to build Khoca on verois systems
2
+
3
+ name: Run Tests
4
+
5
+ # Triggers the workflow on push or pull request events and manually
6
+ on: [push, pull_request, workflow_dispatch]
7
+
8
+ jobs:
9
+ # This workflow contains one job called build
10
+ build:
11
+ name: Build Khoca
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ # Checks-out the repository under $GITHUB_WORKSPACE, so our job can access it
16
+ - name: Checkout code
17
+ id: checkout_code
18
+ uses: actions/checkout@v2
19
+
20
+ # Installs dependencies
21
+ - name: Install Dependencies
22
+ id: dependencies
23
+ run: |
24
+ sudo apt-get update -y
25
+ sudo apt-get install -y make g++ python3 python3-pip libgmp-dev pari-gp2c
26
+ pip3 install cython
27
+
28
+ # Building Khoca
29
+ - name: Make
30
+ id: make
31
+ run: make
32
+
33
+ # Run a Test (should result to 1)
34
+ - name: Run Test
35
+ id: run_test
36
+ run: |
37
+ ./khoca.py 0 0.0 0 braidaBaB calc0 | grep -c "t^-2q^4 + t^-1q^2 + t^0q^0 + t^1q^-2 + t^2q^-4"
@@ -0,0 +1,18 @@
1
+ name: PyPI Deployer
2
+ on:
3
+ push:
4
+ tags:
5
+ - "*" # Push events of new tags
6
+ workflow_dispatch:
7
+ # Allow to run manually
8
+
9
+ jobs:
10
+ Linux-build:
11
+ runs-on: ubuntu-latest
12
+ env:
13
+ TWINE_USERNAME: ${{ secrets.PYPI_USER }}
14
+ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
15
+ steps:
16
+ - uses: actions/checkout@v2
17
+ - name: build and upload manylinux wheels
18
+ uses: Niraj-Kamdar/manylinux-wheel-builder@master
khoca-0.3/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ bin/__pycache__/
2
+ bin/pui.so
3
+ src/krasner/krasner.o
4
+ src/planar_algebra/coefficient_rings.o
5
+ src/planar_algebra/planar_algebra.o
6
+ src/planar_algebra/smith.o
7
+ src/planar_algebra/sparsemat.o
8
+ src/python_interface/pui.cpp
9
+ src/python_interface/pui.o
10
+ src/python_interface/pythonInterface.o
11
+ src/shared.o