1 Introduction

Due to the increasing availability of data, which is supported by ongoing technological advances in the acquisition, storage, and processing, several transformations (e.g., the Fourier transform, the Laplace transform, and the Fuzzy transform) have been proposed to solve problems that spread from signal analysis to the solution of partial differential equations, from the analysis to the approximation of signals. From a general perspective, a transform is typically defined as a linear operator between functional spaces, and its discretisation reduces to a matrix–vector multiplication. Main examples include the definition of the Fourier and Laplace transforms as integral operators induced by a complex and a real exponential kernel, respectively. Transformations are crucial to address different signal processing and analysis tasks, such as multi-rate signal processing, multi-scale representations and frames, signal modelling and adaptive filtering.

The Laplace transform [79] (LT, for short) has been extensively applied to signal analysis and the solution of PDEs on 2D domains, such as boundary value problems in two variables (Sect. 2). The definition and computation of the LT on arbitrary domains are challenging for several reasons. On the one hand, the solution to PDEs on curved volumes and surfaces is still an open research problem, due to the complexity of partitioning the input domain and constructing proper functional spaces. On the other hand, the definition of the LT on arbitrary domains must generalise the properties of the LT from the 1D case to the nD case, also taking into account the geometry and topology of the input domain.

Instead of applying patch operators for signals defined on arbitrary data, which cannot be extended to graphs by combining the vertex-frequency analysis framework [85] with classical spectral analysis, we work in the spectral domain. Filtering the Laplacian spectrum, we introduce the spectral LT (Sect. 3) and show that the main properties of the 1D and 2D LTs, such as dilation, translation, scaling, derivation, and localisation, still apply to a signal defined on an arbitrary domain. Defining the LT of spectral wavelets and filters provides a “compact” representation of the input signal, which allows us to analyse any signal (not necessarily defined in 1D or 2D) and achieve a stable computation of the spectral LT through polynomial representations and geometric series.

The spectral LT is particularly useful for the solution of the heat equation at small scales, where it is generally difficult to achieve a high approximation accuracy and a numerically stable computation, due to the discretisation of the temporal variable (e.g., \(\theta \)-method [1, 70]) and heuristic criteria for the selection of the number of Laplacian eigenpairs with respect to time and target accuracy. A smaller scale generally requires a higher number (i) of eigenfunctions with larger frequencies for the spectral approximation and (ii) of iterations for the \(\theta \)-method, which introduces oscillations in the approximate solution. In contrast, the LT removes the time variable and transforms the input PDE in a Helmholtz-type boundary value problem, which is split into the solution to a homogeneous equation and the computation of a particular solution. Furthermore, differentiation and integration are converted to function multiplication and division through the LT.

For the efficient and numerically stable computation of the spectral LT (Sect. 4), we show a low approximation error between the input filter and its polynomial or rational polynomial approximations, which corresponds to a low error between the corresponding spectral LTs. As the first approach, we approximate the input filter with a polynomial, showing that the spectral LT can be iteratively computed. The second approach approximates the 1D LT with a rational polynomial and maps this approximation on the corresponding spectral LTs. Both methods allow us to compute the spectral LT without evaluating the Laplacian spectrum, which is computationally expensive and numerically unstable in the case of large data. As the main advantage, the spectral LT is intrinsic by construction, is independent of the discretisation of the input domain, and involves only a small set of Laplacian eigenvalues and eigenfunctions. Indeed, the proposed approach supports the analysis of any type of signal and data representation, e.g., meshes, point clouds, and graphs.

In the experimental analysis (Sect. 5), we evaluate the spectral LT of functions defined on 3D domains and graphs, also discussing their main properties, computation, and applications to the solution of the heat diffusion equation on arbitrary domains (e.g., 3D surfaces), graph signal processing, and 3D shape correspondence.

2 Related Work

We briefly recall previous work on the 1D LT (Sect. 2.1) and its link with the Fourier transform (FT, for short), the Laplacian spectrum (Sect. 2.2) and the spectral filters that will be applied to the definition of the spectral LT. Finally, we review LT-based and meshless solvers of the heat equation (Sect. 2.3).

2.1 1D Laplace and Fourier Transforms

The Laplace operator of a 1D function \(f:{\mathbb {R}}^{+}\rightarrow {\mathbb {R}}\) is defined as the integral operator \(({\mathcal {L}}f)(s):={\widetilde{f}}(s):=\int _{0}^{+\infty }f(t)\exp (-st)dt\), where \(s:=\sigma +i\omega \) is a complex variable. The LT is linear and bijective (Lerch’s theorem) in the space of continuous functions. In our discussion, we focus on the case of a real variable s. Since differentiation and integration are converted to function multiplication and division through the LT, this transform is commonly applied to solve time-depending PDEs, such as the heat diffusion equation. Then, the solution is mapped back to the initial space through the inverse LT [25, 79]. Recalling that the Fourier transform (FT, for short) of a square-integrable function \(f:{\mathbb {R}}\rightarrow {\mathbb {R}}\), \(f\in {\mathcal {L}}^{2}({\mathbb {R}})\), is defined as \({\widehat{f}}(\omega ) = \langle f,\exp (2\pi i\omega \cdot )\rangle _{2}\), the FT decomposes signals into frequencies and maps signals localised in the time domain to signals spread out across the frequency domain, and vice versa. The continuous FT is equivalent to the LT, where the integration domain is \({\mathbb {R}}\) instead of \([0,+\infty )\) and with imaginary argument \(s:=i\omega \), i.e.,

$$\begin{aligned} ({\mathcal {F}}f)(\omega )=\int \limits _{{\mathbb {R}}}f(t)\exp (-i\omega t)dt=({\mathcal {L}}f)(i\omega ). \end{aligned}$$
(1)

On the one hand, the FT represents a signal as a sum of modes of vibration. On the other hand, the LT converts time-depending functions into functions of complex angular values. Applying the variable change \(\omega :=-i\omega \) in Eq. (1), we get that \(({\mathcal {L}}f)(\omega )=({\mathcal {F}}f)(-i\omega )\); indeed, computing the LT is equivalent to evaluating the FT.

2.2 Spectral Signal Processing

Laplacian Spectral Operators For the definition of spectral LT, we introduce the Laplace-Beltrami operator and its spectrum, which provides a generalisation of the Fourier basis to arbitrary domains [76, 77]. Let \({\mathcal {M}}\) be a compact and connected domain and \({\mathcal {L}}^{2}({\mathcal {M}})\) the space of square-integrable functions on \({\mathcal {M}}\) equipped with the scalar product \(\langle f,g\rangle _{2}:=\int _{{\mathcal {M}}}fg\text {d}\mu \) and the corresponding norm \(\Vert \cdot \Vert _{2}\). The Laplace-Beltrami operator \(\varDelta \) is self-adjoint, positive semi-definite in \({\mathcal {L}}^{2}({\mathcal {M}})\), and admits the Laplacian orthonormal eigensystem \((\lambda _{n},\phi _{n})_{n=0}^{+\infty }\) [73], \(\varDelta \phi _{n}=\lambda _{n}\phi _{n}\), with \(\lambda _{0}=0\) and \(\lambda _{n}\le \lambda _{n+1}\). Let \({\mathcal {H}}:={\mathcal {L}}^{2}({\mathbb {R}})\cap {\mathcal {C}}^{0}({\mathbb {R}})\) be the filter space and \(\varphi :{\mathbb {R}}\rightarrow {\mathbb {R}}\) be a positive, continuous, and square-integrable filter in \({\mathcal {H}}\). Assuming that the filter admits the power-series representation \(\varphi (t):=\sum _{n=0}^{+\infty }\alpha _{n}t^{n}\), we define the Laplacian spectral operator \(\varphi (\varDelta ):=\sum _{n=0}^{+\infty }\alpha _{n}\varDelta ^{n}\)

$$\begin{aligned} (\varphi (\varDelta )f)({\textbf{p}}) =\langle K_{\varphi }({\textbf{p}},\cdot ),f\rangle _{2} =\sum _{n=0}^{+\infty }\varphi (\lambda _{n})\langle f,\phi _{n}\rangle _{2}\phi _{n}({\textbf{p}}), \end{aligned}$$
(2)

i.e., the action of \(\varphi (\varDelta )\) on f is equal to the scalar product between the spectral kernel \(K_{\varphi }({\textbf{p}},{\textbf{q}}):=\sum _{n=0}^{+\infty }\varphi (\lambda _{n})\phi _{n}({\textbf{p}})\phi _{n}({\textbf{q}})\) and the input signal. Signal analysis in the spectral frequency domain applies graph filters, by selectively modifying the Fourier coefficients [11, 24, 41].

