English

ForeignFunctions package for Macaulay2

Algebraic Geometry 2025-01-22 v2 Commutative Algebra

Abstract

We introduce the ForeignFunctions package for Macaulay2, which uses libffi to provide the ability to call functions from external libraries without needing to link against them at compile time. As examples, we use the library FFTW to multiply polynomials using fast Fourier transforms, call a LAPACK function to solve a general Gauss-Markov linear model problem, and use JIT compilation to compute Fibonacci numbers.

Keywords

Cite

@article{arxiv.2405.12365,
  title  = {ForeignFunctions package for Macaulay2},
  author = {Douglas A. Torrance},
  journal= {arXiv preprint arXiv:2405.12365},
  year   = {2025}
}

Comments

8 pages. New LAPACK and JIT examples added

R2 v1 2026-06-28T16:33:38.015Z