Skip to main content

PErsistent Topological Laplacian Software: a Python Library to Compute Persistent Topological Laplacians

Project description

See the documentation for details on requirements, installation, and API usage.

Build

Python Dependencies

  • Eigen version 3.4 or higher
  • pybind11
  • scipy
  • numpy
  • Boost

Python installation and usage

The simplest way to install is:

pip install petls

The next simplest is to clone the repository and run

pip install .

After that, you're all set:

   $ python
   >>> from petls import Rips
   >>> import numpy as np
   >>> points = np.array([[0,0], [1,0], [0,1], [1,1]])
   >>> complex = Rips(points, max_dim=3)
   >>> complex.spectra(dim=1, a=3, b=4)
   [2.0, 2.0]

C++ installation

First, make and enter the cpp/build directory.

   cd cpp
   mkdir build
   cd build

Next, we make and install the project. If you have root access:

   cmake ..
   sudo make all install

If you do not have root access (e.g. on an HPC):

   cmake -DCMAKE_INSTALL_PREFIX=<location> ..
   make all install

Usually CMAKE_INSTALL_PREFIX is something like ~/custom_libraries/.

For examples of how to include the library, see the examples directory, e.g. examples/basic_cpp/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

petls-0.0.0.tar.gz (24.6 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

petls-0.0.0-cp312-cp312-manylinux_2_28_x86_64.whl (13.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

petls-0.0.0-cp310-cp310-manylinux_2_28_x86_64.whl (13.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

File details

Details for the file petls-0.0.0.tar.gz.

File metadata

  • Download URL: petls-0.0.0.tar.gz
  • Upload date:
  • Size: 24.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for petls-0.0.0.tar.gz
Algorithm Hash digest
SHA256 2d5c53be2a3c8fe0ec5642db9a3d4a8d521eacd516cb032e43e59cef998b217f
MD5 69cd7783270b1cde68afdc8111cddf39
BLAKE2b-256 01697a5129987cfa586e7c3fe5d555f9f1707a72bd618951301b354df0bb42f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for petls-0.0.0.tar.gz:

Publisher: build_wheels.yml on bdjones13/petls

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file petls-0.0.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for petls-0.0.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bee09d5dc86a015a255410f51949e169904d2dd6b5c2dcc455157c6d9525f6d9
MD5 b70f49af4f91cd43bc29995b04fcbf1f
BLAKE2b-256 6d62829ec2100c5fef37ffa83d5d9c27e2a6597c533e6808c95b85ea8d8fb439

See more details on using hashes here.

Provenance

The following attestation bundles were made for petls-0.0.0-cp312-cp312-manylinux_2_28_x86_64.whl:

Publisher: build_wheels.yml on bdjones13/petls

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file petls-0.0.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for petls-0.0.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ee663da498e813529279f9f3aaca0f831836db55ce4da2b6dd548d16a48a2e19
MD5 17aef897d1360cf84a4878178c56da44
BLAKE2b-256 0f52f5dea438863c252a73ceeb86dfd0afcc225d42cf1938eff4ccf1b1edfe3f

See more details on using hashes here.

Provenance

The following attestation bundles were made for petls-0.0.0-cp310-cp310-manylinux_2_28_x86_64.whl:

Publisher: build_wheels.yml on bdjones13/petls

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page