Spectral signal processing [24, 40, 68] represents an input signal in terms of the eigenvectors of a graph operator (e.g., the graph Laplacian, a kernel matrix) to define the Fourier transform and the convolution with another signal [22, 81, 82]. Then, the FT decomposes signals into frequencies and maps signals localised in the time domain to signals spread out across the frequency domain, and vice versa. According to this simple approach, whose discrete counterpart is based mainly on numerical linear algebra, spectral graph processing has been applied successfully to characterise geometric and topological properties of graphs and to dimensionality reduction [6], through the projection of the input data on low-dimensional subspaces generated by a small set of Laplacian [12] or kernel [34] eigenfunctions. However, the FT of a signal on arbitrary data is not a continuous function as in the 1D case but a discrete infinite real sequence that converges to zero. Spectral signal processing on graphs [22, 81, 82] includes signal interpolation [37, 56] and diffusion wavelets [12, 40, 50, 80]. Further applications are graph embedding [11], the definition of uncertainty principles [68] and random walks [74], data representation [95] and classification [60]. The modelling and training of convolutional neural networks [75] and the design of fast localised convolutional filters on graphs [24] have been recently addressed in the spectral domain and generalised to 3D data through geometric deep learning [4, 66]. Convolutional filters [11, 24] extract local features that are shared across the input domain and reduce the number of free parameters for generic deep architectures. Localised filters or kernels [10, 24] are applied to identify similar features of the input data, independently of their size. To reduce the computational complexity of the evaluation of these filters, previous work [40, 88] has proposed specific filter representations in terms of the Chebyshev polynomial basis, which avoids the evaluation of the Laplacian spectrum. A generalisation of CNNs to arbitrary data (e.g., graphs) is not straightforward as translation operators are not trivially defined. Graph Neural Networks [13, 16, 24, 93, 94] apply either filters in the spectral domain or spatial-based graph convolution, which combines information over neighbouring.

Spectral wavelets Subdivision wavelets on the sphere have been defined through lifting schemes [86] and have been extended to arbitrary surfaces through multi-resolution analysis [47]. Further generalisations of these approaches include the B-spline wavelets [7], the subdivision [59, 92] and spherical Haar [48] wavelets. Applying the properties of the Laplacian spectrum as a generalisation of the Fourier analysis, the diffusion wavelets [19] define a sequence of nested subspaces for multi-resolution signal representation. The spectral wavelets [19, 58, 83]

$$\begin{aligned} \psi _{t,{\textbf{p}}}:=\varphi (t\varDelta )\delta _{{\textbf{p}}}=\sum _{n=0}^{+\infty }\varphi (t\lambda _{n})\phi _{n}({\textbf{p}})\phi _{n} \end{aligned}$$
(3)

are achieved as localised and scaled versions of \(\varphi (t\varDelta )f\) (c.f., Eq. (2)), by selecting \(f:=\delta _{{\textbf{p}}}\) and scaling the filtered eigenvalues by a factor t. According to the selection of the filter function, we define different classes of wavelets, such as the Haar and diffusion wavelets [19, 71]. The Mexican hat wavelets [38] is defined as the negative first-order derivatives of the heat kernel with respect to time; in particular, these wavelets are localised in both space and frequencies. Generalising the multi-resolution analysis for 1D and 2D signals [55], wavelet analysis on arbitrary data (e.g., graphs, 3D domains) is constructed by defining polynomials of a differential operator (e.g., the Laplace-Beltrami operator, the heat diffusion operator) [18, 57], or applying a filter function to the Laplacian spectrum [21], or encoding energy spectral densities in the design of tight frames or graphs [14], or approximating smooth functions with tight wavelet frames [28].

2.3 LT and Meshless Methods for PDEs

Meshless methods compute the solution that satisfies the input equation at a set of collocation points, which have a non-ordered spatial point distribution and no pre-defined connectivity or spatial relationships. The Kansa method [43, 44] lacks a symmetric collocation matrix due to the boundary collocation of mixed boundary conditions. Combining the differential and boundary operators of the input PDE with their self-adjoint operators, the Hermite collocation method [29] introduces a symmetric collocation matrix. To improve the accuracy of the solution in regions close to the boundary of \(\varOmega \), the modified Kansa method [31] applies an additional set of collocation points inside and outside \(\varOmega \), and close to \(\partial \varOmega \). In [65], a novel collocation method with Radial Basis Functions has been applied to the solution of inhomogeneous parabolic equations by rewriting the solution in terms of the exponential operator that is approximated through the Padè-Chebyshev approximation of the 1D Gaussian function. The resulting meshless solver uniformly converges to the ground-truth solution, as the degree of the rational polynomial increases, and is independent of the evaluation of the spectrum of the input operator.

A time-dependent PDE is reduced to an inhomogeneous modified Helmholtz equation through the LT or a time-stepping approach. More precisely, the LT \(({\mathcal {L}}g)(s)=\int _{0}^{+\infty }g(t)\exp (-st)\text {d}t\) removes the time variable and transforms the input PDE in a Helmholtz-type boundary value problem, which is split into the solution to a homogeneous equation and the computation of a particular solution. The particular solution is approximated as a linear combination of RBFs and the method of fundamental solutions is applied to solve the homogeneous PDE. The Stiehfest’s method [87] inverts the LT and provides the solution to the input and time-dependent PDE. However, the numerical inversion of the LT is ill-posed, as small truncation errors can be increased by the inversion process. Indeed, time-stepping methods (e.g., \(\theta \)-method, time stepping with local refinement in space and time [1])) avoid the numerical instability of the inverse LT. In particular, the method of lines [39] applies a spatial discretisation of the input domain \(\varOmega \) as a set of points, evaluates the unknown solution at these points, and transforms the input PDE into a system of ordinary differential equations. Specialisations of these techniques include meshless solvers for transient heat conduction analysis [33], for diffusion problems and image halftoning [96].

For the numerical solution of time-fractional diffusion equations, the Laplace-transformed boundary particle method [30] applies an LT-based technique to obtain the corresponding time-independent inhomogeneous equation, which is then solved through a meshless boundary particle method that does not require any inner nodes. For the solution of time fractional derivative equations, previous work typically combines the finite difference method for temporal discretization with other numerical methods for spatial discretization, such as the Fourier method [20], spectral method [53], finite element method [32, 42, 54, 69], boundary element method [45], and radial basis function meshless collocation methods [9, 23, 36, 49]. These methods can reduce the computational cost for large computational domain problems but encounter an exponential increase of computing costs with advancing time, as a matter of the underlying finite difference schemes for temporal discretization.

In [46], a novel space-time meshless method has been applied to the solution of the backward heat conduction problem through a numerical approximation based on the Trefftz basis functions of the heat equation. Instead of applying collocation methods based on unstructured points, boundary points are collocated in the space-time coordinate system such that the initial and boundary conditions are treated as boundary conditions on the space-time domain boundary. Then, the backward heat conduction problem is converted into an inverse boundary value problem. In [90], the solution of a time-fractional diffusion equation is computed through a local meshless method based on the LTs. Instead of a large global collocation matrix, differentiation matrices are constructed by solving small systems over small local domains and combined with LT for a temporal variable.

3 Spectral LT

Filtering the Laplacian spectrum, we introduce the Laplacian spectral kernels and the corresponding LTs (Sect. 3.1). Then, we define the spectral LT (Sect. 3.2) and study the relations between the spectral LT and FT on arbitrary domains. Considering the eigensystem of the 1D second-order derivatives, the definition of the spectral LT boils down to the 1D case. Furthermore, the spectral LT satisfies the main properties of the 1D and 2D LTs, such as dilation, translation, scaling, derivation, and localisation. Given a function on a 3D domain or its LT transform F, we visualise the corresponding level sets \(\gamma _{\alpha }:=\{{\textbf{p}}:\,F({\textbf{p}})=\alpha \}\) and colour-map, which varies from blue (global minimum) to red (global maximum). Given a function on a graph or its LT transform, we visualise the level sets of its underlying approximation and colour map, which begins with red, passes through yellow, green, cyan, blue, and magenta, and returns to red.

Fig. 1
figure 1

Color map and level sets of the LT of the heat kernel with different scales t. Here, the colour map varies from blue (global minimum) to red (global maximum) (Color figure online)

3.1 LT of Laplacian Spectral Wavelets and Lernels

The LT of the spectral wavelet \(\psi _{t,{\textbf{p}}}\) in Eq. (3) is

$$\begin{aligned} \begin{aligned}&({\mathcal {L}}\psi _{t,{\textbf{p}}})(s) =\sum _{n=0}^{+\infty }{\mathcal {L}}(\varphi (t\lambda _{n}))\phi _{n}({\textbf{p}})\phi _{n}\\&=\sum _{n=0}^{+\infty }\int _{0}^{+\infty }\varphi (t\lambda _{n})\exp (-st)\phi _{n}({\textbf{p}})\phi _{n}dt =\sum _{n=0}^{+\infty }\frac{1}{\lambda _{n}}{\widetilde{\varphi }}\left( \frac{s}{\lambda _{n}}\right) \phi _{n}({\textbf{p}})\phi _{n}. \end{aligned} \end{aligned}$$
(4)

In particular, the LT of \(f_{t}:=\varphi (t\varDelta )f=\sum _{n=0}^{+\infty }\varphi (t\lambda _{n})\langle f,\phi _{n}\rangle _{2}\phi _{n}\) (Sect. 2) is

