Download this article
 Download this article For screen
For printing
Recent Issues
Volume 15, Issue 1
Volume 14, Issue 1
Volume 13, Issue 1
Volume 12, Issue 1
Volume 11, Issue 1
Volume 10, Issue 1
Volume 9, Issue 2
Volume 9, Issue 1
Volume 8, Issue 1
Volume 7, Issue 1
Volume 6, Issue 1
Volume 5, Issue 1
Volume 4, Issue 1
Volume 3, Issue 1
Volume 2, Issue 1
Volume 1, Issue 1
The Journal
About the Journal
Editorial Board
 
Submission Guidelines
Submission Form
Policies for Authors
Ethics Statement
 
ISSN 1948-7916
Author Index
To Appear
 
Other MSP Journals
ForeignFunctions package for Macaulay2

Douglas A. Torrance

Vol. 15 (2025), 1–9
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
Macaulay2, foreign function interface
Mathematical Subject Classification
Primary: 13-04, 14-04
Secondary: 65T50, 62J05
Supplementary material

ForeignFunctions.m2

Milestones
Received: 21 May 2024
Revised: 10 December 2024
Accepted: 17 December 2024
Published: 17 January 2025
Authors
Douglas A. Torrance
Department of Mathematical Sciences
Piedmont University
Demorest, GA
United States