WorksMathematics
Discrete Exterior Calculus-based Whittle-Matérn Fields on Meshes
Abstract
This work presents a sparse precision formulation for Whittle-Matérn fields based on Discrete Exterior Calculus. By treating the -cochain as the latent object to be modeled, we show that a single formulation can produce Whittle-Matérn fields for all and integer values. By utilising Whitney maps we can enable a push-forward of the prior on 1-cochains, enabling inference for discrete vector fields. We demonstrate this model on interpolation of vector fields on a sphere.
Introduction
Gaussian Processes (GPs) are a commonly-used tool for spatial modelling under uncertainty. A GP is a multivariate distribution where the joint distribution of every finite set of variables is Gaussian [16]. A GP is wholly defined by its mean and covariance functions, and the mean and variance of an unobserved spatial index is defined by the GP and any observed data. An isotropic GP is one where the covariance function is a function of the Euclidean distance between two spatial locations, and common GPs, such as the Matérn or squared exponential GPs, are isotropic.
However, on curved manifolds like spheres, Euclidean distance functions are not sufficient for defining spatial covariance, and using geodesic distance instead generally does not produce positive definite covariance. Borovitskiy et al. [6] introduce an alternative formulation for scalar covariance kernels defined on an arbitrary Riemannian manifold through the spectral decomposition of the Laplace-Beltrami operator . Both Hutchinson et al. [12] and Robert-Nicoud et al. [17] extend this idea to modelling vector fields, the former through projected kernels, and the latter through applying derivative operators to the eigenfunctions of the Laplace-Beltrami to get vector fields. In particular, Robert-Nicoud et al. [17] show that Hodge-compositional processes can be constructed in this way, allowing separate parametrisations of the curling and diverging velocities in a vector field. Borovitskiy et al. [5] show that the spectral formulation of the Matérn GP can be applied to graphs and triangular meshes through the eigenpairs of the graph Laplacian, and show empirically that it converges to its smooth counterpart in the Riemannian setting. Yang et al. [21] propose a methodology for modelling functions on the edges of meshes, extending the formulation of intrinsic vector GPs with the graph Laplacian. Gillan et al. [9] show that the Hodge-compositional vector field model of Robert-Nicoud et al. [17] has a discrete analogue by substituting the discrete exterior calculus (DEC) cotangent Laplacian for and showing that it can be used to model vector fields defined on the vertices of a manifold mesh. However, this precludes a sparse formulation. Alain et al. [2] develop a model for Matérn GPs over the components of a cellular complex, analogous to the simplicial complex of DEC, and propose a kernel for propagating information between different orders of cells. Alain and Takao [1] develop a similar model to Gillan et al. [9] using finite element exterior calculus, eliciting a similar covariance-based Hodge-compositional model without the restriction to mesh vertices.
Standard dense Gaussian-process calculations require factorisation and storage. The SPDE approach Lindgren et al. [14] explicitly constructs Matérn precision matrices for Gaussian Markov Random Fields (GMRFs) with respect to a mesh by discretising the SPDE using piece-wise linear basis functions, enabling sparse linear-algebra methods. As highlighted in a later review [13], this result can be generalised to smooth manifolds by replacing the Euclidean with the equivalent manifold operator . Nambiarajan (2026) show that a Gaussian Markov Random Field (GMRF) approximation for Whittle-Matérn fields can be built from DEC operators for fields on vertices and faces.
Background
Discrete Exterior Calculus
Exterior calculus is the calculus defined by generalising the derivative to operate on higher-degree differential forms [8]. A differential -form is a quantity that can be integrated over a -dimensional manifold; for example, the expression is a 1-form and can be integrated over a 1-dimensional line segment by
The discretisation of exterior calculus is called discrete exterior calculus (DEC) [11]. An implementation of most of the core theory is provided in the PyDEC library [3].
In the following, , are smooth -forms, , are discretised -forms, cochains, is a -chain, is the Riemannian manifold that is triangulated by the simplicial complex , and is a simplex of dimension . For an in-depth treatment see, e.g. Desbrun et al. [7].
Simplicial Complexes, Chains and Cochains
A smooth Riemannian manifold of dimension can be discretised as a finite collection of 0-, 1-, , -, and -dimensional piecewise linear components. For a 2-dimensional manifold, these would be vertices (0-dimensional), edges (1-dimensional), and faces (2-dimensional). This collection of components is called a simplicial complex, , and the individual -dimensional components, , are called -simplices. We assume triangulates and that is embedded in Euclidean space with vertex positions chosen so that its lengths, areas and angles approximate those of . We write for the set of -simplices (e.g. is the collection of edges on a triangulated surface) and .
The orientation of a -simplex is the ordering of its vertices , up to even permutations. The chain group is the abelian group generated by the oriented -simplices, where opposite orientations are negative. Fixing one orientation per simplex, is the free abelian group on ,
and we set for or . The orientations of individual simplices are an arbitrary choice.
A discrete -form, or -cochain, is a homomorphism , and these form the cochain group
A cochain is determined by its values on the simplices, and ; a 0-cochain is a function on vertices, a 1-cochain a value on each oriented edge, and so on. We write
for the evaluation of a cochain on a chain.
The circumcentric dual of associates each -simplex with an -dimensional dual cell built from the circumcentres of the simplices containing . On a triangulated surface, the dual of a face is its circumcentre, the dual of an edge is the segment joining the circumcentres of its adjacent faces, and the dual of a vertex is the polygon joining the circumcentres of its incident faces. We write and for the - and -dimensional volumes of a simplex and its dual cell, taking the volume of a point to be 1. On well-centred meshes (every simplex contains its circumcentre) all dual volumes are positive.
de Rham and Whitney Maps
Smooth and discrete forms are related through the de Rham and Whitney maps [19]. The de Rham map discretises a smooth -form by integration over -simplices,
is a well-defined cochain in , and by linearity for every chain .
In the opposite direction, the Whitney map interpolates a cochain as a piecewise-smooth -form,
Writing for the barycentric coordinate of vertex , equal to one at and zero at all other vertices, the Whitney forms of degree zero, one and two are
where is a face on a triangulated surface and is its area form, oriented by the vertex ordering of . These satisfy for all , so that
i.e. interpolating a cochain and then discretising recovers it exactly.
Exterior Derivative
The discrete boundary operator is defined by
where is the -dimensional simplex obtained by omitting the vertex [7]. is represented by a sparse signed incidence matrix with entries in , and .
The discrete exterior derivative, , is the discrete difference operator acting on -cochains. For any -chain , Stokes’ theorem can be written as an adjoint relationship
We define as the adjoint of the discrete boundary operator,
It follows from that . Additionally, we can see that commutes with the de Rham map ,
for any smooth -form and . Since a cochain is determined by its values on chains, , and introduces no discretisation error. In matrix form, is the transpose of the signed incidence matrix of , and is simply a sparse difference matrix as a result of the sparsity of .
Hodge Star
In the DEC framing, all metric information enters through an inner product on cochains. For smooth -forms on , the inner product is
where is any local orthonormal frame. We seek a symmetric positive definite matrix such that
and define the discrete inner product
The natural choice is the Gram matrix of the Whitney forms, , for which exactly; is then the finite-element mass matrix of -cochains. In practice, DEC uses a diagonal (lumped) approximation of this mass matrix. For , , and the ratio approximates the average density of along . Giving a region of measure proportional to and summing density squared times volume gives
where is the diagonal Hodge star,
is symmetric positive definite on well-centred meshes, where all are positive.
Co-derivative
The discrete co-derivative is defined as the adjoint of with respect to the inner product in Eq. (14),
Since is symmetric positive definite, and hence invertible,
so
Just as is the adjoint of under the pairing , is the adjoint of under the inner product .
Hodge-Laplacian
The discrete Hodge-Laplacian2 on -cochains is
with and , since . is self-adjoint and positive semidefinite with respect to , since . as a matrix is not symmetric, but is.
Whittle-Matérn Fields
The Matérn covariance function for locations and Euclidean distance is defined as
where is the modified Bessel function of the second kind with order , is a scaling parameter and is the marginal variance. The Matérn random field has mean-square derivatives of integer orders . Lindgren et al. [14] suggests a more natural interpretation of as a range parameter , with an empirical reparametrisation giving correlations near 0.1 when . Whittle [20] formalises the Matérn GP as the solution to the SPDE
with the same and , and a white noise process . is the Euclidean Laplacian and the marginal variance of the field is given by
Methodology
Whittle-Matérn Fields on -Cochains
When a Gaussian vector is defined implicitly by a linear system driven by Gaussian noise, its precision is defined by the system matrix and the noise covariance. Suppose
with invertible. Then is Gaussian with
We can translate the Whittle-Matérn SPDE formulation in Eq. (22) to DEC by replacing with the -form Hodge-Laplacian as defined in Eq. (20).
Note the change of sign between Eqs. (22) and (26) since is negative semi-definite and is positive semi-definite.
To discretise Eq. (26) for , we use its weak form: we require for all . For each , the left-hand side is the -th entry of , and the right-hand side is , giving . Since is self-adjoint with respect to , is symmetric, and its explicit form follows from the quadratic form ,
where
is sparse since is diagonal. Using would make the term dense, which justifies our use of the lumped mass matrix. The white noise process is a random linear functional such that
Using Whitney forms as a basis, , and
Approximating by the lumped mass matrix gives . Thus, when , the weak form of Eq. (26) is
and the precision matrix of is given by
For general , the fractional power in Eq. (26) is most naturally defined after whitening. The discrete inner product satisfies
so the change of variables transforms the inner product to the Euclidean one. The self-adjoint operator is then represented by the symmetric positive definite matrix
using . The noise process becomes
For , is equivalent to . For general the whitened form of Eq. (26) is
Hence . Transforming back via gives , and so
For integer , we can use telescoping to define ,
For this is , and for it recovers . For non-integer , remains well defined through spectral powers but is dense, so loses both its sparsity and the Markov property. We therefore restrict attention to integer ; fractional values can be handled by rational approximation [4].
The smoothness parameter is related to by , and requires . With integer , takes integer values when is even and half-integer when is odd. On a surface (), gives , and so does not define a Matérn covariance function, but is still a well-defined random measure [14].
Implementation
Prior Sampling
To sample from we require such that . We consider the cases where and separately. When ,
When ,
where
A sample is then given by , , i.e.
Figure 1 shows samples of -cochains on a unit sphere.

(a) Sample of 0-cochain (function over points)

(b) Sample of 2-cochain (function over faces)

(c) Sample of 1-cochain (function over edges)

(d) Sample from Figure 1c, projected into the tangent vector space (see § 4.3)
Figure 1. Samples of Whittle-Matérn fields on the -cochains of a unit icosphere with 4 subdivisions. and .
Posterior Conditioning
The posterior covariance where
is an observation operator that maps the latent cochain to the observations, , and is the covariance of the observation noise, e.g. for i.i.d noise with variance , . For , the posterior mean of is given by
is a dense matrix, but we can find the mean and take posterior samples without ever forming it explicitly. For the mean we employ two triangular solves
For posterior samples, we employ one additional triangular solve,
We can find the posterior marginal variance approximately through the Monte Carlo sample variance, or exactly by solving Takahashi equations to find only [18]. Figure 2 shows posterior inference on a 2-cochain on a sphere.
Observation Operators
The latent field is a cochain with prior . Any observation that is a linear functional of the underlying form (e.g. an integral, a point value, or a vector) enters through the observation operator in , and the posterior of § 4.2 applies unchanged.
Mesh-aligned observations. If is an integral over a chain , then by the de Rham map , so the corresponding row of is the coefficient vector of . For a single simplex this is a signed indicator, with sign given by the relative orientation. Note that this includes scalar values observed at vertices of the mesh.

