SUGC 0.1.0__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.
- sugc-0.1.0/.cargo/config.toml +2 -0
- sugc-0.1.0/.github/workflows/CI.yml +52 -0
- sugc-0.1.0/.github/workflows/publish.yml +134 -0
- sugc-0.1.0/.gitignore +88 -0
- sugc-0.1.0/CITATION.cff +25 -0
- sugc-0.1.0/CLAUDE.md +13 -0
- sugc-0.1.0/Cargo.lock +321 -0
- sugc-0.1.0/Cargo.toml +22 -0
- sugc-0.1.0/LICENSE +21 -0
- sugc-0.1.0/PKG-INFO +73 -0
- sugc-0.1.0/README.md +45 -0
- sugc-0.1.0/conda/meta.yaml +49 -0
- sugc-0.1.0/examples/pairs_1d.ipynb +323 -0
- sugc-0.1.0/examples/pairs_smu.ipynb +403 -0
- sugc-0.1.0/pyproject.toml +53 -0
- sugc-0.1.0/python/sugc/__init__.py +181 -0
- sugc-0.1.0/sugc/cell_list.rs +81 -0
- sugc-0.1.0/sugc/lib.rs +25 -0
- sugc-0.1.0/sugc/pairs_1d.rs +111 -0
- sugc-0.1.0/sugc/pairs_2d.rs +200 -0
- sugc-0.1.0/sugc/pairs_npoint.rs +256 -0
- sugc-0.1.0/sugc/pairs_npoint_gpu.rs +22 -0
- sugc-0.1.0/sugc/pairs_smu.rs +192 -0
- sugc-0.1.0/tests/performance/benchmark_1m.py +208 -0
- sugc-0.1.0/tests/performance/benchmark_corrfunc.py +135 -0
- sugc-0.1.0/tests/performance/benchmark_npoint.py +25 -0
- sugc-0.1.0/tests/performance/benchmark_scale.py +118 -0
- sugc-0.1.0/tests/performance/benchmark_smu.py +134 -0
- sugc-0.1.0/tests/unit/test_npoint.py +134 -0
- sugc-0.1.0/tests/unit/test_pairs_1d.py +333 -0
- sugc-0.1.0/tests/unit/test_pairs_2d.py +263 -0
- sugc-0.1.0/tests/unit/test_pairs_smu.py +114 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
- master
|
|
8
|
+
pull_request:
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
lint:
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
- uses: astral-sh/setup-uv@v5
|
|
20
|
+
- uses: actions/setup-python@v5
|
|
21
|
+
with:
|
|
22
|
+
python-version: '3.11'
|
|
23
|
+
- name: Install lint dependencies
|
|
24
|
+
run: uv pip install --system ruff black
|
|
25
|
+
- name: Run Ruff
|
|
26
|
+
run: ruff check python/ tests/
|
|
27
|
+
- name: Run Black
|
|
28
|
+
run: black --check python/ tests/
|
|
29
|
+
|
|
30
|
+
unit-tests:
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
strategy:
|
|
33
|
+
matrix:
|
|
34
|
+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
|
|
35
|
+
steps:
|
|
36
|
+
- uses: actions/checkout@v4
|
|
37
|
+
- uses: astral-sh/setup-uv@v5
|
|
38
|
+
- uses: actions/setup-python@v5
|
|
39
|
+
with:
|
|
40
|
+
python-version: ${{ matrix.python-version }}
|
|
41
|
+
- name: Install test dependencies
|
|
42
|
+
run: uv pip install --system pytest numpy matplotlib
|
|
43
|
+
- name: Build extension wheel
|
|
44
|
+
uses: PyO3/maturin-action@v1
|
|
45
|
+
with:
|
|
46
|
+
command: build
|
|
47
|
+
args: --release --out dist
|
|
48
|
+
container: off
|
|
49
|
+
- name: Install built wheel
|
|
50
|
+
run: uv pip install --system dist/sugc-*.whl
|
|
51
|
+
- name: Run unit tests
|
|
52
|
+
run: python -m pytest tests/unit/ -v
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
name: Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v*'
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
linux:
|
|
11
|
+
runs-on: ubuntu-22.04
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
- uses: actions/setup-python@v5
|
|
18
|
+
with:
|
|
19
|
+
python-version: '3.9'
|
|
20
|
+
- uses: PyO3/maturin-action@v1
|
|
21
|
+
with:
|
|
22
|
+
target: ${{ matrix.target }}
|
|
23
|
+
args: --release --out dist
|
|
24
|
+
manylinux: auto
|
|
25
|
+
- uses: actions/upload-artifact@v4
|
|
26
|
+
with:
|
|
27
|
+
name: wheels-linux-${{ matrix.target }}
|
|
28
|
+
path: dist
|
|
29
|
+
|
|
30
|
+
musllinux:
|
|
31
|
+
runs-on: ubuntu-22.04
|
|
32
|
+
strategy:
|
|
33
|
+
matrix:
|
|
34
|
+
target: [x86_64, x86, aarch64, armv7]
|
|
35
|
+
steps:
|
|
36
|
+
- uses: actions/checkout@v4
|
|
37
|
+
- uses: actions/setup-python@v5
|
|
38
|
+
with:
|
|
39
|
+
python-version: '3.9'
|
|
40
|
+
- uses: PyO3/maturin-action@v1
|
|
41
|
+
with:
|
|
42
|
+
target: ${{ matrix.target }}
|
|
43
|
+
args: --release --out dist
|
|
44
|
+
manylinux: musllinux_1_2
|
|
45
|
+
- uses: actions/upload-artifact@v4
|
|
46
|
+
with:
|
|
47
|
+
name: wheels-musllinux-${{ matrix.target }}
|
|
48
|
+
path: dist
|
|
49
|
+
|
|
50
|
+
windows:
|
|
51
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
52
|
+
strategy:
|
|
53
|
+
matrix:
|
|
54
|
+
platform:
|
|
55
|
+
- runner: windows-latest
|
|
56
|
+
target: x64
|
|
57
|
+
python_arch: x64
|
|
58
|
+
- runner: windows-latest
|
|
59
|
+
target: x86
|
|
60
|
+
python_arch: x86
|
|
61
|
+
- runner: windows-11-arm
|
|
62
|
+
target: aarch64
|
|
63
|
+
python_arch: arm64
|
|
64
|
+
steps:
|
|
65
|
+
- uses: actions/checkout@v4
|
|
66
|
+
- uses: actions/setup-python@v5
|
|
67
|
+
with:
|
|
68
|
+
python-version: '3.11'
|
|
69
|
+
architecture: ${{ matrix.platform.python_arch }}
|
|
70
|
+
- uses: PyO3/maturin-action@v1
|
|
71
|
+
with:
|
|
72
|
+
target: ${{ matrix.platform.target }}
|
|
73
|
+
args: --release --out dist
|
|
74
|
+
- uses: actions/upload-artifact@v4
|
|
75
|
+
with:
|
|
76
|
+
name: wheels-windows-${{ matrix.platform.target }}
|
|
77
|
+
path: dist
|
|
78
|
+
|
|
79
|
+
macos:
|
|
80
|
+
runs-on: macos-latest
|
|
81
|
+
strategy:
|
|
82
|
+
matrix:
|
|
83
|
+
target: [x86_64, aarch64]
|
|
84
|
+
steps:
|
|
85
|
+
- uses: actions/checkout@v4
|
|
86
|
+
- uses: actions/setup-python@v5
|
|
87
|
+
with:
|
|
88
|
+
python-version: '3.9'
|
|
89
|
+
- uses: PyO3/maturin-action@v1
|
|
90
|
+
with:
|
|
91
|
+
target: ${{ matrix.target }}
|
|
92
|
+
args: --release --out dist
|
|
93
|
+
- uses: actions/upload-artifact@v4
|
|
94
|
+
with:
|
|
95
|
+
name: wheels-macos-${{ matrix.target }}
|
|
96
|
+
path: dist
|
|
97
|
+
|
|
98
|
+
sdist:
|
|
99
|
+
runs-on: ubuntu-latest
|
|
100
|
+
steps:
|
|
101
|
+
- uses: actions/checkout@v4
|
|
102
|
+
- uses: PyO3/maturin-action@v1
|
|
103
|
+
with:
|
|
104
|
+
command: sdist
|
|
105
|
+
args: --out dist
|
|
106
|
+
- uses: actions/upload-artifact@v4
|
|
107
|
+
with:
|
|
108
|
+
name: wheels-sdist
|
|
109
|
+
path: dist
|
|
110
|
+
|
|
111
|
+
publish:
|
|
112
|
+
name: Publish to PyPI
|
|
113
|
+
runs-on: ubuntu-latest
|
|
114
|
+
needs: [linux, musllinux, windows, macos, sdist]
|
|
115
|
+
permissions:
|
|
116
|
+
id-token: write
|
|
117
|
+
contents: write
|
|
118
|
+
attestations: write
|
|
119
|
+
steps:
|
|
120
|
+
- uses: actions/download-artifact@v4
|
|
121
|
+
with:
|
|
122
|
+
merge-multiple: true
|
|
123
|
+
path: dist
|
|
124
|
+
- name: Generate artifact attestation
|
|
125
|
+
uses: actions/attest-build-provenance@v2
|
|
126
|
+
with:
|
|
127
|
+
subject-path: dist/*
|
|
128
|
+
- name: Create GitHub Release
|
|
129
|
+
uses: softprops/action-gh-release@v2
|
|
130
|
+
with:
|
|
131
|
+
files: dist/*
|
|
132
|
+
generate_release_notes: true
|
|
133
|
+
- name: Publish to PyPI
|
|
134
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
sugc-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Rust
|
|
2
|
+
/target
|
|
3
|
+
*.so
|
|
4
|
+
*.d
|
|
5
|
+
|
|
6
|
+
# Python
|
|
7
|
+
__pycache__/
|
|
8
|
+
.pytest_cache/
|
|
9
|
+
*.py[cod]
|
|
10
|
+
*.egg-info/
|
|
11
|
+
*.egg
|
|
12
|
+
.installed.cfg
|
|
13
|
+
.Python
|
|
14
|
+
.venv/
|
|
15
|
+
venv/
|
|
16
|
+
env/
|
|
17
|
+
|
|
18
|
+
# Build / packaging
|
|
19
|
+
build/
|
|
20
|
+
dist/
|
|
21
|
+
develop-eggs/
|
|
22
|
+
eggs/
|
|
23
|
+
sdist/
|
|
24
|
+
parts/
|
|
25
|
+
var/
|
|
26
|
+
lib/
|
|
27
|
+
lib64/
|
|
28
|
+
include/
|
|
29
|
+
man/
|
|
30
|
+
bin/
|
|
31
|
+
pip-log.txt
|
|
32
|
+
pip-selfcheck.json
|
|
33
|
+
|
|
34
|
+
# Test / coverage
|
|
35
|
+
htmlcov/
|
|
36
|
+
.tox/
|
|
37
|
+
.coverage
|
|
38
|
+
coverage.xml
|
|
39
|
+
nosetests.xml
|
|
40
|
+
|
|
41
|
+
# OS
|
|
42
|
+
.DS_Store
|
|
43
|
+
Thumbs.db
|
|
44
|
+
|
|
45
|
+
# Editors
|
|
46
|
+
.idea/
|
|
47
|
+
.vscode/
|
|
48
|
+
*.swp
|
|
49
|
+
*.swo
|
|
50
|
+
|
|
51
|
+
# Python version managers
|
|
52
|
+
.python-version
|
|
53
|
+
|
|
54
|
+
# uv
|
|
55
|
+
.uv/
|
|
56
|
+
uv.lock
|
|
57
|
+
|
|
58
|
+
# AI tools — Claude Code
|
|
59
|
+
.claude/settings.local.json
|
|
60
|
+
|
|
61
|
+
# AI tools — general (Cursor, Copilot, Windsurf, etc.)
|
|
62
|
+
.cursor/
|
|
63
|
+
.cursorignore
|
|
64
|
+
.cursorindexingignore
|
|
65
|
+
.github/copilot-instructions.md
|
|
66
|
+
.codeium/
|
|
67
|
+
.windsurf/
|
|
68
|
+
.claude/
|
|
69
|
+
.antigravitycli/
|
|
70
|
+
|
|
71
|
+
# LLM context / scratch files
|
|
72
|
+
*.prompt
|
|
73
|
+
*.llm
|
|
74
|
+
llm_context/
|
|
75
|
+
|
|
76
|
+
# Jupyter
|
|
77
|
+
.ipynb_checkpoints/
|
|
78
|
+
|
|
79
|
+
# Docs build
|
|
80
|
+
docs/_build/
|
|
81
|
+
|
|
82
|
+
# Scratch / temp
|
|
83
|
+
temp.md
|
|
84
|
+
|
|
85
|
+
# Misc
|
|
86
|
+
*.pdf
|
|
87
|
+
GEMINI.md
|
|
88
|
+
*.slurm
|
sugc-0.1.0/CITATION.cff
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
message: "If you use this software, please cite it using the metadata below."
|
|
3
|
+
type: software
|
|
4
|
+
title: "SUGC: Sparse Unbiased Galaxy Clustering"
|
|
5
|
+
version: 0.1.0
|
|
6
|
+
date-released: 2026-05-27
|
|
7
|
+
license: MIT
|
|
8
|
+
url: "https://github.com/OscarHickman/SUGC"
|
|
9
|
+
repository-code: "https://github.com/OscarHickman/SUGC"
|
|
10
|
+
authors:
|
|
11
|
+
- family-names: Hickman
|
|
12
|
+
given-names: Oscar
|
|
13
|
+
affiliation: "Institute for Computational Cosmology, Durham University"
|
|
14
|
+
email: oscar.hickman17@alumni.imperial.ac.uk
|
|
15
|
+
keywords:
|
|
16
|
+
- cosmology
|
|
17
|
+
- galaxy clustering
|
|
18
|
+
- correlation functions
|
|
19
|
+
- N-body simulations
|
|
20
|
+
- astronomy
|
|
21
|
+
abstract: >
|
|
22
|
+
Correlation function counters for galaxy catalogues drawn from sparse
|
|
23
|
+
partitions of periodic N-body simulations. Computes xi(r), xi(s, mu)
|
|
24
|
+
multipoles, and high-order N-point functions with corrections for
|
|
25
|
+
statistical under-sampling in m-of-k partition realisations.
|
sugc-0.1.0/CLAUDE.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# CLAUDE.md
|
|
2
|
+
|
|
3
|
+
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
|
4
|
+
|
|
5
|
+
## What this project is
|
|
6
|
+
|
|
7
|
+
**SUGC** — **Sparse Correction Of Pair Estimators** — computes multi-point correlation functions for galaxy catalogues drawn from **m of k independent realisations** of a periodic simulation box.
|
|
8
|
+
|
|
9
|
+
### Key Capabilities:
|
|
10
|
+
- **Optimized Counters:** Phase 2 Rust backend with Z-sorting, SoA reordering, and constant-time binning.
|
|
11
|
+
- **Statistics:** xi(r), xi(s, mu) multipoles, and high-order NPCFs (N=3, 4, ...).
|
|
12
|
+
- **Hybrid Backend:** Hardware-aware selector for CPU/GPU execution.
|
|
13
|
+
- **Compatibility:** Fully ABI3 compatible (Python 3.9+).
|
sugc-0.1.0/Cargo.lock
ADDED
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "SUGC"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
dependencies = [
|
|
9
|
+
"numpy",
|
|
10
|
+
"pyo3",
|
|
11
|
+
"rayon",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
[[package]]
|
|
15
|
+
name = "autocfg"
|
|
16
|
+
version = "1.5.0"
|
|
17
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
|
+
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
|
19
|
+
|
|
20
|
+
[[package]]
|
|
21
|
+
name = "cfg-if"
|
|
22
|
+
version = "1.0.4"
|
|
23
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
24
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
25
|
+
|
|
26
|
+
[[package]]
|
|
27
|
+
name = "crossbeam-deque"
|
|
28
|
+
version = "0.8.6"
|
|
29
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
30
|
+
checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51"
|
|
31
|
+
dependencies = [
|
|
32
|
+
"crossbeam-epoch",
|
|
33
|
+
"crossbeam-utils",
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
[[package]]
|
|
37
|
+
name = "crossbeam-epoch"
|
|
38
|
+
version = "0.9.18"
|
|
39
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
40
|
+
checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"
|
|
41
|
+
dependencies = [
|
|
42
|
+
"crossbeam-utils",
|
|
43
|
+
]
|
|
44
|
+
|
|
45
|
+
[[package]]
|
|
46
|
+
name = "crossbeam-utils"
|
|
47
|
+
version = "0.8.21"
|
|
48
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
49
|
+
checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
|
|
50
|
+
|
|
51
|
+
[[package]]
|
|
52
|
+
name = "either"
|
|
53
|
+
version = "1.15.0"
|
|
54
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
55
|
+
checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
|
|
56
|
+
|
|
57
|
+
[[package]]
|
|
58
|
+
name = "heck"
|
|
59
|
+
version = "0.5.0"
|
|
60
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
61
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
62
|
+
|
|
63
|
+
[[package]]
|
|
64
|
+
name = "indoc"
|
|
65
|
+
version = "2.0.7"
|
|
66
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
67
|
+
checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
|
|
68
|
+
dependencies = [
|
|
69
|
+
"rustversion",
|
|
70
|
+
]
|
|
71
|
+
|
|
72
|
+
[[package]]
|
|
73
|
+
name = "libc"
|
|
74
|
+
version = "0.2.186"
|
|
75
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
76
|
+
checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
|
|
77
|
+
|
|
78
|
+
[[package]]
|
|
79
|
+
name = "matrixmultiply"
|
|
80
|
+
version = "0.3.10"
|
|
81
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
82
|
+
checksum = "a06de3016e9fae57a36fd14dba131fccf49f74b40b7fbdb472f96e361ec71a08"
|
|
83
|
+
dependencies = [
|
|
84
|
+
"autocfg",
|
|
85
|
+
"rawpointer",
|
|
86
|
+
]
|
|
87
|
+
|
|
88
|
+
[[package]]
|
|
89
|
+
name = "memoffset"
|
|
90
|
+
version = "0.9.1"
|
|
91
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
92
|
+
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
|
93
|
+
dependencies = [
|
|
94
|
+
"autocfg",
|
|
95
|
+
]
|
|
96
|
+
|
|
97
|
+
[[package]]
|
|
98
|
+
name = "ndarray"
|
|
99
|
+
version = "0.16.1"
|
|
100
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
101
|
+
checksum = "882ed72dce9365842bf196bdeedf5055305f11fc8c03dee7bb0194a6cad34841"
|
|
102
|
+
dependencies = [
|
|
103
|
+
"matrixmultiply",
|
|
104
|
+
"num-complex",
|
|
105
|
+
"num-integer",
|
|
106
|
+
"num-traits",
|
|
107
|
+
"portable-atomic",
|
|
108
|
+
"portable-atomic-util",
|
|
109
|
+
"rawpointer",
|
|
110
|
+
]
|
|
111
|
+
|
|
112
|
+
[[package]]
|
|
113
|
+
name = "num-complex"
|
|
114
|
+
version = "0.4.6"
|
|
115
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
116
|
+
checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
|
|
117
|
+
dependencies = [
|
|
118
|
+
"num-traits",
|
|
119
|
+
]
|
|
120
|
+
|
|
121
|
+
[[package]]
|
|
122
|
+
name = "num-integer"
|
|
123
|
+
version = "0.1.46"
|
|
124
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
125
|
+
checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
|
|
126
|
+
dependencies = [
|
|
127
|
+
"num-traits",
|
|
128
|
+
]
|
|
129
|
+
|
|
130
|
+
[[package]]
|
|
131
|
+
name = "num-traits"
|
|
132
|
+
version = "0.2.19"
|
|
133
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
134
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
135
|
+
dependencies = [
|
|
136
|
+
"autocfg",
|
|
137
|
+
]
|
|
138
|
+
|
|
139
|
+
[[package]]
|
|
140
|
+
name = "numpy"
|
|
141
|
+
version = "0.23.0"
|
|
142
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
143
|
+
checksum = "b94caae805f998a07d33af06e6a3891e38556051b8045c615470a71590e13e78"
|
|
144
|
+
dependencies = [
|
|
145
|
+
"libc",
|
|
146
|
+
"ndarray",
|
|
147
|
+
"num-complex",
|
|
148
|
+
"num-integer",
|
|
149
|
+
"num-traits",
|
|
150
|
+
"pyo3",
|
|
151
|
+
"rustc-hash",
|
|
152
|
+
]
|
|
153
|
+
|
|
154
|
+
[[package]]
|
|
155
|
+
name = "once_cell"
|
|
156
|
+
version = "1.21.4"
|
|
157
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
158
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
159
|
+
|
|
160
|
+
[[package]]
|
|
161
|
+
name = "portable-atomic"
|
|
162
|
+
version = "1.13.1"
|
|
163
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
164
|
+
checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
|
|
165
|
+
|
|
166
|
+
[[package]]
|
|
167
|
+
name = "portable-atomic-util"
|
|
168
|
+
version = "0.2.7"
|
|
169
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
170
|
+
checksum = "c2a106d1259c23fac8e543272398ae0e3c0b8d33c88ed73d0cc71b0f1d902618"
|
|
171
|
+
dependencies = [
|
|
172
|
+
"portable-atomic",
|
|
173
|
+
]
|
|
174
|
+
|
|
175
|
+
[[package]]
|
|
176
|
+
name = "proc-macro2"
|
|
177
|
+
version = "1.0.106"
|
|
178
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
179
|
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
|
180
|
+
dependencies = [
|
|
181
|
+
"unicode-ident",
|
|
182
|
+
]
|
|
183
|
+
|
|
184
|
+
[[package]]
|
|
185
|
+
name = "pyo3"
|
|
186
|
+
version = "0.23.5"
|
|
187
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
188
|
+
checksum = "7778bffd85cf38175ac1f545509665d0b9b92a198ca7941f131f85f7a4f9a872"
|
|
189
|
+
dependencies = [
|
|
190
|
+
"cfg-if",
|
|
191
|
+
"indoc",
|
|
192
|
+
"libc",
|
|
193
|
+
"memoffset",
|
|
194
|
+
"once_cell",
|
|
195
|
+
"portable-atomic",
|
|
196
|
+
"pyo3-build-config",
|
|
197
|
+
"pyo3-ffi",
|
|
198
|
+
"pyo3-macros",
|
|
199
|
+
"unindent",
|
|
200
|
+
]
|
|
201
|
+
|
|
202
|
+
[[package]]
|
|
203
|
+
name = "pyo3-build-config"
|
|
204
|
+
version = "0.23.5"
|
|
205
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
206
|
+
checksum = "94f6cbe86ef3bf18998d9df6e0f3fc1050a8c5efa409bf712e661a4366e010fb"
|
|
207
|
+
dependencies = [
|
|
208
|
+
"once_cell",
|
|
209
|
+
"target-lexicon",
|
|
210
|
+
]
|
|
211
|
+
|
|
212
|
+
[[package]]
|
|
213
|
+
name = "pyo3-ffi"
|
|
214
|
+
version = "0.23.5"
|
|
215
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
216
|
+
checksum = "e9f1b4c431c0bb1c8fb0a338709859eed0d030ff6daa34368d3b152a63dfdd8d"
|
|
217
|
+
dependencies = [
|
|
218
|
+
"libc",
|
|
219
|
+
"pyo3-build-config",
|
|
220
|
+
]
|
|
221
|
+
|
|
222
|
+
[[package]]
|
|
223
|
+
name = "pyo3-macros"
|
|
224
|
+
version = "0.23.5"
|
|
225
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
226
|
+
checksum = "fbc2201328f63c4710f68abdf653c89d8dbc2858b88c5d88b0ff38a75288a9da"
|
|
227
|
+
dependencies = [
|
|
228
|
+
"proc-macro2",
|
|
229
|
+
"pyo3-macros-backend",
|
|
230
|
+
"quote",
|
|
231
|
+
"syn",
|
|
232
|
+
]
|
|
233
|
+
|
|
234
|
+
[[package]]
|
|
235
|
+
name = "pyo3-macros-backend"
|
|
236
|
+
version = "0.23.5"
|
|
237
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
238
|
+
checksum = "fca6726ad0f3da9c9de093d6f116a93c1a38e417ed73bf138472cf4064f72028"
|
|
239
|
+
dependencies = [
|
|
240
|
+
"heck",
|
|
241
|
+
"proc-macro2",
|
|
242
|
+
"pyo3-build-config",
|
|
243
|
+
"quote",
|
|
244
|
+
"syn",
|
|
245
|
+
]
|
|
246
|
+
|
|
247
|
+
[[package]]
|
|
248
|
+
name = "quote"
|
|
249
|
+
version = "1.0.45"
|
|
250
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
251
|
+
checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
|
|
252
|
+
dependencies = [
|
|
253
|
+
"proc-macro2",
|
|
254
|
+
]
|
|
255
|
+
|
|
256
|
+
[[package]]
|
|
257
|
+
name = "rawpointer"
|
|
258
|
+
version = "0.2.1"
|
|
259
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
260
|
+
checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
|
|
261
|
+
|
|
262
|
+
[[package]]
|
|
263
|
+
name = "rayon"
|
|
264
|
+
version = "1.12.0"
|
|
265
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
266
|
+
checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d"
|
|
267
|
+
dependencies = [
|
|
268
|
+
"either",
|
|
269
|
+
"rayon-core",
|
|
270
|
+
]
|
|
271
|
+
|
|
272
|
+
[[package]]
|
|
273
|
+
name = "rayon-core"
|
|
274
|
+
version = "1.13.0"
|
|
275
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
276
|
+
checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
|
|
277
|
+
dependencies = [
|
|
278
|
+
"crossbeam-deque",
|
|
279
|
+
"crossbeam-utils",
|
|
280
|
+
]
|
|
281
|
+
|
|
282
|
+
[[package]]
|
|
283
|
+
name = "rustc-hash"
|
|
284
|
+
version = "2.1.2"
|
|
285
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
286
|
+
checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe"
|
|
287
|
+
|
|
288
|
+
[[package]]
|
|
289
|
+
name = "rustversion"
|
|
290
|
+
version = "1.0.22"
|
|
291
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
292
|
+
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
|
293
|
+
|
|
294
|
+
[[package]]
|
|
295
|
+
name = "syn"
|
|
296
|
+
version = "2.0.117"
|
|
297
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
298
|
+
checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
|
|
299
|
+
dependencies = [
|
|
300
|
+
"proc-macro2",
|
|
301
|
+
"quote",
|
|
302
|
+
"unicode-ident",
|
|
303
|
+
]
|
|
304
|
+
|
|
305
|
+
[[package]]
|
|
306
|
+
name = "target-lexicon"
|
|
307
|
+
version = "0.12.16"
|
|
308
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
309
|
+
checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
|
|
310
|
+
|
|
311
|
+
[[package]]
|
|
312
|
+
name = "unicode-ident"
|
|
313
|
+
version = "1.0.24"
|
|
314
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
315
|
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
316
|
+
|
|
317
|
+
[[package]]
|
|
318
|
+
name = "unindent"
|
|
319
|
+
version = "0.2.4"
|
|
320
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
321
|
+
checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
|
sugc-0.1.0/Cargo.toml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "SUGC"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
license = "MIT"
|
|
6
|
+
license-file = "LICENSE"
|
|
7
|
+
readme = "README.md"
|
|
8
|
+
|
|
9
|
+
[lib]
|
|
10
|
+
name = "_sugc"
|
|
11
|
+
crate-type = ["cdylib"]
|
|
12
|
+
path = "sugc/lib.rs"
|
|
13
|
+
|
|
14
|
+
[dependencies]
|
|
15
|
+
pyo3 = { version = "0.23", features = ["extension-module", "abi3-py39"] }
|
|
16
|
+
numpy = "0.23"
|
|
17
|
+
rayon = "1"
|
|
18
|
+
|
|
19
|
+
[profile.release]
|
|
20
|
+
lto = true
|
|
21
|
+
codegen-units = 1
|
|
22
|
+
panic = "abort"
|
sugc-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 OscarHickman
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|