clausal-scipy
SciPy predicates for Clausal Prolog.
Wraps SciPy's subpackages as Clausal Prolog predicates, one module
each: scipy_linalg, scipy_optimize, scipy_stats,
scipy_integrate, scipy_interpolate, scipy_fft, scipy_ndimage,
scipy_spatial, scipy_signal, scipy_sparse, scipy_cluster,
scipy_special, scipy_constants and scipy_differentiate.
Install
pip install clausal-scipy
scipy is pulled in as a dependency. Requires Python 3.13 or later.
Use
Import the predicates into a seam (.seam) module, as the package's own
tests do. A Clausal Prolog (.clausal) module reaches Python only through
the seam: put the imports in a .seam module and list it under
[tool.clausal] python_bridges in your project's pyproject.toml (see
Importing Prolog).
This test, from tests/fixtures/scipy_cluster_tests.seam,
shows the shape of a call:
-import_from(scipy_cluster, [linkage])
sample_points(DATA) <- (DATA is [[1.0,1.0],[1.2,0.9],[0.8,1.1],[5.0,5.0],[5.1,4.9],[4.9,5.1]])
test("linkage ward produces matrix") <- (
sample_points(DATA),
linkage(DATA, 'ward', Z),
ROWS is ++(len(Z)),
ROWS == 5)
Documentation
- scipy.cluster — Clustering
- scipy.constants — Physical Constants
- scipy.differentiate — Numerical Differentiation
- scipy.fft — Fast Fourier Transforms
- scipy.integrate — Numerical Integration
- scipy.interpolate — Interpolation
- scipy.linalg — Linear Algebra
- scipy.ndimage — N-dimensional Image Processing
- scipy.optimize — Optimisation
- scipy.signal — Signal Processing
- scipy.sparse — Sparse Matrices and Sparse Linear Algebra
- scipy.spatial — Spatial Algorithms
- scipy.special — Mathematical Special Functions
- scipy.stats — statistics
- Predicate renames (2026-10-02)
License
MIT
Metadata
Release files for clausal-scipy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| clausal_scipy-0.1.0.tar.gz | 84.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| clausal_scipy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 136.5 kB
Release files / clausal_scipy-0.1.0.tar.gz
| Download URL | clausal_scipy-0.1.0.tar.gz |
|---|---|
| Size | 84.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec35e0fecc9905c334dbe80c716d03a427856f8cdac580828ab00645469afb98
|
|
BLAKE2b-256 checksum How to use checksums |
c034ac5b11aa76da09e1b2e0ad0444b10aa7344d3940a499c7fd694e2c801a06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logRelease files / clausal_scipy-0.1.0-py3-none-any.whl
| Download URL | clausal_scipy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 52.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1365713f3ffb9e325dc27fc3b6d0564c700a877c4258d2fb470a59d92661c093
|
|
BLAKE2b-256 checksum How to use checksums |
ec80990a7c56067b8dd486706e76d88226e8ebf6d5a5665a3f00ec52befe4ccb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency log