FastTransforms
Loading...
Searching...
No Matches
fasttransforms.h File Reference

fasttransforms.h is the main header file for FastTransforms. More...

#include <cblas.h>
#include <fftw3.h>
#include "tdc.h"
#include <mpfr.h>

Go to the source code of this file.

Data Structures

struct  ft_mpfr_triangular_banded
struct  ft_harmonic_plan
 Data structure to store ft_rotation_plans, arrays to represent 1D orthogonal polynomial transforms and their inverses, and Greek parameters. More...
struct  ft_spin_harmonic_plan
 Data structure to store a ft_spin_rotation_plan, and various arrays to represent 1D orthogonal polynomial transforms. More...
struct  ft_sphere_fftw_plan
struct  ft_triangle_fftw_plan
struct  ft_tetrahedron_fftw_plan
struct  ft_disk_fftw_plan
struct  ft_annulus_fftw_plan
struct  ft_rectdisk_fftw_plan
struct  ft_spinsphere_fftw_plan
struct  ft_gradient_plan
struct  ft_helmholtzhodge_plan
struct  ft_orthogonal_transformation
 A static struct to store an orthogonal matrix \(Q \in \mathbb{R}^{3\times3}\), such that \(Q^\top Q = I\). \(Q\) has column-major storage. More...
struct  ft_ZYZR
 Every orthogonal matrix \(Q \in \mathbb{R}^{3\times3}\) can be decomposed as a product of \(ZYZ\) Euler angles and, if necessary, a reflection \(R\) about the \(xy\)-plane. More...
struct  ft_reflection
 A static struct to store a reflection about the plane \(w\cdot x = 0\) in \(\mathbb{R}^3\). More...
struct  ft_partial_sph_isometry_plan
struct  ft_sph_isometry_plan

Macros

#define FT_GET_THREAD_NUM()
#define FT_GET_NUM_THREADS()
#define FT_GET_MAX_THREADS()
#define FT_SET_NUM_THREADS(x)
#define FT_CONCAT(prefix, name, suffix)
#define FT_SN   (1U << 0)
#define FT_CN   (1U << 1)
#define FT_DN   (1U << 2)
#define FT_MODIFIED_NMAX   (1U << 30)

Typedefs

typedef double ft_complex[2]
typedef struct ft_rotation_plan_s ft_rotation_plan
 Data structure to store sines and cosines of Givens rotations.
typedef struct ft_spin_rotation_plan_s ft_spin_rotation_plan
 Data structure to store sines and cosines of Givens rotations for spin-weighted harmonics.

Functions

void ft_horner (const int n, const double *c, const int incc, const int m, double *x, double *f)
void ft_hornerf (const int n, const float *c, const int incc, const int m, float *x, float *f)
void ft_clenshaw (const int n, const double *c, const int incc, const int m, double *x, double *f)
void ft_clenshawf (const int n, const float *c, const int incc, const int m, float *x, float *f)
void ft_orthogonal_polynomial_clenshaw (const int n, const double *c, const int incc, const double *A, const double *B, const double *C, const int m, double *x, double *phi0, double *f)
void ft_orthogonal_polynomial_clenshawf (const int n, const float *c, const int incc, const float *A, const float *B, const float *C, const int m, float *x, float *phi0, float *f)
void ft_eigen_eval (const int n, const double *c, const int incc, const double *A, const double *B, const double *C, const int m, double *x, const int sign, double *f)
void ft_eigen_evalf (const int n, const float *c, const int incc, const float *A, const float *B, const float *C, const int m, float *x, const int sign, float *f)
void ft_eigen_evall (const int n, const long double *c, const int incc, const long double *A, const long double *B, const long double *C, const int m, long double *x, const int sign, long double *f)
ft_tb_eigen_FMM * ft_plan_legendre_to_chebyshev (const int normleg, const int normcheb, const int n)
 Pre-compute a factorization of the connection coefficients between Legendre and Chebyshev polynomials in double precision so that ft_bfmv converts between expansions:
ft_tb_eigen_FMM * ft_plan_chebyshev_to_legendre (const int normcheb, const int normleg, const int n)
 Pre-compute a factorization of the connection coefficients between Chebyshev and Legendre polynomials in double precision so that ft_bfmv converts between expansions:
ft_tb_eigen_FMM * ft_plan_ultraspherical_to_ultraspherical (const int norm1, const int norm2, const int n, const double lambda, const double mu)
 Pre-compute a factorization of the connection coefficients between ultraspherical polynomials in double precision so that ft_bfmv converts between expansions:
ft_tb_eigen_FMM * ft_plan_jacobi_to_jacobi (const int norm1, const int norm2, const int n, const double alpha, const double beta, const double gamma, const double delta)
 Pre-compute a factorization of the connection coefficients between Jacobi polynomials in double precision so that ft_bfmv converts between expansions:
ft_tb_eigen_FMM * ft_plan_laguerre_to_laguerre (const int norm1, const int norm2, const int n, const double alpha, const double beta)
 Pre-compute a factorization of the connection coefficients between Laguerre polynomials in double precision so that ft_bfmv converts between expansions:
ft_tb_eigen_FMM * ft_plan_jacobi_to_ultraspherical (const int normjac, const int normultra, const int n, const double alpha, const double beta, const double lambda)
 Pre-compute a factorization of the connection coefficients between Jacobi and ultraspherical polynomials in double precision so that ft_bfmv converts between expansions:
ft_tb_eigen_FMM * ft_plan_ultraspherical_to_jacobi (const int normultra, const int normjac, const int n, const double lambda, const double alpha, const double beta)
 Pre-compute a factorization of the connection coefficients between ultraspherical and Jacobi polynomials in double precision so that ft_bfmv converts between expansions:
ft_tb_eigen_FMM * ft_plan_jacobi_to_chebyshev (const int normjac, const int normcheb, const int n, const double alpha, const double beta)
 Pre-compute a factorization of the connection coefficients between Jacobi and Chebyshev polynomials in double precision so that ft_bfmv converts between expansions:
ft_tb_eigen_FMM * ft_plan_chebyshev_to_jacobi (const int normcheb, const int normjac, const int n, const double alpha, const double beta)
 Pre-compute a factorization of the connection coefficients between Chebyshev and Jacobi polynomials in double precision so that ft_bfmv converts between expansions:
ft_tb_eigen_FMM * ft_plan_ultraspherical_to_chebyshev (const int normultra, const int normcheb, const int n, const double lambda)
 Pre-compute a factorization of the connection coefficients between ultraspherical and Chebyshev polynomials in double precision so that ft_bfmv converts between expansions:
ft_tb_eigen_FMM * ft_plan_chebyshev_to_ultraspherical (const int normcheb, const int normultra, const int n, const double lambda)
 Pre-compute a factorization of the connection coefficients between Chebyshev and ultraspherical polynomials in double precision so that ft_bfmv converts between expansions:
ft_btb_eigen_FMM * ft_plan_associated_jacobi_to_jacobi (const int norm1, const int norm2, const int n, const int c, const double alpha, const double beta, const double gamma, const double delta)
ft_btb_eigen_FMM * ft_plan_associated_laguerre_to_laguerre (const int norm1, const int norm2, const int n, const int c, const double alpha, const double beta)
ft_btb_eigen_FMM * ft_plan_associated_hermite_to_hermite (const int norm1, const int norm2, const int n, const int c)
ft_modified_plan * ft_plan_modified_jacobi_to_jacobi (const int n, const double alpha, const double beta, const int nu, const double *u, const int nv, const double *v, const int verbose)
 Pre-compute a factorization of the connection coefficients between modified Jacobi polynomials, orthonormal with respect to a rationally modified weight and orthonormal Jacobi polynomials. The rational function is expressed as a ratio of orthonormal Jacobi polynomial expansions:
ft_modified_plan * ft_plan_modified_laguerre_to_laguerre (const int n, const double alpha, const int nu, const double *u, const int nv, const double *v, const int verbose)
 Pre-compute a factorization of the connection coefficients between modified Laguerre polynomials, orthonormal with respect to a rationally modified weight and orthonormal Laguerre polynomials. The rational function is expressed as a ratio of orthonormal Laguerre polynomial expansions:
ft_modified_plan * ft_plan_modified_hermite_to_hermite (const int n, const int nu, const double *u, const int nv, const double *v, const int verbose)
 Pre-compute a factorization of the connection coefficients between modified Hermite polynomials, orthonormal with respect to a rationally modified weight and orthonormal Hermite polynomials. The rational function is expressed as a ratio of orthonormal Hermite polynomial expansions:
ft_tb_eigen_FMMf * ft_plan_legendre_to_chebyshevf (const int normleg, const int normcheb, const int n)
 A single precision version of ft_plan_legendre_to_chebyshev.
ft_tb_eigen_FMMf * ft_plan_chebyshev_to_legendref (const int normcheb, const int normleg, const int n)
 A single precision version of ft_plan_chebyshev_to_legendre.
ft_tb_eigen_FMMf * ft_plan_ultraspherical_to_ultrasphericalf (const int norm1, const int norm2, const int n, const float lambda, const float mu)
 A single precision version of ft_plan_ultraspherical_to_ultraspherical.
ft_tb_eigen_FMMf * ft_plan_jacobi_to_jacobif (const int norm1, const int norm2, const int n, const float alpha, const float beta, const float gamma, const float delta)
 A single precision version of ft_plan_jacobi_to_jacobi.
ft_tb_eigen_FMMf * ft_plan_laguerre_to_laguerref (const int norm1, const int norm2, const int n, const float alpha, const float beta)
 A single precision version of ft_plan_laguerre_to_laguerre.
ft_tb_eigen_FMMf * ft_plan_jacobi_to_ultrasphericalf (const int normjac, const int normultra, const int n, const float alpha, const float beta, const float lambda)
 A single precision version of ft_plan_jacobi_to_ultraspherical.
ft_tb_eigen_FMMf * ft_plan_ultraspherical_to_jacobif (const int normultra, const int normjac, const int n, const float lambda, const float alpha, const float beta)
 A single precision version of ft_plan_ultraspherical_to_jacobi.
ft_tb_eigen_FMMf * ft_plan_jacobi_to_chebyshevf (const int normjac, const int normcheb, const int n, const float alpha, const float beta)
 A single precision version of ft_plan_jacobi_to_chebyshev.
ft_tb_eigen_FMMf * ft_plan_chebyshev_to_jacobif (const int normcheb, const int normjac, const int n, const float alpha, const float beta)
 A single precision version of ft_plan_chebyshev_to_jacobi.
ft_tb_eigen_FMMf * ft_plan_ultraspherical_to_chebyshevf (const int normultra, const int normcheb, const int n, const float lambda)
 A single precision version of ft_plan_ultraspherical_to_chebyshev.
ft_tb_eigen_FMMf * ft_plan_chebyshev_to_ultrasphericalf (const int normcheb, const int normultra, const int n, const float lambda)
 A single precision version of ft_plan_chebyshev_to_ultraspherical.
ft_btb_eigen_FMMf * ft_plan_associated_jacobi_to_jacobif (const int norm1, const int norm2, const int n, const int c, const float alpha, const float beta, const float gamma, const float delta)
ft_btb_eigen_FMMf * ft_plan_associated_laguerre_to_laguerref (const int norm1, const int norm2, const int n, const int c, const float alpha, const float beta)
ft_btb_eigen_FMMf * ft_plan_associated_hermite_to_hermitef (const int norm1, const int norm2, const int n, const int c)
ft_modified_planf * ft_plan_modified_jacobi_to_jacobif (const int n, const float alpha, const float beta, const int nu, const float *u, const int nv, const float *v, const int verbose)
 A single precision version of ft_plan_modified_jacobi_to_jacobi.
ft_modified_planf * ft_plan_modified_laguerre_to_laguerref (const int n, const float alpha, const int nu, const float *u, const int nv, const float *v, const int verbose)
 A single precision version of ft_plan_modified_laguerre_to_laguerre.
ft_modified_planf * ft_plan_modified_hermite_to_hermitef (const int n, const int nu, const float *u, const int nv, const float *v, const int verbose)
 A single precision version of ft_plan_modified_hermite_to_hermite.
ft_tb_eigen_FMMl * ft_plan_legendre_to_chebyshevl (const int normleg, const int normcheb, const int n)
 A long double precision version of ft_plan_legendre_to_chebyshev.
ft_tb_eigen_FMMl * ft_plan_chebyshev_to_legendrel (const int normcheb, const int normleg, const int n)
 A long double precision version of ft_plan_chebyshev_to_legendre.
ft_tb_eigen_FMMl * ft_plan_ultraspherical_to_ultrasphericall (const int norm1, const int norm2, const int n, const long double lambda, const long double mu)
 A long double precision version of ft_plan_ultraspherical_to_ultraspherical.
ft_tb_eigen_FMMl * ft_plan_jacobi_to_jacobil (const int norm1, const int norm2, const int n, const long double alpha, const long double beta, const long double gamma, const long double delta)
 A long double precision version of ft_plan_jacobi_to_jacobi.
ft_tb_eigen_FMMl * ft_plan_laguerre_to_laguerrel (const int norm1, const int norm2, const int n, const long double alpha, const long double beta)
 A long double precision version of ft_plan_laguerre_to_laguerre.
ft_tb_eigen_FMMl * ft_plan_jacobi_to_ultrasphericall (const int normjac, const int normultra, const int n, const long double alpha, const long double beta, const long double lambda)
 A long double precision version of ft_plan_jacobi_to_ultraspherical.
ft_tb_eigen_FMMl * ft_plan_ultraspherical_to_jacobil (const int normultra, const int normjac, const int n, const long double lambda, const long double alpha, const long double beta)
 A long double precision version of ft_plan_ultraspherical_to_jacobi.
ft_tb_eigen_FMMl * ft_plan_jacobi_to_chebyshevl (const int normjac, const int normcheb, const int n, const long double alpha, const long double beta)
 A long double precision version of ft_plan_jacobi_to_chebyshev.
ft_tb_eigen_FMMl * ft_plan_chebyshev_to_jacobil (const int normcheb, const int normjac, const int n, const long double alpha, const long double beta)
 A long double precision version of ft_plan_chebyshev_to_jacobi.
ft_tb_eigen_FMMl * ft_plan_ultraspherical_to_chebyshevl (const int normultra, const int normcheb, const int n, const long double lambda)
 A long double precision version of ft_plan_ultraspherical_to_chebyshev.
ft_tb_eigen_FMMl * ft_plan_chebyshev_to_ultrasphericall (const int normcheb, const int normultra, const int n, const long double lambda)
 A long double precision version of ft_plan_chebyshev_to_ultraspherical.
ft_btb_eigen_FMMl * ft_plan_associated_jacobi_to_jacobil (const int norm1, const int norm2, const int n, const int c, const long double alpha, const long double beta, const long double gamma, const long double delta)
ft_btb_eigen_FMMl * ft_plan_associated_laguerre_to_laguerrel (const int norm1, const int norm2, const int n, const int c, const long double alpha, const long double beta)
ft_btb_eigen_FMMl * ft_plan_associated_hermite_to_hermitel (const int norm1, const int norm2, const int n, const int c)
ft_modified_planl * ft_plan_modified_jacobi_to_jacobil (const int n, const long double alpha, const long double beta, const int nu, const long double *u, const int nv, const long double *v, const int verbose)
 A long double precision version of ft_plan_modified_jacobi_to_jacobi.
ft_modified_planl * ft_plan_modified_laguerre_to_laguerrel (const int n, const long double alpha, const int nu, const long double *u, const int nv, const long double *v, const int verbose)
 A long double precision version of ft_plan_modified_laguerre_to_laguerre.
ft_modified_planl * ft_plan_modified_hermite_to_hermitel (const int n, const int nu, const long double *u, const int nv, const long double *v, const int verbose)
 A long double precision version of ft_plan_modified_hermite_to_hermite.
void ft_mpfr_destroy_plan (mpfr_t *A, int n)
void ft_mpfr_trmv (char TRANS, int n, mpfr_t *A, int LDA, mpfr_t *x, mpfr_rnd_t rnd)
void ft_mpfr_trsv (char TRANS, int n, mpfr_t *A, int LDA, mpfr_t *x, mpfr_rnd_t rnd)
void ft_mpfr_trmm (char TRANS, int n, mpfr_t *A, int LDA, mpfr_t *B, int LDB, int N, mpfr_rnd_t rnd)
void ft_mpfr_trsm (char TRANS, int n, mpfr_t *A, int LDA, mpfr_t *B, int LDB, int N, mpfr_rnd_t rnd)
void ft_mpfr_trmv_ptr (char TRANS, int n, mpfr_t *A, int LDA, mpfr_t **x, mpfr_rnd_t rnd)
void ft_mpfr_trsv_ptr (char TRANS, int n, mpfr_t *A, int LDA, mpfr_t **x, mpfr_rnd_t rnd)
void ft_mpfr_trmm_ptr (char TRANS, int n, mpfr_t *A, int LDA, mpfr_t **B, int LDB, int N, mpfr_rnd_t rnd)
void ft_mpfr_trsm_ptr (char TRANS, int n, mpfr_t *A, int LDA, mpfr_t **B, int LDB, int N, mpfr_rnd_t rnd)
mpfr_t * ft_mpfr_plan_legendre_to_chebyshev (const int normleg, const int normcheb, const int n, mpfr_prec_t prec, mpfr_rnd_t rnd)
 A multi-precision version of ft_plan_legendre_to_chebyshev that returns a dense array of connection coefficients.
mpfr_t * ft_mpfr_plan_chebyshev_to_legendre (const int normcheb, const int normleg, const int n, mpfr_prec_t prec, mpfr_rnd_t rnd)
 A multi-precision version of ft_plan_chebyshev_to_legendre that returns a dense array of connection coefficients.
mpfr_t * ft_mpfr_plan_ultraspherical_to_ultraspherical (const int norm1, const int norm2, const int n, mpfr_srcptr lambda, mpfr_srcptr mu, mpfr_prec_t prec, mpfr_rnd_t rnd)
 A multi-precision version of ft_plan_ultraspherical_to_ultraspherical that returns a dense array of connection coefficients.
mpfr_t * ft_mpfr_plan_jacobi_to_jacobi (const int norm1, const int norm2, const int n, mpfr_srcptr alpha, mpfr_srcptr beta, mpfr_srcptr gamma, mpfr_srcptr delta, mpfr_prec_t prec, mpfr_rnd_t rnd)
 A multi-precision version of ft_plan_jacobi_to_jacobi that returns a dense array of connection coefficients.
mpfr_t * ft_mpfr_plan_laguerre_to_laguerre (const int norm1, const int norm2, const int n, mpfr_srcptr alpha, mpfr_srcptr beta, mpfr_prec_t prec, mpfr_rnd_t rnd)
 A multi-precision version of ft_plan_laguerre_to_laguerre that returns a dense array of connection coefficients.
mpfr_t * ft_mpfr_plan_jacobi_to_ultraspherical (const int normjac, const int normultra, const int n, mpfr_srcptr alpha, mpfr_srcptr beta, mpfr_srcptr lambda, mpfr_prec_t prec, mpfr_rnd_t rnd)
 A multi-precision version of ft_plan_jacobi_to_ultraspherical that returns a dense array of connection coefficients.
mpfr_t * ft_mpfr_plan_ultraspherical_to_jacobi (const int normultra, const int normjac, const int n, mpfr_srcptr lambda, mpfr_srcptr alpha, mpfr_srcptr beta, mpfr_prec_t prec, mpfr_rnd_t rnd)
 A multi-precision version of ft_plan_ultraspherical_to_jacobi that returns a dense array of connection coefficients.
mpfr_t * ft_mpfr_plan_jacobi_to_chebyshev (const int normjac, const int normcheb, const int n, mpfr_srcptr alpha, mpfr_srcptr beta, mpfr_prec_t prec, mpfr_rnd_t rnd)
 A multi-precision version of ft_plan_jacobi_to_chebyshev that returns a dense array of connection coefficients.
mpfr_t * ft_mpfr_plan_chebyshev_to_jacobi (const int normcheb, const int normjac, const int n, mpfr_srcptr alpha, mpfr_srcptr beta, mpfr_prec_t prec, mpfr_rnd_t rnd)
 A multi-precision version of ft_plan_chebyshev_to_jacobi that returns a dense array of connection coefficients.
mpfr_t * ft_mpfr_plan_ultraspherical_to_chebyshev (const int normultra, const int normcheb, const int n, mpfr_srcptr lambda, mpfr_prec_t prec, mpfr_rnd_t rnd)
 A multi-precision version of ft_plan_ultraspherical_to_chebyshev that returns a dense array of connection coefficients.
mpfr_t * ft_mpfr_plan_chebyshev_to_ultraspherical (const int normcheb, const int normultra, const int n, mpfr_srcptr lambda, mpfr_prec_t prec, mpfr_rnd_t rnd)
 A multi-precision version of ft_plan_chebyshev_to_ultraspherical that returns a dense array of connection coefficients.
void ft_set_num_threads (const int n)
 Set the number of OpenMP threads.
void ft_destroy_rotation_plan (ft_rotation_plan *RP)
 Destroy a ft_rotation_plan.
ft_rotation_plan * ft_plan_rotsphere (const int n)
void ft_kernel_sph_hi2lo (const ft_rotation_plan *RP, const int m1, const int m2, double *A, const int S)
 Convert a single vector of spherical harmonic coefficients in A with stride S from order m2 down to order m1.
void ft_kernel_sph_lo2hi (const ft_rotation_plan *RP, const int m1, const int m2, double *A, const int S)
 Convert a single vector of spherical harmonic coefficients in A with stride S from order m1 up to order m2.
ft_rotation_plan * ft_plan_rottriangle (const int n, const double alpha, const double beta, const double gamma)
void ft_kernel_tri_hi2lo (const ft_rotation_plan *RP, const int m1, const int m2, double *A, const int S)
 Convert a single vector of triangular harmonic coefficients in A with stride S from order m2 down to order m1.
void ft_kernel_tri_lo2hi (const ft_rotation_plan *RP, const int m1, const int m2, double *A, const int S)
 Convert a single vector of triangular harmonic coefficients in A with stride S from order m1 up to order m2.
ft_rotation_plan * ft_plan_rotdisk (const int n, const double alpha, const double beta)
ft_rotation_plan * ft_plan_rotannulus (const int n, const double alpha, const double beta, const double gamma, const double rho)
void ft_kernel_disk_hi2lo (const ft_rotation_plan *RP, const int m1, const int m2, double *A, const int S)
 Convert a single vector of disk harmonic coefficients in A with stride S from order m2 down to order m1.
void ft_kernel_disk_lo2hi (const ft_rotation_plan *RP, const int m1, const int m2, double *A, const int S)
 Convert a single vector of disk harmonic coefficients in A with stride S from order m1 up to order m2.
ft_rotation_plan * ft_plan_rotrectdisk (const int n, const double beta)
void ft_kernel_rectdisk_hi2lo (const ft_rotation_plan *RP, const int m1, const int m2, double *A, const int S)
 Convert a single vector of rectangularized disk harmonic coefficients in A with stride S from order m2 down to order m1.
void ft_kernel_rectdisk_lo2hi (const ft_rotation_plan *RP, const int m1, const int m2, double *A, const int S)
 Convert a single vector of rectangularized disk harmonic coefficients in A with stride S from order m1 up to order m2.
void ft_kernel_tet_hi2lo (const ft_rotation_plan *RP, const int L, const int m, double *A)
void ft_kernel_tet_lo2hi (const ft_rotation_plan *RP, const int L, const int m, double *A)
void ft_destroy_spin_rotation_plan (ft_spin_rotation_plan *SRP)
 Destroy a ft_spin_rotation_plan.
ft_spin_rotation_plan * ft_plan_rotspinsphere (const int n, const int s)
void ft_kernel_spinsph_hi2lo (const ft_spin_rotation_plan *SRP, const int m, ft_complex *A, const int S)
 Convert a single vector of spin-weighted spherical harmonic coefficients in A with stride S from order m down to order m%2.
void ft_kernel_spinsph_lo2hi (const ft_spin_rotation_plan *SRP, const int m, ft_complex *A, const int S)
 Convert a single vector of spin-weighted spherical harmonic coefficients in A with stride S from order m%2 up to order m.
void ft_execute_sph_hi2lo (const ft_rotation_plan *RP, double *A, double *B, const int M)
void ft_execute_sph_lo2hi (const ft_rotation_plan *RP, double *A, double *B, const int M)
void ft_execute_sphv_hi2lo (const ft_rotation_plan *RP, double *A, double *B, const int M)
void ft_execute_sphv_lo2hi (const ft_rotation_plan *RP, double *A, double *B, const int M)
void ft_execute_tri_hi2lo (const ft_rotation_plan *RP, double *A, double *B, const int M)
void ft_execute_tri_lo2hi (const ft_rotation_plan *RP, double *A, double *B, const int M)
void ft_execute_disk_hi2lo (const ft_rotation_plan *RP, double *A, double *B, const int M)
void ft_execute_disk_lo2hi (const ft_rotation_plan *RP, double *A, double *B, const int M)
void ft_execute_rectdisk_hi2lo (const ft_rotation_plan *RP, double *A, double *B, const int M)
void ft_execute_rectdisk_lo2hi (const ft_rotation_plan *RP, double *A, double *B, const int M)
void ft_execute_tet_hi2lo (const ft_rotation_plan *RP1, const ft_rotation_plan *RP2, double *A, const int L, const int M)
void ft_execute_tet_lo2hi (const ft_rotation_plan *RP1, const ft_rotation_plan *RP2, double *A, const int L, const int M)
void ft_execute_spinsph_hi2lo (const ft_spin_rotation_plan *SRP, ft_complex *A, ft_complex *B, const int M)
void ft_execute_spinsph_lo2hi (const ft_spin_rotation_plan *SRP, ft_complex *A, ft_complex *B, const int M)
void ft_destroy_harmonic_plan (ft_harmonic_plan *P)
 Destroy a ft_harmonic_plan.
ft_harmonic_plan * ft_plan_sph2fourier (const int n)
 Plan a spherical harmonic transform.
void ft_execute_sph2fourier (const char TRANS, const ft_harmonic_plan *P, double *A, const int N, const int M)
 Transform a spherical harmonic expansion to a bivariate Fourier series.
void ft_execute_fourier2sph (const char TRANS, const ft_harmonic_plan *P, double *A, const int N, const int M)
 Transform a bivariate Fourier series to a spherical harmonic expansion.
void ft_execute_sphv2fourier (const char TRANS, const ft_harmonic_plan *P, double *A, const int N, const int M)
void ft_execute_fourier2sphv (const char TRANS, const ft_harmonic_plan *P, double *A, const int N, const int M)
ft_harmonic_plan * ft_plan_tri2cheb (const int n, const double alpha, const double beta, const double gamma)
 Plan a triangular harmonic transform.
void ft_execute_tri2cheb (const char TRANS, const ft_harmonic_plan *P, double *A, const int N, const int M)
 Transform a triangular harmonic expansion to a bivariate Chebyshev series.
void ft_execute_cheb2tri (const char TRANS, const ft_harmonic_plan *P, double *A, const int N, const int M)
 Transform a bivariate Chebyshev series to a triangular harmonic expansion.
ft_harmonic_plan * ft_plan_disk2cxf (const int n, const double alpha, const double beta)
 Plan a disk harmonic transform.
void ft_execute_disk2cxf (const char TRANS, const ft_harmonic_plan *P, double *A, const int N, const int M)
 Transform a disk harmonic expansion to a Chebyshev–Fourier series.
void ft_execute_cxf2disk (const char TRANS, const ft_harmonic_plan *P, double *A, const int N, const int M)
 Transform a Chebyshev–Fourier series to a disk harmonic expansion.
ft_harmonic_plan * ft_plan_ann2cxf (const int n, const double alpha, const double beta, const double gamma, const double rho)
 Plan an annulus harmonic transform.
void ft_execute_ann2cxf (const char TRANS, const ft_harmonic_plan *P, double *A, const int N, const int M)
 Transform an annulus harmonic expansion to a Chebyshev–Fourier series.
void ft_execute_cxf2ann (const char TRANS, const ft_harmonic_plan *P, double *A, const int N, const int M)
 Transform a Chebyshev–Fourier series to an annulus harmonic expansion.
ft_harmonic_plan * ft_plan_rectdisk2cheb (const int n, const double beta)
 Plan a rectangularized disk harmonic transform.
void ft_execute_rectdisk2cheb (const char TRANS, const ft_harmonic_plan *P, double *A, const int N, const int M)
 Transform a rectangularized disk harmonic expansion to a Chebyshev series.
void ft_execute_cheb2rectdisk (const char TRANS, const ft_harmonic_plan *P, double *A, const int N, const int M)
 Transform a Chebyshev series to a rectangularized disk harmonic expansion.
ft_harmonic_plan * ft_plan_tet2cheb (const int n, const double alpha, const double beta, const double gamma, const double delta)
 Plan a tetrahedral harmonic transform.
void ft_execute_tet2cheb (const char TRANS, const ft_harmonic_plan *P, double *A, const int N, const int L, const int M)
 Transform a tetrahedral harmonic expansion to a trivariate Chebyshev series.
void ft_execute_cheb2tet (const char TRANS, const ft_harmonic_plan *P, double *A, const int N, const int L, const int M)
 Transform a trivariate Chebyshev series to a tetrahedral harmonic expansion.
void ft_destroy_spin_harmonic_plan (ft_spin_harmonic_plan *P)
 Destroy a ft_spin_harmonic_plan.
ft_spin_harmonic_plan * ft_plan_spinsph2fourier (const int n, const int s)
 Plan a spin-weighted spherical harmonic transform.
void ft_execute_spinsph2fourier (const char TRANS, const ft_spin_harmonic_plan *P, ft_complex *A, const int N, const int M)
 Transform a spin-weighted spherical harmonic expansion to a bivariate Fourier series.
void ft_execute_fourier2spinsph (const char TRANS, const ft_spin_harmonic_plan *P, ft_complex *A, const int N, const int M)
 Transform a bivariate Fourier series to a spin-weighted spherical harmonic expansion.
int ft_fftw_init_threads (void)
void ft_fftw_plan_with_nthreads (const int n)
void ft_destroy_sphere_fftw_plan (ft_sphere_fftw_plan *P)
 Destroy a ft_sphere_fftw_plan.
ft_sphere_fftw_plan * ft_plan_sph_with_kind (const int N, const int M, const fftw_r2r_kind kind[3][1], const unsigned flags)
ft_sphere_fftw_plan * ft_plan_sph_synthesis (const int N, const int M, const unsigned flags)
 Plan FFTW synthesis on the sphere.
ft_sphere_fftw_plan * ft_plan_sph_analysis (const int N, const int M, const unsigned flags)
 Plan FFTW analysis on the sphere.
ft_sphere_fftw_plan * ft_plan_sphv_synthesis (const int N, const int M, const unsigned flags)
ft_sphere_fftw_plan * ft_plan_sphv_analysis (const int N, const int M, const unsigned flags)
void ft_execute_sph_synthesis (const char TRANS, const ft_sphere_fftw_plan *P, double *X, const int N, const int M)
 Execute FFTW synthesis on the sphere.
void ft_execute_sph_analysis (const char TRANS, const ft_sphere_fftw_plan *P, double *X, const int N, const int M)
 Execute FFTW analysis on the sphere.
void ft_execute_sphv_synthesis (const char TRANS, const ft_sphere_fftw_plan *P, double *X, const int N, const int M)
void ft_execute_sphv_analysis (const char TRANS, const ft_sphere_fftw_plan *P, double *X, const int N, const int M)
void ft_destroy_triangle_fftw_plan (ft_triangle_fftw_plan *P)
 Destroy a ft_triangle_fftw_plan.
ft_triangle_fftw_plan * ft_plan_tri_with_kind (const int N, const int M, const fftw_r2r_kind kind0, const fftw_r2r_kind kind1, const unsigned flags)
ft_triangle_fftw_plan * ft_plan_tri_synthesis (const int N, const int M, const unsigned flags)
 Plan FFTW synthesis on the triangle.
ft_triangle_fftw_plan * ft_plan_tri_analysis (const int N, const int M, const unsigned flags)
 Plan FFTW analysis on the triangle.
void ft_execute_tri_synthesis (const char TRANS, const ft_triangle_fftw_plan *P, double *X, const int N, const int M)
 Execute FFTW synthesis on the triangle.
void ft_execute_tri_analysis (const char TRANS, const ft_triangle_fftw_plan *P, double *X, const int N, const int M)
 Execute FFTW analysis on the triangle.
void ft_destroy_tetrahedron_fftw_plan (ft_tetrahedron_fftw_plan *P)
ft_tetrahedron_fftw_plan * ft_plan_tet_with_kind (const int N, const int L, const int M, const fftw_r2r_kind kind0, const fftw_r2r_kind kind1, const fftw_r2r_kind kind2, const unsigned flags)
ft_tetrahedron_fftw_plan * ft_plan_tet_synthesis (const int N, const int L, const int M, const unsigned flags)
ft_tetrahedron_fftw_plan * ft_plan_tet_analysis (const int N, const int L, const int M, const unsigned flags)
void ft_execute_tet_synthesis (const char TRANS, const ft_tetrahedron_fftw_plan *P, double *X, const int N, const int L, const int M)
void ft_execute_tet_analysis (const char TRANS, const ft_tetrahedron_fftw_plan *P, double *X, const int N, const int L, const int M)
void ft_destroy_disk_fftw_plan (ft_disk_fftw_plan *P)
 Destroy a ft_disk_fftw_plan.
ft_disk_fftw_plan * ft_plan_disk_with_kind (const int N, const int M, const fftw_r2r_kind kind[3][1], const unsigned flags)
ft_disk_fftw_plan * ft_plan_disk_synthesis (const int N, const int M, const unsigned flags)
 Plan FFTW synthesis on the disk.
ft_disk_fftw_plan * ft_plan_disk_analysis (const int N, const int M, const unsigned flags)
 Plan FFTW analysis on the disk.
void ft_execute_disk_synthesis (const char TRANS, const ft_disk_fftw_plan *P, double *X, const int N, const int M)
 Execute FFTW synthesis on the disk.
void ft_execute_disk_analysis (const char TRANS, const ft_disk_fftw_plan *P, double *X, const int N, const int M)
 Execute FFTW analysis on the disk.
void ft_destroy_annulus_fftw_plan (ft_annulus_fftw_plan *P)
 Destroy a ft_annulus_fftw_plan.
double ft_get_rho_annulus_fftw_plan (ft_annulus_fftw_plan *P)
ft_annulus_fftw_plan * ft_plan_annulus_with_kind (const int N, const int M, const double rho, const fftw_r2r_kind kind[3][1], const unsigned flags)
ft_annulus_fftw_plan * ft_plan_annulus_synthesis (const int N, const int M, const double rho, const unsigned flags)
 Plan FFTW synthesis on the annulus.
ft_annulus_fftw_plan * ft_plan_annulus_analysis (const int N, const int M, const double rho, const unsigned flags)
 Plan FFTW analysis on the annulus.
void ft_execute_annulus_synthesis (const char TRANS, const ft_annulus_fftw_plan *P, double *X, const int N, const int M)
 Execute FFTW synthesis on the annulus.
void ft_execute_annulus_analysis (const char TRANS, const ft_annulus_fftw_plan *P, double *X, const int N, const int M)
 Execute FFTW analysis on the annulus.
void ft_destroy_rectdisk_fftw_plan (ft_rectdisk_fftw_plan *P)
 Destroy a ft_rectdisk_fftw_plan.
ft_rectdisk_fftw_plan * ft_plan_rectdisk_with_kind (const int N, const int M, const fftw_r2r_kind kind[3][1], const unsigned flags)
ft_rectdisk_fftw_plan * ft_plan_rectdisk_synthesis (const int N, const int M, const unsigned flags)
 Plan FFTW synthesis on the rectangularized disk.
ft_rectdisk_fftw_plan * ft_plan_rectdisk_analysis (const int N, const int M, const unsigned flags)
 Plan FFTW analysis on the rectangularized disk.
void ft_execute_rectdisk_synthesis (const char TRANS, const ft_rectdisk_fftw_plan *P, double *X, const int N, const int M)
 Execute FFTW synthesis on the rectangularized disk.
void ft_execute_rectdisk_analysis (const char TRANS, const ft_rectdisk_fftw_plan *P, double *X, const int N, const int M)
 Execute FFTW analysis on the rectangularized disk.
void ft_destroy_spinsphere_fftw_plan (ft_spinsphere_fftw_plan *P)
 Destroy a ft_spinsphere_fftw_plan.
int ft_get_spin_spinsphere_fftw_plan (const ft_spinsphere_fftw_plan *P)
ft_spinsphere_fftw_plan * ft_plan_spinsph_with_kind (const int N, const int M, const int S, const fftw_r2r_kind kind[2][1], const int sign, const unsigned flags)
ft_spinsphere_fftw_plan * ft_plan_spinsph_synthesis (const int N, const int M, const int S, const unsigned flags)
 Plan FFTW synthesis on the sphere with spin.
ft_spinsphere_fftw_plan * ft_plan_spinsph_analysis (const int N, const int M, const int S, const unsigned flags)
 Plan FFTW analysis on the sphere with spin.
void ft_execute_spinsph_synthesis (const char TRANS, const ft_spinsphere_fftw_plan *P, ft_complex *X, const int N, const int M)
 Execute FFTW synthesis on the sphere with spin.
void ft_execute_spinsph_analysis (const char TRANS, const ft_spinsphere_fftw_plan *P, ft_complex *X, const int N, const int M)
 Execute FFTW analysis on the sphere with spin.
void ft_destroy_gradient_plan (ft_gradient_plan *P)
ft_gradient_plan * ft_plan_sph_gradient (const int n)
void ft_execute_sph_gradient (ft_gradient_plan *P, double *U, double *Ut, double *Up, const int N, const int M)
void ft_execute_sph_curl (ft_gradient_plan *P, double *U, double *Ut, double *Up, const int N, const int M)
void ft_destroy_helmholtzhodge_plan (ft_helmholtzhodge_plan *P)
ft_helmholtzhodge_plan * ft_plan_sph_helmholtzhodge (const int n)
void ft_execute_sph_helmholtzhodge (ft_helmholtzhodge_plan *P, double *U1, double *U2, double *V1, double *V2, const int N, const int M)
ft_ZYZR ft_create_ZYZR (ft_orthogonal_transformation Q)
void ft_apply_ZYZR (ft_ZYZR Q, ft_orthogonal_transformation *U)
void ft_apply_reflection (ft_reflection Q, ft_orthogonal_transformation *U)
void ft_execute_sph_polar_rotation (double *A, const int N, const int M, double s, double c)
void ft_execute_sph_polar_reflection (double *A, const int N, const int M)
void ft_destroy_partial_sph_isometry_plan (ft_partial_sph_isometry_plan *F)
void ft_destroy_sph_isometry_plan (ft_sph_isometry_plan *F)
ft_partial_sph_isometry_plan * ft_plan_partial_sph_isometry (const int l)
ft_sph_isometry_plan * ft_plan_sph_isometry (const int n)
void ft_execute_sph_yz_axis_exchange (ft_sph_isometry_plan *J, double *A, const int N, const int M)
void ft_execute_sph_isometry (ft_sph_isometry_plan *J, ft_ZYZR Q, double *A, const int N, const int M)
void ft_execute_sph_rotation (ft_sph_isometry_plan *J, const double alpha, const double beta, const double gamma, double *A, const int N, const int M)
void ft_execute_sph_reflection (ft_sph_isometry_plan *J, ft_reflection W, double *A, const int N, const int M)
void ft_execute_sph_orthogonal_transformation (ft_sph_isometry_plan *J, ft_orthogonal_transformation Q, double *A, const int N, const int M)

Detailed Description

fasttransforms.h is the main header file for FastTransforms.

Macro Definition Documentation

◆ FT_CONCAT

#define FT_CONCAT ( prefix,
name,
suffix )
Value:
prefix ## name ## suffix

◆ FT_GET_MAX_THREADS

#define FT_GET_MAX_THREADS ( )
Value:
1

◆ FT_GET_NUM_THREADS

#define FT_GET_NUM_THREADS ( )
Value:
1

◆ FT_GET_THREAD_NUM

#define FT_GET_THREAD_NUM ( )
Value:
0

Function Documentation

◆ ft_destroy_annulus_fftw_plan()

void ft_destroy_annulus_fftw_plan ( ft_annulus_fftw_plan * P)

Destroy a ft_annulus_fftw_plan.

Examples
annulus.c.

◆ ft_destroy_disk_fftw_plan()

void ft_destroy_disk_fftw_plan ( ft_disk_fftw_plan * P)

Destroy a ft_disk_fftw_plan.

Examples
holomorphic.c.

◆ ft_destroy_harmonic_plan()

void ft_destroy_harmonic_plan ( ft_harmonic_plan * P)

◆ ft_destroy_rectdisk_fftw_plan()

void ft_destroy_rectdisk_fftw_plan ( ft_rectdisk_fftw_plan * P)

Destroy a ft_rectdisk_fftw_plan.

Examples
holomorphic.c.

◆ ft_destroy_sphere_fftw_plan()

void ft_destroy_sphere_fftw_plan ( ft_sphere_fftw_plan * P)

◆ ft_destroy_spin_harmonic_plan()

void ft_destroy_spin_harmonic_plan ( ft_spin_harmonic_plan * P)

◆ ft_destroy_spinsphere_fftw_plan()

void ft_destroy_spinsphere_fftw_plan ( ft_spinsphere_fftw_plan * P)

◆ ft_destroy_triangle_fftw_plan()

void ft_destroy_triangle_fftw_plan ( ft_triangle_fftw_plan * P)

Destroy a ft_triangle_fftw_plan.

Examples
calculus.c.

◆ ft_execute_ann2cxf()

void ft_execute_ann2cxf ( const char TRANS,
const ft_harmonic_plan * P,
double * A,
const int N,
const int M )

Transform an annulus harmonic expansion to a Chebyshev–Fourier series.

Parameters
TRANS'N' to apply the transform or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_ann2cxf.
AThe \(N\times M\) array of coefficients in column-major ordering, as in ann2cxf. It is overwritten by the result.
NThe number of rows of A, equal to the n that created the plan.
MThe number of columns of A, which is \(4N-3\) for an expansion of degree \(2N-2\).

◆ ft_execute_annulus_analysis()

void ft_execute_annulus_analysis ( const char TRANS,
const ft_annulus_fftw_plan * P,
double * X,
const int N,
const int M )

Execute FFTW analysis on the annulus.

Parameters
TRANS'N' to apply the analysis or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_annulus_analysis.
XThe \(N\times M\) array in column-major ordering that stores the function values on the grid on entry and the coefficients on exit.
NThe number of rows of X.
MThe number of columns of X.
Examples
annulus.c.

◆ ft_execute_annulus_synthesis()

void ft_execute_annulus_synthesis ( const char TRANS,
const ft_annulus_fftw_plan * P,
double * X,
const int N,
const int M )

Execute FFTW synthesis on the annulus.

Parameters
TRANS'N' to apply the synthesis or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_annulus_synthesis.
XThe \(N\times M\) array in column-major ordering that stores the coefficients on entry and the function values on the grid on exit.
NThe number of rows of X.
MThe number of columns of X.

◆ ft_execute_cheb2rectdisk()

void ft_execute_cheb2rectdisk ( const char TRANS,
const ft_harmonic_plan * P,
double * A,
const int N,
const int M )

Transform a Chebyshev series to a rectangularized disk harmonic expansion.

Parameters
TRANS'N' to apply the transform or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_rectdisk2cheb.
AThe \(N\times M\) array of coefficients in column-major ordering, as in rectdisk2cheb. It is overwritten by the result.
NThe number of rows of A, equal to the n that created the plan.
MThe number of columns of A, which is \(N\) for an expansion of degree \(N-1\).
Examples
holomorphic.c.

◆ ft_execute_cheb2tet()

void ft_execute_cheb2tet ( const char TRANS,
const ft_harmonic_plan * P,
double * A,
const int N,
const int L,
const int M )

Transform a trivariate Chebyshev series to a tetrahedral harmonic expansion.

Parameters
TRANS'N' to apply the transform or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_tet2cheb.
AThe \(N\times L\times M\) array of coefficients in column-major ordering, as in tet2cheb. It is overwritten by the result.
NThe number of rows of A, equal to the n that created the plan.
LThe number of columns of A, which is \(N\) for an expansion of degree \(N-1\).
MThe number of slices of A, which is \(N\) for an expansion of degree \(N-1\).

◆ ft_execute_cheb2tri()

void ft_execute_cheb2tri ( const char TRANS,
const ft_harmonic_plan * P,
double * A,
const int N,
const int M )

Transform a bivariate Chebyshev series to a triangular harmonic expansion.

Parameters
TRANS'N' to apply the transform or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_tri2cheb.
AThe \(N\times M\) array of coefficients in column-major ordering, as in tri2cheb. It is overwritten by the result.
NThe number of rows of A, equal to the n that created the plan.
MThe number of columns of A, which is \(N\) for an expansion of degree \(N-1\).
Examples
calculus.c.

◆ ft_execute_cxf2ann()

void ft_execute_cxf2ann ( const char TRANS,
const ft_harmonic_plan * P,
double * A,
const int N,
const int M )

Transform a Chebyshev–Fourier series to an annulus harmonic expansion.

Parameters
TRANS'N' to apply the transform or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_ann2cxf.
AThe \(N\times M\) array of coefficients in column-major ordering, as in ann2cxf. It is overwritten by the result.
NThe number of rows of A, equal to the n that created the plan.
MThe number of columns of A, which is \(4N-3\) for an expansion of degree \(2N-2\).
Examples
annulus.c.

◆ ft_execute_cxf2disk()

void ft_execute_cxf2disk ( const char TRANS,
const ft_harmonic_plan * P,
double * A,
const int N,
const int M )

Transform a Chebyshev–Fourier series to a disk harmonic expansion.

Parameters
TRANS'N' to apply the transform or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_disk2cxf.
AThe \(N\times M\) array of coefficients in column-major ordering, as in disk2cxf. It is overwritten by the result.
NThe number of rows of A, equal to the n that created the plan.
MThe number of columns of A, which is \(4N-3\) for an expansion of degree \(2N-2\).
Examples
holomorphic.c.

◆ ft_execute_disk2cxf()

void ft_execute_disk2cxf ( const char TRANS,
const ft_harmonic_plan * P,
double * A,
const int N,
const int M )

Transform a disk harmonic expansion to a Chebyshev–Fourier series.

Parameters
TRANS'N' to apply the transform or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_disk2cxf.
AThe \(N\times M\) array of coefficients in column-major ordering, as in disk2cxf. It is overwritten by the result.
NThe number of rows of A, equal to the n that created the plan.
MThe number of columns of A, which is \(4N-3\) for an expansion of degree \(2N-2\).

◆ ft_execute_disk_analysis()

void ft_execute_disk_analysis ( const char TRANS,
const ft_disk_fftw_plan * P,
double * X,
const int N,
const int M )

Execute FFTW analysis on the disk.

Parameters
TRANS'N' to apply the analysis or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_disk_analysis.
XThe \(N\times M\) array in column-major ordering that stores the function values on the grid on entry and the coefficients on exit.
NThe number of rows of X.
MThe number of columns of X.
Examples
holomorphic.c.

◆ ft_execute_disk_synthesis()

void ft_execute_disk_synthesis ( const char TRANS,
const ft_disk_fftw_plan * P,
double * X,
const int N,
const int M )

Execute FFTW synthesis on the disk.

Parameters
TRANS'N' to apply the synthesis or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_disk_synthesis.
XThe \(N\times M\) array in column-major ordering that stores the coefficients on entry and the function values on the grid on exit.
NThe number of rows of X.
MThe number of columns of X.

◆ ft_execute_fourier2sph()

void ft_execute_fourier2sph ( const char TRANS,
const ft_harmonic_plan * P,
double * A,
const int N,
const int M )

Transform a bivariate Fourier series to a spherical harmonic expansion.

Parameters
TRANS'N' to apply the transform or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_sph2fourier.
AThe \(N\times M\) array of coefficients in column-major ordering, as in sph2fourier. It is overwritten by the result.
NThe number of rows of A, equal to the n that created the plan.
MThe number of columns of A, which is \(2N-1\) for an expansion of degree \(N-1\).
Examples
additiontheorem.c.

◆ ft_execute_fourier2spinsph()

void ft_execute_fourier2spinsph ( const char TRANS,
const ft_spin_harmonic_plan * P,
ft_complex * A,
const int N,
const int M )

Transform a bivariate Fourier series to a spin-weighted spherical harmonic expansion.

Parameters
TRANS'N' to apply the transform or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_spinsph2fourier.
AThe \(N\times M\) array of coefficients in column-major ordering, as in spinsph2fourier. It is overwritten by the result.
NThe number of rows of A, equal to the n that created the plan.
MThe number of columns of A, which is \(2N-1\) for an expansion of degree \(N-1\).
Examples
spinweighted.c.

◆ ft_execute_rectdisk2cheb()

void ft_execute_rectdisk2cheb ( const char TRANS,
const ft_harmonic_plan * P,
double * A,
const int N,
const int M )

Transform a rectangularized disk harmonic expansion to a Chebyshev series.

Parameters
TRANS'N' to apply the transform or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_rectdisk2cheb.
AThe \(N\times M\) array of coefficients in column-major ordering, as in rectdisk2cheb. It is overwritten by the result.
NThe number of rows of A, equal to the n that created the plan.
MThe number of columns of A, which is \(N\) for an expansion of degree \(N-1\).

◆ ft_execute_rectdisk_analysis()

void ft_execute_rectdisk_analysis ( const char TRANS,
const ft_rectdisk_fftw_plan * P,
double * X,
const int N,
const int M )

Execute FFTW analysis on the rectangularized disk.

Parameters
TRANS'N' to apply the analysis or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_rectdisk_analysis.
XThe \(N\times M\) array in column-major ordering that stores the function values on the grid on entry and the coefficients on exit.
NThe number of rows of X.
MThe number of columns of X.
Examples
holomorphic.c.

◆ ft_execute_rectdisk_synthesis()

void ft_execute_rectdisk_synthesis ( const char TRANS,
const ft_rectdisk_fftw_plan * P,
double * X,
const int N,
const int M )

Execute FFTW synthesis on the rectangularized disk.

Parameters
TRANS'N' to apply the synthesis or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_rectdisk_synthesis.
XThe \(N\times M\) array in column-major ordering that stores the coefficients on entry and the function values on the grid on exit.
NThe number of rows of X.
MThe number of columns of X.

◆ ft_execute_sph2fourier()

void ft_execute_sph2fourier ( const char TRANS,
const ft_harmonic_plan * P,
double * A,
const int N,
const int M )

Transform a spherical harmonic expansion to a bivariate Fourier series.

Parameters
TRANS'N' to apply the transform or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_sph2fourier.
AThe \(N\times M\) array of coefficients in column-major ordering, as in sph2fourier. It is overwritten by the result.
NThe number of rows of A, equal to the n that created the plan.
MThe number of columns of A, which is \(2N-1\) for an expansion of degree \(N-1\).

◆ ft_execute_sph_analysis()

void ft_execute_sph_analysis ( const char TRANS,
const ft_sphere_fftw_plan * P,
double * X,
const int N,
const int M )

Execute FFTW analysis on the sphere.

Parameters
TRANS'N' to apply the analysis or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_sph_analysis.
XThe \(N\times M\) array in column-major ordering that stores the function values on the grid on entry and the coefficients on exit.
NThe number of rows of X.
MThe number of columns of X.
Examples
additiontheorem.c.

◆ ft_execute_sph_synthesis()

void ft_execute_sph_synthesis ( const char TRANS,
const ft_sphere_fftw_plan * P,
double * X,
const int N,
const int M )

Execute FFTW synthesis on the sphere.

Parameters
TRANS'N' to apply the synthesis or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_sph_synthesis.
XThe \(N\times M\) array in column-major ordering that stores the coefficients on entry and the function values on the grid on exit.
NThe number of rows of X.
MThe number of columns of X.

◆ ft_execute_spinsph2fourier()

void ft_execute_spinsph2fourier ( const char TRANS,
const ft_spin_harmonic_plan * P,
ft_complex * A,
const int N,
const int M )

Transform a spin-weighted spherical harmonic expansion to a bivariate Fourier series.

Parameters
TRANS'N' to apply the transform or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_spinsph2fourier.
AThe \(N\times M\) array of coefficients in column-major ordering, as in spinsph2fourier. It is overwritten by the result.
NThe number of rows of A, equal to the n that created the plan.
MThe number of columns of A, which is \(2N-1\) for an expansion of degree \(N-1\).

◆ ft_execute_spinsph_analysis()

void ft_execute_spinsph_analysis ( const char TRANS,
const ft_spinsphere_fftw_plan * P,
ft_complex * X,
const int N,
const int M )

Execute FFTW analysis on the sphere with spin.

Parameters
TRANS'N' to apply the analysis or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_spinsph_analysis.
XThe \(N\times M\) array in column-major ordering that stores the function values on the grid on entry and the coefficients on exit.
NThe number of rows of X.
MThe number of columns of X.
Examples
spinweighted.c.

◆ ft_execute_spinsph_synthesis()

void ft_execute_spinsph_synthesis ( const char TRANS,
const ft_spinsphere_fftw_plan * P,
ft_complex * X,
const int N,
const int M )

Execute FFTW synthesis on the sphere with spin.

Parameters
TRANS'N' to apply the synthesis or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_spinsph_synthesis.
XThe \(N\times M\) array in column-major ordering that stores the coefficients on entry and the function values on the grid on exit.
NThe number of rows of X.
MThe number of columns of X.

◆ ft_execute_tet2cheb()

void ft_execute_tet2cheb ( const char TRANS,
const ft_harmonic_plan * P,
double * A,
const int N,
const int L,
const int M )

Transform a tetrahedral harmonic expansion to a trivariate Chebyshev series.

Parameters
TRANS'N' to apply the transform or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_tet2cheb.
AThe \(N\times L\times M\) array of coefficients in column-major ordering, as in tet2cheb. It is overwritten by the result.
NThe number of rows of A, equal to the n that created the plan.
LThe number of columns of A, which is \(N\) for an expansion of degree \(N-1\).
MThe number of slices of A, which is \(N\) for an expansion of degree \(N-1\).

◆ ft_execute_tri2cheb()

void ft_execute_tri2cheb ( const char TRANS,
const ft_harmonic_plan * P,
double * A,
const int N,
const int M )

Transform a triangular harmonic expansion to a bivariate Chebyshev series.

Parameters
TRANS'N' to apply the transform or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_tri2cheb.
AThe \(N\times M\) array of coefficients in column-major ordering, as in tri2cheb. It is overwritten by the result.
NThe number of rows of A, equal to the n that created the plan.
MThe number of columns of A, which is \(N\) for an expansion of degree \(N-1\).

◆ ft_execute_tri_analysis()

void ft_execute_tri_analysis ( const char TRANS,
const ft_triangle_fftw_plan * P,
double * X,
const int N,
const int M )

Execute FFTW analysis on the triangle.

Parameters
TRANS'N' to apply the analysis or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_tri_analysis.
XThe \(N\times M\) array in column-major ordering that stores the function values on the grid on entry and the coefficients on exit.
NThe number of rows of X.
MThe number of columns of X.
Examples
calculus.c.

◆ ft_execute_tri_synthesis()

void ft_execute_tri_synthesis ( const char TRANS,
const ft_triangle_fftw_plan * P,
double * X,
const int N,
const int M )

Execute FFTW synthesis on the triangle.

Parameters
TRANS'N' to apply the synthesis or 'T' to apply its transpose.
PThe plan that is returned by ft_plan_tri_synthesis.
XThe \(N\times M\) array in column-major ordering that stores the coefficients on entry and the function values on the grid on exit.
NThe number of rows of X.
MThe number of columns of X.

◆ ft_mpfr_plan_chebyshev_to_jacobi()

mpfr_t * ft_mpfr_plan_chebyshev_to_jacobi ( const int normcheb,
const int normjac,
const int n,
mpfr_srcptr alpha,
mpfr_srcptr beta,
mpfr_prec_t prec,
mpfr_rnd_t rnd )

A multi-precision version of ft_plan_chebyshev_to_jacobi that returns a dense array of connection coefficients.

Parameters
normchebThe normalization of the Chebyshev polynomials: standard (0) or orthonormalized (1).
normjacThe normalization of the Jacobi polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).
alphaThe parameter \(\alpha\) of the Jacobi polynomials.
betaThe parameter \(\beta\) of the Jacobi polynomials.
precThe precision of the connection coefficients, in bits.
rndThe MPFR rounding mode.

◆ ft_mpfr_plan_chebyshev_to_legendre()

mpfr_t * ft_mpfr_plan_chebyshev_to_legendre ( const int normcheb,
const int normleg,
const int n,
mpfr_prec_t prec,
mpfr_rnd_t rnd )

A multi-precision version of ft_plan_chebyshev_to_legendre that returns a dense array of connection coefficients.

Parameters
normchebThe normalization of the Chebyshev polynomials: standard (0) or orthonormalized (1).
normlegThe normalization of the Legendre polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).
precThe precision of the connection coefficients, in bits.
rndThe MPFR rounding mode.

◆ ft_mpfr_plan_chebyshev_to_ultraspherical()

mpfr_t * ft_mpfr_plan_chebyshev_to_ultraspherical ( const int normcheb,
const int normultra,
const int n,
mpfr_srcptr lambda,
mpfr_prec_t prec,
mpfr_rnd_t rnd )

A multi-precision version of ft_plan_chebyshev_to_ultraspherical that returns a dense array of connection coefficients.

Parameters
normchebThe normalization of the Chebyshev polynomials: standard (0) or orthonormalized (1).
normultraThe normalization of the ultraspherical polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).
lambdaThe parameter \(\lambda\) of the ultraspherical polynomials.
precThe precision of the connection coefficients, in bits.
rndThe MPFR rounding mode.

◆ ft_mpfr_plan_jacobi_to_chebyshev()

mpfr_t * ft_mpfr_plan_jacobi_to_chebyshev ( const int normjac,
const int normcheb,
const int n,
mpfr_srcptr alpha,
mpfr_srcptr beta,
mpfr_prec_t prec,
mpfr_rnd_t rnd )

A multi-precision version of ft_plan_jacobi_to_chebyshev that returns a dense array of connection coefficients.

Parameters
normjacThe normalization of the Jacobi polynomials: standard (0) or orthonormalized (1).
normchebThe normalization of the Chebyshev polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).
alphaThe parameter \(\alpha\) of the Jacobi polynomials.
betaThe parameter \(\beta\) of the Jacobi polynomials.
precThe precision of the connection coefficients, in bits.
rndThe MPFR rounding mode.

◆ ft_mpfr_plan_jacobi_to_jacobi()

mpfr_t * ft_mpfr_plan_jacobi_to_jacobi ( const int norm1,
const int norm2,
const int n,
mpfr_srcptr alpha,
mpfr_srcptr beta,
mpfr_srcptr gamma,
mpfr_srcptr delta,
mpfr_prec_t prec,
mpfr_rnd_t rnd )

A multi-precision version of ft_plan_jacobi_to_jacobi that returns a dense array of connection coefficients.

Parameters
norm1The normalization of the source Jacobi polynomials: standard (0) or orthonormalized (1).
norm2The normalization of the target Jacobi polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).
alphaThe parameter \(\alpha\) of the source Jacobi polynomials.
betaThe parameter \(\beta\) of the source Jacobi polynomials.
gammaThe parameter \(\gamma\) of the target Jacobi polynomials, in the place of \(\alpha\).
deltaThe parameter \(\delta\) of the target Jacobi polynomials, in the place of \(\beta\).
precThe precision of the connection coefficients, in bits.
rndThe MPFR rounding mode.

◆ ft_mpfr_plan_jacobi_to_ultraspherical()

mpfr_t * ft_mpfr_plan_jacobi_to_ultraspherical ( const int normjac,
const int normultra,
const int n,
mpfr_srcptr alpha,
mpfr_srcptr beta,
mpfr_srcptr lambda,
mpfr_prec_t prec,
mpfr_rnd_t rnd )

A multi-precision version of ft_plan_jacobi_to_ultraspherical that returns a dense array of connection coefficients.

Parameters
normjacThe normalization of the Jacobi polynomials: standard (0) or orthonormalized (1).
normultraThe normalization of the ultraspherical polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).
alphaThe parameter \(\alpha\) of the Jacobi polynomials.
betaThe parameter \(\beta\) of the Jacobi polynomials.
lambdaThe parameter \(\lambda\) of the ultraspherical polynomials.
precThe precision of the connection coefficients, in bits.
rndThe MPFR rounding mode.

◆ ft_mpfr_plan_laguerre_to_laguerre()

mpfr_t * ft_mpfr_plan_laguerre_to_laguerre ( const int norm1,
const int norm2,
const int n,
mpfr_srcptr alpha,
mpfr_srcptr beta,
mpfr_prec_t prec,
mpfr_rnd_t rnd )

A multi-precision version of ft_plan_laguerre_to_laguerre that returns a dense array of connection coefficients.

Parameters
norm1The normalization of the source Laguerre polynomials: standard (0) or orthonormalized (1).
norm2The normalization of the target Laguerre polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).
alphaThe parameter \(\alpha\) of the source Laguerre polynomials.
betaThe parameter \(\beta\) of the target Laguerre polynomials, in the place of \(\alpha\).
precThe precision of the connection coefficients, in bits.
rndThe MPFR rounding mode.

◆ ft_mpfr_plan_legendre_to_chebyshev()

mpfr_t * ft_mpfr_plan_legendre_to_chebyshev ( const int normleg,
const int normcheb,
const int n,
mpfr_prec_t prec,
mpfr_rnd_t rnd )

A multi-precision version of ft_plan_legendre_to_chebyshev that returns a dense array of connection coefficients.

Parameters
normlegThe normalization of the Legendre polynomials: standard (0) or orthonormalized (1).
normchebThe normalization of the Chebyshev polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).
precThe precision of the connection coefficients, in bits.
rndThe MPFR rounding mode.

◆ ft_mpfr_plan_ultraspherical_to_chebyshev()

mpfr_t * ft_mpfr_plan_ultraspherical_to_chebyshev ( const int normultra,
const int normcheb,
const int n,
mpfr_srcptr lambda,
mpfr_prec_t prec,
mpfr_rnd_t rnd )

A multi-precision version of ft_plan_ultraspherical_to_chebyshev that returns a dense array of connection coefficients.

Parameters
normultraThe normalization of the ultraspherical polynomials: standard (0) or orthonormalized (1).
normchebThe normalization of the Chebyshev polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).
lambdaThe parameter \(\lambda\) of the ultraspherical polynomials.
precThe precision of the connection coefficients, in bits.
rndThe MPFR rounding mode.

◆ ft_mpfr_plan_ultraspherical_to_jacobi()

mpfr_t * ft_mpfr_plan_ultraspherical_to_jacobi ( const int normultra,
const int normjac,
const int n,
mpfr_srcptr lambda,
mpfr_srcptr alpha,
mpfr_srcptr beta,
mpfr_prec_t prec,
mpfr_rnd_t rnd )

A multi-precision version of ft_plan_ultraspherical_to_jacobi that returns a dense array of connection coefficients.

Parameters
normultraThe normalization of the ultraspherical polynomials: standard (0) or orthonormalized (1).
normjacThe normalization of the Jacobi polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).
lambdaThe parameter \(\lambda\) of the ultraspherical polynomials.
alphaThe parameter \(\alpha\) of the Jacobi polynomials.
betaThe parameter \(\beta\) of the Jacobi polynomials.
precThe precision of the connection coefficients, in bits.
rndThe MPFR rounding mode.

◆ ft_mpfr_plan_ultraspherical_to_ultraspherical()

mpfr_t * ft_mpfr_plan_ultraspherical_to_ultraspherical ( const int norm1,
const int norm2,
const int n,
mpfr_srcptr lambda,
mpfr_srcptr mu,
mpfr_prec_t prec,
mpfr_rnd_t rnd )

A multi-precision version of ft_plan_ultraspherical_to_ultraspherical that returns a dense array of connection coefficients.

Parameters
norm1The normalization of the source ultraspherical polynomials: standard (0) or orthonormalized (1).
norm2The normalization of the target ultraspherical polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).
lambdaThe parameter \(\lambda\) of the source ultraspherical polynomials.
muThe parameter \(\mu\) of the target ultraspherical polynomials.
precThe precision of the connection coefficients, in bits.
rndThe MPFR rounding mode.

◆ ft_plan_ann2cxf()

ft_harmonic_plan * ft_plan_ann2cxf ( const int n,
const double alpha,
const double beta,
const double gamma,
const double rho )

Plan an annulus harmonic transform.

Parameters
nThe number of rows in the array of coefficients, so that the polynomial degree is at most \(2n-2\).
alphaThe parameter \(\alpha\) in the weight \(r^{2\gamma+1}(r^2-\rho^2)^\alpha(1-r^2)^\beta\).
betaThe parameter \(\beta\) in the weight \(r^{2\gamma+1}(r^2-\rho^2)^\alpha(1-r^2)^\beta\).
gammaThe parameter \(\gamma\) in the weight \(r^{2\gamma+1}(r^2-\rho^2)^\alpha(1-r^2)^\beta\).
rhoThe inner radius of the annulus, \(0<\rho<1\).
Examples
annulus.c.

◆ ft_plan_annulus_analysis()

ft_annulus_fftw_plan * ft_plan_annulus_analysis ( const int N,
const int M,
const double rho,
const unsigned flags )

Plan FFTW analysis on the annulus.

Parameters
NThe number of rows of the \(N\times M\) grid, see FFTW Synthesis and Analysis.
MThe number of columns of the \(N\times M\) grid.
rhoThe inner radius of the annulus, \(0<\rho<1\).
flagsThe FFTW planner flags, such as FFTW_ESTIMATE or FFTW_MEASURE.
Examples
annulus.c.

◆ ft_plan_annulus_synthesis()

ft_annulus_fftw_plan * ft_plan_annulus_synthesis ( const int N,
const int M,
const double rho,
const unsigned flags )

Plan FFTW synthesis on the annulus.

Parameters
NThe number of rows of the \(N\times M\) grid, see FFTW Synthesis and Analysis.
MThe number of columns of the \(N\times M\) grid.
rhoThe inner radius of the annulus, \(0<\rho<1\).
flagsThe FFTW planner flags, such as FFTW_ESTIMATE or FFTW_MEASURE.

◆ ft_plan_chebyshev_to_jacobi()

ft_tb_eigen_FMM * ft_plan_chebyshev_to_jacobi ( const int normcheb,
const int normjac,
const int n,
const double alpha,
const double beta )

Pre-compute a factorization of the connection coefficients between Chebyshev and Jacobi polynomials in double precision so that ft_bfmv converts between expansions:

\[\sum_{\ell=0}^{n-1} c_\ell^{\mathrm{Chebyshev}} T_\ell(x) = \sum_{\ell=0}^{n-1} c_\ell^{\mathrm{Jacobi}} P_\ell^{(\alpha,\beta)}(x). \]

normcheb and normjac govern the normalizations, either standard ( == 0) or orthonormalized ( == 1).
See also ft_plan_chebyshev_to_jacobif, ft_plan_chebyshev_to_jacobil, and ft_mpfr_plan_chebyshev_to_jacobi.

Parameters
normchebThe normalization of the Chebyshev polynomials: standard (0) or orthonormalized (1).
normjacThe normalization of the Jacobi polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).
alphaThe parameter \(\alpha\) of the Jacobi polynomials.
betaThe parameter \(\beta\) of the Jacobi polynomials.

◆ ft_plan_chebyshev_to_legendre()

ft_tb_eigen_FMM * ft_plan_chebyshev_to_legendre ( const int normcheb,
const int normleg,
const int n )

Pre-compute a factorization of the connection coefficients between Chebyshev and Legendre polynomials in double precision so that ft_bfmv converts between expansions:

\[\sum_{\ell=0}^{n-1} c_\ell^{\mathrm{Chebyshev}} T_\ell(x) = \sum_{\ell=0}^{n-1} c_\ell^{\mathrm{Legendre}} P_\ell(x). \]

normcheb and normleg govern the normalizations, either standard ( == 0) or orthonormalized ( == 1).
See also ft_plan_chebyshev_to_legendref, ft_plan_chebyshev_to_legendrel, and ft_mpfr_plan_chebyshev_to_legendre.

Parameters
normchebThe normalization of the Chebyshev polynomials: standard (0) or orthonormalized (1).
normlegThe normalization of the Legendre polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).

◆ ft_plan_chebyshev_to_ultraspherical()

ft_tb_eigen_FMM * ft_plan_chebyshev_to_ultraspherical ( const int normcheb,
const int normultra,
const int n,
const double lambda )

Pre-compute a factorization of the connection coefficients between Chebyshev and ultraspherical polynomials in double precision so that ft_bfmv converts between expansions:

\[\sum_{\ell=0}^{n-1} c_\ell^{\mathrm{Chebyshev}} T_\ell(x) = \sum_{\ell=0}^{n-1} c_\ell^{\mathrm{ultraspherical}} C_\ell^{(\lambda)}(x). \]

normcheb and normultra govern the normalizations, either standard ( == 0) or orthonormalized ( == 1).
See also ft_plan_chebyshev_to_ultrasphericalf, ft_plan_chebyshev_to_ultrasphericall, and ft_mpfr_plan_chebyshev_to_ultraspherical.

Parameters
normchebThe normalization of the Chebyshev polynomials: standard (0) or orthonormalized (1).
normultraThe normalization of the ultraspherical polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).
lambdaThe parameter \(\lambda\) of the ultraspherical polynomials.

◆ ft_plan_disk2cxf()

ft_harmonic_plan * ft_plan_disk2cxf ( const int n,
const double alpha,
const double beta )

Plan a disk harmonic transform.

Parameters
nThe number of rows in the array of coefficients, so that the polynomial degree is at most \(2n-2\).
alphaThe parameter \(\alpha\) in the weight \(r^{2\alpha+1}(1-r^2)^\beta\).
betaThe parameter \(\beta\) in the weight \(r^{2\alpha+1}(1-r^2)^\beta\).
Examples
holomorphic.c.

◆ ft_plan_disk_analysis()

ft_disk_fftw_plan * ft_plan_disk_analysis ( const int N,
const int M,
const unsigned flags )

Plan FFTW analysis on the disk.

Parameters
NThe number of rows of the \(N\times M\) grid, see FFTW Synthesis and Analysis.
MThe number of columns of the \(N\times M\) grid.
flagsThe FFTW planner flags, such as FFTW_ESTIMATE or FFTW_MEASURE.
Examples
holomorphic.c.

◆ ft_plan_disk_synthesis()

ft_disk_fftw_plan * ft_plan_disk_synthesis ( const int N,
const int M,
const unsigned flags )

Plan FFTW synthesis on the disk.

Parameters
NThe number of rows of the \(N\times M\) grid, see FFTW Synthesis and Analysis.
MThe number of columns of the \(N\times M\) grid.
flagsThe FFTW planner flags, such as FFTW_ESTIMATE or FFTW_MEASURE.

◆ ft_plan_jacobi_to_chebyshev()

ft_tb_eigen_FMM * ft_plan_jacobi_to_chebyshev ( const int normjac,
const int normcheb,
const int n,
const double alpha,
const double beta )

Pre-compute a factorization of the connection coefficients between Jacobi and Chebyshev polynomials in double precision so that ft_bfmv converts between expansions:

\[\sum_{\ell=0}^{n-1} c_\ell^{\mathrm{Jacobi}} P_\ell^{(\alpha,\beta)}(x) = \sum_{\ell=0}^{n-1} c_\ell^{\mathrm{Chebyshev}} T_\ell(x). \]

normjac and normcheb govern the normalizations, either standard ( == 0) or orthonormalized ( == 1).
See also ft_plan_jacobi_to_chebyshevf, ft_plan_jacobi_to_chebyshevl, and ft_mpfr_plan_jacobi_to_chebyshev.

Parameters
normjacThe normalization of the Jacobi polynomials: standard (0) or orthonormalized (1).
normchebThe normalization of the Chebyshev polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).
alphaThe parameter \(\alpha\) of the Jacobi polynomials.
betaThe parameter \(\beta\) of the Jacobi polynomials.

◆ ft_plan_jacobi_to_jacobi()

ft_tb_eigen_FMM * ft_plan_jacobi_to_jacobi ( const int norm1,
const int norm2,
const int n,
const double alpha,
const double beta,
const double gamma,
const double delta )

Pre-compute a factorization of the connection coefficients between Jacobi polynomials in double precision so that ft_bfmv converts between expansions:

\[\sum_{\ell=0}^{n-1} c_\ell^{(1)} P_\ell^{(\alpha,\beta)}(x) = \sum_{\ell=0}^{n-1} c_\ell^{(2)} P_\ell^{(\gamma,\delta)}(x). \]

norm1 and norm2 govern the normalizations, either standard ( == 0) or orthonormalized ( == 1).
See also ft_plan_jacobi_to_jacobif, ft_plan_jacobi_to_jacobil, and ft_mpfr_plan_jacobi_to_jacobi.

Parameters
norm1The normalization of the source Jacobi polynomials: standard (0) or orthonormalized (1).
norm2The normalization of the target Jacobi polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).
alphaThe parameter \(\alpha\) of the source Jacobi polynomials.
betaThe parameter \(\beta\) of the source Jacobi polynomials.
gammaThe parameter \(\gamma\) of the target Jacobi polynomials, in the place of \(\alpha\).
deltaThe parameter \(\delta\) of the target Jacobi polynomials, in the place of \(\beta\).
Examples
nonlocaldiffusion.c.

◆ ft_plan_jacobi_to_ultraspherical()

ft_tb_eigen_FMM * ft_plan_jacobi_to_ultraspherical ( const int normjac,
const int normultra,
const int n,
const double alpha,
const double beta,
const double lambda )

Pre-compute a factorization of the connection coefficients between Jacobi and ultraspherical polynomials in double precision so that ft_bfmv converts between expansions:

\[\sum_{\ell=0}^{n-1} c_\ell^{\mathrm{Jacobi}} P_\ell^{(\alpha,\beta)}(x) = \sum_{\ell=0}^{n-1} c_\ell^{\mathrm{ultraspherical}} C_\ell^{(\lambda)}(x). \]

normjac and normultra govern the normalizations, either standard ( == 0) or orthonormalized ( == 1).
See also ft_plan_jacobi_to_ultrasphericalf, ft_plan_jacobi_to_ultrasphericall, and ft_mpfr_plan_jacobi_to_ultraspherical.

Parameters
normjacThe normalization of the Jacobi polynomials: standard (0) or orthonormalized (1).
normultraThe normalization of the ultraspherical polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).
alphaThe parameter \(\alpha\) of the Jacobi polynomials.
betaThe parameter \(\beta\) of the Jacobi polynomials.
lambdaThe parameter \(\lambda\) of the ultraspherical polynomials.

◆ ft_plan_laguerre_to_laguerre()

ft_tb_eigen_FMM * ft_plan_laguerre_to_laguerre ( const int norm1,
const int norm2,
const int n,
const double alpha,
const double beta )

Pre-compute a factorization of the connection coefficients between Laguerre polynomials in double precision so that ft_bfmv converts between expansions:

\[\sum_{\ell=0}^{n-1} c_\ell^{(1)} L_\ell^{(\alpha)}(x) = \sum_{\ell=0}^{n-1} c_\ell^{(2)} L_\ell^{(\beta)}(x). \]

norm1 and norm2 govern the normalizations, either standard ( == 0) or orthonormalized ( == 1).
See also ft_plan_laguerre_to_laguerref, ft_plan_laguerre_to_laguerrel, and ft_mpfr_plan_laguerre_to_laguerre.

Parameters
norm1The normalization of the source Laguerre polynomials: standard (0) or orthonormalized (1).
norm2The normalization of the target Laguerre polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).
alphaThe parameter \(\alpha\) of the source Laguerre polynomials.
betaThe parameter \(\beta\) of the target Laguerre polynomials, in the place of \(\alpha\).
Examples
subspaceangles.c.

◆ ft_plan_legendre_to_chebyshev()

ft_tb_eigen_FMM * ft_plan_legendre_to_chebyshev ( const int normleg,
const int normcheb,
const int n )

Pre-compute a factorization of the connection coefficients between Legendre and Chebyshev polynomials in double precision so that ft_bfmv converts between expansions:

\[\sum_{\ell=0}^{n-1} c_\ell^{\mathrm{Legendre}} P_\ell(x) = \sum_{\ell=0}^{n-1} c_\ell^{\mathrm{Chebyshev}} T_\ell(x). \]

normleg and normcheb govern the normalizations, either standard ( == 0) or orthonormalized ( == 1).
See also ft_plan_legendre_to_chebyshevf, ft_plan_legendre_to_chebyshevl, and ft_mpfr_plan_legendre_to_chebyshev.

Parameters
normlegThe normalization of the Legendre polynomials: standard (0) or orthonormalized (1).
normchebThe normalization of the Chebyshev polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).

◆ ft_plan_modified_hermite_to_hermite()

ft_modified_plan * ft_plan_modified_hermite_to_hermite ( const int n,
const int nu,
const double * u,
const int nv,
const double * v,
const int verbose )

Pre-compute a factorization of the connection coefficients between modified Hermite polynomials, orthonormal with respect to a rationally modified weight and orthonormal Hermite polynomials. The rational function is expressed as a ratio of orthonormal Hermite polynomial expansions:

\[r(x) = \frac{u(x)}{v(x)} = \frac{\displaystyle \sum_{k=0}^{n_u-1} u_k \tilde{H}_k(x)}{\displaystyle \sum_{k=0}^{n_v-1} v_k \tilde{H}_k(x)}. \]

If \(n_v \le 1\), then \(r(x)\) is polynomial and the algorithm is direct and faster. See also ft_plan_modified_hermite_to_hermitef and ft_plan_modified_hermite_to_hermitel.

Parameters
nThe number of modified polynomials, so that their degree is at most \(n-1\).
nuThe number of coefficients \(n_u\) in the numerator.
uThe array of the \(n_u\) coefficients \(u_k\) of the numerator.
nvThe number of coefficients \(n_v\) in the denominator.
vThe array of the \(n_v\) coefficients \(v_k\) of the denominator.
verboseIf nonzero and \(r(x)\) is rational, print the convergence of the pre-computation to standard output.

◆ ft_plan_modified_jacobi_to_jacobi()

ft_modified_plan * ft_plan_modified_jacobi_to_jacobi ( const int n,
const double alpha,
const double beta,
const int nu,
const double * u,
const int nv,
const double * v,
const int verbose )

Pre-compute a factorization of the connection coefficients between modified Jacobi polynomials, orthonormal with respect to a rationally modified weight and orthonormal Jacobi polynomials. The rational function is expressed as a ratio of orthonormal Jacobi polynomial expansions:

\[r(x) = \frac{u(x)}{v(x)} = \frac{\displaystyle \sum_{k=0}^{n_u-1} u_k \tilde{P}_k^{(\alpha,\beta)}(x)}{\displaystyle \sum_{k=0}^{n_v-1} v_k \tilde{P}_k^{(\alpha,\beta)}(x)}. \]

If \(n_v \le 1\), then \(r(x)\) is polynomial and the algorithm is direct and faster. See also ft_plan_modified_jacobi_to_jacobif and ft_plan_modified_jacobi_to_jacobil.

Parameters
nThe number of modified polynomials, so that their degree is at most \(n-1\).
alphaThe parameter \(\alpha\) of the Jacobi polynomials.
betaThe parameter \(\beta\) of the Jacobi polynomials.
nuThe number of coefficients \(n_u\) in the numerator.
uThe array of the \(n_u\) coefficients \(u_k\) of the numerator.
nvThe number of coefficients \(n_v\) in the denominator.
vThe array of the \(n_v\) coefficients \(v_k\) of the denominator.
verboseIf nonzero and \(r(x)\) is rational, print the convergence of the pre-computation to standard output.

◆ ft_plan_modified_laguerre_to_laguerre()

ft_modified_plan * ft_plan_modified_laguerre_to_laguerre ( const int n,
const double alpha,
const int nu,
const double * u,
const int nv,
const double * v,
const int verbose )