(a) Sample of 2-cochain

(b) 500 observed points

(c) Posterior mean

(d) Posterior standard deviation
Figure 2. Posterior conditioning of the Whittle-Matérn field on a 2-cochain. RMSE =
Point observations. For non-mesh aligned observations, we evaluate the Whitney map at the observation location as in Eq. (5), using the barycentric coordinates of . Only the Whitney forms of the face containing contribute, so each row of is sparse. For , when observations are vectors rather than 1-forms, we use a vector proxy for ,
where is constant on . An observed vector is compared with , where is the observation’s local frame.
Vector-field priors. For a collection of points , we can define the operator by evaluating at each . The prior on vector fields is the push-forward of the cochain prior through , . We can avoid constructing this dense covariance explicitly; samples are obtained by sampling as in Section 4.1 and applying , and vector observations enter inference through the corresponding rows of in .
Experiments
As a demonstration, we apply this model to interpolation of a vector field on a sphere. The data are monthly averaged and components of wind at the 500hPa pressure level for the month of July 2020, taken from the ERA5 atmospheric reanalysis dataset [10]3, scaled to have an average norm of 1. For observations we subsample the data to a grid, and infer back to the grid, giving 1,035,360 output locations. The ground truth data is shown in Figure 3 and the observations are shown in Figure 4.

