Fast N-dimensional polynomial interpolation on regular grids with Python and R bindings.
- Trilinear interpolation (faster than scipy)
- Extends naturally to tricubic, higher dimensions
- Python and R bindings
- Efficient precomputed matrix approach
Install directly from GitHub:
python -m pip install git+https://github.com/rae-gh/grid-fit.gitInstall directly from GitHub using devtools:
install.packages("devtools")
library(devtools)
install_url("https://github.com/rae-gh/grid-fit/archive/refs/heads/main.zip")import gridfit
result = gridfit.interp(0, 1, 1)
print(result) # [0.5]library(gridfit)
result <- interp(0, 1, 1)
print(result) # [0.5]To build, install, and test all language bindings (C++, Python, R) in one step, run:
./install.shThis script will build everything and run example scripts for all three languages. If you see output from all three, your setup is correct!
For more details, see DEV.md or docs/development.md.
**.gitignore:**
build/ dist/ *.so *.dll *.dylib *.o
pycache/ *.pyc *.egg-info/ .pytest_cache/
*.Rcheck/ .Rhistory
.vscode/ .idea/ *.swp