$$\begin{aligned} \begin{aligned} ({\mathcal {L}}f_{t})({\textbf{p}},s)&=\sum _{n=1}^{+\infty }\frac{1}{\lambda _{n}}{\widetilde{\varphi }}\left( \frac{s}{\lambda _{n}}\right) \langle f,\phi _{n}\rangle _{2}\phi _{n}({\textbf{p}}) =(\varDelta ^{\dag }{\widetilde{\varphi }}(\varDelta ^{\dag })f)({\textbf{p}}), \end{aligned} \end{aligned}$$
(5)

where \(\varDelta ^{\dag }\) is the pseudo-inverse of the Laplace-Beltrami operator and \({\widetilde{\varphi }}\) is the LT of the input filter. Indeed, \({\mathcal {L}}f_{t}\) solves the harmonic equation \(\varDelta g={\widetilde{\varphi }}(\varDelta ^{\dag })f\). The LT of the diffusion wavelet \(K_{t}({\textbf{p}},{\textbf{q}}):=\sum _{n=0}^{+\infty }\exp (-\lambda _{n}t)\phi _{n}({\textbf{p}})\phi _{n}({\textbf{q}})\) (or equivalently the heat kernel) is

$$\begin{aligned} \begin{aligned} ({\mathcal {L}}K_{t}({\textbf{p}},{\textbf{q}}))(s)&=\sum _{n=0}^{+\infty }\left[ \int _{0}^{+\infty }\exp (-(s+\lambda _{n})t)dt\right] \phi _{n}({\textbf{p}})\phi _{n}({\textbf{q}})\\&=\sum _{n=0}^{+\infty }(s+\lambda _{n})^{-1}\phi _{n}({\textbf{p}})\phi _{n}({\textbf{q}}). \end{aligned} \end{aligned}$$

Noting that \(\langle {\mathcal {L}}K_{t}({\textbf{p}},\cdot ),f\rangle _{2}=\sum _{n=0}^{+\infty }\frac{1}{s+\lambda _{n}}\langle f,\phi _{n}\rangle _{2}\phi _{n}({\textbf{p}})=\left[ (\varDelta +s{\mathcal {I}})^{-1}f\right] ({\textbf{p}})\), \(s\ne 0\), and \(\langle {\mathcal {L}}K_{t}({\textbf{p}},\cdot ),f\rangle _{2}\rightarrow (\varDelta ^{\dag }f)({\textbf{p}})\), as \(s\rightarrow 0^{+}\) (Fig. 1), the evaluation of its LT reduces to the solution of the regularised Laplace equation \((\varDelta +s{\mathcal {I}})g=f\). Similarly, the LT of the “modulated” diffusion wavelet \(H_{t}:=tK_{t}\) is equal to \({\mathcal {L}}H_{t}({\textbf{p}},{\textbf{q}})=\sum _{n=0}^{+\infty }(s+\lambda _{n})^{-2}\phi _{n}({\textbf{p}})\phi _{n}({\textbf{q}})\). In particular, we get the following limits: \(\lim _{s\rightarrow +\infty }({\mathcal {L}}H_{t})(s,{\textbf{p}},{\textbf{q}})=0\) and \(\lim _{s\rightarrow +\infty }({\mathcal {L}}H_{t})(s,{\textbf{p}},{\textbf{q}})=0\).

Fig. 2
figure 2

Color map and level sets of (a) the input spectral function \(\varPhi _{\varphi }\) and (b) of its spectral LT \({\widetilde{\varphi }}(\varDelta )\), with different filters \(\varphi \). The spectral LT has been computed with the polynomial approximation described in Sect. 4.2. See also Fig. 3 (Color figure online)

3.2 Spectral LT: Definition and Properties

According to previous work on spectral filtering (Sect. 2.2), we define the spectral operator

$$\begin{aligned} \varPhi :{\mathcal {H}}\rightarrow {\mathcal {L}}^{2}({\mathcal {M}}),\qquad \varphi \mapsto \varPhi _{\varphi }:=\sum _{n=0}^{+\infty }\varphi (\lambda _{n})\phi _{n}, \end{aligned}$$
(6)

where \(\varPhi _{\varphi }\) is the spectral function induced by \(\varphi \) (Figs. 23a). The continuity of the filter function allows us to evaluate \((\varphi (\lambda _{n}))_{n=0}^{+\infty }\) and the \({\mathcal {L}}^{2}({\mathbb {R}})\)-integrability of the filter ensures the well-posedness of the spectral operator. In fact, the spectral operator is linear and continuous, according to the upper bound

$$\begin{aligned} \Vert \varPhi _{\varphi }\Vert _{2}^{2} =\sum _{n=0}^{+\infty }\vert \varphi (\lambda _{n})\vert ^{2} \le \int _{0}^{+\infty }\vert \varphi (s)\vert ^{2}ds =\Vert \varphi \Vert _{2}^{2}. \end{aligned}$$
(7)

The properties of the spectral operator depend only on the behaviour of the filter in the spectral domain and on the Laplacian spectrum; increasing or decreasing the filter decay to zero encodes global or local properties of the input data, respectively. Furthermore (Fig. 4), a generally low number of Laplacian eigenfunctions in the sum in Eq. (6) guarantees a high approximation accuracy of the spectral functions. Generalising the LT of the spectral wavelets in Eqs. (4), (5) and recalling the definitions of the spectral function (6), we define the spectral LT of \(\varPhi _{\varphi }\) and \(\varphi (\varDelta )\) as (Figs. 23b).

$$\begin{aligned} \left\{ \begin{array}{l} \widetilde{\varPhi _{\varphi }}:=\varPhi _{{\widetilde{\varphi }}} =\sum _{n=0}^{+\infty }{\widetilde{\varphi }}(\lambda _{n})\phi _{n},\\ \widetilde{\varphi (\varDelta )}f ={\widetilde{\varphi }}(\varDelta )f:=\sum _{n=0}^{+\infty }{\widetilde{\varphi }}(\lambda _{n})\langle f,\phi _{n}\rangle _{2}\phi _{n} =\langle K_{{\widetilde{\varphi }}},f\rangle _{2}, \end{array} \right. \end{aligned}$$
(8)

with \(K_{{\widetilde{\varphi }}}({\textbf{p}},{\textbf{q}}):=\sum _{n=0}^{+\infty }{\widetilde{\varphi }}(\lambda _{n})\phi _{n}({\textbf{p}})\phi _{n}({\textbf{q}})\). As discussed below, the spectral LT satisfies properties (e.g., time scaling and function rescaling) that are analogous to the 1D and 2D LT.

Fig. 3
figure 3

Color map and level sets of (a) the input spectral function \(\varPhi _{\varphi }\) and (b) of its spectral LT \({\widetilde{\varphi }}(\varDelta )\), induced by different filters \(\varphi \). The spectral LT has been computed with the rational polynomial approximation described in Sect. 4.3

Linearity, rescaling, derivation, and integration The spectral LT is linear, i.e., \(\widetilde{\varPhi _{\alpha \varphi _{1}+\beta \varphi _{2}}}=\varPhi _{\alpha \widetilde{\varphi _{1}}+\beta \widetilde{\varphi _{2}}}\). According to the definition of the LT, we get that

$$\begin{aligned} \left\{ \begin{array}{ll} \widetilde{\varPhi _{\varphi (at)}} =\varPhi _{{\widetilde{\varphi }}(at)}=\varPhi _{\frac{1}{a}{\widetilde{\varphi }}{(\frac{t}{a}})}=\frac{1}{a}\varPhi _{{\widetilde{\varphi }}{(\frac{t}{a}})} &{}\text {rescaling};\\ \frac{d}{ds}\widetilde{\varPhi _{\varphi }} =\varPhi _{\frac{d}{ds}{\widetilde{\varphi }}} =\varPhi _{t{\widetilde{\varphi }}(t)}-\varPhi _{\varphi (0)} &{}\text {derivation};\\ \int _{s}^{+\infty }\widetilde{\varPhi _{\varphi }}dt =\varPhi _{\int _{s}^{+\infty }{\widetilde{\varphi }}(t)dt} =\varPhi _{\frac{{\widetilde{\varphi }}(s)}{s}} &{}\text {integration}. \end{array} \right. \end{aligned}$$

Convolution Given two functions \(f,g:\varOmega \rightarrow {\mathbb {R}}\), their convolution [10, 51] is defined as \(f\star g:=\sum _{n=0}^{+\infty }\langle f,\phi _{n}\rangle _{2}\langle g,\phi _{n}\rangle _{2}\phi _{n}\). Then, the convolution of two spectral functions \(\varPhi _{\varphi _{1}}\)\(\varPhi _{\varphi _{2}}\) induced by the filters \(\varphi _{1}\)\(\varphi _{2}\) is equal to the spectral function induced by the pointwise product \(\varphi _{1}\varphi _{2}\), i.e., \(\varPhi _{\varphi _{1}}\star \varPhi _{\varphi _{2}}=\sum _{n=0}^{+\infty }\varphi _{1}(\lambda _{n})\varphi _{2}(\lambda _{n})\phi _{n}=\varPhi _{\varphi _{1}\varphi _{2}}\). Recalling that \(\widetilde{\varphi _{1}\varphi _{2}}=\widetilde{\varphi _{1}}\star \widetilde{\varphi _{2}}\), we get that (Figs. 56)

$$\begin{aligned} \widetilde{\varPhi _{\varphi _{1}}}\star \varPhi _{\varphi _{2}}=\widetilde{\varPhi _{\varphi _{1}\varphi _{2}}}=\varPhi _{\widetilde{\varphi _{1}\varphi _{2}}}=\varPhi _{\widetilde{\varphi _{1}}\star \widetilde{\varphi _{2}}},\quad \widetilde{\varPhi _{\varphi _{1}}\star \varphi _{2}}=\varPhi _{\widetilde{\varphi _{1}\star \varphi _{2}}}=\varPhi _{\widetilde{\varphi _{1}}\widetilde{\varphi _{2}}}. \end{aligned}$$

From the relation \({\mathcal {L}}^{-1}(\widetilde{\varPhi _{\varphi _{1}}}\star \widetilde{\varPhi _{\varphi _{2}}}) ={\mathcal {L}}^{-1}(\varPhi _{\widetilde{\varphi _{1}}}\star \varPhi _{\widetilde{\varphi _{2}}}) ={\mathcal {L}}^{-1}(\varPhi _{\widetilde{\varphi _{1}}\widetilde{\varphi _{2}}}) =\varPhi _{\varphi _{1}\star \varphi _{2}}\), we get that \(\widetilde{\varPhi _{\varphi _{1}}}\star \widetilde{\varPhi _{\varphi _{2}}}={\widetilde{\varPhi }}_{\varphi _{1}\star \varphi _{2}}\).

Integral kernel According to the relation

$$\begin{aligned} \begin{aligned}&({\widetilde{\varphi }}(\varDelta )f)({\textbf{p}}) =\sum _{n=0}^{+\infty }{\widetilde{\varphi }}(\lambda _{n})\langle f,\phi _{n}\rangle _{2}\phi _{n}({\textbf{p}})\\&=\sum _{n=0}^{+\infty }\left[ \int _{0}^{+\infty }\varphi (t)\exp (-\lambda _{n}t)dt\right] \langle f,\phi _{n}\rangle _{2}\phi _{n}({\textbf{p}})\\&=\int _{0}^{+\infty }\varphi (t)\left[ \exp (-t\varDelta )f\right] ({\textbf{p}})dt =\int _{0}^{+\infty }\varphi (t)\langle K_{t}({\textbf{p}},\cdot ),f\rangle _{2}dt, \end{aligned} \end{aligned}$$

the LT of \(\varphi (\varDelta )f\) is equal to the integral between the filter and the solution \(F(t,({\textbf{p}}):=\langle K_{t}({\textbf{p}},\cdot ),f\rangle _{2}\) to the homogeneous heat equation \((\partial _{t}+\varDelta )F=0\), whose initial condition at \(t:=0\) is f (i.e., \(F(0,{\textbf{p}}):=f)\). Through the spectrum-free approach [64], the function \(F(t,{\textbf{p}})\) is computed without evaluating the Laplacian spectrum. Finally, the spectral LT of \(\varPhi _{\varphi }\) is also represented as an integral kernel as

$$\begin{aligned} \begin{aligned} \varPhi _{{\widetilde{\varphi }}}&=\sum _{n=0}^{+\infty }{\widetilde{\varphi }}(\lambda _{n})\phi _{n} =\int _{0}^{+\infty }\left( \sum _{n=0}^{+\infty }\exp (-\lambda _{n}t)\phi _{n}\right) \varphi (t)dt\\&=\int _{0}^{+\infty }\varPhi _{\exp (-t\cdot )}\varphi (t)dt =\langle \varPhi _{\exp (-t\cdot )},\varphi \rangle _{2}. \end{aligned} \end{aligned}$$

Relations between the spectral FT and LT Recalling Eq. (1), we specialise the relations between the spectral Fourier and Laplace transforms to the spectral case as \(\varPhi _{{\widetilde{\varphi }}} =\varPhi _{{\widehat{\varphi }}(i\cdot )}=\sum _{n=0}^{+\infty }{\widehat{\varphi }}(i\lambda _{n})\phi _{n}\), or equivalently we apply the relation \({\widetilde{\varphi }}(\varDelta )f={\widehat{\varphi }}(i\varDelta )f=\sum _{n=0}^{+\infty }{\widehat{\varphi }}(i\lambda _{n})\langle f,\phi _{n}\rangle _{2}\phi _{n}=\langle K_{{\widehat{\varphi }}(i\cdot )},f\rangle _{2}\).

Fig. 4
figure 4

(y-axis) \({\mathcal {L}}_{\infty }\) approximation error between the spectral function \(\varPhi _{\varphi }\) and its approximation with (x-axis) an increasing number of Laplacian eigenfunctions

Examples of spectral LTs

  • For the Heasvide function \(\varphi (t-a):=0\) if \(t<a\), \(\varphi (t-a):=1\) if \(t>a\), the spectral LT is \({\widetilde{\varPhi }}_{\varphi }=\sum _{n=0}^{+\infty }\frac{\exp (-a\lambda _{n})}{\lambda _{n}}\phi _{n}\);

  • for the function \(\varphi (t):=t\), \(\widetilde{\varPhi _{\varphi }}=\sum _{n=0}^{+\infty }\frac{1}{\lambda _{n}^{2}}\phi _{n}\);

  • for the function \(\varphi ({\textbf{p}},t):=\rho (t)\phi ({\textbf{p}})\), \(\widetilde{\varPhi _{\varphi }}(s,{\textbf{p}})={\widetilde{\rho }}(s)\phi ({\textbf{p}})\).

4 Polynomial and Rational Approximations of the Spectral LT

Approximating the input filter \(\varphi \) with a polynomial, or a rational polynomial, \(\rho ^{(r)}\), we show that a low approximation error between \(\varphi \) and \(\rho ^{(r)}\) corresponds to a low approximation error between the corresponding spectral LTs \(\varPhi _{{\widetilde{\varphi }}}\)\(\varPhi _{\widetilde{\rho ^{(r)}}}\) (Sect. 4.1) and the corresponding operators \({\widetilde{\varphi }}(\varDelta )\) and \(\widetilde{\rho ^{(r)}}(\varDelta )\). In the first approach, we approximate the input filter with a polynomial and show that the spectral LT can be iteratively computed (Sect. 4.2). The second approach approximates the 1D LT \({\widetilde{\varphi }}\) with a rational polynomial and maps this approximation on the corresponding spectral LTs (Sect. 4.3). Both methods allow us to compute the spectral LT without evaluating the Laplacian spectrum, which is generally computationally expensive and numerically unstable in the case of large data.

4.1 Approximation of the Spectral LT

First of all, we recall that the 1D LT is continuous. To this end, we notice that

$$\begin{aligned} \begin{aligned}&\vert {\widetilde{f}}(s)\vert ^{2} =\left| \int _{0}^{+\infty }f(t)\exp (-st/2)t^{1/4}\exp (-st/2)t^{-1/4}\right| ^{2}dt\quad (\text {Schwart ineq.})\\&\le \left| \int _{0}^{+\infty }\vert f(t)\vert ^{2}\exp (-st)t^{1/2}dt\right| \,\underbrace{\left| \int _{0}^{+\infty }\exp (-st)t^{-1/2}dt\right| }_{=\pi ^{1/2}s^{-1/2}}, \end{aligned} \end{aligned}$$

and the corresponding \({\mathcal {L}}^{2}([0,+\infty ))\) is

$$\begin{aligned} \begin{aligned} \Vert {\widetilde{f}}\Vert _{2}^{2}&\le \pi ^{1/2}\int _{0}^{+\infty }\int _{0}^{+\infty }\vert f(t)\vert ^{2}\exp (-st)t^{1/2}s^{-1/2}ds\,dt\\&=\pi ^{1/2}\int _{0}^{+\infty }\vert f(t)\vert ^{2}\left[ \int _{0}^{+\infty }\exp (-st)t^{1/2}s^{-1/2}ds\right] dt =\pi \Vert f\Vert _{2}^{2}; \end{aligned} \end{aligned}$$
(9)

indeed, \(\Vert {\mathcal {L}}f\Vert _{2}=\Vert {\widetilde{f}}\Vert _{1}\le \sqrt{\pi }\Vert f\Vert _{2}\). Let us assume that \(\rho :{\mathbb {R}}\rightarrow {\mathbb {R}}\) is a function that approximates the filter \(\varphi \). Applying the upper bound (9) and the linearity of the LT, we get that

$$\begin{aligned} \Vert \varPhi _{{\widetilde{\varphi }}}-\varPhi _{{\widetilde{\rho }}}\Vert _{2} =\Vert \varPhi _{\widetilde{\varphi -\rho }}\Vert _{2} =_{\text {Eq. 7}}\Vert \widetilde{\varphi -\rho }\Vert _{2} \le \sqrt{\pi }\Vert \varphi -\rho \Vert _{2}, \end{aligned}$$

i.e., the approximation of \(\varPhi _{{\widetilde{\varphi }}}\) reduces to the computation of a function \(\rho \) that well approximates the filter \(\varphi \) in the \({\mathcal {L}}^{2}({\mathbb {R}})\)-norm. Approximating \(\varphi \) with a polynomial or a rational polynomial \(\rho ^{(r)}\), the sequence \((\widetilde{\rho ^{(r)}}(\varDelta )f)_{r=0}^{+\infty }\), \(\widetilde{\rho ^{(r)}}(\varDelta )f:=\sum _{n=0}^{+\infty }\widetilde{\rho ^{(r)}}(\lambda _{n})\langle f,\phi _{n}\rangle _{2}\phi _{n}\), induced by the rational polynomial approximation \(\rho ^{(r)}\) of \(\varphi \), converges to \({\widetilde{\varphi }}(\varDelta )f\); in fact,

$$\begin{aligned} \begin{aligned} \left\| \widetilde{\rho ^{(r)}}(\varDelta )f-{\widetilde{\varphi }}(\varDelta )f\right\| _{2}^{2}&=\sum _{n=0}^{+\infty }\vert \widetilde{\rho ^{(r)}}(\lambda _{n})-{\widetilde{\varphi }}(\lambda _{n})\vert ^{2}\vert \langle f,\phi _{n}\rangle _{2}\vert ^{2}\\&\le \Vert \widetilde{\rho ^{(r)}-\varphi }\Vert _{2}^{2}\sum _{n=0}^{+\infty }\vert \langle f,\phi _{n}\rangle _{2}\vert ^{2} \le \sqrt{\pi }\Vert \rho ^{(r)}-\varphi \Vert _{2}^{2}\Vert f\Vert _{2}^{2}. \end{aligned} \end{aligned}$$

In particular, the error between the input spectral LT \({\widetilde{\varphi }}(\varDelta )\) and its approximation \(\widetilde{\rho ^{(r)}}(\varDelta )\) is controlled by the approximation error \(\Vert \rho ^{(r)}-\varphi \Vert _{2}\) (Fig. 7). The representation of \(\rho \) must guarantee that the evaluation of \(\varPhi _{{\widetilde{\rho }}}\) is performed efficiently and is independent of the evaluation of the Laplacian spectrum, which is computationally infeasible for large data and numerically unstable. To this end, we propose a fast polynomial approximation of the input filters based on a discrete scalar product induced by Chebyshev nodes (Sect. 4.2). For the evaluation of \({\widetilde{\rho }}(\varDelta )f\), we apply a rational approximation (Sect. 4.3), which is efficiently evaluated through recursive relations, in analogy to Chebyshev polynomials.

Fig. 5
figure 5

Color map and level sets of the spectral LTs \({\mathcal {F}}\varPhi _{\varphi _{1}}\)\({\mathcal {F}}\varPhi _{\varphi _{2}}\) of the functions \(\varPhi _{\varphi _{1}}\)\(\varPhi _{\varphi _{2}}\) induced by the filtersn \(\varphi _{1}\)\(\varphi _{1}\), and corresponding convolution

4.2 Polynomial Approximation of the Spectral LT

For the computation of the spectral LT, we introduce a polynomial approximation of the input filter with canonical or Chebyshev polynomials. This last choice defines a recursive and fast computation of a polynomial approximation of the input filter and the corresponding spectral LT (Fig. 2).

Fig. 6
figure 6

Color map and level sets of the spectral function \(\varPhi _{\varphi }\), its LT \({\mathcal {F}}\varPhi _{\varphi }\) and inverse LT \({\mathcal {F}}^{-1}\varPhi _{\varphi }\)

Canonical polynomials for the computation of the spectral LT Recalling the power series representation \(\varphi (t)=\sum _{n=0}^{+\infty }\alpha _{n}t^{n}\), introduced in Sect. 3.1, and that the LT of the function \(\psi (t):=t^{n}\) is \({\widetilde{\psi }}(s)=n!/s^{n+1}\), we get that the corresponding LT is \({\widetilde{\varphi }}(t)=\sum _{n=0}^{+\infty }\alpha _{n}\frac{n!}{s^{n+1}}\) (Fig. 7), i.e.,

$$\begin{aligned} \varPhi _{{\widetilde{\varphi }}}=\sum _{m,n=0}^{+\infty }\alpha _{m}\frac{m!}{\lambda _{n}^{m+1}}\phi _{n},\qquad {\widetilde{\varphi }}(\varDelta )f=\sum _{m,n=0}^{+\infty }\alpha _{m}\frac{m!}{\lambda _{n}^{m+1}}\langle f,\phi _{n}\rangle _{2}\phi _{n}. \end{aligned}$$
(10)

Chebyshev polynomials for the computation of the spectral LT Since the approximation of the input filter in terms of the canonical basis is generally expensive as the polynomial degree increases, we represent the filter in terms of the Chebyshev polynomials and apply a recursive formulation of the computation. The Chebyshev polynomials of the first kind \((T_{n})_{n=0}^{+\infty }\) are defined by the identity \(\cos (n\theta )=T_{n}(\cos \theta )\), e.g., \(T_{0}(t)=1\), \(T_{1}(t)=t\), \(T_{2}(t)=2t^{2}-1\)\(\ldots \) Equivalently, these polynomials are defined through the recursive relation

$$\begin{aligned} T_{0}(t)=1,\quad T_{1}(t)=t,\quad T_{n+1}(t)=2tT_{n}(t)-T_{n-1}(t). \end{aligned}$$
(11)

The Chebyshev polynomials of the first kind are orthogonal with respect to the weighted \({\mathcal {L}}^{2}({\mathbb {R}})\) scalar product induced by \((1-t^{2})^{-1/2}\) on the interval \([-1,1]\).

Fig. 7
figure 7

(y-axis) \({\mathcal {L}}_{\infty }\) error between the spectral FT \(\varPhi _{\varphi }\) and its approximation \(\varPhi _{\rho ^{(r)}}\), where \(\rho ^{(r)}\) is a polynomials of degree r (x-axis)

Indeed, a filter \(\varphi :[-1,1]\rightarrow {\mathbb {R}}\) is represented in terms of the Chebyshev polynomials as \(\varphi (t)=\sum _{n=0}^{+\infty }a_{n}T_{n}(t)\), whose coefficients are \(a_{0}=\pi ^{-1}\langle \varphi ,1\rangle _{w}\), \(a_{n}=(2\pi )^{-1}\langle \varphi ,T_{n}\rangle _{w}\), \(n\ne 0\). The computation of the coefficients of the Chebyshev representation is generally time-consuming, as it requires evaluating several integrals for an arbitrary filter. To overcome this limitation and accurately compute the Chebyshev coefficients in linear time, we approximate the weighted scalar product through the Chebyshev nodes. Indicating with \(x_{k}:=\cos \left( \pi \frac{2k+1}{2N}\right) \), \(k=0,\ldots ,N-1\), the N Chebyshev nodes, the Chebyshev polynomials are orthogonal with respect to the discrete scalar product

$$\begin{aligned} \langle T_{n},T_{m}\rangle _{d}:=\sum _{k=0}^{N-1}T_{n}(x_{k})T_{m}(x_{k}) =\left\{ \begin{array}{ll} 0 &{}n\ne m;\\ N &{}n=m=0;\\ N/2 &{}n=m\ne 0. \end{array} \right. \end{aligned}$$

According to the relations

$$\begin{aligned} \langle f,T_{i}\rangle _{d} \approx \sum _{k=0}^{N-1}a_{k}\langle T_{k},T_{i}\rangle _{d} =\left\{ \begin{array}{ll} 0 &{}k\ne i;\\ Na_{0} &{}k=i=0;\\ Na_{i}/2 &{}k\ne i\ne 0; \end{array} \right. \end{aligned}$$

the coefficients are evaluated in linear time according to \(a_{0}=\frac{1}{N}\sum _{k=0}^{N-1}f(x_{k})\) and \(a_{i}=\frac{2}{N}\sum _{k=0}^{N-1}f(x_{j})T_{i}(x_{j})\). Once the representation \(\varphi (t)=\sum _{n=0}^{+\infty }a_{n}T_{n}(t)\) has been computed, we apply the relation \({\widetilde{\varphi }}(\varDelta )=\sum _{n=0}^{+\infty }a_{n}\widetilde{T_{n}}(\varDelta )\), where \(\widetilde{T_{n}}(\varDelta )\) is evaluated as done for the canonical basis in Eq. (10).

Fig. 8
figure 8

a Normalised approximation error (y-axis) of the spectral LT induced by different filters with (line) polynomials and (dotted line) rational polynomials of increasing degree (x-axis). b Conditioning number (y-axis) of the class of polynomial and rational polynomial basis with a different degree (x-axis)

4.3 Rational Approximation of the Spectral LT

For the approximation and evaluation of the rational polynomial \(\rho (\cdot )\) that approximates \({\widetilde{\varphi }}\), we consider (i) the canonical polynomial basis and the Chebyshev polynomial basis and (ii) the Chebyshev rational polynomials. Among these options, the recursive representation of the Chebyshev rational polynomials of the first kind allows us to reduce the computation cost for the evaluation of the approximation and resembles the polynomial case (Fig. 3).

Fig. 9
figure 9

(y-axis) Computation time (milliseconds) for the continuous FT of a signal or surface with 100K vertices and with a different polynomial degree (x-axis)

Rational approximation with canonical polynomials Instead of approximating the input filter \(\varphi \) before applying the LT, we approximate the LT \({\widetilde{\varphi }}\) with a rational polynomial of degree \(N:=n+m\)

$$\begin{aligned} {\widetilde{\varphi }}(s) \approx \rho (s) =\frac{P_{n}(s)}{Q_{m}(s)} =\frac{\sum _{i=1}^{n}p_{i}s^{i}}{1+\sum _{i=1}^{m}q_{i}s^{i}}, \end{aligned}$$
(12)

where \(P_{n}\)\(Q_{m}\) are polynomials of degree n and m respectively. Through the inverse 1D LT, we get the approximation of both the spectral LT and the rational approximation of the input filter. The Padè approximant is uniquely defined if the constant term at the denominator has been set equal to 1 (c.f., Eq. 12); otherwise, the approximant is defined up to a multiplication by a constant. For the computation of the coefficients of the polynomials \(P_{n}\)\(Q_{m}\), we can apply Wylm’s epsilon algorithm or the extended Euclidean algorithm [8], and the sequence transformation [15]. Through the canonical basis and the representation (12), we evaluate the right-side and left-side terms of

$$\begin{aligned} \sum _{k=0}^{m}q_{k}\varDelta ^{k}g=\sum _{k=0}^{n}p_{k}\varDelta ^{k}f. \end{aligned}$$
(13)

If Q has distinct roots \((\alpha _{k})_{k=0}^{n}\), \(Q(s):=\prod _{n=1}^{k}(s-\alpha _{k})\), then

$$\begin{aligned} \left\{ \begin{array}{l} {\widetilde{\varphi }}(s) \approx \rho (s) =\frac{R(s)}{Q(s)} =\sum _{k=0}^{n}\frac{P(\alpha _{k})}{(s-\alpha _{k})}Q^{\prime }(\alpha _{k}),\\ \varphi (t)\approx ({\mathcal {L}}^{-1}\rho )(t)=\sum _{k=1}^{n}\frac{P(\alpha _{k})}{Q^{\prime }(\alpha _{k})}\exp (\alpha _{k}t). \end{array} \right. \end{aligned}$$

Rational approximation with Chebyshev polynomials Instead of expanding the numerator and denominator in terms of the monomial basis, we use the Chebyshev polynomials \(T_{k}\), through the representation

$$\begin{aligned} \rho :=\frac{\sum _{k=0}^{n}p_{k}T_{k}}{\sum _{k=0}^{m}q_{k}T_{k}},\qquad N=n+m,\quad q_{0}=1. \end{aligned}$$
(14)

In the case of the Chebyshev polynomials (14), we evaluate the right-side and left-side terms of

$$\begin{aligned} \sum _{k=0}^{m}q_{k}T_{k}(\varDelta )g=\sum _{k=0}^{n}p_{k}T_{k}(\varDelta )f, \end{aligned}$$
(15)

through the recursive relations (11).

Fig. 10
figure 10

Color map and level sets of the input spectral function \(\varPhi _{\varphi }\), \(\varphi (s):=s^{2}\exp (-s)\), and of its spectral LT \({\widetilde{\varphi }}(\varDelta )\), with different samplings of the input surface

Rational approximation with rational Chebyshev polynomials The Chebyshev rational polynomials are defined as

$$\begin{aligned} R_{n}(s):=T_{n}\left( \frac{s-1}{s+1}\right) =2\frac{s-1}{s+1}R_{n-1}(s)-R_{n-2}(s) \end{aligned}$$
(16)

on the interval \([0,+\infty )\). These rational polynomials are orthogonal with respect to the weighted scalar product induced by \(w(s):=s^{-1/2}(1+s)^{-1}\), according to the relation

$$\begin{aligned} \langle R_{n},R_{m}\rangle _{w} =\int _{0}^{+\infty }\frac{R_{n}(s)R_{m}(s)}{s^{1/2}(s+1)}ds =\left\{ \begin{array}{ll} 0 &{}n\ne m;\\ \pi &{}n=m=0;\\ \pi /2 &{}n=m=0. \end{array} \right. \end{aligned}$$

For an arbitrary function \({\widetilde{\varphi }}\in {\mathcal {L}}^{2}({\mathbb {R}})\), the orthogonality of the Chebyshev rational polynomials allows us to apply the relation \({\widetilde{\varphi }}(s)=\sum _{n=0}^{+\infty } F_{n}R_{n}(s)\), \(F_{n}:=\langle {\widetilde{\varphi }}, R_{n}\rangle _{w}\). Through the recursive relation (16), the spectral LT of \({\widetilde{\varphi }}(\varDelta )f\) is efficiently evaluated as

$$\begin{aligned} \begin{aligned} f_{n}:=R_{n}(\varDelta )f =2(\varDelta +\text {id})^{-1}(\varDelta -\text {id})f_{n-1}-f_{n-2} =2g_{n-1}-f_{n-2}, \end{aligned} \end{aligned}$$
(17)

where \(g_{n-1}\) is the solution to \((\varDelta +\text {id})g_{n-1}=(\varDelta -\text {id})f_{n-1}\) and \(g_{n-1}\) is uniquely defined, as the operator \((\varDelta +\text {id})\) is positive-definite. Computing the polynomial and the rational polynomial approximations, a generally low number of rational polynomials (Fig. 8) allows us to achieve a high approximation accuracy (e.g.,  \(10^{-15}\), \(n\le 15\)) and high numerical accuracy and robustness (y-axis), measured as the conditioning number of the coefficient matrix. In all the paper examples, the spectral LT is computed with a rational polynomial of degree \(r:=7\) (if not differently stated).

Fig. 11
figure 11

Robustness of the spectral LT to increasing noise. The colour map and level sets of the input function \(\varPhi _{\varphi }\) and of its LT \({\widetilde{\varphi }}(\varDelta )\) are computed on the noise surface but visualised on the smooth surface to improve the analysis of the results. To generate a noisy surface. we perturb the coordinates of the mesh vertices with a Gaussian noise, whose magnitude is set equal to the \(10\%\) of the bounding box of the input surface. The maximum variation between the smooth (a) and noisy spectral LTs (bd) remains lower than \(5\%\)

5 Discrete Spectral LT and Experimental Results

Firstly, we introduce the discretisation of the Laplace-Beltrami operator and spectral operators; then, we discuss the discrete LT and its main properties (Sect. 5.1). For our tests, we consider the solution of the diffusion equation with the filtered Laplace operator (Sect. 5.2) and the Laplace-Beltrami operator (Sect. 5.3) through the LT.

5.1 Spectral Laplacian Operator: Discretisation and Properties

Graph Laplacian For the discretisation of the LT, let us consider a domain \({\mathcal {M}}\) and a signal \(f:{\mathcal {M}}\rightarrow {\mathbb {R}}\) represented as the vector \({\textbf{f}}:=(f({\textbf{p}}_{i}))_{i=1}^{n}\) of f-values at the nodes of the input graph or the vertices of a triangle mesh \({\mathcal {M}}\). For unweighted graphs, the domain of the continuous FT and the continuous convolution is taken to be the graph connectivity (i.e., the binary adjacency matrix) and for a weighted graph, we consider the continuous FT induced by the weighted Laplacian matrix. On meshes, we select the linear FEM Laplacian matrix [78] and its spectrum for the evaluation of the continuous FT. The graph Laplacian [17, 89] is defined as \(\tilde{{\textbf{L}}}:={\textbf{D}}^{-1}{\textbf{L}}\), where \({\textbf{L}}:={\textbf{W}}-{\textbf{D}}\), and the normalised graph Laplacian is \(\tilde{{\textbf{L}}}:={\textbf{D}}^{-1/2}{\textbf{L}}{\textbf{D}}^{-1/2}\). Here, \({\textbf{W}}\) is the weight matrix whose entry (ij) is the weight associated with the corresponding edge, and \({\textbf{D}}\) is the diagonal matrix whose entries are the sum of the rows of \({\textbf{L}}\). The Laplace-Beltrami operator on a triangle mesh with n vertices is discretised as the \(n\times n\) matrix \(\widetilde{{\textbf{L}}}:={\textbf{D}}^{-1}{\textbf{L}}\), where the mass matrix \({\textbf{D}}\) encodes the variation of the areas of the Voronoi-regions [26] or triangles [78], and the stiffness matrix \({\textbf{L}}\) encodes the cotangent of the triangle angles [67]. In all these cases, the spectral decomposition is \({\textbf{L}}{\textbf{X}}={\textbf{D}}{\textbf{X}}\varLambda \), \({\textbf{X}}^{\top }{\textbf{D}}{\textbf{X}}={\textbf{I}}\), where \({\textbf{X}}:=[{\textbf{x}}_{1},\ldots ,{\textbf{x}}_{n}]\) is the eigenvectors’ matrix and \(\varLambda \) is the diagonal matrix of the eigenvalues \((\lambda _{i})_{i=1}^{n}\) [35, 52, 84].

Discretization According to Eq. (8), the discretisation of the spectral LT is \({\widetilde{\varphi }}(\widetilde{{\textbf{L}}}){\textbf{f}}=\sum _{i=1}^{n}{\widetilde{\varphi }}(\lambda _{i})\langle {\textbf{f}},{\textbf{x}}_{i}\rangle _{{\textbf{D}}}{\textbf{x}}_{i} =\langle {\textbf{K}}_{{\widetilde{\varphi }}},{\textbf{f}}\rangle _{{\textbf{D}}}\), with \({\textbf{K}}_{{\widetilde{\varphi }}}:=\sum _{i=1}^{n}{\widetilde{\varphi }}(\lambda _{i}){\textbf{x}}_{i}{\textbf{x}}_{i}^{\top }\). The LT of \(\varphi \) is computed analytically and then approximated with a rational polynomial to evaluate \({\widetilde{\varphi }}(\widetilde{{\textbf{L}}})\) without computing the Laplacian spectrum, which is computationally infeasible for large data sets. For the discretisation and computation of the spectral LT, we replace the Laplace-Beltrami operator with the Laplacian matrix; in this way, the equations (13), (15), (17) reduce to sparse equations that are efficiently solved with iterative sparse solvers. The computational cost for the continuous FT and convolution with an optimal number k of Laplacian eigenpairs is \({\mathcal {O}}(kn\log n)-{\mathcal {O}}(kn^{2})\), according to the sparsity of the Laplacian matrix. In Fig. 9, we report the computation time for the continuous FT of a signal or surface with a different sampling density and with a different optimal number of Laplacian eigenpairs (i.e., a different target approximation accuracy). The evaluation of the LT is generally robust to domain sampling and connectivity (Fig. 10), and geometric noise (Fig. 11). Selecting different 1D filters and the corresponding LTs, these functions are easily “extended” to 3D domains through the Laplacian spectrum (Fig. 2).

Fig. 12
figure 12

Colormap and level sets of the diffusion process from a source point \(g:=\delta _{\mathbf {}p}\), \(f:=0\), \(\mu :=1\)), computed with the spectral LT approximated with (i) a rational polynomial of degree \(r:=7\) (P.C. approximation) and (ii) 100 eigenfunctions. This last approach is affected by undulations of the solution as we move far from the source point, especially at small scales (Color figure online)

The computational cost for the approximation of the spectral LT (c.f., Eq. 8) depends on the sparsity degree of the Laplacian matrix [35] and takes from \({\mathcal {O}}(kn\log n)\) to \({\mathcal {O}}(kn^{2})\) time, where k is the number of selected eigenpairs. Choosing a polynomial or rational approximation of the input filter of degree (rl), the evaluation of the spectral LT is reduced to r linear systems whose coefficient matrix is \({\textbf{L}}\). Through iterative solvers, the computational cost is \({\mathcal {O}}(r\tau (n))\), where \(\tau (n)\) is the cost for the solution of a sparse linear system, which varies from \({\mathcal {O}}(n)\) to \({\mathcal {O}}(n^{2})\), according to the sparsity of the coefficient matrix, and it is \({\mathcal {O}}(n\log n)\) in the average case. Indeed, the polynomial and rational polynomial approximations have the same order of computational complexity.

Fig. 13
figure 13

Concerning the tests in Fig. 12 (1st, 2nd rows), approximation error \(\epsilon _{\infty }\) (y-axis) for the solution to the heat equation on 5 samplings of the input domain (Fig. 12, first row) with a different separation distance (x-axis). As a solver, we apply the linear FEM [62] (blue line) and meshless [90] (green line) P.-C. approximation (best approximation accuracy), and the LT-based solver (red line). The separation distance of the point set \({\mathcal {P}}:=\{{\textbf{p}}_{i}\}_{i=1}^{n}\) is defined as the radius \(S({\mathcal {P}}):=\frac{1}{2}\min _{1\le i\le j\le n}\{\Vert {\textbf{p}}_{i}-{\textbf{p}}_{j}\Vert _{2}\}\) of the smallest ball anywhere without any point in its interior, but with at least two points of \({\mathcal {P}}\) on its boundary (Color figure online)

5.2 LT and Diffusion Equation with Filtered Laplace Operators

For the experimental part, let us consider the homogeneous diffusion equation [2, 3, 91] \(\frac{1}{\kappa }\partial _{t}u({\textbf{p}},t)-\varphi (\varDelta )u({\textbf{p}},t)=0\), \({\textbf{p}}\in \varOmega \), and \(t\in {\mathbb {R}}^{+}\), with \(\varphi (\varDelta )\) filtered Laplacian operator, \(\kappa ({\textbf{p}})\) conductivity term and initial condition \(u({\textbf{p}},0):=u_{0}({\textbf{p}})\). First of all, we notice that

$$\begin{aligned} \begin{aligned} u_{0}({\textbf{p}})&=u({\textbf{p}},0) =\int _{0}^{+\infty }\partial _{t}[u({\textbf{p}},t)\exp (-st)]dt\\&=\int _{0}^{+\infty }\partial _{t}u({\textbf{p}},t)\exp (-st)dt -s\int _{0}^{+\infty }u({\textbf{p}},t)\exp (-st)dt. \end{aligned} \end{aligned}$$
(18)

Assuming that \(u_{0}\) belongs to the null-space of \(\varphi (\varDelta )\), i.e., \(\varphi (\varDelta )u_{0}=0\), (e.g., u is harmonic for \(\varphi (s):=s\)), we introduce the new function \(v({\textbf{p}},t):=u({\textbf{p}},t)-u_{0}({\textbf{p}})\) and rewrite Eq. (18) as

$$\begin{aligned} \begin{aligned} \frac{1}{\kappa }\partial _{t}v({\textbf{p}},t)&=\frac{1}{\kappa }\partial _{t}u({\textbf{p}},t) =\varphi (\varDelta )u({\textbf{p}},t)\\&=\varphi (\varDelta )(u({\textbf{p}},t)-u_{0}({\textbf{p}})) =\varphi (\varDelta )v({\textbf{p}},t). \end{aligned} \end{aligned}$$
(19)

Applying the LT to both sides of the new diffusion equation in Eq. (19) and noting that \(v({\textbf{p}},0)=0\), we get the homogeneous filtered Laplace equation \(\left[ \varphi (\varDelta )-\frac{s}{\kappa ({\textbf{p}})}\text {id}\right] {\widetilde{v}}({\textbf{p}},s)=0\), \(({\textbf{p}},s)=v({\textbf{p}},s)+u_{0}({\textbf{p}})\), where \({\widetilde{w}}\) is the LT of w. If \(u_{0}\) does not belong to the kernel of \(\varphi (\varDelta )\), then we consider the non-homogeneous filtered Laplace equation

$$\begin{aligned} \left( \varphi (\varDelta )-\frac{s}{\kappa ({\textbf{p}})}\right) u({\textbf{p}},t) =\frac{u_{0}({\textbf{p}})}{\kappa ({\textbf{p}})}. \end{aligned}$$
(20)

Representing the solution \(u(\cdot ,t)=\sum _{n=0}^{+\infty }\alpha _{n}(t)\phi _{n}\) in terms of the Laplacian eigenfunctions and imposing that it satisfies Eq. (20), we get the relation \(\sum _{n=0}^{+\infty }\alpha _{n}(s) \left( \varphi (\lambda _{n})-\frac{s}{\kappa ({\textbf{p}})}\right) \phi _{n}=\frac{u_{0}({\textbf{p}})}{\kappa ({\textbf{p}})}\). Rewriting the initial condition in spectral form as \(u_{0}({\textbf{p}})=\sum _{n=0}^{+\infty }\alpha _{n}(0)\phi _{n}\), the previous relation is equivalent to \(\sum _{n=0}^{+\infty }\left[ \alpha _{n}(s)\left( \varphi (\lambda _{n})-\frac{s}{\kappa ({\textbf{p}})}\right) -\frac{\alpha _{n}(0)}{\kappa ({\textbf{p}})}\right] \phi _{n}=0\), i.e., \(\alpha _{n}(s)=\frac{\alpha _{n}(0)}{\varphi (\lambda _{n})\kappa ({\textbf{p}})-s}\).

Fig. 14
figure 14

Pointwise approximation error \(\epsilon _{\infty }\) (y-axis) for the solution to the homogeneous and inhomogeneous heat equation on a domain with 5K samples (x-axis). As a solver, we apply the spectral LT, the \(\theta \)-method, and the linear FEM solver

5.3 Spectral LT Solver and Heat Equation

In the following experimental tests, we show that the LT is particularly useful for the solution of the heat equation at small scales, where it is generally difficult to achieve a high approximation accuracy and a numerically stable computation, due to the discretisation of the temporal variable (e.g., \(\theta \)-method [1, 70]) and heuristic criteria for the selection of the number of Laplacian eigenpairs with respect to time and target accuracy. To this end, we consider the homogeneous 2D heat equation \(\partial _{t}u-\varDelta u=0,\quad \varOmega :=[0,1]\times [0,1]\), with (i) initial condition \(\delta _{{\textbf{p}}}\), at \(t:=0\) (Figs., 1213) or (ii) the inhomogeneous heat equation with analytic solutions (Fig. 14). The approximation error is evaluated in terms of the difference between the computed and ground-truth solutions. The solution is computed with a linear FEM solver, the \(\theta \)-method (e.g., \(\theta :=1/2\)), the truncates spectral approximation, and the LT-based solver.

Fig. 15
figure 15

(First line, left) Ground-truth solution u to the homogeneous heat equation, with \(g:=\delta _{\mathbf {}p}\), \(f:=0\), \(\mu :=1\), on an irregularly-sampled domain. (Second line) Level sets and colour-map of the spectral LT-based solution computed with a P.-C. rational polynomial (\(r:=7\)) and the meshless solver [90] induced by the Gaussian kernel. (Third line) Error \(\epsilon ({\textbf{p}}):=\vert u({\textbf{p}})-{\tilde{u}}({\textbf{p}}))\vert /\Vert u\Vert _{\infty }\), \({\textbf{p}}\in \varOmega \), between u and the computed solution \({\tilde{u}}\) for the spectral LT-based solver, meshless solver, and linear FEM [62]

Comparing (Figs. 1213) the linear FEM [62] (blue line) and meshless [90] (green line) P.-C. approximation (best approximation accuracy), and the LT-based solver (red line) for the solution to the homogeneous heat equation on 5 samplings of the input domain with a different separation distance (x-axis), the LT-based solver provides the highest approximation accuracy of the ground-truth solution. Furthermore, the spectral truncated approximation of the solution to the heat equation (Fig. 12, 100 eigenfunctions) with initial condition \(u(0,\cdot )=\delta _{{\textbf{p}}}\) is generally affected by undulations of the solution as we move far from the source point, especially at small scales (i.e., \(t\rightarrow 0^{+}\)). The shape and distribution of the level sets confirm the high accuracy of the spectral LT-based solver at small and large scales. According to these tests, a smaller scale generally requires a higher number (i) of eigenfunctions with larger frequencies for the spectral approximation and (ii) of iterations for the \(\theta \)-method, which introduce oscillations in the approximate solution. In contrast, the LT-based solver provides the highest approximation accuracy of the ground-truth solution. The LT-based solver generally provides an approximation accuracy higher than the truncated spectral approximation, and the \(\theta \)-method (\(\theta :=1/2,1\)) at all scales (i.e., \(t:=0.1,0.01,0.001\)). At small scales, the FEM solution to the heat equation generally shows small undulations (e.g., due to the Gibbs phenomenon), which are removed by the LT-based solver. A local discontinuity of the initial heat distribution is a further source of numerical instabilities in the computation of the solution by the \(\theta \)-method. The accuracy of the LT-based solver is competitive with respect to FEM solvers. At larger scales, the Gibbs phenomenon is attenuated and the accuracy of the LT-based and FEM solvers becomes comparable.

Fig. 16
figure 16

Behaviour of the diffusion process on a 3D domain, computed with the spectral LT and a rational polynomial of the exp filter of degree (rr), \(r:=7\) (c.f. Equation (15)). At small scales (\(t=10^{-4},\ldots ,10^{-1}\)), the distribution of the level sets of the solution (i.e., diffusion kernel) to the heat equation, with initial condition \(F(0,\cdot )=\delta _{{\textbf{p}}}\), have a local and multi-scale behaviour at the same seed points (a,b), (c,d). (e) At large scales (\(t=0.5\)), the solution is no more centred at the seed points and has a global behaviour

We now consider the inhomogeneous 2D heat equation \(\partial _{t}u-\varDelta u=f\), on \(\varOmega :=[-1,1]\times [-1,1]\), \(f:=\sin x\sin y(\sin t+\cos t)\), whose analytic solution is (i) \(u(x,y,t):=\sin x+\sin y\sin t\). We also consider the convection-diffusion equation with convection dominance \(w_{\epsilon }(x,y):=(x^{2}+y^{2})/\epsilon \) (e.g., \(\epsilon = 10^{-5}\)), \(\kappa =1\), and analytic solution \(u(x,y,t):=\sin (\pi x)\sin (\pi y)\exp (-2\pi ^{2}t)\), on the domain \(\varOmega :=[0,2]\times [0,2]\). Comparing the distribution of the approximation error \(\epsilon _{\infty }\) between the ground-truth solution to the heat equation with the LT-based solution (Fig., 14), our approach achieves an error lower than \(10^{-4}\). Comparing the ground-truth solution to the homogeneous heat equation with its P.-C. approximation (\(r:=7\)) induced by the Gaussian kernel, whose radius is selected according to [27] and [72], and the distribution of the approximation error (Fig. 15), the spectral solver achieves an error lower than \(1\%\), which is localised in a neighbourhood of the boundary of \(\varOmega \), as a matter of the partial support of the RBFs whose centres are located close to \(\partial \varOmega \).

Fig. 17
figure 17

Multi-scale behaviour of the spectral LT of a delayed impulse \(\varphi (x):=\delta (x-t)\) at different time shifts t of unit impulse and centred at a seed point on the input surface. Here, the 1D LT is \({\widetilde{\varphi }}(s)=\exp (-st)\)

On a 3D domain represented as a surface (Figs. 1617), we compute the solution to the homogeneous heat equation with initial condition \(\delta _{{\textbf{p}}}\), at \(t:=0\), whose solution at small scales is numerically unstable due to the discontinuity of the initial condition. These instabilities result in the Gibbs phenomenon for the \(\theta \)-method, FEM solvers, and truncated spectral approximation. In contrast, the spectral LT solver is oblivious to the Gibbs phenomenon at all scales. The spectral LT removes the temporal scale, which is the main source of numerical instabilities of previous work, as \(t\rightarrow 0\). Furthermore, we require only to discretise the LB operator on the input domain \(\varOmega \), without extracting a tetrahedral mesh of \(\varOmega \) as required by FEM solvers. An analogous approach applies to the solution of the heat equation on a graph (Fig. 18), where it is not possible to apply FEM solvers; in this case, the Laplace-Beltrami operator is discretised by the graph Laplacian [63, 66].

Fig. 18
figure 18

Multi-scale behaviour of the spectral LT of a delayed impulse \(\varphi (x):=\delta (x-t)\) at different time shifts t of unit impulse and centred at a seed node of the input graph. Here, the 1D LT is \({\widetilde{\varphi }}(s)=\exp (-st)\). See also Fig. 17. Here, the colour map begins with red, passes through yellow, green, cyan, blue, and magenta, and returns to red (Color figure online)

Fig. 19
figure 19

Correspondences on non-isometric shapes of the TOSCA data set [5] evaluated with the functional map framework [61], which uses diffusion kernels computed with the spectral LT-based solver

6 Conclusions and Future Work

This paper has addressed the definition and properties of the spectral LT on arbitrary data (e.g., curved volumes, surfaces), as an extension of its 1D and 2D counterparts. The definition and computation of the LT on arbitrary domains are challenging for several reasons. On the one hand, the solution to PDEs on curved volumes and surfaces is still an open research problem, due to the complexity of partitioning the input domain and constructing proper functional spaces. On the other hand, the definition of the LT on arbitrary domains generalises the properties of the LT from the 1D case to the nD case, also taking into account the geometry and topology of the input domain. The spectral LT satisfies standard properties of the 1D/2D transform, such as dilation, translation, scaling, derivation, localisation, and Parseval’s equality, and is l enough to be applied to different representations of arbitrary domains, such as surfaces (Figs. 1617) or graphs (Fig. 18). To this end, we have defined the spectral LT in terms of the spectrum of the Laplace-Beltrami operator, which is intrinsic to the input data and signals and allows us to encode their geometric and topological properties at different levels of complexity in the spectral LT. Through polynomial and rational polynomial approximations, the spectral LT is efficiently computed for signals defined on (i) structured (e.g., regular/irregular) data, (ii) time-depending data, where the model is not constructed once from a set of “static” data but is updated and adapted to the input data, and (iii) sparse or dense data. In the experimental analysis, we have discussed the application of the generalisation of the LT to the solution of the heat diffusion equation on arbitrary domains (e.g., 3D domains) and graph signal processing. The LT-based solution to the heat equation is also useful for the computation of diffusion functions that are applied to the evaluation of correspondences [61] between arbitrary 3D domains discretised by a triangle mesh with different geometry and connectivity. For shape correspondence, we select a low number k of ground-truth landmarks and consider the corresponding k spectral functions or sk diffusion functions at s scales computed with the spectral LT (Fig. 19). The ground-truth landmarks initialise the functional map and are used to compute the functions that generate the sub-space on which the shape descriptors will be projected to define the functional map. For the rigid and articulated shapes, the computed correspondences correctly map local and global features on the source and target shape. In future work, we plan to focus on the link between the Laplace and Fourier transforms and extend the definition of convolution operators on arbitrary domains.