Figure 3. Monthly average wind data from ERA-5 on a grid, shown on the Robinson projection. Arrow colour and size indicates magnitude.

Figure 4. Observed wind vectors, downsampled from ground truth to a grid, shown on the Robinson projection. Arrow colour and size indicates magnitude.
We begin by generating an icosphere mesh with 5 subdivisions, producing a well-centred mesh with 10242 vertices, 30720 edges, and 20480 faces, and using PyDEC we assemble a simplicial complex. For hyperparameter values, we fix () and estimate by empirically measuring the spatial correlation of the observations. For our data this gives rad and so .
Using the DEC operators defined by the simplicial complex, we construct for as in Eq. (31), giving a prior precision over the edges of the mesh. The sparsity pattern of this matrix is shown in Figure 5. We then construct our observation operator as the Whitney map for vector field priors described in § 4.3. Note that since we use an icosphere, neither the observations nor the ground truth are (necessarily) aligned with the vertices of the mesh. We set and use for the observation noise.

Figure 5. Sparsity pattern of when . Matrix dimensions are .
Using the procedure detailed in § 4.2, we obtain the posterior mean and standard deviation, shown in Figure 6 and Figure 7, respectively. The posterior estimate has a mean square error of 0.046 with respect to the ground truth, and the spatial distribution of square error is shown in Figure 8.

Figure 6. Posterior mean field, , conditioned on grid of observation vectors. Arrow colour and size indicates magnitude. MSE = 0.046

Figure 7. Posterior standard deviation of wind vector along the edges of the mesh, interpolated to lat/lon grid using , the Whitney map for when . Colour indicates size of standard deviation.

