Skip to main content

Introduction

The TPI package implements tensor spline interpolation in arbitrary dimensions.

The package provides two classes

BsplineBasis1D:

  • Calculates the B-spline basis for a 1-dimensional knots vector.
  • Constructs the spline matrix.
  • The splines are cubic and use not-a-knot boundary conditions.

TP_Interpolant_ND:

  • Provides setup and solution of tensor product spline problems in N dimensions.
  • Sets up spline data structures for a Cartesian product grid.
  • Computes the spline coefficients given data for a scalar gridfunction.
  • Carries interpolates the griddata at a desired point in the parameter space spanned by the grid.
  • Spline coefficient data can be returned or set, so that the setup and solution of the interpolation problem can be separated, by writing the coefficient data to disk.

Installation

To install to the system python folder run

  python setup.py build_ext
  sudo python setup.py install

If you do not have admin rights you can install locally

  python setup.py build_ext
  python setup.py build_ext install --user

You can create a source distribution and then install the package with pip

python setup.py sdist
pip install --user

or you can build the package using

python3 -m build

You can also install the package via https://pypi.org/project/tpi-splines/.

TPI supports Python 3. Unit tests can be run with pytest.

Dependencies

TPI requires GSL, the GNU Scientific Library. The project homepage is http://www.gnu.org/software/gsl/

TPI now supports gsl 2.x (It has been tested with gsl 2.7.1).

gsl-config --version

On OS X you can use "brew" (https://brew.sh/) to install gsl. Note that the "brew switch" command which could be used to select a particular version of a software package, no longer exists.

Metadata

Release files for tpi-splines 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tpi-splines 1.0.1
File Size Uploaded Provenance Actions
tpi-splines-1.0.1.tar.gz 128.8 kB Without provenance Details for tpi-splines-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tpi-splines 1.0.1
File Interpreter ABI Platform Actions
tpi_splines-1.0.1-cp39-cp39-macosx_10_9_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.9+ x86-64 Details for tpi_splines-1.0.1-cp39-cp39-macosx_10_9_x86_64.whl

Total release size: 185.1 kB

Release files / tpi-splines-1.0.1.tar.gz

Download URL tpi-splines-1.0.1.tar.gz
Size 128.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a6d1e3f0d7977a39a27c634ee5c688df25afcdc06228ecfab965ae8caf0342f9
BLAKE2b-256 checksum
How to use checksums
c1ece9f0ff8557d576c138efa1b9aaac8602ea753c9c894bbc8d70d927ed70d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.7

Release files / tpi_splines-1.0.1-cp39-cp39-macosx_10_9_x86_64.whl

Download URL tpi_splines-1.0.1-cp39-cp39-macosx_10_9_x86_64.whl
Size 56.3 kB
Tags CPython 3.9 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
520decc0d87fb3b05803fbdeab240060a58691a838f2416dade805b48a281117
BLAKE2b-256 checksum
How to use checksums
3d8a3584bfdcb5478b4ad3eafa7c889cf2b97c1f24f9421b2b1cc3e39298a71c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.7

Security for tpi-splines 1.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page