Pre-compute a factorization of the connection coefficients between modified Laguerre polynomials, orthonormal with respect to a rationally modified weight and orthonormal Laguerre polynomials. The rational function is expressed as a ratio of orthonormal Laguerre polynomial expansions:

\[r(x) = \frac{u(x)}{v(x)} = \frac{\displaystyle \sum_{k=0}^{n_u-1} u_k \tilde{L}_k^{(\alpha)}(x)}{\displaystyle \sum_{k=0}^{n_v-1} v_k \tilde{L}_k^{(\alpha)}(x)}. \]

If \(n_v \le 1\), then \(r(x)\) is polynomial and the algorithm is direct and faster. See also ft_plan_modified_laguerre_to_laguerref and ft_plan_modified_laguerre_to_laguerrel.

Parameters
nThe number of modified polynomials, so that their degree is at most \(n-1\).
alphaThe parameter \(\alpha\) of the Laguerre polynomials.
nuThe number of coefficients \(n_u\) in the numerator.
uThe array of the \(n_u\) coefficients \(u_k\) of the numerator.
nvThe number of coefficients \(n_v\) in the denominator.
vThe array of the \(n_v\) coefficients \(v_k\) of the denominator.
verboseIf nonzero and \(r(x)\) is rational, print the convergence of the pre-computation to standard output.

◆ ft_plan_rectdisk2cheb()

ft_harmonic_plan * ft_plan_rectdisk2cheb ( const int n,
const double beta )

Plan a rectangularized disk harmonic transform.

Parameters
nThe number of rows in the array of coefficients, so that the polynomial degree is at most \(n-1\).
betaThe parameter \(\beta\) in the weight \((1-x^2-y^2)^\beta\).
Examples
holomorphic.c.

◆ ft_plan_rectdisk_analysis()

ft_rectdisk_fftw_plan * ft_plan_rectdisk_analysis ( const int N,
const int M,
const unsigned flags )

Plan FFTW analysis on the rectangularized disk.

Parameters
NThe number of rows of the \(N\times M\) grid, see FFTW Synthesis and Analysis.
MThe number of columns of the \(N\times M\) grid.
flagsThe FFTW planner flags, such as FFTW_ESTIMATE or FFTW_MEASURE.
Examples
holomorphic.c.

◆ ft_plan_rectdisk_synthesis()

ft_rectdisk_fftw_plan * ft_plan_rectdisk_synthesis ( const int N,
const int M,
const unsigned flags )

Plan FFTW synthesis on the rectangularized disk.

Parameters
NThe number of rows of the \(N\times M\) grid, see FFTW Synthesis and Analysis.
MThe number of columns of the \(N\times M\) grid.
flagsThe FFTW planner flags, such as FFTW_ESTIMATE or FFTW_MEASURE.

◆ ft_plan_sph2fourier()

ft_harmonic_plan * ft_plan_sph2fourier ( const int n)

Plan a spherical harmonic transform.

Parameters
nThe number of rows in the array of coefficients, so that the polynomial degree is at most \(n-1\).
Examples
additiontheorem.c.

◆ ft_plan_sph_analysis()

ft_sphere_fftw_plan * ft_plan_sph_analysis ( const int N,
const int M,
const unsigned flags )

Plan FFTW analysis on the sphere.

Parameters
NThe number of rows of the \(N\times M\) grid, see FFTW Synthesis and Analysis.
MThe number of columns of the \(N\times M\) grid.
flagsThe FFTW planner flags, such as FFTW_ESTIMATE or FFTW_MEASURE.
Examples
additiontheorem.c.

◆ ft_plan_sph_synthesis()

ft_sphere_fftw_plan * ft_plan_sph_synthesis ( const int N,
const int M,
const unsigned flags )

Plan FFTW synthesis on the sphere.

Parameters
NThe number of rows of the \(N\times M\) grid, see FFTW Synthesis and Analysis.
MThe number of columns of the \(N\times M\) grid.
flagsThe FFTW planner flags, such as FFTW_ESTIMATE or FFTW_MEASURE.

◆ ft_plan_spinsph2fourier()

ft_spin_harmonic_plan * ft_plan_spinsph2fourier ( const int n,
const int s )

Plan a spin-weighted spherical harmonic transform.

Parameters
nThe number of rows in the array of coefficients, so that the polynomial degree is at most \(n-1\).
sThe integer spin \(s\).
Examples
spinweighted.c.

◆ ft_plan_spinsph_analysis()

ft_spinsphere_fftw_plan * ft_plan_spinsph_analysis ( const int N,
const int M,
const int S,
const unsigned flags )

Plan FFTW analysis on the sphere with spin.

Parameters
NThe number of rows of the \(N\times M\) grid, see FFTW Synthesis and Analysis.
MThe number of columns of the \(N\times M\) grid.
SThe integer spin.
flagsThe FFTW planner flags, such as FFTW_ESTIMATE or FFTW_MEASURE.
Examples
spinweighted.c.

◆ ft_plan_spinsph_synthesis()

ft_spinsphere_fftw_plan * ft_plan_spinsph_synthesis ( const int N,
const int M,
const int S,
const unsigned flags )

Plan FFTW synthesis on the sphere with spin.

Parameters
NThe number of rows of the \(N\times M\) grid, see FFTW Synthesis and Analysis.
MThe number of columns of the \(N\times M\) grid.
SThe integer spin.
flagsThe FFTW planner flags, such as FFTW_ESTIMATE or FFTW_MEASURE.

◆ ft_plan_tet2cheb()

ft_harmonic_plan * ft_plan_tet2cheb ( const int n,
const double alpha,
const double beta,
const double gamma,
const double delta )

Plan a tetrahedral harmonic transform.

Parameters
nThe number of rows in the array of coefficients, so that the polynomial degree is at most \(n-1\).
alphaThe parameter \(\alpha\) in the weight \(x^\alpha y^\beta z^\gamma(1-x-y-z)^\delta\).
betaThe parameter \(\beta\) in the weight \(x^\alpha y^\beta z^\gamma(1-x-y-z)^\delta\).
gammaThe parameter \(\gamma\) in the weight \(x^\alpha y^\beta z^\gamma(1-x-y-z)^\delta\).
deltaThe parameter \(\delta\) in the weight \(x^\alpha y^\beta z^\gamma(1-x-y-z)^\delta\).

◆ ft_plan_tri2cheb()

ft_harmonic_plan * ft_plan_tri2cheb ( const int n,
const double alpha,
const double beta,
const double gamma )

Plan a triangular harmonic transform.

Parameters
nThe number of rows in the array of coefficients, so that the polynomial degree is at most \(n-1\).
alphaThe parameter \(\alpha\) in the weight \(x^\alpha y^\beta(1-x-y)^\gamma\).
betaThe parameter \(\beta\) in the weight \(x^\alpha y^\beta(1-x-y)^\gamma\).
gammaThe parameter \(\gamma\) in the weight \(x^\alpha y^\beta(1-x-y)^\gamma\).
Examples
calculus.c.

◆ ft_plan_tri_analysis()

ft_triangle_fftw_plan * ft_plan_tri_analysis ( const int N,
const int M,
const unsigned flags )

Plan FFTW analysis on the triangle.

Parameters
NThe number of rows of the \(N\times M\) grid, see FFTW Synthesis and Analysis.
MThe number of columns of the \(N\times M\) grid.
flagsThe FFTW planner flags, such as FFTW_ESTIMATE or FFTW_MEASURE.
Examples
calculus.c.

◆ ft_plan_tri_synthesis()

ft_triangle_fftw_plan * ft_plan_tri_synthesis ( const int N,
const int M,
const unsigned flags )

Plan FFTW synthesis on the triangle.

Parameters
NThe number of rows of the \(N\times M\) grid, see FFTW Synthesis and Analysis.
MThe number of columns of the \(N\times M\) grid.
flagsThe FFTW planner flags, such as FFTW_ESTIMATE or FFTW_MEASURE.

◆ ft_plan_ultraspherical_to_chebyshev()

ft_tb_eigen_FMM * ft_plan_ultraspherical_to_chebyshev ( const int normultra,
const int normcheb,
const int n,
const double lambda )

Pre-compute a factorization of the connection coefficients between ultraspherical and Chebyshev polynomials in double precision so that ft_bfmv converts between expansions:

\[\sum_{\ell=0}^{n-1} c_\ell^{\mathrm{ultraspherical}} C_\ell^{(\lambda)}(x) = \sum_{\ell=0}^{n-1} c_\ell^{\mathrm{Chebyshev}} T_\ell(x). \]

normultra and normcheb govern the normalizations, either standard ( == 0) or orthonormalized ( == 1).
See also ft_plan_ultraspherical_to_chebyshevf, ft_plan_ultraspherical_to_chebyshevl, and ft_mpfr_plan_ultraspherical_to_chebyshev.

Parameters
normultraThe normalization of the ultraspherical polynomials: standard (0) or orthonormalized (1).
normchebThe normalization of the Chebyshev polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).
lambdaThe parameter \(\lambda\) of the ultraspherical polynomials.

◆ ft_plan_ultraspherical_to_jacobi()

ft_tb_eigen_FMM * ft_plan_ultraspherical_to_jacobi ( const int normultra,
const int normjac,
const int n,
const double lambda,
const double alpha,
const double beta )

Pre-compute a factorization of the connection coefficients between ultraspherical and Jacobi polynomials in double precision so that ft_bfmv converts between expansions:

\[\sum_{\ell=0}^{n-1} c_\ell^{\mathrm{ultraspherical}} C_\ell^{(\lambda)}(x) = \sum_{\ell=0}^{n-1} c_\ell^{\mathrm{Jacobi}} P_\ell^{(\alpha,\beta)}(x). \]

normultra and normjac govern the normalizations, either standard ( == 0) or orthonormalized ( == 1).
See also ft_plan_ultraspherical_to_jacobif, ft_plan_ultraspherical_to_jacobil, and ft_mpfr_plan_ultraspherical_to_jacobi.

Parameters
normultraThe normalization of the ultraspherical polynomials: standard (0) or orthonormalized (1).
normjacThe normalization of the Jacobi polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).
lambdaThe parameter \(\lambda\) of the ultraspherical polynomials.
alphaThe parameter \(\alpha\) of the Jacobi polynomials.
betaThe parameter \(\beta\) of the Jacobi polynomials.

◆ ft_plan_ultraspherical_to_ultraspherical()

ft_tb_eigen_FMM * ft_plan_ultraspherical_to_ultraspherical ( const int norm1,
const int norm2,
const int n,
const double lambda,
const double mu )

Pre-compute a factorization of the connection coefficients between ultraspherical polynomials in double precision so that ft_bfmv converts between expansions:

\[\sum_{\ell=0}^{n-1} c_\ell^{(1)} C_\ell^{(\lambda)}(x) = \sum_{\ell=0}^{n-1} c_\ell^{(2)} C_\ell^{(\mu)}(x). \]

norm1 and norm2 govern the normalizations, either standard ( == 0) or orthonormalized ( == 1).
See also ft_plan_ultraspherical_to_ultrasphericalf, ft_plan_ultraspherical_to_ultrasphericall, and ft_mpfr_plan_ultraspherical_to_ultraspherical.

Parameters
norm1The normalization of the source ultraspherical polynomials: standard (0) or orthonormalized (1).
norm2The normalization of the target ultraspherical polynomials: standard (0) or orthonormalized (1).
nThe number of coefficients in each expansion, so that the polynomial degree is at most \(n-1\).
lambdaThe parameter \(\lambda\) of the source ultraspherical polynomials.
muThe parameter \(\mu\) of the target ultraspherical polynomials.

◆ ft_set_num_threads()

void ft_set_num_threads ( const int n)

Set the number of OpenMP threads.

Parameters
nThe number of threads.