Discrete Legendre Transform (flt)

This is a minimal Python package for fast discrete Legendre transforms (DLTs). The implementation uses a recursive version of the matrix relations by Alpert & Rokhlin (1991) to compute the DLT via a discrete cosine transform (DCT).

The package can be installed using pip:

pip install flt

Current functionality covers the absolutely minimal use case. Please open an issue on GitHub if you would like to see anything added.

Reference/API

dlt

discrete Legendre transform

idlt

inverse discrete Legendre transform

dltmtx

discrete Legendre transform matrix

idltmtx

inverse discrete Legendre transform matrix

theta

compute angles for DLT function values