Figure 8. Square error of posterior mean field with respect to ground truth. Colour indicates magnitude of error. Squared error is calculated as .
Conclusion
This work presents a sparse precision formulation for Whittle–Matérn fields for -cochains using DEC operators. By applying Whitney maps and introducing the Whitney observation operators, this model can be applied to any point, edge, areal, or vector field data, with observation and prediction locations anywhere on the underlying manifold. Future development will focus on boundary conditions and non-stationarity, as well as sparse approximations of Hodge-compositional covariance kernels.
References
- [1]Alain, M. and S. Takao (2026). Probabilistic modelling of vector fields using structure-preserving discretisation. In NeurIPS 2026 Workshop on AI for Stochastic Dynamics: From Theoretical Foundations to Scientific Applications.
- [2]Alain, M., S. Takao, B. Paige, and M. P. Deisenroth (2024, August). Gaussian Processes on Cellular Complexes.arxiv.org/abs/2311.01198
- [3]Bell, N. and A. N. Hirani (2012, November). PyDEC: Software and Algorithms for Discretization of Exterior Calculus. ACM Trans. Math. Softw. 39(1), 3:1–3:41.arxiv.org/abs/1103.3076
- [4]Bolin, D. and K. Kirchner (2020, April). The Rational SPDE Approach for Gaussian Random Fields With General Smoothness. Journal of Computational and Graphical Statistics 29(2), 274–285.
- [5]Borovitskiy, V., I. Azangulov, A. Terenin, P. Mostowsky, M. Deisenroth, and N. Durrande (2021, March). Matérn Gaussian Processes on Graphs. In Proceedings of The 24th International Conference on Artificial Intelligence and Statistics, pp. 2593–2601. PMLR.arxiv.org/abs/2010.15538
- [6]Borovitskiy, V., A. Terenin, P. Mostowsky, and M. Deisenroth (he/him) (2020). Matérn Gaussian Processes on Riemannian Manifolds. In Advances in Neural Information Processing Systems, Volume 33, pp. 12426–12437. Curran Associates, Inc.arxiv.org/abs/2006.10160
- [7]Desbrun, M., A. N. Hirani, M. Leok, and J. E. Marsden (2005, August). Discrete Exterior Calculus.arxiv.org/abs/math/0508341
- [8]Fleming, W. H. (1987, June). Functions of Several Variables. Springer Science & Business Media.
- [9]Gillan, M., S. Siegert, and B. D. Youngman (2026, June). Discrete Gaussian vector fields on meshes. Stochastic Environmental Research and Risk Assessment 40(6), 161.arxiv.org/abs/2507.20024
- [10]Hersbach, H., B. Bell, P. Berrisford, G. Biavati, A. Horányi, J. Muñoz Sabater, J. Nicolas, C. Peubey, R. Radu, I. Rozum, D. Schepers, A. Simmons, C. Soci, D. Dee, and J.-N. Thépaut (2023). ERA5 monthly averaged data on pressure levels from 1940 to present.
- [11]Hirani, A. N. (2003). Discrete Exterior Calculus. Ph. D. thesis, California Institute of Technology.
- [12]Hutchinson, M., A. Terenin, V. Borovitskiy, S. Takao, Y. W. Teh, and M. P. Deisenroth (2021, December). Vector-valued Gaussian processes on riemannian manifolds via gauge independent projected kernels. In Proceedings of the 35th International Conference on Neural Information Processing Systems, NIPS ’21, Red Hook, NY, USA, pp. 17160–17169. Curran Associates Inc.arxiv.org/abs/2110.14423
- [13]Lindgren, F., D. Bolin, and H. Rue (2022, August). The SPDE approach for Gaussian and non-Gaussian fields: 10 years and still running. Spatial Statistics 50, 100599.DOI
- [14]Lindgren, F., H. Rue, and J. Lindström (2011). An explicit link between Gaussian fields and Gaussian Markov random fields: The stochastic partial differential equation approach. Journal of the Royal Statistical Society: Series B (Statistical Methodology) 73(4), 423–498.DOI
- [16]Rasmussen, C. E. and C. K. I. Williams (2006). Gaussian Processes for Machine Learning. Adaptive Computation and Machine Learning. Cambridge, Mass: MIT Press.DOI
- [17]Robert-Nicoud, D., A. Krause, and V. Borovitskiy (2024, April). Intrinsic Gaussian Vector Fields on Manifolds. In Proceedings of The 27th International Conference on Artificial Intelligence and Statistics, pp. 1306–1314. PMLR.
- [18]Rue, H. and L. Held (2005). Gaussian Markov Random Fields: Theory and Applications (1 ed.), Volume 104 of Monographs on Statistics and Applied Probability. Milton: Chapman and Hall/CRC.
- [19]Whitney, H. (1957). Geometric Integration Theory. Princeton University Press.
- [20]Whittle, P. (1963). Stochastic Processes in Several Dimensions. Bulletin of the International Statistical Institute 40(2), 974–994.
- [21]Yang, M., V. Borovitskiy, and E. Isufi (2024, April). Hodge-Compositional Edge Gaussian Processes. In Proceedings of The 27th International Conference on Artificial Intelligence and Statistics, pp. 3754–3762. PMLR.arxiv.org/abs/2310.19450