Skip to main content

pytricubic

pytricubic is a simple Python wrapper for the tricubic interpolation algorithm by Lekien and Marsden based on the implementation by David Kirkby (https://github.com/deepzot/likely). Performance compared to the reference implementation has been improved drastically by doing the matrix multiplication with the linear algebra template library Eigen.

The tricubic interpolation scheme is described in:

Lekien, F. and Marsden, J.: Tricubic interpolation in three dimensions. In: International Journal for Numerical Methods in Engineering (2005), No. 63, p. 455-471

Installing pytricubic only requires CMake being installed and typing:

pip install tricubic

A manual build process is not necessary if you just want to use library.

0. Building manually

This chapter assumes that you are working in a standard Linux environment with tools like g++ and cmake already installed. The template libraries Eigen3 for linear algebra and pybind11 for binding to Python are now included in the thirdparty subfolder. Threfore, no external requirements exist.

Installing pytricubic is as easy as:

git clone git://github.com/danielguterding/pytricubic.git  
cd pytricubic  
mkdir build  
cd build  
cmake ../  
make  

1. Usage

An example of how to use the interpolator class is given in example.py. Only Python lists are supported as inputs. Numpy arrays first have to be converted to Python lists.

Metadata

Release files for tricubic 1.0.5

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

Source distribution (sdist)

Source distribution for tricubic 1.0.5
File Size Uploaded Provenance Actions
tricubic-1.0.5.tar.gz 3.7 MB Without provenance Details for tricubic-1.0.5.tar.gz

Release files / tricubic-1.0.5.tar.gz

Download URL tricubic-1.0.5.tar.gz
Size 3.7 MB
Tags Source
SHA-256 checksum
How to use checksums
203c96a4d20c889b14d95077938595315340be56345252d4f81cffaa71615af5
BLAKE2b-256 checksum
How to use checksums
37603fed9c9149cf64132b9f74bdf014b64fb7024924cd542496b2b3de61d912
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for tricubic 1.0.5

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.

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