rgmin 0.9.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.
- rgmin-0.9.0/.gitattributes +1 -0
- rgmin-0.9.0/.github/actionlint.yaml +4 -0
- rgmin-0.9.0/.github/workflows/ci.yml +514 -0
- rgmin-0.9.0/.github/workflows/context7-docs.yml +333 -0
- rgmin-0.9.0/.github/workflows/docs.yml +81 -0
- rgmin-0.9.0/.github/workflows/publish.yml +25 -0
- rgmin-0.9.0/.github/workflows/py-ci.yml +147 -0
- rgmin-0.9.0/.github/workflows/pypi.yml +230 -0
- rgmin-0.9.0/.gitignore +69 -0
- rgmin-0.9.0/.zenodo.json +30 -0
- rgmin-0.9.0/CHANGELOG.md +1549 -0
- rgmin-0.9.0/CITATION.cff +35 -0
- rgmin-0.9.0/CMakeLists.txt +167 -0
- rgmin-0.9.0/CODE_OF_CONDUCT.md +132 -0
- rgmin-0.9.0/CONTRIBUTING.md +95 -0
- rgmin-0.9.0/Cargo.lock +1193 -0
- rgmin-0.9.0/Cargo.toml +119 -0
- rgmin-0.9.0/LICENSE +19 -0
- rgmin-0.9.0/PKG-INFO +201 -0
- rgmin-0.9.0/README.md +153 -0
- rgmin-0.9.0/SECURITY.md +33 -0
- rgmin-0.9.0/Snakefile +167 -0
- rgmin-0.9.0/asv.conf.json +36 -0
- rgmin-0.9.0/bench/README.md +18 -0
- rgmin-0.9.0/bench/atomistic/Cargo.toml +28 -0
- rgmin-0.9.0/bench/atomistic/build.rs +26 -0
- rgmin-0.9.0/bench/atomistic/data/README.md +7 -0
- rgmin-0.9.0/bench/atomistic/data/al_slab.con +612 -0
- rgmin-0.9.0/bench/atomistic/data/pt_heptamer.con +353 -0
- rgmin-0.9.0/bench/atomistic/src/main.rs +1207 -0
- rgmin-0.9.0/bench/atomistic/src/shim.cc +80 -0
- rgmin-0.9.0/bench/beat.md +169 -0
- rgmin-0.9.0/bench/compare.py +286 -0
- rgmin-0.9.0/bench/eon_ref.cpp +621 -0
- rgmin-0.9.0/bench/gate/.gitignore +3 -0
- rgmin-0.9.0/bench/gate/README.md +190 -0
- rgmin-0.9.0/bench/gate/pyproject.toml +31 -0
- rgmin-0.9.0/bench/gate/src/rggate/__init__.py +32 -0
- rgmin-0.9.0/bench/gate/src/rggate/__main__.py +3 -0
- rgmin-0.9.0/bench/gate/src/rggate/bootstrap.py +215 -0
- rgmin-0.9.0/bench/gate/src/rggate/cli.py +98 -0
- rgmin-0.9.0/bench/gate/src/rggate/contract.py +165 -0
- rgmin-0.9.0/bench/gate/src/rggate/equivalence.py +86 -0
- rgmin-0.9.0/bench/gate/src/rggate/km.py +94 -0
- rgmin-0.9.0/bench/gate/src/rggate/pairing.py +257 -0
- rgmin-0.9.0/bench/gate/src/rggate/plot.py +39 -0
- rgmin-0.9.0/bench/gate/src/rggate/profiles.py +110 -0
- rgmin-0.9.0/bench/gate/src/rggate/report.py +690 -0
- rgmin-0.9.0/bench/gate/src/rggate/rng.py +33 -0
- rgmin-0.9.0/bench/gate/src/rggate/sequence.py +207 -0
- rgmin-0.9.0/bench/gate/tests/fixtures/censor_split.csv +8 -0
- rgmin-0.9.0/bench/gate/tests/fixtures/pr38_rgmin.csv +115 -0
- rgmin-0.9.0/bench/gate/tests/fixtures/pr38_rgmin_dim.csv +124 -0
- rgmin-0.9.0/bench/gate/tests/test_bca.py +66 -0
- rgmin-0.9.0/bench/gate/tests/test_equivalence.py +93 -0
- rgmin-0.9.0/bench/gate/tests/test_exit.py +35 -0
- rgmin-0.9.0/bench/gate/tests/test_gehan.py +27 -0
- rgmin-0.9.0/bench/gate/tests/test_golden.py +59 -0
- rgmin-0.9.0/bench/gate/tests/test_jobs.py +41 -0
- rgmin-0.9.0/bench/gate/tests/test_km.py +50 -0
- rgmin-0.9.0/bench/gate/tests/test_philox.py +14 -0
- rgmin-0.9.0/bench/gate/tests/test_plot.py +25 -0
- rgmin-0.9.0/bench/gate/tests/test_rank.py +34 -0
- rgmin-0.9.0/bench/gate/tests/test_sequence.py +138 -0
- rgmin-0.9.0/bench/lindh-scale.md +90 -0
- rgmin-0.9.0/bench/notes.md +233 -0
- rgmin-0.9.0/bench/optimizers/README.md +110 -0
- rgmin-0.9.0/bench/optimizers/analyze.py +421 -0
- rgmin-0.9.0/bench/optimizers/data/lj38.xyz +38 -0
- rgmin-0.9.0/bench/optimizers/data/lj75.xyz +75 -0
- rgmin-0.9.0/bench/optimizers/repro_cell.py +70 -0
- rgmin-0.9.0/bench/optimizers/results-analyzed.json +59386 -0
- rgmin-0.9.0/bench/optimizers/results.json +52635 -0
- rgmin-0.9.0/bench/optimizers/results.md +73 -0
- rgmin-0.9.0/bench/optimizers/run.py +874 -0
- rgmin-0.9.0/bench/optimizers/tests/test_provenance.py +177 -0
- rgmin-0.9.0/bench/pysr_cap.py +70 -0
- rgmin-0.9.0/bench/raw/algo.csv +114 -0
- rgmin-0.9.0/bench/raw/ase.csv +13 -0
- rgmin-0.9.0/bench/raw/beat.csv +456 -0
- rgmin-0.9.0/bench/raw/eon.csv +19 -0
- rgmin-0.9.0/bench/raw/lindh-basin.csv +357 -0
- rgmin-0.9.0/bench/raw/lindh-overhead.csv +17 -0
- rgmin-0.9.0/bench/raw/lindh-scale.csv +136 -0
- rgmin-0.9.0/bench/raw/rgmin.csv +49 -0
- rgmin-0.9.0/bench/raw/scipy.csv +7 -0
- rgmin-0.9.0/bench/raw/spread.csv +10 -0
- rgmin-0.9.0/bench/raw/steps.csv +397 -0
- rgmin-0.9.0/bench/results.md +101 -0
- rgmin-0.9.0/bench/vecops/Cargo.toml +20 -0
- rgmin-0.9.0/bench/vecops/decide.py +348 -0
- rgmin-0.9.0/bench/vecops/src/main.rs +49 -0
- rgmin-0.9.0/benches/ase_dropin.py +359 -0
- rgmin-0.9.0/benches/ase_h2h/distribution.md +60 -0
- rgmin-0.9.0/benches/ase_h2h/results.md +65 -0
- rgmin-0.9.0/benches/ase_h2h.py +387 -0
- rgmin-0.9.0/benches/dist_h2h.py +239 -0
- rgmin-0.9.0/benches/holonomic/data/gromacs_em.txt +61 -0
- rgmin-0.9.0/benches/holonomic/gromacs_em.py +303 -0
- rgmin-0.9.0/benches/holonomic.rs +894 -0
- rgmin-0.9.0/benches/lammps_minstyle/results.md +63 -0
- rgmin-0.9.0/benches/lammps_minstyle.py +219 -0
- rgmin-0.9.0/benches/stop_norm.rs +317 -0
- rgmin-0.9.0/benchflow/README.md +60 -0
- rgmin-0.9.0/benchflow/__init__.py +1 -0
- rgmin-0.9.0/benchflow/config.yaml +5 -0
- rgmin-0.9.0/benchflow/env.sh +16 -0
- rgmin-0.9.0/benchflow/export_results.py +808 -0
- rgmin-0.9.0/benchflow/record_options.py +54 -0
- rgmin-0.9.0/benchflow/requirements.txt +10 -0
- rgmin-0.9.0/benchflow/test_gate.py +530 -0
- rgmin-0.9.0/benchmarks/__init__.py +1 -0
- rgmin-0.9.0/benchmarks/asv_quadratic.c +86 -0
- rgmin-0.9.0/benchmarks/minimize.py +118 -0
- rgmin-0.9.0/branding/logo/README.md +36 -0
- rgmin-0.9.0/branding/logo/rgmin-icon.svg +15 -0
- rgmin-0.9.0/branding/logo/rgmin-logo-dark.svg +21 -0
- rgmin-0.9.0/branding/logo/rgmin-logo-dark.webp +0 -0
- rgmin-0.9.0/branding/logo/rgmin-logo-light.svg +21 -0
- rgmin-0.9.0/branding/logo/rgmin-logo-light.webp +0 -0
- rgmin-0.9.0/branding/logo/rgmin-logo.webp +0 -0
- rgmin-0.9.0/branding/logo/rgmin-notext-dark.svg +14 -0
- rgmin-0.9.0/branding/logo/rgmin-notext-dark.webp +0 -0
- rgmin-0.9.0/branding/logo/rgmin-notext-light.svg +14 -0
- rgmin-0.9.0/branding/logo/rgmin-notext-light.webp +0 -0
- rgmin-0.9.0/build.rs +610 -0
- rgmin-0.9.0/cbindgen.toml +20 -0
- rgmin-0.9.0/ci/limit_pe_exports.py +214 -0
- rgmin-0.9.0/codemeta.json +34 -0
- rgmin-0.9.0/context7.json +33 -0
- rgmin-0.9.0/docs/box_projection_contract.org +39 -0
- rgmin-0.9.0/docs/export.el +54 -0
- rgmin-0.9.0/docs/figures/architecture/draw_hourglass.py +93 -0
- rgmin-0.9.0/docs/figures/architecture/hourglass.png +0 -0
- rgmin-0.9.0/docs/figures/lbfgsb/bench_lbfgsb.py +120 -0
- rgmin-0.9.0/docs/figures/lbfgsb/lj75_tail.png +0 -0
- rgmin-0.9.0/docs/figures/lbfgsb/plot_lbfgsb.py +122 -0
- rgmin-0.9.0/docs/figures/relax-morse/convergence.png +0 -0
- rgmin-0.9.0/docs/figures/relax-morse/plot_convergence.py +57 -0
- rgmin-0.9.0/docs/figures/relax-morse/session_loop.dot +19 -0
- rgmin-0.9.0/docs/figures/relax-morse/session_loop.png +0 -0
- rgmin-0.9.0/docs/figures/strong-scaling/strong_scale_r11.csv +9 -0
- rgmin-0.9.0/docs/figures/strong-scaling/strong_scale_r11.log +4 -0
- rgmin-0.9.0/docs/orgmode/changelog.org +1352 -0
- rgmin-0.9.0/docs/orgmode/contributing/index.org +211 -0
- rgmin-0.9.0/docs/orgmode/explanation/diis.org +21 -0
- rgmin-0.9.0/docs/orgmode/explanation/ecnoise.org +44 -0
- rgmin-0.9.0/docs/orgmode/explanation/linesearch.org +174 -0
- rgmin-0.9.0/docs/orgmode/explanation/precon.org +114 -0
- rgmin-0.9.0/docs/orgmode/explanation/product-manifold.org +731 -0
- rgmin-0.9.0/docs/orgmode/explanation/python-threads.org +40 -0
- rgmin-0.9.0/docs/orgmode/explanation/quasi-newton.org +196 -0
- rgmin-0.9.0/docs/orgmode/explanation/quickmin.org +101 -0
- rgmin-0.9.0/docs/orgmode/explanation/randomized.org +86 -0
- rgmin-0.9.0/docs/orgmode/explanation/scg.org +57 -0
- rgmin-0.9.0/docs/orgmode/explanation/simd.org +52 -0
- rgmin-0.9.0/docs/orgmode/explanation/step-bounds.org +116 -0
- rgmin-0.9.0/docs/orgmode/explanation/trust-region.org +204 -0
- rgmin-0.9.0/docs/orgmode/howto/ase-bench.org +82 -0
- rgmin-0.9.0/docs/orgmode/howto/ase-migration.org +76 -0
- rgmin-0.9.0/docs/orgmode/howto/bench-gate.org +112 -0
- rgmin-0.9.0/docs/orgmode/howto/c-abi.org +469 -0
- rgmin-0.9.0/docs/orgmode/howto/cite.org +99 -0
- rgmin-0.9.0/docs/orgmode/howto/configure.org +111 -0
- rgmin-0.9.0/docs/orgmode/howto/constraints.org +168 -0
- rgmin-0.9.0/docs/orgmode/howto/doxygen.org +36 -0
- rgmin-0.9.0/docs/orgmode/howto/embed-anneal.org +45 -0
- rgmin-0.9.0/docs/orgmode/howto/fire.org +85 -0
- rgmin-0.9.0/docs/orgmode/howto/gpmin.org +125 -0
- rgmin-0.9.0/docs/orgmode/howto/gromacs-cg.org +85 -0
- rgmin-0.9.0/docs/orgmode/howto/gromacs-lbfgs.org +71 -0
- rgmin-0.9.0/docs/orgmode/howto/gromacs-steep.org +75 -0
- rgmin-0.9.0/docs/orgmode/howto/highs-qp.org +81 -0
- rgmin-0.9.0/docs/orgmode/howto/install.org +215 -0
- rgmin-0.9.0/docs/orgmode/howto/irc.org +59 -0
- rgmin-0.9.0/docs/orgmode/howto/lammps-migration.org +182 -0
- rgmin-0.9.0/docs/orgmode/howto/lbfgs-box.org +56 -0
- rgmin-0.9.0/docs/orgmode/howto/level-set.org +46 -0
- rgmin-0.9.0/docs/orgmode/howto/manifolds.org +365 -0
- rgmin-0.9.0/docs/orgmode/howto/noise.org +194 -0
- rgmin-0.9.0/docs/orgmode/howto/precon.org +66 -0
- rgmin-0.9.0/docs/orgmode/howto/python.org +71 -0
- rgmin-0.9.0/docs/orgmode/howto/session.org +203 -0
- rgmin-0.9.0/docs/orgmode/howto/stopping.org +135 -0
- rgmin-0.9.0/docs/orgmode/howto/strong-scaling.org +61 -0
- rgmin-0.9.0/docs/orgmode/index.org +179 -0
- rgmin-0.9.0/docs/orgmode/reference/api.org +92 -0
- rgmin-0.9.0/docs/orgmode/reference/architecture.org +161 -0
- rgmin-0.9.0/docs/orgmode/reference/bibliography.org +24 -0
- rgmin-0.9.0/docs/orgmode/reference/cell-filter.org +120 -0
- rgmin-0.9.0/docs/orgmode/reference/constraints.org +142 -0
- rgmin-0.9.0/docs/orgmode/reference/gromacs-cg.org +222 -0
- rgmin-0.9.0/docs/orgmode/reference/gromacs-lbfgs.org +143 -0
- rgmin-0.9.0/docs/orgmode/reference/gromacs-steep.org +90 -0
- rgmin-0.9.0/docs/orgmode/reference/lammps-min-style.org +85 -0
- rgmin-0.9.0/docs/orgmode/reference/manifold.org +118 -0
- rgmin-0.9.0/docs/orgmode/reference/periodic.org +81 -0
- rgmin-0.9.0/docs/orgmode/reference/product-manifold.org +292 -0
- rgmin-0.9.0/docs/orgmode/reference/proofs.org +43 -0
- rgmin-0.9.0/docs/orgmode/reference/python.org +180 -0
- rgmin-0.9.0/docs/orgmode/reference/sota.org +513 -0
- rgmin-0.9.0/docs/orgmode/tutorials/bfgs.org +12 -0
- rgmin-0.9.0/docs/orgmode/tutorials/cg.org +12 -0
- rgmin-0.9.0/docs/orgmode/tutorials/eigenpairs.org +12 -0
- rgmin-0.9.0/docs/orgmode/tutorials/fire.org +12 -0
- rgmin-0.9.0/docs/orgmode/tutorials/lbfgs-direction.org +16 -0
- rgmin-0.9.0/docs/orgmode/tutorials/lbfgs.org +12 -0
- rgmin-0.9.0/docs/orgmode/tutorials/linesearch.org +15 -0
- rgmin-0.9.0/docs/orgmode/tutorials/manifold-fit.org +35 -0
- rgmin-0.9.0/docs/orgmode/tutorials/migration.org +22 -0
- rgmin-0.9.0/docs/orgmode/tutorials/newton.org +10 -0
- rgmin-0.9.0/docs/orgmode/tutorials/python.org +41 -0
- rgmin-0.9.0/docs/orgmode/tutorials/quickstart.org +51 -0
- rgmin-0.9.0/docs/orgmode/tutorials/rcg.org +54 -0
- rgmin-0.9.0/docs/orgmode/tutorials/relax-morse.org +89 -0
- rgmin-0.9.0/docs/orgmode/tutorials/rlbfgs.org +33 -0
- rgmin-0.9.0/docs/orgmode/tutorials/scg.org +12 -0
- rgmin-0.9.0/docs/render_performance.py +79 -0
- rgmin-0.9.0/docs/source/Doxyfile.cfg +43 -0
- rgmin-0.9.0/docs/source/Doxyfile_doxyyoda.cfg +27 -0
- rgmin-0.9.0/docs/source/_static/custom.css +41 -0
- rgmin-0.9.0/docs/source/_static/favicons/android-chrome-192x192.png +0 -0
- rgmin-0.9.0/docs/source/_static/favicons/android-chrome-512x512.png +0 -0
- rgmin-0.9.0/docs/source/_static/favicons/apple-touch-icon.png +0 -0
- rgmin-0.9.0/docs/source/_static/favicons/favicon-16x16.png +0 -0
- rgmin-0.9.0/docs/source/_static/favicons/favicon-32x32.png +0 -0
- rgmin-0.9.0/docs/source/_static/favicons/favicon.ico +0 -0
- rgmin-0.9.0/docs/source/_static/favicons/site.webmanifest +19 -0
- rgmin-0.9.0/docs/source/_static/rgmin-logo-dark.webp +0 -0
- rgmin-0.9.0/docs/source/_static/rgmin-logo-light.webp +0 -0
- rgmin-0.9.0/docs/source/_static/rgmin-notext-dark.webp +0 -0
- rgmin-0.9.0/docs/source/_static/rgmin-notext-light.webp +0 -0
- rgmin-0.9.0/docs/source/_templates/partials/extra-head.html +7 -0
- rgmin-0.9.0/docs/source/changelog.rst +1567 -0
- rgmin-0.9.0/docs/source/conf.py +117 -0
- rgmin-0.9.0/docs/source/contributing/index.rst +207 -0
- rgmin-0.9.0/docs/source/explanation/diis.rst +26 -0
- rgmin-0.9.0/docs/source/explanation/ecnoise.rst +49 -0
- rgmin-0.9.0/docs/source/explanation/linesearch.rst +191 -0
- rgmin-0.9.0/docs/source/explanation/performance.rst +219 -0
- rgmin-0.9.0/docs/source/explanation/precon.rst +129 -0
- rgmin-0.9.0/docs/source/explanation/product-manifold.rst +994 -0
- rgmin-0.9.0/docs/source/explanation/python-threads.rst +42 -0
- rgmin-0.9.0/docs/source/explanation/quasi-newton.rst +209 -0
- rgmin-0.9.0/docs/source/explanation/quickmin.rst +119 -0
- rgmin-0.9.0/docs/source/explanation/randomized.rst +97 -0
- rgmin-0.9.0/docs/source/explanation/scg.rst +65 -0
- rgmin-0.9.0/docs/source/explanation/simd.rst +54 -0
- rgmin-0.9.0/docs/source/explanation/step-bounds.rst +139 -0
- rgmin-0.9.0/docs/source/explanation/trust-region.rst +219 -0
- rgmin-0.9.0/docs/source/howto/ase-bench.rst +125 -0
- rgmin-0.9.0/docs/source/howto/ase-migration.rst +76 -0
- rgmin-0.9.0/docs/source/howto/bench-gate.rst +115 -0
- rgmin-0.9.0/docs/source/howto/c-abi.rst +501 -0
- rgmin-0.9.0/docs/source/howto/cite.rst +102 -0
- rgmin-0.9.0/docs/source/howto/configure.rst +148 -0
- rgmin-0.9.0/docs/source/howto/constraints.rst +199 -0
- rgmin-0.9.0/docs/source/howto/doxygen.rst +41 -0
- rgmin-0.9.0/docs/source/howto/embed-anneal.rst +47 -0
- rgmin-0.9.0/docs/source/howto/fire.rst +87 -0
- rgmin-0.9.0/docs/source/howto/gpmin.rst +141 -0
- rgmin-0.9.0/docs/source/howto/gromacs-cg.rst +87 -0
- rgmin-0.9.0/docs/source/howto/gromacs-lbfgs.rst +80 -0
- rgmin-0.9.0/docs/source/howto/gromacs-steep.rst +77 -0
- rgmin-0.9.0/docs/source/howto/highs-qp.rst +81 -0
- rgmin-0.9.0/docs/source/howto/install.rst +235 -0
- rgmin-0.9.0/docs/source/howto/irc.rst +63 -0
- rgmin-0.9.0/docs/source/howto/lammps-migration.rst +237 -0
- rgmin-0.9.0/docs/source/howto/lbfgs-box.rst +63 -0
- rgmin-0.9.0/docs/source/howto/level-set.rst +82 -0
- rgmin-0.9.0/docs/source/howto/manifolds.rst +424 -0
- rgmin-0.9.0/docs/source/howto/noise.rst +196 -0
- rgmin-0.9.0/docs/source/howto/precon.rst +68 -0
- rgmin-0.9.0/docs/source/howto/python.rst +72 -0
- rgmin-0.9.0/docs/source/howto/session.rst +243 -0
- rgmin-0.9.0/docs/source/howto/stopping.rst +171 -0
- rgmin-0.9.0/docs/source/howto/strong-scaling.rst +60 -0
- rgmin-0.9.0/docs/source/index.rst +175 -0
- rgmin-0.9.0/docs/source/mainpage.dox +21 -0
- rgmin-0.9.0/docs/source/reference/api.rst +121 -0
- rgmin-0.9.0/docs/source/reference/architecture.rst +204 -0
- rgmin-0.9.0/docs/source/reference/bibliography.rst +20 -0
- rgmin-0.9.0/docs/source/reference/cell-filter.rst +134 -0
- rgmin-0.9.0/docs/source/reference/constraints.rst +167 -0
- rgmin-0.9.0/docs/source/reference/gromacs-cg.rst +267 -0
- rgmin-0.9.0/docs/source/reference/gromacs-lbfgs.rst +174 -0
- rgmin-0.9.0/docs/source/reference/gromacs-steep.rst +109 -0
- rgmin-0.9.0/docs/source/reference/lammps-min-style.rst +129 -0
- rgmin-0.9.0/docs/source/reference/manifold.rst +158 -0
- rgmin-0.9.0/docs/source/reference/periodic.rst +96 -0
- rgmin-0.9.0/docs/source/reference/product-manifold.rst +397 -0
- rgmin-0.9.0/docs/source/reference/proofs.rst +66 -0
- rgmin-0.9.0/docs/source/reference/python.rst +231 -0
- rgmin-0.9.0/docs/source/reference/sota.rst +653 -0
- rgmin-0.9.0/docs/source/references.bib +677 -0
- rgmin-0.9.0/docs/source/tutorials/bfgs.rst +41 -0
- rgmin-0.9.0/docs/source/tutorials/cg.rst +38 -0
- rgmin-0.9.0/docs/source/tutorials/eigenpairs.rst +36 -0
- rgmin-0.9.0/docs/source/tutorials/fire.rst +36 -0
- rgmin-0.9.0/docs/source/tutorials/lbfgs-direction.rst +49 -0
- rgmin-0.9.0/docs/source/tutorials/lbfgs.rst +48 -0
- rgmin-0.9.0/docs/source/tutorials/linesearch.rst +61 -0
- rgmin-0.9.0/docs/source/tutorials/manifold-fit.rst +35 -0
- rgmin-0.9.0/docs/source/tutorials/migration.rst +34 -0
- rgmin-0.9.0/docs/source/tutorials/newton.rst +36 -0
- rgmin-0.9.0/docs/source/tutorials/python.rst +40 -0
- rgmin-0.9.0/docs/source/tutorials/quickstart.rst +101 -0
- rgmin-0.9.0/docs/source/tutorials/rcg.rst +91 -0
- rgmin-0.9.0/docs/source/tutorials/relax-morse.rst +99 -0
- rgmin-0.9.0/docs/source/tutorials/rlbfgs.rst +33 -0
- rgmin-0.9.0/docs/source/tutorials/scg.rst +39 -0
- rgmin-0.9.0/docs/spd_retraction_contract.org +25 -0
- rgmin-0.9.0/examples/ase_h2h.rs +293 -0
- rgmin-0.9.0/examples/bench_algo.rs +1562 -0
- rgmin-0.9.0/examples/bench_suite.rs +369 -0
- rgmin-0.9.0/examples/compare_highs.rs +89 -0
- rgmin-0.9.0/examples/dist_h2h.rs +257 -0
- rgmin-0.9.0/examples/ffi_throughput.rs +106 -0
- rgmin-0.9.0/examples/howto_level_set.rs +32 -0
- rgmin-0.9.0/examples/lbfgs_capped.rs +294 -0
- rgmin-0.9.0/examples/lbfgs_ftol.rs +93 -0
- rgmin-0.9.0/examples/lbfgsb_bench.rs +239 -0
- rgmin-0.9.0/examples/minimize_quadratic.py +34 -0
- rgmin-0.9.0/examples/noise_bench.rs +912 -0
- rgmin-0.9.0/examples/relax_morse.rs +130 -0
- rgmin-0.9.0/examples/strong_scale.rs +397 -0
- rgmin-0.9.0/examples/trajectory_dump.rs +961 -0
- rgmin-0.9.0/examples/tutorial_bfgs.rs +28 -0
- rgmin-0.9.0/examples/tutorial_cg.rs +25 -0
- rgmin-0.9.0/examples/tutorial_fire.rs +23 -0
- rgmin-0.9.0/examples/tutorial_lbfgs.rs +35 -0
- rgmin-0.9.0/examples/tutorial_lbfgs_direction.rs +32 -0
- rgmin-0.9.0/examples/tutorial_linesearch.rs +45 -0
- rgmin-0.9.0/examples/tutorial_lowest_eigenpairs.py +23 -0
- rgmin-0.9.0/examples/tutorial_manifold_fit.py +51 -0
- rgmin-0.9.0/examples/tutorial_newton.rs +25 -0
- rgmin-0.9.0/examples/tutorial_quickstart.rs +20 -0
- rgmin-0.9.0/examples/tutorial_rcg.rs +27 -0
- rgmin-0.9.0/examples/tutorial_scg.rs +26 -0
- rgmin-0.9.0/examples/tutorial_session.rs +23 -0
- rgmin-0.9.0/formal/.gitignore +1 -0
- rgmin-0.9.0/formal/README.md +76 -0
- rgmin-0.9.0/formal/RgminContracts/Armijo.lean +93 -0
- rgmin-0.9.0/formal/RgminContracts/BFGS.lean +180 -0
- rgmin-0.9.0/formal/RgminContracts/Clamp.lean +108 -0
- rgmin-0.9.0/formal/RgminContracts/Fire.lean +102 -0
- rgmin-0.9.0/formal/RgminContracts/QuickMin.lean +151 -0
- rgmin-0.9.0/formal/RgminContracts/RoundoffWolfe.lean +83 -0
- rgmin-0.9.0/formal/RgminContracts/ScgRestart.lean +25 -0
- rgmin-0.9.0/formal/RgminContracts.lean +7 -0
- rgmin-0.9.0/formal/check.sh +54 -0
- rgmin-0.9.0/formal/lake-manifest.json +117 -0
- rgmin-0.9.0/formal/lakefile.toml +10 -0
- rgmin-0.9.0/formal/lean-toolchain +1 -0
- rgmin-0.9.0/include/dlpack/LICENSE +201 -0
- rgmin-0.9.0/include/dlpack/dlpack.h +366 -0
- rgmin-0.9.0/include/rgbind/rgbind.hpp +939 -0
- rgmin-0.9.0/include/rgmin/optimize.hpp +1785 -0
- rgmin-0.9.0/include/rgmin.h +1943 -0
- rgmin-0.9.0/include/xts/optimize.hpp +49 -0
- rgmin-0.9.0/include/xts/xtensor.hpp +67 -0
- rgmin-0.9.0/include/xts.h +410 -0
- rgmin-0.9.0/isa-allow.toml +18 -0
- rgmin-0.9.0/lammps/CMakeLists.txt +110 -0
- rgmin-0.9.0/lammps/src/min_rgmin.cpp +488 -0
- rgmin-0.9.0/lammps/src/min_rgmin.h +79 -0
- rgmin-0.9.0/lammps/src/rgminplugin.cpp +31 -0
- rgmin-0.9.0/lammps/tests/systems.py +208 -0
- rgmin-0.9.0/lammps/tests/test_min_rgmin.py +247 -0
- rgmin-0.9.0/llms.txt +15 -0
- rgmin-0.9.0/meson.build +147 -0
- rgmin-0.9.0/meson_options.txt +12 -0
- rgmin-0.9.0/pixi.toml +47 -0
- rgmin-0.9.0/proofs/lean/Rgmin/BoxProjection.lean +40 -0
- rgmin-0.9.0/proofs/lean/Rgmin/NebReset.lean +32 -0
- rgmin-0.9.0/proofs/lean/Rgmin/Precond.lean +52 -0
- rgmin-0.9.0/proofs/lean/Rgmin/QnDerivative.lean +17 -0
- rgmin-0.9.0/proofs/lean/Rgmin/SpdRetraction.lean +34 -0
- rgmin-0.9.0/proofs/lean/Rgmin/Spectral.lean +67 -0
- rgmin-0.9.0/proofs/lean/Rgmin/Steihaug.lean +87 -0
- rgmin-0.9.0/proofs/lean/Rgmin/Trust.lean +81 -0
- rgmin-0.9.0/proofs/lean/Rgmin/UnitaryCompletion.lean +27 -0
- rgmin-0.9.0/proofs/lean/Rgmin/Zoom.lean +83 -0
- rgmin-0.9.0/proofs/lean/Rgmin.lean +11 -0
- rgmin-0.9.0/proofs/lean/lake-manifest.json +96 -0
- rgmin-0.9.0/proofs/lean/lakefile.toml +9 -0
- rgmin-0.9.0/proofs/lean/lean-toolchain +1 -0
- rgmin-0.9.0/proofs/sympy/qn_family_derivative.py +28 -0
- rgmin-0.9.0/proofs/sympy/zoom_feasible_endpoint.py +34 -0
- rgmin-0.9.0/pyproject.toml +146 -0
- rgmin-0.9.0/python/Cargo.lock +876 -0
- rgmin-0.9.0/python/Cargo.toml +17 -0
- rgmin-0.9.0/python/README.md +18 -0
- rgmin-0.9.0/python/pyproject.toml +32 -0
- rgmin-0.9.0/python/rgmin/__init__.py +211 -0
- rgmin-0.9.0/python/rgmin/__init__.pyi +271 -0
- rgmin-0.9.0/python/rgmin/_core.pyi +273 -0
- rgmin-0.9.0/python/rgmin/_gromacs.py +152 -0
- rgmin-0.9.0/python/rgmin/_maturin.py +24 -0
- rgmin-0.9.0/python/rgmin/_maturin.pyi +138 -0
- rgmin-0.9.0/python/rgmin/ase.py +1807 -0
- rgmin-0.9.0/python/rgmin/manifold.py +221 -0
- rgmin-0.9.0/python/rgmin/optimize.py +1373 -0
- rgmin-0.9.0/python/rgmin/py.typed +0 -0
- rgmin-0.9.0/python/src/ext.cpp +875 -0
- rgmin-0.9.0/python/src/lib.rs +1089 -0
- rgmin-0.9.0/python/tests/test_ase_conformance.py +541 -0
- rgmin-0.9.0/python/tests/test_ase_linesearch_dropin.py +468 -0
- rgmin-0.9.0/python/tests/test_ase_optimizer.py +543 -0
- rgmin-0.9.0/python/tests/test_eigenpairs.py +117 -0
- rgmin-0.9.0/python/tests/test_gpmin.py +271 -0
- rgmin-0.9.0/python/tests/test_gromacs_cg.py +362 -0
- rgmin-0.9.0/python/tests/test_gromacs_lbfgs.py +148 -0
- rgmin-0.9.0/python/tests/test_gromacs_steep.py +244 -0
- rgmin-0.9.0/python/tests/test_lbfgs_direction.py +97 -0
- rgmin-0.9.0/python/tests/test_level_set_howto.py +21 -0
- rgmin-0.9.0/python/tests/test_linesearch.py +45 -0
- rgmin-0.9.0/python/tests/test_manifold.py +289 -0
- rgmin-0.9.0/python/tests/test_stops.py +164 -0
- rgmin-0.9.0/schema/eigen.capnp +46 -0
- rgmin-0.9.0/scripts/abi_baseline.txt +192 -0
- rgmin-0.9.0/scripts/build_ci_backends.sh +55 -0
- rgmin-0.9.0/scripts/check_abi.py +141 -0
- rgmin-0.9.0/scripts/check_changelog.py +115 -0
- rgmin-0.9.0/scripts/check_exports.py +180 -0
- rgmin-0.9.0/scripts/check_header_docs.py +82 -0
- rgmin-0.9.0/scripts/check_links.py +177 -0
- rgmin-0.9.0/scripts/check_public_docs.py +67 -0
- rgmin-0.9.0/scripts/get_doxyyoda.sh +16 -0
- rgmin-0.9.0/scripts/meson_cargo_build.py +79 -0
- rgmin-0.9.0/src/aaa.rs +1723 -0
- rgmin-0.9.0/src/accept.rs +634 -0
- rgmin-0.9.0/src/adam.rs +247 -0
- rgmin-0.9.0/src/bb.rs +61 -0
- rgmin-0.9.0/src/box_objective.rs +298 -0
- rgmin-0.9.0/src/cell_filter.rs +1429 -0
- rgmin-0.9.0/src/certificate.rs +352 -0
- rgmin-0.9.0/src/chase_eps.rs +96 -0
- rgmin-0.9.0/src/chase_shim.c +81 -0
- rgmin-0.9.0/src/compact_tr.rs +397 -0
- rgmin-0.9.0/src/con_checkpoint.rs +192 -0
- rgmin-0.9.0/src/config.rs +35 -0
- rgmin-0.9.0/src/control.rs +479 -0
- rgmin-0.9.0/src/diis.rs +308 -0
- rgmin-0.9.0/src/dlaf_kind.rs +15 -0
- rgmin-0.9.0/src/eigenexa_kind.rs +52 -0
- rgmin-0.9.0/src/elpa_kind.rs +198 -0
- rgmin-0.9.0/src/eon_cg.rs +404 -0
- rgmin-0.9.0/src/error.rs +447 -0
- rgmin-0.9.0/src/ffi.rs +10191 -0
- rgmin-0.9.0/src/fire.rs +1484 -0
- rgmin-0.9.0/src/gpmin.rs +2401 -0
- rgmin-0.9.0/src/gromacs.rs +1154 -0
- rgmin-0.9.0/src/highs_kind.rs +247 -0
- rgmin-0.9.0/src/holonomic/linalg.rs +170 -0
- rgmin-0.9.0/src/holonomic/lincs.rs +146 -0
- rgmin-0.9.0/src/holonomic/mod.rs +873 -0
- rgmin-0.9.0/src/holonomic/settle.rs +154 -0
- rgmin-0.9.0/src/holonomic/shake.rs +105 -0
- rgmin-0.9.0/src/holonomic/tests.rs +458 -0
- rgmin-0.9.0/src/hvp.rs +1377 -0
- rgmin-0.9.0/src/inverse_laplace.rs +1912 -0
- rgmin-0.9.0/src/irc_trust.rs +179 -0
- rgmin-0.9.0/src/krylov/gmres.rs +2719 -0
- rgmin-0.9.0/src/krylov.rs +1318 -0
- rgmin-0.9.0/src/lbfgs/cauchy.rs +342 -0
- rgmin-0.9.0/src/lbfgs/direction.rs +788 -0
- rgmin-0.9.0/src/lbfgs.rs +3278 -0
- rgmin-0.9.0/src/lbfgs_plateau.rs +179 -0
- rgmin-0.9.0/src/lbfgs_qp.rs +946 -0
- rgmin-0.9.0/src/level_set.rs +391 -0
- rgmin-0.9.0/src/lib.rs +340 -0
- rgmin-0.9.0/src/libkrylov_eps.rs +186 -0
- rgmin-0.9.0/src/libkrylov_shim.c +166 -0
- rgmin-0.9.0/src/lindh.rs +961 -0
- rgmin-0.9.0/src/linesearch/ase.rs +621 -0
- rgmin-0.9.0/src/linesearch/conditions.rs +197 -0
- rgmin-0.9.0/src/linesearch/interp.rs +151 -0
- rgmin-0.9.0/src/linesearch/known.rs +978 -0
- rgmin-0.9.0/src/linesearch/mod.rs +680 -0
- rgmin-0.9.0/src/linesearch/supplied.rs +173 -0
- rgmin-0.9.0/src/linesearch/zoom.rs +473 -0
- rgmin-0.9.0/src/lowest_mode.rs +4313 -0
- rgmin-0.9.0/src/magnus.rs +599 -0
- rgmin-0.9.0/src/majorant.rs +309 -0
- rgmin-0.9.0/src/manifold/centered.rs +627 -0
- rgmin-0.9.0/src/manifold/complex_circle.rs +307 -0
- rgmin-0.9.0/src/manifold/constant.rs +201 -0
- rgmin-0.9.0/src/manifold/euclidean.rs +106 -0
- rgmin-0.9.0/src/manifold/euclidean_complex.rs +246 -0
- rgmin-0.9.0/src/manifold/grassmann.rs +516 -0
- rgmin-0.9.0/src/manifold/hyperbolic.rs +224 -0
- rgmin-0.9.0/src/manifold/mod.rs +913 -0
- rgmin-0.9.0/src/manifold/multinomial.rs +143 -0
- rgmin-0.9.0/src/manifold/multinomial_ds.rs +465 -0
- rgmin-0.9.0/src/manifold/multinomial_sym.rs +462 -0
- rgmin-0.9.0/src/manifold/mw_rigid.rs +44 -0
- rgmin-0.9.0/src/manifold/oblique.rs +412 -0
- rgmin-0.9.0/src/manifold/poincare.rs +248 -0
- rgmin-0.9.0/src/manifold/positive.rs +336 -0
- rgmin-0.9.0/src/manifold/product.rs +858 -0
- rgmin-0.9.0/src/manifold/riemannian.rs +1006 -0
- rgmin-0.9.0/src/manifold/rigid_quotient.rs +67 -0
- rgmin-0.9.0/src/manifold/se3.rs +196 -0
- rgmin-0.9.0/src/manifold/skewsymmetric.rs +248 -0
- rgmin-0.9.0/src/manifold/so3.rs +376 -0
- rgmin-0.9.0/src/manifold/spd.rs +404 -0
- rgmin-0.9.0/src/manifold/sphere.rs +307 -0
- rgmin-0.9.0/src/manifold/sphere_complex.rs +306 -0
- rgmin-0.9.0/src/manifold/stiefel.rs +381 -0
- rgmin-0.9.0/src/manifold/subspace_sphere.rs +293 -0
- rgmin-0.9.0/src/manifold/symmetric.rs +231 -0
- rgmin-0.9.0/src/manifold/unitary.rs +788 -0
- rgmin-0.9.0/src/method.rs +638 -0
- rgmin-0.9.0/src/minimize.rs +470 -0
- rgmin-0.9.0/src/minres.rs +1951 -0
- rgmin-0.9.0/src/newton.rs +2461 -0
- rgmin-0.9.0/src/nlcg/mod.rs +658 -0
- rgmin-0.9.0/src/noise.rs +1597 -0
- rgmin-0.9.0/src/ode12r.rs +292 -0
- rgmin-0.9.0/src/oracle.rs +67 -0
- rgmin-0.9.0/src/periodic.rs +1394 -0
- rgmin-0.9.0/src/periodic_block.rs +911 -0
- rgmin-0.9.0/src/periodic_product.rs +1694 -0
- rgmin-0.9.0/src/portable.rs +17 -0
- rgmin-0.9.0/src/precon/ff.rs +660 -0
- rgmin-0.9.0/src/precon/geom.rs +335 -0
- rgmin-0.9.0/src/precon/lindh.rs +638 -0
- rgmin-0.9.0/src/precon/select.rs +224 -0
- rgmin-0.9.0/src/precon.rs +1614 -0
- rgmin-0.9.0/src/primme_eps.rs +170 -0
- rgmin-0.9.0/src/primme_shim.c +137 -0
- rgmin-0.9.0/src/pso.rs +263 -0
- rgmin-0.9.0/src/qn.rs +703 -0
- rgmin-0.9.0/src/qn_irc.rs +511 -0
- rgmin-0.9.0/src/qn_step.rs +15 -0
- rgmin-0.9.0/src/quadrature.rs +276 -0
- rgmin-0.9.0/src/quickmin.rs +572 -0
- rgmin-0.9.0/src/rcg.rs +2169 -0
- rgmin-0.9.0/src/report.rs +297 -0
- rgmin-0.9.0/src/restricted_trust.rs +311 -0
- rgmin-0.9.0/src/rigid/align.rs +186 -0
- rgmin-0.9.0/src/rigid/body.rs +16 -0
- rgmin-0.9.0/src/rigid/cpqr.rs +101 -0
- rgmin-0.9.0/src/rigid/helpers.rs +201 -0
- rgmin-0.9.0/src/rigid/horizontal.rs +39 -0
- rgmin-0.9.0/src/rigid/jacobi6.rs +64 -0
- rgmin-0.9.0/src/rigid/mod.rs +4 -0
- rgmin-0.9.0/src/rigid/mode.rs +99 -0
- rgmin-0.9.0/src/rigid/project.rs +175 -0
- rgmin-0.9.0/src/rigid/rebuild.rs +178 -0
- rgmin-0.9.0/src/rigid/tests_a.rs +165 -0
- rgmin-0.9.0/src/rigid/tests_b.rs +198 -0
- rgmin-0.9.0/src/rigid/tests_c.rs +173 -0
- rgmin-0.9.0/src/rigid/tests_mod.rs +8 -0
- rgmin-0.9.0/src/rigid/tests_util.rs +40 -0
- rgmin-0.9.0/src/rlbfgs.rs +703 -0
- rgmin-0.9.0/src/root.rs +154 -0
- rgmin-0.9.0/src/rtr.rs +935 -0
- rgmin-0.9.0/src/scg.rs +613 -0
- rgmin-0.9.0/src/secant.rs +839 -0
- rgmin-0.9.0/src/sella_step.rs +297 -0
- rgmin-0.9.0/src/session/chart.rs +230 -0
- rgmin-0.9.0/src/session/constrained.rs +2210 -0
- rgmin-0.9.0/src/session/drive.rs +836 -0
- rgmin-0.9.0/src/session/field.rs +77 -0
- rgmin-0.9.0/src/session.rs +9574 -0
- rgmin-0.9.0/src/slepc_eps.rs +172 -0
- rgmin-0.9.0/src/slepc_kind.rs +99 -0
- rgmin-0.9.0/src/slepc_shim.c +289 -0
- rgmin-0.9.0/src/slq.rs +4703 -0
- rgmin-0.9.0/src/sphere_lbfgs.rs +164 -0
- rgmin-0.9.0/src/step.rs +944 -0
- rgmin-0.9.0/src/stepper.rs +56 -0
- rgmin-0.9.0/src/stop.rs +396 -0
- rgmin-0.9.0/src/trust.rs +165 -0
- rgmin-0.9.0/src/tune.rs +140 -0
- rgmin-0.9.0/src/vecops.rs +1060 -0
- rgmin-0.9.0/tests/accept_step_retained.rs +120 -0
- rgmin-0.9.0/tests/ase_fire2_gold.py +136 -0
- rgmin-0.9.0/tests/ase_fix_bond_lengths.py +317 -0
- rgmin-0.9.0/tests/brent_linesearch.rs +48 -0
- rgmin-0.9.0/tests/c_abi.rs +5909 -0
- rgmin-0.9.0/tests/c_abi_newton_cg_precond.rs +642 -0
- rgmin-0.9.0/tests/c_accessors.rs +48 -0
- rgmin-0.9.0/tests/c_control_layout.c +148 -0
- rgmin-0.9.0/tests/c_control_layout.rs +754 -0
- rgmin-0.9.0/tests/c_defaults.c +439 -0
- rgmin-0.9.0/tests/c_eindir.c +209 -0
- rgmin-0.9.0/tests/c_headers.rs +248 -0
- rgmin-0.9.0/tests/c_highs_callback.c +100 -0
- rgmin-0.9.0/tests/c_lbfgs_direction.rs +339 -0
- rgmin-0.9.0/tests/c_linesearch.rs +117 -0
- rgmin-0.9.0/tests/c_manifold_rtr.c +660 -0
- rgmin-0.9.0/tests/c_noise_floor.c +52 -0
- rgmin-0.9.0/tests/c_step_fg_methods.c +87 -0
- rgmin-0.9.0/tests/c_xts_rcg.c +55 -0
- rgmin-0.9.0/tests/c_xts_stops.c +108 -0
- rgmin-0.9.0/tests/cap_rules.rs +59 -0
- rgmin-0.9.0/tests/cell_filter.rs +815 -0
- rgmin-0.9.0/tests/centered_query.rs +47 -0
- rgmin-0.9.0/tests/certificate.rs +478 -0
- rgmin-0.9.0/tests/cg_descent_restart.rs +55 -0
- rgmin-0.9.0/tests/cg_eval_count.rs +86 -0
- rgmin-0.9.0/tests/cg_hager_zhang_finite.rs +21 -0
- rgmin-0.9.0/tests/cg_opening_step.rs +43 -0
- rgmin-0.9.0/tests/cg_rejected_step.rs +108 -0
- rgmin-0.9.0/tests/cg_scaled_direction.rs +48 -0
- rgmin-0.9.0/tests/cinstall/smoke.c +53 -0
- rgmin-0.9.0/tests/cinstall/smoke.cpp +33 -0
- rgmin-0.9.0/tests/cinstall/smoke.sh +85 -0
- rgmin-0.9.0/tests/common/mod.rs +180 -0
- rgmin-0.9.0/tests/con_checkpoint.rs +520 -0
- rgmin-0.9.0/tests/consumer/mod.rs +336 -0
- rgmin-0.9.0/tests/coverage_census.rs +368 -0
- rgmin-0.9.0/tests/cxx_headers.cpp +1134 -0
- rgmin-0.9.0/tests/cxx_headers.rs +46 -0
- rgmin-0.9.0/tests/data/ase_fire2_rosenbrock.txt +1860 -0
- rgmin-0.9.0/tests/data/ase_fix_bond_lengths.txt +79 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f32-nsteps-12-emtol-1e-8/em.log +395 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f32-nsteps-12-emtol-1e-8/final.g96 +15 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f32-nsteps-12-emtol-1e-8/grompp.txt +21 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f32-nsteps-12-emtol-1e-8/input.mdp +22 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f32-nsteps-12-emtol-1e-8/mdout.mdp +321 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f32-nsteps-12-emtol-1e-8/mdrun.txt +55 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f32-nsteps-12-emtol-1e-8/start.g96 +15 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f32-nsteps-12-emtol-1e-8/topol.top +17 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-2/em.log +384 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-2/final.g96 +15 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-2/grompp.txt +21 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-2/input.mdp +22 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-2/mdout.mdp +321 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-2/mdrun.txt +42 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-2/start.g96 +15 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-2/topol.top +17 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-3/em.log +384 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-3/final.g96 +15 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-3/grompp.txt +21 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-3/input.mdp +22 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-3/mdout.mdp +321 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-3/mdrun.txt +50 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-3/start.g96 +15 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-3/topol.top +17 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-6/em.log +384 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-6/final.g96 +15 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-6/grompp.txt +21 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-6/input.mdp +22 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-6/mdout.mdp +321 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-6/mdrun.txt +136 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-6/start.g96 +15 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-emtol-1e-6/topol.top +17 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-nsteps-12-emtol-1e-8/em.log +387 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-nsteps-12-emtol-1e-8/final.g96 +15 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-nsteps-12-emtol-1e-8/grompp.txt +21 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-nsteps-12-emtol-1e-8/input.mdp +22 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-nsteps-12-emtol-1e-8/mdout.mdp +321 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-nsteps-12-emtol-1e-8/mdrun.txt +51 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-nsteps-12-emtol-1e-8/start.g96 +15 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/f64-nsteps-12-emtol-1e-8/topol.top +17 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/gmx-version.txt +30 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/gmx_d-version.txt +30 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference/summary.tsv +6 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference.py +234 -0
- rgmin-0.9.0/tests/data/gromacs_cg_reference_BUILD.md +40 -0
- rgmin-0.9.0/tests/data/gromacs_lbfgs_argon.txt +66 -0
- rgmin-0.9.0/tests/data/gromacs_lbfgs_argon_driver.py +162 -0
- rgmin-0.9.0/tests/data/gromacs_steep_argon.mdp +21 -0
- rgmin-0.9.0/tests/data/gromacs_steep_argon.top +17 -0
- rgmin-0.9.0/tests/data/gromacs_steep_argon.txt +46 -0
- rgmin-0.9.0/tests/data/gromacs_steep_argon_driver.py +67 -0
- rgmin-0.9.0/tests/data/morse_pos_0000.con +267 -0
- rgmin-0.9.0/tests/data/morse_pos_0008.con +267 -0
- rgmin-0.9.0/tests/data/riemannian_manifold.txt +63 -0
- rgmin-0.9.0/tests/default_maxstep.rs +904 -0
- rgmin-0.9.0/tests/dense_trust_domain.rs +81 -0
- rgmin-0.9.0/tests/dogleg_morse.rs +607 -0
- rgmin-0.9.0/tests/eigen_options_capi.rs +136 -0
- rgmin-0.9.0/tests/fallible_host.rs +1082 -0
- rgmin-0.9.0/tests/faster.rs +25 -0
- rgmin-0.9.0/tests/ffi_errors.rs +1245 -0
- rgmin-0.9.0/tests/ffi_smoke.c +34 -0
- rgmin-0.9.0/tests/fire_vdfmax.rs +337 -0
- rgmin-0.9.0/tests/first_order_step_policy.rs +136 -0
- rgmin-0.9.0/tests/fixed_scale.rs +246 -0
- rgmin-0.9.0/tests/fixtures/con_checkpoint.con +17 -0
- rgmin-0.9.0/tests/geometry_opt.rs +307 -0
- rgmin-0.9.0/tests/golden/isa-hashes.toml +36 -0
- rgmin-0.9.0/tests/gpmin.rs +300 -0
- rgmin-0.9.0/tests/gromacs_cg.rs +939 -0
- rgmin-0.9.0/tests/gromacs_lbfgs.rs +995 -0
- rgmin-0.9.0/tests/gromacs_steep.rs +739 -0
- rgmin-0.9.0/tests/highs_callback_capi.rs +317 -0
- rgmin-0.9.0/tests/highs_options.rs +703 -0
- rgmin-0.9.0/tests/highs_options_capi.rs +49 -0
- rgmin-0.9.0/tests/highs_scipy_gold.py +93 -0
- rgmin-0.9.0/tests/holonomic.rs +1176 -0
- rgmin-0.9.0/tests/hvp.rs +285 -0
- rgmin-0.9.0/tests/inverse_laplace.rs +836 -0
- rgmin-0.9.0/tests/irc_trust.rs +53 -0
- rgmin-0.9.0/tests/jacobi_overflow.rs +66 -0
- rgmin-0.9.0/tests/krylov_api.rs +184 -0
- rgmin-0.9.0/tests/lbfgs_accept.rs +71 -0
- rgmin-0.9.0/tests/lbfgs_box.rs +115 -0
- rgmin-0.9.0/tests/lbfgs_box_scipy.rs +226 -0
- rgmin-0.9.0/tests/lbfgs_boxed.rs +285 -0
- rgmin-0.9.0/tests/lbfgs_capped.rs +155 -0
- rgmin-0.9.0/tests/lbfgs_convergence.rs +92 -0
- rgmin-0.9.0/tests/lbfgs_edges.rs +78 -0
- rgmin-0.9.0/tests/lbfgs_ftol.rs +157 -0
- rgmin-0.9.0/tests/lbfgs_highs.rs +965 -0
- rgmin-0.9.0/tests/lbfgs_highs_failure.rs +72 -0
- rgmin-0.9.0/tests/lbfgs_position.rs +94 -0
- rgmin-0.9.0/tests/lbfgs_repeated_step.rs +662 -0
- rgmin-0.9.0/tests/lbfgs_rounding.rs +87 -0
- rgmin-0.9.0/tests/lbfgs_shape.rs +90 -0
- rgmin-0.9.0/tests/lbfgs_state.rs +198 -0
- rgmin-0.9.0/tests/lbfgs_trust.rs +76 -0
- rgmin-0.9.0/tests/lbfgsb_scipy_gold.py +128 -0
- rgmin-0.9.0/tests/level_set_session.rs +469 -0
- rgmin-0.9.0/tests/libkrylov_concurrency.rs +97 -0
- rgmin-0.9.0/tests/libkrylov_tolerance.rs +37 -0
- rgmin-0.9.0/tests/linesearch.rs +252 -0
- rgmin-0.9.0/tests/linesearch_safeguards.rs +178 -0
- rgmin-0.9.0/tests/manifold_capi.rs +643 -0
- rgmin-0.9.0/tests/manifold_factories.rs +264 -0
- rgmin-0.9.0/tests/manifold_public_helpers.rs +19 -0
- rgmin-0.9.0/tests/manifold_retained_steps.rs +350 -0
- rgmin-0.9.0/tests/manifold_sessions.rs +1318 -0
- rgmin-0.9.0/tests/manifold_trial_point.rs +567 -0
- rgmin-0.9.0/tests/maxmove_off.rs +533 -0
- rgmin-0.9.0/tests/newton.rs +55 -0
- rgmin-0.9.0/tests/newton_cg_morse.rs +828 -0
- rgmin-0.9.0/tests/newton_cg_noise_floor.rs +234 -0
- rgmin-0.9.0/tests/newton_cg_precond.rs +167 -0
- rgmin-0.9.0/tests/newton_constrained.rs +42 -0
- rgmin-0.9.0/tests/nlcg_cancellation.rs +33 -0
- rgmin-0.9.0/tests/non_finite.rs +349 -0
- rgmin-0.9.0/tests/objective_roundoff.rs +382 -0
- rgmin-0.9.0/tests/ode12r_session.rs +278 -0
- rgmin-0.9.0/tests/optimizer_trajectory.rs +153 -0
- rgmin-0.9.0/tests/parallel_manifold_geometry.rs +43 -0
- rgmin-0.9.0/tests/periodic_product.rs +25 -0
- rgmin-0.9.0/tests/plane_free_energy.rs +551 -0
- rgmin-0.9.0/tests/precon.rs +666 -0
- rgmin-0.9.0/tests/precon_scaling.rs +423 -0
- rgmin-0.9.0/tests/product_manifold.rs +866 -0
- rgmin-0.9.0/tests/pso.rs +55 -0
- rgmin-0.9.0/tests/python/conftest.py +35 -0
- rgmin-0.9.0/tests/python/data/lj38_golden.json +252 -0
- rgmin-0.9.0/tests/python/data/pt7_golden.json +66 -0
- rgmin-0.9.0/tests/python/test_ase.py +520 -0
- rgmin-0.9.0/tests/python/test_ase_stops.py +67 -0
- rgmin-0.9.0/tests/python/test_core.py +434 -0
- rgmin-0.9.0/tests/python/test_hypothesis.py +127 -0
- rgmin-0.9.0/tests/python/test_invariance.py +496 -0
- rgmin-0.9.0/tests/python/test_lbfgs_wolfe.py +99 -0
- rgmin-0.9.0/tests/python/test_linesearch_rules.py +175 -0
- rgmin-0.9.0/tests/python/test_maxmove_off.py +136 -0
- rgmin-0.9.0/tests/python/test_maxstep.py +173 -0
- rgmin-0.9.0/tests/python/test_minimize_budget.py +46 -0
- rgmin-0.9.0/tests/python/test_stop_status.py +211 -0
- rgmin-0.9.0/tests/python/test_stops.py +132 -0
- rgmin-0.9.0/tests/python/test_strict_convergence.py +251 -0
- rgmin-0.9.0/tests/python/test_threads.py +449 -0
- rgmin-0.9.0/tests/python/test_tutorial.py +32 -0
- rgmin-0.9.0/tests/qn_derivative.rs +35 -0
- rgmin-0.9.0/tests/quasi.rs +144 -0
- rgmin-0.9.0/tests/quickmin_options.rs +167 -0
- rgmin-0.9.0/tests/rcg_projected_field.rs +190 -0
- rgmin-0.9.0/tests/rcg_session.rs +700 -0
- rgmin-0.9.0/tests/retained_geometry.rs +162 -0
- rgmin-0.9.0/tests/retained_linesearch_domain.rs +20 -0
- rgmin-0.9.0/tests/retained_manifold_sessions.rs +187 -0
- rgmin-0.9.0/tests/rfo_indefinite.rs +152 -0
- rgmin-0.9.0/tests/riemannian_manifold.rs +578 -0
- rgmin-0.9.0/tests/rigid_quotient_factor.rs +213 -0
- rgmin-0.9.0/tests/rigid_quotient_strata.rs +274 -0
- rgmin-0.9.0/tests/rlbfgs_huang.rs +338 -0
- rgmin-0.9.0/tests/rosenbrock.rs +129 -0
- rgmin-0.9.0/tests/roundoff_wolfe.rs +575 -0
- rgmin-0.9.0/tests/run_stop.rs +101 -0
- rgmin-0.9.0/tests/scaled_rosenbrock10.rs +66 -0
- rgmin-0.9.0/tests/scg.rs +572 -0
- rgmin-0.9.0/tests/scg_direction_restart.rs +80 -0
- rgmin-0.9.0/tests/scg_step_tolerance.rs +286 -0
- rgmin-0.9.0/tests/sella_gold.rs +449 -0
- rgmin-0.9.0/tests/sella_manopt_gold.json +778 -0
- rgmin-0.9.0/tests/sella_manopt_gold.py +751 -0
- rgmin-0.9.0/tests/session.rs +2289 -0
- rgmin-0.9.0/tests/session_box.rs +633 -0
- rgmin-0.9.0/tests/session_equalities.rs +137 -0
- rgmin-0.9.0/tests/session_pair_history.rs +98 -0
- rgmin-0.9.0/tests/session_tolerance.rs +52 -0
- rgmin-0.9.0/tests/speed.rs +32 -0
- rgmin-0.9.0/tests/sphere_lbfgs.rs +251 -0
- rgmin-0.9.0/tests/stop_default_golden.rs +196 -0
- rgmin-0.9.0/tests/stop_front_ends.rs +363 -0
- rgmin-0.9.0/tests/stop_norm.rs +272 -0
- rgmin-0.9.0/tests/stop_norm_box.rs +47 -0
- rgmin-0.9.0/tests/stop_rules.rs +1057 -0
- rgmin-0.9.0/tests/stop_status.rs +343 -0
- rgmin-0.9.0/tests/strict_c_abi.rs +692 -0
- rgmin-0.9.0/tests/strict_convergence.rs +1599 -0
- rgmin-0.9.0/tests/subspace_sphere.rs +439 -0
- rgmin-0.9.0/tests/supplied_linesearch.rs +193 -0
- rgmin-0.9.0/tests/unitary_capi.rs +129 -0
- rgmin-0.9.0/tests/vecops_isa.rs +542 -0
- rgmin-0.9.0/tests/vecops_updates.rs +29 -0
- rgmin-0.9.0/tests/zero_budget.rs +417 -0
- rgmin-0.9.0/tests/zoom_domain.rs +30 -0
- rgmin-0.9.0/towncrier.toml +37 -0
- rgmin-0.9.0/validation/box_projection.sollya +11 -0
- rgmin-0.9.0/validation/check_box_projection.py +40 -0
- rgmin-0.9.0/validation/check_neb_reset.py +44 -0
- rgmin-0.9.0/validation/check_roundoff_wolfe.py +67 -0
- rgmin-0.9.0/validation/check_scg_direction_restart.py +37 -0
- rgmin-0.9.0/validation/check_spd_retraction.py +43 -0
- rgmin-0.9.0/validation/check_unitary_completion.py +38 -0
- rgmin-0.9.0/validation/fire2.py +76 -0
- rgmin-0.9.0/validation/lbfgs_two_loop.py +99 -0
- rgmin-0.9.0/validation/linesearch_interpolation.py +116 -0
- rgmin-0.9.0/validation/neb_reset.sollya +14 -0
- rgmin-0.9.0/validation/qn_family_derivative.sollya +13 -0
- rgmin-0.9.0/validation/quickmin.py +156 -0
- rgmin-0.9.0/validation/quickmin.sollya +34 -0
- rgmin-0.9.0/validation/roundoff_wolfe.sollya +40 -0
- rgmin-0.9.0/validation/roundtrip.sollya +29 -0
- rgmin-0.9.0/validation/scg_direction_restart.sollya +20 -0
- rgmin-0.9.0/validation/spd_retraction.sollya +11 -0
- rgmin-0.9.0/validation/unitary_completion.sollya +14 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tests/data/gromacs_cg_reference/** -whitespace
|
|
@@ -0,0 +1,514 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
- develop
|
|
8
|
+
paths-ignore:
|
|
9
|
+
- docs/**
|
|
10
|
+
- "**/*.md"
|
|
11
|
+
- newsfragments/**
|
|
12
|
+
- LICENSE
|
|
13
|
+
pull_request:
|
|
14
|
+
branches: [main, develop]
|
|
15
|
+
paths-ignore:
|
|
16
|
+
- docs/**
|
|
17
|
+
- "**/*.md"
|
|
18
|
+
- newsfragments/**
|
|
19
|
+
- LICENSE
|
|
20
|
+
workflow_dispatch:
|
|
21
|
+
|
|
22
|
+
permissions:
|
|
23
|
+
contents: read
|
|
24
|
+
|
|
25
|
+
env:
|
|
26
|
+
CARGO_TERM_COLOR: always
|
|
27
|
+
|
|
28
|
+
jobs:
|
|
29
|
+
format:
|
|
30
|
+
name: rustfmt
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
steps:
|
|
33
|
+
- uses: actions/checkout@v4
|
|
34
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
35
|
+
with:
|
|
36
|
+
toolchain: 1.88.0
|
|
37
|
+
components: rustfmt
|
|
38
|
+
- run: cargo fmt --all -- --check
|
|
39
|
+
|
|
40
|
+
test:
|
|
41
|
+
name: cargo test (${{ matrix.name }})
|
|
42
|
+
runs-on: ubuntu-latest
|
|
43
|
+
strategy:
|
|
44
|
+
fail-fast: false
|
|
45
|
+
matrix:
|
|
46
|
+
include:
|
|
47
|
+
- name: default
|
|
48
|
+
args: ""
|
|
49
|
+
readcon: "0"
|
|
50
|
+
- name: capi
|
|
51
|
+
args: --features capi
|
|
52
|
+
readcon: "0"
|
|
53
|
+
- name: highs
|
|
54
|
+
args: --features highs
|
|
55
|
+
readcon: "0"
|
|
56
|
+
# The C session waist with HiGHS: rgmin_solver_set_highs_callback
|
|
57
|
+
# and the other highs-gated C entries compile only here.
|
|
58
|
+
- name: capi-highs
|
|
59
|
+
args: --features capi,highs
|
|
60
|
+
readcon: "0"
|
|
61
|
+
# Named features, not `--all-features`. The `readcon` feature
|
|
62
|
+
# is a separate row so this staticlib does not link it.
|
|
63
|
+
- name: all-features
|
|
64
|
+
args: --features capi,par,highs,slepc,primme,chase,libkrylov
|
|
65
|
+
readcon: "0"
|
|
66
|
+
- name: readcon
|
|
67
|
+
args: --features readcon
|
|
68
|
+
readcon: "1"
|
|
69
|
+
# rug is LGPL-3.0+ and gmp-mpfr-sys builds GMP from source, so
|
|
70
|
+
# this is also a separate row and `capi` cannot join it.
|
|
71
|
+
- name: periodic-product
|
|
72
|
+
args: --features periodic-product
|
|
73
|
+
readcon: "0"
|
|
74
|
+
gmp: "1"
|
|
75
|
+
steps:
|
|
76
|
+
- uses: actions/checkout@v4
|
|
77
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
78
|
+
with:
|
|
79
|
+
toolchain: 1.88.0
|
|
80
|
+
- uses: Swatinem/rust-cache@v2
|
|
81
|
+
- name: Python reference dependencies
|
|
82
|
+
run: python -m pip install -q numpy scipy
|
|
83
|
+
- name: autotools for gmp-mpfr-sys
|
|
84
|
+
if: matrix.gmp == '1'
|
|
85
|
+
run: sudo apt-get update && sudo apt-get install -y m4
|
|
86
|
+
# Before any `cargo build`, so the C and C++ tests link only the
|
|
87
|
+
# library they build themselves.
|
|
88
|
+
- run: cargo test --locked ${{ matrix.args }}
|
|
89
|
+
- name: C and C++ consumers under valgrind
|
|
90
|
+
if: matrix.name == 'capi'
|
|
91
|
+
run: |
|
|
92
|
+
set -euo pipefail
|
|
93
|
+
sudo apt-get update && sudo apt-get install -y valgrind
|
|
94
|
+
RGMIN_C_TEST_RUNNER="valgrind --error-exitcode=99 --track-origins=yes --quiet" \
|
|
95
|
+
cargo test --locked --features capi --test c_headers --test cxx_headers
|
|
96
|
+
# Optimization decides which stack slots a step reads, so the
|
|
97
|
+
# session steps are checked again against a release library.
|
|
98
|
+
- name: C consumers under valgrind, release library
|
|
99
|
+
if: matrix.name == 'capi'
|
|
100
|
+
run: |
|
|
101
|
+
set -euo pipefail
|
|
102
|
+
RGMIN_C_TEST_RUNNER="valgrind --error-exitcode=99 --track-origins=yes --quiet" \
|
|
103
|
+
cargo test --locked --release --features capi --test c_headers
|
|
104
|
+
- name: Build the libraries the readcon and ABI checks read
|
|
105
|
+
run: cargo build --locked ${{ matrix.args }}
|
|
106
|
+
# Each row's features change the export list, so every row checks it.
|
|
107
|
+
- name: Exported C names stay in the rgmin_ namespace
|
|
108
|
+
run: python3 scripts/check_exports.py
|
|
109
|
+
- name: Staticlib readcon link
|
|
110
|
+
run: |
|
|
111
|
+
lib=target/debug/librgmin.a
|
|
112
|
+
syms=$(mktemp)
|
|
113
|
+
trap 'rm -f "$syms"' EXIT
|
|
114
|
+
nm -a "$lib" > "$syms"
|
|
115
|
+
# `readcon_core` is the crate. A bare `readcon` match also hits
|
|
116
|
+
# `ThreadConfig` inside matrixmultiply.
|
|
117
|
+
if [ "${{ matrix.readcon }}" = "1" ]; then
|
|
118
|
+
grep -q readcon_core "$syms"
|
|
119
|
+
elif grep -E 'readcon_core|readcon-core' "$syms"; then
|
|
120
|
+
echo "this row links readcon"
|
|
121
|
+
exit 1
|
|
122
|
+
fi
|
|
123
|
+
# `gmp_mpfr_sys` is the crate behind rug; only the
|
|
124
|
+
# periodic-product row may reference it.
|
|
125
|
+
if [ "${{ matrix.gmp }}" = "1" ]; then
|
|
126
|
+
grep -q gmp_mpfr_sys "$syms"
|
|
127
|
+
elif grep -E 'gmp_mpfr_sys|mpfr_init2' "$syms"; then
|
|
128
|
+
echo "this row links GMP or MPFR"
|
|
129
|
+
exit 1
|
|
130
|
+
fi
|
|
131
|
+
- name: Public docs, C ABI names and header docs
|
|
132
|
+
if: matrix.name == 'default'
|
|
133
|
+
run: |
|
|
134
|
+
python3 scripts/check_public_docs.py
|
|
135
|
+
python3 scripts/check_abi.py
|
|
136
|
+
python3 scripts/check_header_docs.py
|
|
137
|
+
- name: Tutorial examples
|
|
138
|
+
if: matrix.name == 'default'
|
|
139
|
+
run: |
|
|
140
|
+
for ex in tutorial_quickstart tutorial_session tutorial_lbfgs tutorial_fire tutorial_cg tutorial_bfgs tutorial_newton tutorial_scg tutorial_rcg tutorial_linesearch tutorial_lbfgs_direction howto_level_set; do
|
|
141
|
+
cargo run --locked --quiet --example "$ex"
|
|
142
|
+
done
|
|
143
|
+
|
|
144
|
+
rustdoc:
|
|
145
|
+
name: cargo doc (warnings are errors)
|
|
146
|
+
runs-on: ubuntu-latest
|
|
147
|
+
env:
|
|
148
|
+
RUSTDOCFLAGS: -D warnings
|
|
149
|
+
steps:
|
|
150
|
+
- uses: actions/checkout@v4
|
|
151
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
152
|
+
with:
|
|
153
|
+
toolchain: 1.88.0
|
|
154
|
+
- uses: Swatinem/rust-cache@v2
|
|
155
|
+
- run: cargo doc --locked --no-deps --features capi,par,highs,readcon
|
|
156
|
+
- run: sudo apt-get update && sudo apt-get install -y m4
|
|
157
|
+
- run: cargo doc --locked --no-deps --features periodic-product
|
|
158
|
+
|
|
159
|
+
# rustc 1.93 and 1.94 ship LLVM 21, whose loop vectorizer segfaulted on
|
|
160
|
+
# an f64::max reduction in session/drive.rs. Debug builds skip it.
|
|
161
|
+
# `--all-features` on this line links SLEPc, PRIMME, ChASE and libkrylov,
|
|
162
|
+
# so the job builds the default feature set, which contains scale_cap.
|
|
163
|
+
release:
|
|
164
|
+
name: cargo build and test --release (${{ matrix.toolchain }})
|
|
165
|
+
runs-on: ubuntu-latest
|
|
166
|
+
strategy:
|
|
167
|
+
fail-fast: false
|
|
168
|
+
matrix:
|
|
169
|
+
toolchain: [1.93.0, 1.94.1]
|
|
170
|
+
steps:
|
|
171
|
+
- uses: actions/checkout@v4
|
|
172
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
173
|
+
with:
|
|
174
|
+
toolchain: ${{ matrix.toolchain }}
|
|
175
|
+
- uses: Swatinem/rust-cache@v2
|
|
176
|
+
- name: Python reference dependencies
|
|
177
|
+
run: python -m pip install -q numpy scipy
|
|
178
|
+
- run: cargo build --locked --release
|
|
179
|
+
- run: cargo test --locked --release --lib
|
|
180
|
+
|
|
181
|
+
changelog:
|
|
182
|
+
name: towncrier fragments
|
|
183
|
+
runs-on: ubuntu-latest
|
|
184
|
+
steps:
|
|
185
|
+
- uses: actions/checkout@v4
|
|
186
|
+
- uses: actions/setup-python@v5
|
|
187
|
+
with:
|
|
188
|
+
python-version: "3.12"
|
|
189
|
+
- run: python -m pip install -q towncrier
|
|
190
|
+
- run: python3 scripts/check_changelog.py
|
|
191
|
+
- run: towncrier build --draft --version 0.0.0
|
|
192
|
+
|
|
193
|
+
python:
|
|
194
|
+
name: ASE drop-in
|
|
195
|
+
runs-on: ubuntu-latest
|
|
196
|
+
steps:
|
|
197
|
+
- uses: actions/checkout@v4
|
|
198
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
199
|
+
with:
|
|
200
|
+
toolchain: 1.88.0
|
|
201
|
+
- uses: actions/setup-python@v5
|
|
202
|
+
with:
|
|
203
|
+
python-version: "3.12"
|
|
204
|
+
- run: sudo apt-get update && sudo apt-get install -y python3-dev pkg-config
|
|
205
|
+
- run: python -m pip install -q maturin numpy "ase>=3.23" pytest pytest-timeout
|
|
206
|
+
- name: Build and install the wheel
|
|
207
|
+
working-directory: python
|
|
208
|
+
run: maturin build --release -o target/wheels
|
|
209
|
+
- run: python -m pip install --force-reinstall python/target/wheels/*.whl
|
|
210
|
+
- run: python -m pytest python/tests -q --import-mode=importlib --timeout=180 -o faulthandler_timeout=120
|
|
211
|
+
- name: Tutorial example
|
|
212
|
+
run: python examples/tutorial_lowest_eigenpairs.py
|
|
213
|
+
- name: Manifold tutorial
|
|
214
|
+
run: python examples/tutorial_manifold_fit.py
|
|
215
|
+
|
|
216
|
+
lammps:
|
|
217
|
+
name: LAMMPS min_style rgmin (${{ matrix.lammps }})
|
|
218
|
+
runs-on: ubuntu-latest
|
|
219
|
+
strategy:
|
|
220
|
+
fail-fast: false
|
|
221
|
+
matrix:
|
|
222
|
+
# The first stable release that loads min styles from plugins,
|
|
223
|
+
# and the current one.
|
|
224
|
+
lammps: [stable_22Jul2025_update2, stable_30Sep2026_update1]
|
|
225
|
+
steps:
|
|
226
|
+
- uses: actions/checkout@v4
|
|
227
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
228
|
+
with:
|
|
229
|
+
toolchain: 1.88.0
|
|
230
|
+
- uses: Swatinem/rust-cache@v2
|
|
231
|
+
- uses: actions/setup-python@v5
|
|
232
|
+
with:
|
|
233
|
+
python-version: "3.12"
|
|
234
|
+
- run: sudo apt-get update && sudo apt-get install -y libopenmpi-dev openmpi-bin
|
|
235
|
+
- uses: actions/cache@v4
|
|
236
|
+
id: lammps-cache
|
|
237
|
+
with:
|
|
238
|
+
path: ~/lammps
|
|
239
|
+
key: lammps-${{ matrix.lammps }}-mpi-manybody-plugin-v1
|
|
240
|
+
- name: Build LAMMPS (MPI, MANYBODY, PLUGIN)
|
|
241
|
+
if: steps.lammps-cache.outputs.cache-hit != 'true'
|
|
242
|
+
run: |
|
|
243
|
+
mkdir -p ~/lammps
|
|
244
|
+
curl -sSfL "https://github.com/lammps/lammps/archive/refs/tags/${{ matrix.lammps }}.tar.gz" \
|
|
245
|
+
| tar xz -C ~/lammps --strip-components=1
|
|
246
|
+
cmake -S ~/lammps/cmake -B ~/lammps/build -D CMAKE_BUILD_TYPE=Release \
|
|
247
|
+
-D BUILD_MPI=on -D BUILD_OMP=off -D BUILD_SHARED_LIBS=on \
|
|
248
|
+
-D PKG_PLUGIN=on -D PKG_MANYBODY=on \
|
|
249
|
+
-D WITH_JPEG=off -D WITH_PNG=off -D WITH_FFMPEG=off -D WITH_GZIP=off
|
|
250
|
+
cmake --build ~/lammps/build -j "$(nproc)"
|
|
251
|
+
rm -rf ~/lammps/doc ~/lammps/examples ~/lammps/bench ~/lammps/tools ~/lammps/unittest
|
|
252
|
+
- run: cargo build --release --locked --lib --features capi
|
|
253
|
+
- name: Build the plugin against the rgmin staticlib
|
|
254
|
+
run: |
|
|
255
|
+
cmake -S lammps -B build-lammps -D CMAKE_BUILD_TYPE=Release \
|
|
256
|
+
-D LAMMPS_SOURCE_DIR="$HOME/lammps/src" \
|
|
257
|
+
-D RGMIN_LIBRARY="$PWD/target/release/librgmin.a" \
|
|
258
|
+
-D RGMIN_LAMMPS_LMP="$HOME/lammps/build/lmp" \
|
|
259
|
+
-D Python3_EXECUTABLE="$(which python)"
|
|
260
|
+
cmake --build build-lammps
|
|
261
|
+
- run: python -m pip install -q pytest
|
|
262
|
+
- name: Plugin tests (1, 2 and 4 MPI ranks)
|
|
263
|
+
run: |
|
|
264
|
+
export LAMMPS_POTENTIALS="$HOME/lammps/potentials"
|
|
265
|
+
export RGMIN_LAMMPS_MPIRUN="mpirun --oversubscribe"
|
|
266
|
+
ctest --test-dir build-lammps --output-on-failure
|
|
267
|
+
# Memcheck exits 99 on an uninitialised read, and the tests require
|
|
268
|
+
# exit 0. The rank tests stay native.
|
|
269
|
+
- name: Single-rank plugin tests under valgrind
|
|
270
|
+
if: matrix.lammps == 'stable_22Jul2025_update2'
|
|
271
|
+
run: |
|
|
272
|
+
set -euo pipefail
|
|
273
|
+
sudo apt-get install -y valgrind
|
|
274
|
+
export LAMMPS_POTENTIALS="$HOME/lammps/potentials"
|
|
275
|
+
export RGMIN_LAMMPS_LMP="$HOME/lammps/build/lmp"
|
|
276
|
+
export RGMIN_LAMMPS_PLUGIN="$PWD/build-lammps/rgminplugin.so"
|
|
277
|
+
export RGMIN_LAMMPS_RUNNER="valgrind --error-exitcode=99 --track-origins=yes --quiet --suppressions=/usr/share/openmpi/openmpi-valgrind.supp"
|
|
278
|
+
python -m pytest -q lammps/tests -k "not rank_counts"
|
|
279
|
+
|
|
280
|
+
strong-scale:
|
|
281
|
+
name: strong_scale smoke
|
|
282
|
+
runs-on: ubuntu-latest
|
|
283
|
+
steps:
|
|
284
|
+
- uses: actions/checkout@v4
|
|
285
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
286
|
+
with:
|
|
287
|
+
toolchain: 1.88.0
|
|
288
|
+
- uses: Swatinem/rust-cache@v2
|
|
289
|
+
- run: cargo run --locked --features par --example strong_scale -- --cells 2 --repeats 1 --max-threads 2
|
|
290
|
+
|
|
291
|
+
clippy:
|
|
292
|
+
name: clippy (${{ matrix.toolchain }}, ${{ matrix.name }})
|
|
293
|
+
runs-on: ubuntu-latest
|
|
294
|
+
strategy:
|
|
295
|
+
fail-fast: false
|
|
296
|
+
matrix:
|
|
297
|
+
toolchain: [1.88.0, stable]
|
|
298
|
+
name: [default, capi, highs, capi-highs, all-features]
|
|
299
|
+
include:
|
|
300
|
+
- name: default
|
|
301
|
+
args: ""
|
|
302
|
+
- name: capi
|
|
303
|
+
args: --features capi
|
|
304
|
+
- name: highs
|
|
305
|
+
args: --features highs
|
|
306
|
+
- name: capi-highs
|
|
307
|
+
args: --features capi,highs
|
|
308
|
+
- name: all-features
|
|
309
|
+
args: --features capi,par,highs,slepc,primme,chase,libkrylov
|
|
310
|
+
steps:
|
|
311
|
+
- uses: actions/checkout@v4
|
|
312
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
313
|
+
with:
|
|
314
|
+
toolchain: ${{ matrix.toolchain }}
|
|
315
|
+
components: clippy
|
|
316
|
+
- uses: Swatinem/rust-cache@v2
|
|
317
|
+
- run: cargo clippy --locked --all-targets ${{ matrix.args }} -- -D warnings
|
|
318
|
+
|
|
319
|
+
# The all-features rows above find no backend libraries, so each
|
|
320
|
+
# eigensolver backend there is the EigenUnavailable stub. This row links
|
|
321
|
+
# SLEPc from conda-forge and PRIMME, ChASE and libkrylov built from
|
|
322
|
+
# source, and fails when any of them stays a stub. The login shell
|
|
323
|
+
# activates the environment, so its python3 runs the NumPy and SciPy
|
|
324
|
+
# reference scripts that the tests spawn.
|
|
325
|
+
backends:
|
|
326
|
+
name: real backends (SLEPc, PRIMME, ChASE, libkrylov)
|
|
327
|
+
runs-on: ubuntu-latest
|
|
328
|
+
env:
|
|
329
|
+
FEATURES: capi,par,highs,slepc,primme,chase,libkrylov
|
|
330
|
+
BACKENDS_PREFIX: ${{ github.workspace }}/.backends
|
|
331
|
+
OMPI_MCA_rmaps_base_oversubscribe: "1"
|
|
332
|
+
defaults:
|
|
333
|
+
run:
|
|
334
|
+
shell: bash -el {0}
|
|
335
|
+
steps:
|
|
336
|
+
- uses: actions/checkout@v4
|
|
337
|
+
- uses: mamba-org/setup-micromamba@v2
|
|
338
|
+
with:
|
|
339
|
+
environment-name: backends
|
|
340
|
+
# yaml 0.2.6 ships libyaml-0.so.1, but petsc 3.26.1 links libyaml-0.so.2.
|
|
341
|
+
create-args: >-
|
|
342
|
+
petsc=3.26.1=real_*
|
|
343
|
+
slepc=3.26.1=real_*
|
|
344
|
+
openmpi=5.0.11
|
|
345
|
+
scalapack=2.2.0
|
|
346
|
+
openblas=0.3.34
|
|
347
|
+
libblas=*=*openblas
|
|
348
|
+
liblapack=*=*openblas
|
|
349
|
+
gcc=16.2.0
|
|
350
|
+
gxx=16.2.0
|
|
351
|
+
gfortran=16.2.0
|
|
352
|
+
cmake=4.5.0
|
|
353
|
+
make=4.4.1
|
|
354
|
+
pkg-config=0.29.2
|
|
355
|
+
yaml=0.2.5
|
|
356
|
+
python=3.12
|
|
357
|
+
numpy=2.5.4
|
|
358
|
+
scipy=1.18.1
|
|
359
|
+
condarc: |
|
|
360
|
+
channels:
|
|
361
|
+
- conda-forge
|
|
362
|
+
channel_priority: strict
|
|
363
|
+
cache-environment: true
|
|
364
|
+
- uses: actions/cache@v4
|
|
365
|
+
id: source-backends
|
|
366
|
+
with:
|
|
367
|
+
path: .backends
|
|
368
|
+
key: backends-${{ runner.os }}-primme3.2.3-chase1.7.4-libkrylov1.1.0-gfortran12.4.0-openmpi5.0.11-${{ hashFiles('scripts/build_ci_backends.sh') }}
|
|
369
|
+
- name: gfortran 12 for libkrylov
|
|
370
|
+
if: steps.source-backends.outputs.cache-hit != 'true'
|
|
371
|
+
run: >-
|
|
372
|
+
micromamba create -y -q -p "$RUNNER_TEMP/gf12" -c conda-forge --override-channels
|
|
373
|
+
gfortran=12.4.0 gcc=12.4.0 cmake=4.5.0 make=4.4.1 openblas=0.3.34
|
|
374
|
+
"libblas=*=*openblas" "liblapack=*=*openblas"
|
|
375
|
+
- name: Build PRIMME, ChASE and libkrylov
|
|
376
|
+
if: steps.source-backends.outputs.cache-hit != 'true'
|
|
377
|
+
run: GF12_PREFIX="$RUNNER_TEMP/gf12" scripts/build_ci_backends.sh "$BACKENDS_PREFIX" "$RUNNER_TEMP/backend-src"
|
|
378
|
+
- name: Backend search paths
|
|
379
|
+
run: |
|
|
380
|
+
{
|
|
381
|
+
echo "PRIMME_DIR=$BACKENDS_PREFIX"
|
|
382
|
+
echo "CHASE_DIR=$BACKENDS_PREFIX"
|
|
383
|
+
echo "LIBKRYLOV_DIR=$BACKENDS_PREFIX"
|
|
384
|
+
echo "PKG_CONFIG_PATH=$BACKENDS_PREFIX/lib/pkgconfig:$CONDA_PREFIX/lib/pkgconfig"
|
|
385
|
+
echo "LD_LIBRARY_PATH=$BACKENDS_PREFIX/lib:$CONDA_PREFIX/lib"
|
|
386
|
+
} >> "$GITHUB_ENV"
|
|
387
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
388
|
+
with:
|
|
389
|
+
toolchain: 1.88.0
|
|
390
|
+
components: clippy
|
|
391
|
+
- name: Stable clippy
|
|
392
|
+
run: rustup toolchain install stable --profile minimal --component clippy
|
|
393
|
+
- uses: Swatinem/rust-cache@v2
|
|
394
|
+
- name: Build and require every backend
|
|
395
|
+
run: |
|
|
396
|
+
cargo build --locked --features "$FEATURES" --message-format=json > build.json
|
|
397
|
+
id=$(cargo metadata --locked --no-deps --format-version 1 | jq -r '.packages[] | select(.name == "rgmin") | .id')
|
|
398
|
+
cfgs=$(jq -r --arg id "$id" 'select(.reason == "build-script-executed" and .package_id == $id) | .cfgs[]' build.json)
|
|
399
|
+
echo "$cfgs"
|
|
400
|
+
for backend in slepc primme chase libkrylov; do
|
|
401
|
+
grep -qx "rgmin_has_$backend" <<< "$cfgs" || { echo "rgmin_has_$backend is not set"; exit 1; }
|
|
402
|
+
done
|
|
403
|
+
- run: cargo test --locked --features "$FEATURES"
|
|
404
|
+
- run: cargo clippy --locked --all-targets --features "$FEATURES" -- -D warnings
|
|
405
|
+
- run: cargo +stable clippy --locked --all-targets --features "$FEATURES" -- -D warnings
|
|
406
|
+
|
|
407
|
+
# Forcing tests. A clone this runner cannot execute is "not exercised"
|
|
408
|
+
# in the test log. The scalar path is always forced.
|
|
409
|
+
isa:
|
|
410
|
+
name: isa forcing (${{ matrix.name }})
|
|
411
|
+
runs-on: ${{ matrix.os }}
|
|
412
|
+
strategy:
|
|
413
|
+
fail-fast: false
|
|
414
|
+
matrix:
|
|
415
|
+
include:
|
|
416
|
+
- name: ubuntu-x86_64-1.88
|
|
417
|
+
os: ubuntu-latest
|
|
418
|
+
toolchain: 1.88.0
|
|
419
|
+
- name: ubuntu-x86_64-1.89
|
|
420
|
+
os: ubuntu-latest
|
|
421
|
+
toolchain: 1.89.0
|
|
422
|
+
- name: ubuntu-arm64-1.88
|
|
423
|
+
os: ubuntu-24.04-arm
|
|
424
|
+
toolchain: 1.88.0
|
|
425
|
+
steps:
|
|
426
|
+
- uses: actions/checkout@v4
|
|
427
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
428
|
+
with:
|
|
429
|
+
toolchain: ${{ matrix.toolchain }}
|
|
430
|
+
- uses: Swatinem/rust-cache@v2
|
|
431
|
+
- name: CPU flags
|
|
432
|
+
run: |
|
|
433
|
+
grep -m1 flags /proc/cpuinfo || true
|
|
434
|
+
lscpu || true
|
|
435
|
+
sysctl -n machdep.cpu.brand_string || true
|
|
436
|
+
- name: Force every compiled clone, serial
|
|
437
|
+
run: cargo test --locked --features simd --test vecops_isa -- --nocapture
|
|
438
|
+
- name: Force every compiled clone, par
|
|
439
|
+
run: cargo test --locked --features simd,par --test vecops_isa -- --nocapture
|
|
440
|
+
|
|
441
|
+
# Unstripped simd libraries for the static ISA audit.
|
|
442
|
+
# LTO is off so each multiversion clone keeps its own symbol.
|
|
443
|
+
# 1.89 emits the avx512f clone. That is not a target-cpu flag.
|
|
444
|
+
isa-build:
|
|
445
|
+
name: unstripped simd libs
|
|
446
|
+
runs-on: ubuntu-latest
|
|
447
|
+
steps:
|
|
448
|
+
- uses: actions/checkout@v4
|
|
449
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
450
|
+
with:
|
|
451
|
+
toolchain: 1.89.0
|
|
452
|
+
targets: aarch64-unknown-linux-gnu
|
|
453
|
+
- name: aarch64 linker
|
|
454
|
+
run: sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu
|
|
455
|
+
- name: CPU flags
|
|
456
|
+
run: |
|
|
457
|
+
grep -m1 flags /proc/cpuinfo || true
|
|
458
|
+
lscpu || true
|
|
459
|
+
- name: x86_64 release library
|
|
460
|
+
env:
|
|
461
|
+
CARGO_PROFILE_RELEASE_LTO: "off"
|
|
462
|
+
CARGO_PROFILE_RELEASE_DEBUG: line-tables-only
|
|
463
|
+
CARGO_PROFILE_RELEASE_STRIP: none
|
|
464
|
+
run: cargo build --release --locked --features simd
|
|
465
|
+
- name: aarch64 release library
|
|
466
|
+
env:
|
|
467
|
+
CARGO_PROFILE_RELEASE_LTO: "off"
|
|
468
|
+
CARGO_PROFILE_RELEASE_DEBUG: line-tables-only
|
|
469
|
+
CARGO_PROFILE_RELEASE_STRIP: none
|
|
470
|
+
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
|
|
471
|
+
run: cargo build --release --locked --features simd --target aarch64-unknown-linux-gnu
|
|
472
|
+
- name: Stage the rgmin object files
|
|
473
|
+
run: |
|
|
474
|
+
mkdir -p isa-staging/x86_64 isa-staging/aarch64
|
|
475
|
+
rm -rf isa-extract
|
|
476
|
+
mkdir -p isa-extract/x86 isa-extract/arm
|
|
477
|
+
(cd isa-extract/x86 && ar x "$GITHUB_WORKSPACE/target/release/librgmin.a")
|
|
478
|
+
(cd isa-extract/arm && ar x "$GITHUB_WORKSPACE/target/aarch64-unknown-linux-gnu/release/librgmin.a")
|
|
479
|
+
cp isa-extract/x86/rgmin*.o isa-staging/x86_64/
|
|
480
|
+
cp isa-extract/arm/rgmin*.o isa-staging/aarch64/
|
|
481
|
+
- uses: actions/upload-artifact@v4
|
|
482
|
+
with:
|
|
483
|
+
name: unstripped-libs
|
|
484
|
+
path: isa-staging/
|
|
485
|
+
|
|
486
|
+
isa-audit:
|
|
487
|
+
name: isa audit
|
|
488
|
+
needs: isa-build
|
|
489
|
+
uses: OmniPotentRPC/rgpot/.github/workflows/isa-audit.yml@06638f2ece83b12731b387ba819b67dc2151556b
|
|
490
|
+
with:
|
|
491
|
+
artifact-name: unstripped-libs
|
|
492
|
+
allow-file: isa-allow.toml
|
|
493
|
+
|
|
494
|
+
cinstall:
|
|
495
|
+
name: cargo cinstall
|
|
496
|
+
runs-on: ubuntu-latest
|
|
497
|
+
steps:
|
|
498
|
+
- uses: actions/checkout@v4
|
|
499
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
500
|
+
with:
|
|
501
|
+
toolchain: 1.88.0
|
|
502
|
+
- uses: Swatinem/rust-cache@v2
|
|
503
|
+
- name: Install cargo-c
|
|
504
|
+
run: |
|
|
505
|
+
sudo apt-get update
|
|
506
|
+
sudo apt-get install -y libssl-dev pkg-config
|
|
507
|
+
rustup toolchain install 1.89.0 --profile minimal
|
|
508
|
+
cargo +1.89.0 install cargo-c --locked --version 0.10.17+cargo-0.92.0
|
|
509
|
+
- name: Install into a prefix and compile C and C++
|
|
510
|
+
run: tests/cinstall/smoke.sh
|
|
511
|
+
|
|
512
|
+
concurrency:
|
|
513
|
+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
514
|
+
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')) }}
|