EIT Agent
登录
← 校园网页目录

校园网页 · 学校官网

spgii_uexf4k3b10bw.eps

Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. SIAM J. S CI. COMPUT. c⃝ 2010 Society for I ndustrial and Applied Mathematics Vol. 32, No. 6, pp. 3228–3250 EFFICIENT SPECTRAL SP ARSE GRID METHODS AND APPLICA TIONS TO HIGH-DIMENSIONAL ELLIPTIC PROBLEMS ∗ JIE SHEN† AND HAIJUN YU‡ Abstract. We develop in this paper some efficient algorithms which are essential to imple- mentations of spectral methods on the sparse grid by Smolyak’s construction based on a nested quadrature. More precisely, we develop a fast algorithm for the discrete transform between the values at the sparse grid and the coefficients of expansion in a hierarchical basis; and by using the aforementioned fast transform, we construct two very efficient sparse spectral-Galerkin methods for a model elliptic equation. In particular, the Chebyshev–Legendre–Galerkin method leads to a sparse matrix with a much lower number of nonzero elements than that of low-order sparse grid methods based on finite elements or wavelets, and can be efficiently solved by a suitable sparse solver. Ample numerical results are presented to demonstrate the efficiency and accuracy of our algorithms. Key words. sparsegrid, spectral method, high-dimensional problem, Chebyshev–Gauss–Lobatto quadrature AMS subject classifications. 65N35, 65N22, 65F05, 35J05 DOI. 10.1137/100787842 1. Introduction. Many scientific and engineering applications require solving high-dimensional partial differential equations (PDEs). Current spectral methods for solving PDEs in multidimensions are usually based on tensor product formulation which quickly becomes nonfeasible for high-dimension (d> 3) problems due to the so-calledcurse ofdimensionality as the degree offreedom growslikeNd ifN points are used in each direction. Thus, one has to resort to some sort of sparse discretizations. A particularly efficient class consists of the so-called sparse grids based on Smolyak’s algorithm (cf. [22]), which is based on a hierarchy of one-dimensional quadrature. In recent years, sparse grids have becomea major approximation tool for high- dimensional problems. It has been successfully used in many scientific and engineering applications (cf., for instance, [6]). Most of the work on sparse grids is based on ba- sis functions in the physical space, e.g., piecewise linear multiscale bases (cf. [3, 5]), hierarchical Lagrangian polynomial bases (cf. [4]), or wavelets (cf. [6, 17]). There have also been attempts to use basis functions from hyperbolic cross in the frequency space (cf. [11, 12, 14]), but these are usually based on Fourier series and are thus restricted to periodic problems. Most recently, Shen and Wang [21] considered hy- perbolic cross approximations based on Jacobi polynomials and studied their basic approximation properties as well as their applications to high-dimensional elliptic equations. However, the original hyperbolic cross approximation is not suitable for most practical computations as it lacks a representation in the physical space. We note that the hyperbolic cross approximation in frequency space can be closely related to Smolyak’s sparse grid with a nested quadrature through an interpolation operator based on hierarchical basis functions. Therefore, the main purpose of this work is ∗Received by the editors March 8, 2010; accepted for publication (in revised form) August 13, 2010; published electronically November 9, 2010. This work was partially supported by AFOSR grant FA9550-08-1-0416 and NFS grant DMS-0915066. http://www.siam.org/journals/sisc/32-6/78784.html †Department of Mathematics, Purdue University, West Lafayette, IN 47907 (shen7@purdue.edu). ‡Department of Mathematics, Purdue University, West Lafayette, IN 47907. Current address: LSEC, Institute of Computational Mathematics and Scientific/Engineering Computing, AMSS, Chi- nese Academy of Sciences, Beijing 100190, China (hyu@lsec.cc.ac.cn). 3228 Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. EFFICIENT SPECTRAL SPARSE GRID METHODS 3229 to develop efficient algorithms for implementing sparse spectral methods based on the hierarchical polynomials for various situations. In particular, we shall consider the sparse grid based on the nested Chebyshev–Gauss–Lobatto quadrature (cf., for instance, [2, 15]), develop a fast transform algorithm between the sparse grid and the coefficients of hierarchical expansion, and use it to construct efficient sparse spectral solvers for high-dimensional elliptic equations. In order to better understand the crucial issues in solving high-dimensional PDEs, we consider a generic evoluti o nP D Ew r i t t e ni nt h ef o r m (1.1) u t +Au+N(u)=0 ,x ∈Ω∈Rd, where A is a leading linear operator andN is a nonlinear operator. This class of equa- tions includes, as examples, nonlinear Schr¨odinger equations, Fokker–Planck equa- tions, and some equations in mathematical finance. Assuming that we use a linearly implicit scheme to discretize (1.1) in time, then at each time step, one needs to solve a d-dimensional linear equation (1.2) αu+Au = f, x ∈Ω, with appropriate boundary conditions. Our task is to develop an efficient sparse spectral method for (1.2). LetY N be a finite-dimensional polynomial space, and let IN be an interpolation operator from a sparse grid toYN, both to be specified. A weighted spectral-Galerkin method for (1.2) is to finduN ∈XN = YN ∩X such that (1.3) α(uN,vN)ω+(AuN,vN)ω=( INf,vN)ω ∀vN ∈XN, where ωis a positive weight function,X is a functional space with the underlying boundary conditions, and (·,·)ω represents the weightedL2 inner product. Then, two main issues need to be addressed: (i) The first issue is to construct an efficient algorithm to compute expansion coefficients ofINf in YN from the values off at the given sparse grid. A particu- larly interesting sparse grid ΣN is given by Smolyak’s algorithm applied to thenested Chebyshev–Gauss–Lobatto quadrature. One can then construct a set of hierarchical basis functions and define an interpolation operator based on the sparse grid onto the space YN spanned by these hierarchical basis functions. We note that YN is closely related to the hyperbolic cross space. Thanks to the fact that the Chebyshev polynomials (resp., Chebyshev–Gauss–Lobatto points) are the image of trigonometric polynomials (resp., equally spaced points) under the mappingθ=c o s−1 x,t h et r a n s - forms between the expansion coefficients in these hierarchical basis functions and the function values at the Chebyshev sparse grid ΣN can also be performed in a fast and stable manner using the fast fourier transform (FFT). (ii) The second issue is to develop an efficient algorithm for (1.3). The structure of the matrix associated with (1.3) depends on the basis functions ofXN. However, since XN is not constructed with a usual tensor-product procedure, one can no longer apply the usual technique (for the full grid) of matrix diagonalization/decomposition (cf. [13, 18]) to efficiently solve these linear systems. We shall propose several different methods for dealing with these linear systems and provide some guidelines on what to use in different situations. We shall perform numerical experiments for several classes of functions with dif- ferent smoothness and assess the relative performance of the proposed sparse spectral methods. Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. 3230 JIE SHEN AND HAIJUN YU The rest of paper is organized as follows. In section 2, we consider the sparse grid by Smolyak’s algorithm based on a nested quadrature, construct the corre- sponding hierarchical bases, and present a detailed fast algorithm for the discrete transform between the values at the sparse grid and the coefficients of the expan- sion in the hierarchical bases. In section 3, we consider two sparse spectral-Galerkin schemesformodel ellipticequations, namely, the Chebyshev–Galerkinmethod andthe Chebyshev–Legendre–Galerkin method; construct efficient algorithms for the matrix- vector product and for forming the system matrix in the latter method; and present several options for solving the resultant linear systems. In section 4, we present some illustrative numerical results which are aimed at assessing the efficiency and accuracy of the sparse spectral methods for different classes of exact solutions. We end with some concluding remarks in the final section. 2. Hierarchical basis, sparse grid, and discrete transform. We consider in this section the sparse grids constructed by Smolyak’s algorithm. If one starts with a nested one-dimensional quadrature, then Smolyak’s algorithm leads to a sparse grid with many nice properties. In particular, one can build corresponding hierarchical basisfunctions andconstructfasttransformsbetweentheexpansionin thehierarchical bases and the values at the sparse grid. The commonly used high-order, nested one- dimensional quadratures include Fourier [12], Chebyshev [2], and Gauss–Patterson [10]. For a nonnested one-dimensional quadrature, Smolyak’s algorithm leads to a sparse grid with many more points than a sparse grid based on a nested quadrature. Furthermore, it is difficult to construct a standard interpolation scheme because of the mismatch between the number of interpolation points and the dimension of a suit- able interpolating space. The commonly used nonnested one-dimensional high-order quadratures include Gauss–Legendre, Gauss–Laguerre, and Gauss–Hermite schemes. We shall concentrate in this paper on the sparse grids based on nested one- dimensional quadratures. 2.1. One-dimensional hierarchical basis. Let I =( −1,1). Let U i be a scheme ({Ui} is a sequence of functionals for quadrature or a sequence of operators for interpolation) which usesNi grid pointsXi in I, Xi = {xi 0,xi 1 ,...,x i N i−1}, i =1 ,2,.... As a convention, we always setX0 = ∅and U0 to be the zero functional/operator. The grids {Xi} are called nested grids if X1 ⊂X 2 ⊂··· . For nested grids, we can rearrange the grid points in such a way that X = X1 ∪(X2\X1)∪(X3\X2)∪··· = {x0,x1,x2,... } with {xj,j ∈Ii} = Xi,w h e r eIi = {0,1,...,N i −1}. Let ω(x) > 0( x ∈I) be a weight function,V1 ⊂V2 ⊂···⊂ Vi ··· be a sequence of finite-dimensional spaces inL2 ω(I), and{φk(x),k =0 ,1,... }be a set of basis functions of L2 ω(I) with Vi =s p a n{φk,k ∈Ii}. Then, forf ∈C(¯I), we can determine a unique set of coefficients{bi k} such that (2.1) f(xi j)= ∑ k∈Ii bi kφk(xi j) forany j =0 ,1,...,N i −1. Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. EFFICIENT SPECTRAL SPARSE GRID METHODS 3231 Note that fast transforms between{f(xi j),xi j ∈Xi} and {bi k,k ∈Ii} are available if the basis functions{φk} are Fourier series or Chebyshev polynomials. For schemes with nested grids, if one can find a set of basis functions{˜φk},s u c h that Vi =s p a n{˜φk,k ∈Ii} and (2.2) ˜φk(xj) = 0 forany j ∈Ii,k ̸∈Ii, then {˜φk} is called a set ofhierarchical bases. An important property of the hierarchical bases is that the expansion coefficients {bi k} do not depend on the level indexi; i.e., we can write (2.3) f(xj)= ∑ k∈Ii bk ˜φk(xj) forany j ∈Ii,i =1 ,2,.... Theorem 2.1. Hierarchical bases always exist for nested schemes. Furthermore, a set of hierarchical bases is given by (2.4) ˜φk(x)= φk(x)+ ∑ l∈Ii ck,lφl(x) for k ∈˜Ii+1,i =0 ,1,2,..., where ˜Ii+1 = Ii+1\Ii, I0 = ∅,a n d ck,l = −φk(xj)Ajl with A =( Ajl)l,j∈Ii being the inverse matrix of B =( φl(xj))l,j∈Ii . Proof. Evaluating (2.4) atXi, we derive by using (2.2) that (2.5) ∑ l∈Ii ck,lφl(xj)= −φk(xj)f o r j ∈Ii. Since {φl(x),l ∈Ii} are basis functions and{xj,j ∈Ii} are quadrature points, (φl(xj))l,j∈Ii is a full rank matrix. We can then determine{ck,l} from (2.5) and the the hierarchical bases in (2.4). We now describe in some detail two practical hierarchical bases based on the Chebyshev–Gauss–Lobatto quadrature. (CH1) Let Xi = { xi j =c o s (jπ 2i ),j =0 ,..., 2i} for i ⩾ 1 be the Chebyshev–Gauss– Lobatto grid on the leveli with the number of grid points beingNi =2 i +1 (i ≥ 1); for i =0 ,w es e tN0 = 0. We rearrange the grid points into a hierarchical orderxj = xi αi(j),w h e r eαi(j) is the reorder vector for grid level i> 0. For example, one may take αi(j)= { 0,j =0 , 2i 2l [ 1+2(2 l −j) ] ,j > 0,l =m i n 2s≥j s. The original spectral basis functions are Chebyshev polynomialsTk(x): = cos(karccos(x)). The corresponding hierarchical bases are given by (2.6) ˜Tk = Tk for k ∈I1, ˜Tk = Tk −T2i−k for k ∈˜Ii,i> 1. (CH2) Here we consider the Chebyshev scheme for functions satisfying homogeneous Dirichlet boundary conditions. We setXi = { xi j =c o s ((j+1)π 2i ),j =0 ,..., 2i −2 } with Ni =2 i −1f o ri ⩾ 1. A set of spectral bases with homogeneous Dirichlet boundary condition is given by ˆT2k = T2k+2 −T0, ˆT2k+1 = T2k+3 −T1,k =0 ,1,.... Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. 3232 JIE SHEN AND HAIJUN YU Then, a set of hierarchical bases is given by (2.7) ¯Tk = ˆTk for k ∈I1, ¯Tk = ˆTk −ˆT2i−2−(k+2) = Tk+2 −T2i−(k+2) for k ∈˜Ii,i> 1. These two schemes will be used in the sparse spectral algorithms for elliptic PDEs presented in the next section. In particular, the first scheme is used when calculating the interpolationINf in (1.3); the second scheme is used in transforming the solution to the physical space after solving the resulting linear algebraic system of (1.3). 2.2. Multidimensional hierarchical bases and sparse grid. Given a one- dimensional schemeUi,t h ed-dimensional sparse grid by Smolyak’s construction is (2.8) Uq d = ∑ d⩽|i|1⩽q Δi1 ⊗Δi2 ⊗···⊗ Δid, where i =( i1,i2,...,i d) are the multiple indices of grid levels with all indices starting from 1, and|i|1 = i1 +i2 +··· +id,Δi = Ui −Ui−1, fori =1 ,2,.... It is clear that all the points in the sparse grid are in the set Xq d = ⋃ d⩽|i|1⩽q Xi1 ×X i2 ×···×X id. It is shown (cf. [2]) that (2.8) is equivalent to (2.9) Uq d = ∑ q−d<|i|1⩽q (−1)q−|i|1 ( d−1 q−|i|1 ) Ui1 ⊗Ui2 ⊗···⊗U id, where (n k ) is the binomial coefficient of selectingk elements from ann-element set. In order to use (2.9) as a quadrature rule or interpolation operator, we need to compute Ui1 ⊗Ui2 ⊗···⊗Uid for everyq−d< |i|1 ⩽ q. Therefore, the computationalcomplexity of a direct evaluation of (2.9) is about C ∑ q−d<|i|1⩽q Ni1Ni2 ··· Nid, regardlessof whether the one-dimensionalgrids are nested or not. However,for nested grids,wecanusethepropertiesofhierarchi calbasestodesignmoreefficientalgorithms as described below. Given f ∈C(¯Id), ford = 1, we can write the interpolation operatorUi as Ui(f)(x)= ∑ k∈Ii bi kφk(x), where bi k is determined by (2.1). However, by using the hierarchical bases, we have Ui(f)(x)= ∑ k∈Ii bk ˜φk(x), Δi(f)(x)= ∑ k∈˜Ii bk ˜φk(x). Therefore, (2.8) becomes Uq d(f)(x)= ∑ d⩽|i|1⩽q ∑ k∈˜Ii1×···×˜Iid bk1,k2,...,kd ˜φk1(x1)˜φk2(x2)··· ˜φkd(xd) = ∑ k∈Iq d bk ˜φk(x), Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. EFFICIENT SPECTRAL SPARSE GRID METHODS 3233 where x =( x1,x2,...,x d), ˜φk(x)= ˜φk1(x1)˜φk2(x2)··· ˜φkd(xd), and (2.10) Iq d = ⋃ d≤|i|1≤q ˜Ii1 ×···× ˜Iid. The expansion coefficients{bk,k ∈Iq d} can be determined by (2.11) f(xj)= ∑ k∈Iq d bk ˜φk(xj) ∀j ∈Iq d. Hence, Uq d defines an interpolation operator which maps the function values on the grid Xq d onto the space (2.12) Vq d =s p a n{˜φk,k ∈Iq d}. Figure 2.1 shows a sparse grid X5 2 based on the one-dimensional Chebyshev– Gauss–Lobatto quadrature and the corresponding index setI5 2 in the interpolation space. −1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1 −1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1 0 2 4 6 8 10 12 14 16 0 2 4 6 8 10 12 14 16 Fig. 2.1. Left: the sparse gridX 5 2 constructed from the Chebyshev–Gauss–Lobatto quadrature. Right: the corresponding index setI5 2 in the frequency space. The one-to-one mapping between the points in the left and right figures is given byX 5 2 = {(xj1,x j2),(j1,j 2) ∈I5 2 }. 2.3. Discrete transform. We now describe in detail an efficient algorithm for performing the discrete transform between{f(xj)} and {bk} in (2.11). We illustratethe procedurebyusingthe two-dimensionalsparsegridin Figure2.1. Let us first consider the transform on the regular tensor product gridX1 ×X 1 = {(xj1,xj2),j 1 ∈I1,j 2 ∈I1} (which contains the nine biggest dots in Figure 2.1). We get f(xj)= ∑ k∈I1×I1 bk ˜φk(xj) ∀j ∈I1 ×I 1. Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. 3234 JIE SHEN AND HAIJUN YU The coefficients{bk,k ∈I1×I1}canbe computed by two one-dimensionaltransforms on {f(xj),j ∈I1 ×I 1}, one along the first dimension, and another along the second dimension, i.e., b′ k1,j2 = ∑ j1∈I1 f(xj1,xj2)Tj1,k1,b k1,k2 = ∑ j2∈I1 b′ k1,j2Tj2,k2 or b′′ j1,k2 = ∑ j2∈I1 f(xj1,xj2)Tj2,k2,b k1,k2 = ∑ j1∈I1 b′′ j1,k2Tj1,k1, where T is the inverse matrix of (˜φk(xj))k,j. Thanks to property (2.2), values ofb′ j1,k2 and b′′ k1,j2 do not depend on grid level. Therefore, we can compute all of the coefficients{bk, k ∈I5 2} (cf. Figure 2.1) as follows. First we perform a one-dimensional transform on{f(xj),j ∈I4 ×I 1} along the first dimension. We get{b′ k1,j2,(k1,j2) ∈I4 ×I 1}, which includes{b′ k1,j2,(k1,j2) ∈ I1×I1}. Then by performing similar transforms on{f(xj),j ∈I3טI2}, {f(xj),j ∈ I2טI3},a n d{f(xj),j ∈I1טI4}, we get all of the values ofb′ k1,j2 with (k1,k2) ∈I5 2. Next, applying one-dimensional transforms along the second dimension on{b′ k1,j2, (k1,j2) ∈I 1 ×I 4}, {b′ k1,j2,(k1,j2) ∈ ˜I2 ×I 3}, {b′ k1,j2,(k1,j2) ∈ ˜I3 ×I 2},a n d {b′ k1,j2,(k1,j2) ∈˜I4 ×I 1}, we obtain all of the values of{bk1,k2,(k1,k2) ∈I5 2}. This procedure can be easily extended tod-dimensional cases. The exact proce- dures are described inAlgorithms 1a n d2b e l o w . Algorithm 1. Fast forward transform on sparse grid. Input: q, d, Xq d,a n d { f(xj), j ∈Iq d } . Output: { bk, k ∈Iq d | f(xj)= ∑ k∈Iq d bk ˜φk(xj) } bj ← f(xj) for allj ∈Iq d for d′ =1t o d do for all i′ ∈ { i′ =( i1,...,i d′−1,id′+1,...,i d) ⏐⏐ |i′|1 ⩽ q −1 } do one-dimensional transforms on{bj,j ∈˜Ii1 ×···× ˜Iid′−1 ×I q−|i′|1 × ˜Iid′ +1 × ···× ˜Iid} along thed′th dimension. end for end for The total computational complexity of the fast forward and inverse transforms depends on the complexity of the one-dimensional transforms. We have the following results. Theorem 2.2. Let n be the number of grid points in Xq d ,a n dl e tCq d be the com- putational complexity of the fast transforms described in Algorithms 1 and 2.S u p p o s e Ni ∼2i; then we have the following: (i) If the cost of one-dimensional transforms is linear, i.e., O(N),t h e nCq d = O(dn). (ii) If the cost of one-dimensional transforms is log-linear, i.e., O(N logN), then Cq d = O(nq). (iii) If the cost of one-dimensional transforms is quadratic, i.e., O(N2),t h e n 22(q−d+1) ≲ Cq d ≲ 22(q−d+1) (q −1 d−1 ) . Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. EFFICIENT SPECTRAL SPARSE GRID METHODS 3235 Algorithm 2. Fast inverse transform on sparse grid. Input: q, d, Xq d,a n d { bk, k ∈Iq d } . Output: { f(xj), j ∈Iq d | f(xj)= ∑ k∈Iq d bk ˜φk(xj) } for d′ =1t o d do for all i′ ∈ { i′ =( i1,...,i d′−1,id′+1,...,i d) ⏐⏐ |i′|1 ⩽ q −1 } do one-dimensional inverse transforms on{bj,j ∈˜Ii1 ×···× ˜Iid′−1 ×I q−|i′|1 × ˜Iid′ +1 ×···× ˜Iid} along thed′th dimension. end for end for f(xj) ← bj for allj ∈Iq d Proof. It is easy to see thatCq d = O(dn) if the cost of one-dimensional transforms is linear. Next we consider the log-linear case.To fix the idea, we consider the caseNi = 2i −1f o ri ≥1. The case withNi =2 i or 2i + 1 can be treated similarly. We first estimate the number of grid pointsn in Xq d: n =C a r d { ⋃ d⩽|i|⩽q (Xi1\Xi1−1)×···× (Xid\Xid−1) } =C a r d { ⋃ d−1⩽i1+···+id−1 ⩽q−1 (Xi1\Xi1−1)×···× (Xid−1\Xid−1−1)×X q−i1−···−id−1 } ∼2q−d+1Card{d−1 ⩽ i1 +··· +id−1 ⩽ q −1} =2 q−d+1 (q −1 d−1 ) . The complexity of the fast transforms on the sparse gridXq d can be estimated as follows: Cq d ≲ d q−d+1∑ p=1 p2q−d+1Card{d−1 ⩽ i1 +··· +id−1 = q −p} = d2q−d+1 q−d+1∑ p=1 p (q −p−1 d−2 ) = d2q−d+1 { q q−d+1∑ p=1 (q −p−1 d−2 ) − q−d+1∑ p=1 (q −p) (q −p−1 d−2 )} = d2q−d+1 { q (q −1 d−1 ) − q−d+1∑ p=1 (q −p)(q −p−1)··· (q −p−d+2) (d−2)! } = d2q−d+1 { q (q −1 d−1 ) −1 d q(q −1)··· (q −d+1) (d−2)! } =2 q−d+1q (q −1 d−1 ) . Hence, Cq d ∼O(nq). Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. 3236 JIE SHEN AND HAIJUN YU Similarly, we can show that if the cost of one-dimensional transforms isO(N2), then we have 22(q−d+1) ≲ Cq d ≲ 22(q−d+1) (q −1 d−1 ) . Remark 2.1. Algorithms 1 and 2 can also be applied to compute (2.13) vk1,k2,...,kd = ∑ (k′ 1,k′ 2,...,k′ d)∈Iq d uk′ 1,k′ 2,...,k′ d t(1) k′ 1,k1 t(2) k′ 2,k2 ··· t(d) k′ d,kd ∀(k1,k2,...,k d) ∈Iq d, where eachT(i) =( t(i) k′ i,ki )is either a block diagonalmatrix, or(block)upper triangular matrix, or (block) lower triangular matrix. This nice property allows us to build a fast algorithm for the matrix-vector multiplication in the next section. More details are given in subsection 3.3. 3. Sparse spectral-Galerkin methods for elliptic equations. In this sec- tion, we construct efficient sparse spectral algorithms for the model problem (3.1) { αu−Δu = f, x ∈Ω=( −1,1)d, u|∂Ω =0 . Given an integerq ≥d, let us denote byIq d and Jq d the index sets associated with the schemes (CH2) and (CH1), respectively. More precisely, Iq d = { (k1,k2,...,k d):0 ⩽ ks < 2is −1,i s ⩾ 0, d∑ s=1 is = q } , Jq d = { (k1,k2,...,k d):0 ⩽ ks < 2is +1,i s ⩾ 0, d∑ s=1 is = q } . We set the sparse approximation space (3.2) Vq d =s p a n{˜φk : k =( k1,...,k d) ∈Iq d}, where {˜φk} are thed-dimensional hierarchical basis functions based on (2.7). We also denote byUq d the interpolation operator (cf. (2.9)) associated with the scheme (CH1). Then, the sparse spectral-Galerkin method for (3.1) is as follows: finduq d ∈Vq d such that (3.3) α(uq d,v)ω−(Δuq d,v)ω=( Uq df,v )ω ∀v ∈Vq d , where (u,v)ω = ∫ Ωuvωdx and ω(x)=Π d i=1(1−x2 i)−1/2 in the Chebyshev case and ω(x) = 1 in the Legendre case. Given a set of basis functions{φk} (not necessarily the hierarchical bases) forVq d , the sparse spectral-Galerkin method for (3.3) can be written as a linear system (3.4) ( αM+S)u = f, where M and S are, respectively, the mass and the stiffness matrix associated with {φk},a n df is a vector with componentf k =( Uq df,φk)ω. While it appears to be natural to use the hierarchical bases{˜φk},i ti s ,h o w e v e r , not the most efficient choice as the number of nonzero elements in the mass and Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. EFFICIENT SPECTRAL SPARSE GRID METHODS 3237 stiffness matrices increase rapidly asd increases. On the other hand, the spectral- Galerkinbasis functionsψk(x): =Tk(x)−Tk+2(x) in the Chebyshev caseandϕk(x): = Lk(x)−Lk+2(x) in the Legendre case lead to very simple mass and stiffness matrices and enjoy many other nice properties (cf. [18, 19]). Therefore, we shall use these as basis functions forV q d . Notice that we still use the hierarchical bases (2.6) to obtainUq df, the expansion in the hierarchical bases, from the values off at the sparse grid. Therefore, in order to compute the right-hand side vectorf, we first transformUq df into an expansion based on standard Chebyshev or Legendre polynomials; then we use the orthogonality of Chebyshev or Legendre polynomials to computef k =( Uq df,φk)ω. We shall show below, for both the Chebyshev and Legendre weight functionsω, that the approximate solutionuq d for (3.3) can be efficiently obtained. 3.1. Sparse Chebyshev–Galerkin method. We consider now the scheme (3.3) with the Chebyshev weight. We start with the one-dimensional case. Setting ψk(x)= Tk(x) −Tk+2(x)a s mentioned above, we have Vq 1 =s p a n{ψk : k =0 ,1,..., 2q −2}.D e n o t eakj = −(ψ′′ j (x),ψk(x))ω, bkj =( ψj(x),ψk(x))ω; then the one-dimensional mass matrix and the stiff matrix are given byB =( bkj)0⩽k,j⩽2q−2, A =( akj)0⩽k,j⩽2q−2.W r i t i n g uq 1 =Σ2q−2 n=0 ˆunψn(x) and takingv = ψk (k =0 ,1,..., 2q −2) in (3.3), we find (3.5) ( αB+A)u = f, where u =(ˆu0,..., ˆu2q−2)T, f =( f0,...,f 2q−2)T with fk =( Uq 1f,ψk(x))ω.I tc a nb e easily shown thatbkj =0f o r|k−j| > 2a n dakj =0f o rj>k . We note in particular that, even though the matrixA is not sparse, due to its special structure (cf. [19]), the matrix-vector product (αB+A)u can be computed in linear complexity, i.e., in O(2q) operations. This property plays a crucial role below. Now we consider the multidimensional cases. Let us denote ψk(x)= ψk1(x1)ψk2(x2)··· ψkd(xd),T k(x)= Tk1(x1)Tk2(x2)··· Tkd(xd). Then, we haveVq d =s p a n{ψk : k =( k1,...,k d) ∈Iq d}. We set uq d = ∑ k∈Iq d ˆukψk(x), u =(ˆuk)k∈Iq d ; fk =( Ud q f,ψk)ω, f =( fk)T k∈Iq d ; M =( (ψj,ψk)ω)k,j∈Iq d ,S =( −(Δψj,ψk)ω)k,j∈Iq d . (3.6) Note that the exact forms ofM,S, u,f depend on how the index setIq d is arranged into a row vector. With the above notation, the sparse Chebyshev–Galerkin method (3.3) also re- duces to the linear system (3.4), where the vectorf on the right-hand side can be evaluated with the fast one-dimensional Chebyshev transform as follows: 1. Use Algorithm 1 to transform the function values off(x)a tC h e b y s h e v – Lobatto sparse grid points to the expansion coefficients in hierarchical bases (2.6), namely, Ud q f = ∑ k∈Jq d ˜fk ˜Tk(x), where ˜Tk(x) is the multidimensional hierarchical basis function based on (2.6). Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. 3238 JIE SHEN AND HAIJUN YU 2. Rewrite the expansion in standard Chebyshev polynomials, namely, Ud q f = ∑ k∈Jq d ˜fk ˜Tk(x)= ∑ k∈Jq d ˆfkTk(x). 3. Compute f k =( Ud q f,ψk)ω= ∑ j∈Jq d ˆfj(Tj,ψk)ω. Note that each of the above three steps is essentially equivalent to a transform with a triangular transform matrix. According to Remark 2.1, the cost of the last two steps is proportional to the number of grid points, so the cost of evaluatingf is essentially the cost of one fast Chebyshev transform using Algorithm 1. Using the notation in one dimension, the entries of the mass and stiffness matrices can be computed as follows: (ψj,ψk)ω=( ψj1,ψk1)ω(ψj2,ψk2)ω··· (ψjd,ψkd)ω= bk1j1bk2j2 ··· bkdjd and −(Δψj,ψk)ω= d∑ s=1 bk1j1 ··· bks−1js−1aksjsbks+1js+1 ··· bkdjd. The main advantage of the Chebyshev method is that the FFT can be used. However, this leads to a nonsymmetric, nonsparse stiffness matrix which is more difficult to deal with by an iterative method. Unlike in the regular spectral method where the linear system can be efficiently solved by the matrix decomposition method (cf., for instance, [13, 19]), the matrix decomposition method cannot be applied to the system (3.4) since the spaceVq d is not separable. On the other hand, since the one-dimensional stiffness matrixA is not sparse, it is prohibitively expensive, in terms of both CPU time and storage, to build and store the stiffness and mass matrices in the high-dimension case. Therefore, we shall consider an iterative approach for which we need only provide an efficient matrix-vector multiplication, i.e., givenu, computer =( αM+S)u. A fast algorithm for doing this matrix-vector multiplication is described in subsection 3.3. 3.2. The sparse Chebyshev–Legendre–Galerkin method. TheChebyshev– Galerkin method above leads to a nonsymmetric, nonsparse system which can be solved only by an iterative method. However, due to the lack of optimal precondi- tioners, this procedure may become very slow as the problem size increases. We shall now describe a Chebyshev–Legendre method (cf. [9, 20]) which combines the advan- tages of Chebyshev and Legendre methods. More precisely, we consider the scheme (3.3) withω=1 . Let Uq d be the sparse interpolation operator as in the above, and let ϕk(x)= Lk(x)−Lk+2(x),ϕ k(x)= ϕk1(x1)ϕk2(x2)··· ϕkd(xd). Then we haveVq d =s p a n{ϕk : k ∈Iq d}. Using the same notions as in the Chebyshev–Galerkin case, we have (cf. [18]) akj = −(ϕ′′ j (x),ϕk(x)) = (4k +6 )δkj and bkj =( ϕj(x),ϕk(x)) = 0 fork ̸= j,j ±2. Let us denoteM =( (ϕj,ϕk))k,j∈Iq d , S =( −(Δϕj,ϕk))k,j∈Iq d , u =( ˆuk)T k∈Iq d , f = (fk)T k∈Iq d with fk =( Uq df,ϕk). Equation (3.3) withω= 1 reduces again to the linear system (3.4). However, thanks to the nice structures of the one-dimensional stiffness and mass matrices, the number of nonzeros of the system matrix in (3.4) in this case Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. EFFICIENT SPECTRAL SPARSE GRID METHODS 3239 is proportional to number of unknowns for fixedd, making it feasible to use a suitable sparse solver. The price we pay for the sparsity of the stiffness matrix is an extra step in evaluatingf. More precisely, we now computef as follows: 1. Use Algorithm 1 to compute Ud q f = ∑ k∈Jq d ˜fk ˜Tk(x), where ˜Tk(x) is the multidimensional hierarchical basis function based on (2.6). 2. Rewrite the expansion in standard Chebyshev polynomials, namely, Ud q f = ∑ k∈Jq d ˜fk ˜Tk(x)= ∑ k∈Jq d ˆfkTk(x). 3. PerformaChebyshevtoLegendretransformtoobtain Uq df = ∑ k∈Jq d ˇfkLk(x); since the transform matrices between Chebyshev coefficients and Legendre coefficients are triangular matrices [20], we can apply Algorithm 1 directly. 4. Compute f k =( Ud q f,ϕk)= ∑ j∈Jq d ˇfj(Lj,ϕk). Since the system (3.4) in this case is symmetric and positive definite, it can be solved by using the preconditioned conjugate gradient (PCG) iterative method which requires efficient system matrix-vector multiplication. On the other hand, since the system matrix is sparse, it can also be solved by using a sparse solver which requires explicitly building and storing the stiffness and mass matricesS and M. These issues are discussed in the next subsection. 3.3. F ast matrix-vector multiplication. In order to solve the linear systems (3.4) efficiently by using an iterative method, we need to construct an efficient algo- rithm to perform the matrix-vector product. We describe below a fast algorithm for the matrix-vector multiplication using the hierarchical structure inI q d. The algorithm is similar to that in [1] for a linear finite element sparse grid solver. More precisely, we write (3.7) r =( αM+S)u = αMu+S1u+S2u+··· +Sdu. Each term of the right-hand side is a special case of the general form (3.8) vk1,k2,...,kd = ∑ (k′ 1,k′ 2,...,k′ d)∈Iq d uk′ 1,k′ 2,...,k′ d t(1) k′ 1,k1 t(2) k′ 2,k2 ··· t(d) k′ d,kd ∀(k1,k2,...,k d) ∈Iq d. For the termMu,w eh a v et(s) k′,k = bk,k′ for alls;f o rt h et e r m sSλu,w eh a v et(λ) k′,k = ak,k′ and t(s) k′,k = bk,k′ for alls ̸= λ. If all of the one-dimensional matricesT(s) =( t(s) k′ s,ks) are block diagonal matrices, we can use Algorithm 1 to compute the matrix-vector multiplications. However, when T(s) is not a block diagonal matrix, (3.9) vk1,...,ks,k′ s+1,...,k′ d = ∑ {k′ s|(k1,...,ks−1,k′ s...,k′ d)∈Iq d} uk1,...,ks−1,k′s...,k′ d t(s) k′s,ks may have nonzero values with indices (k1,...,k s,k′ s+1,...,k ′ d) /∈I q d.B u t i fT(s) is a block lower triangular matrix, then all indices of the nonzero values ofv are Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. 3240 JIE SHEN AND HAIJUN YU in the index set of the sparse grid. On the other hand, if T(s) is a block upper triangularmatrix, then no valuesofuwith index outside ofIq d will be used to calculate {vk1,...,ks,k′ s+1,...,k′ d ,(k1,...,k s,k′ s+1,...,k ′ d) ∈Iq d}. Based on these observations, one can use an upper-lower triangular splitting to calculate (3.8). Namely, vk1,...,kd = ∑ (k′ 1,...,k′ d)∈Iq d uk′ 1,...,k′ d ( t(1L) k′ 1,k1 +t(1U) k′ 1,k1 ) ··· ( t(dL) k′ d,kd +t(dU) k′ d,kd ) (3.10) ∀(k1,k2,...,k d) ∈Iq d. The above summation involves 2d terms. Each term can be calculated by performing a sequence of unidirectional downward/upwardtransforms onu along eachdimension. By unidirectional downward (resp., upward) transform, we mean the transform (3.9) where the one-dimensional transform matrixT(s) is a lower (resp., upper) block tri- angular matrix. To keep the intermediate values insideIq d, all of the downward trans- forms should be performed before all of the upward transforms. There are in total 2dd unidirectional transforms; each can be computed inO(n) operations. Since a lower triangular transform and an upper triangular transform together can be computed in O(n) operations, the total number of operations to calculate (3.8) isO(2(d−1)dn). The total memory usage isO(3n). Note that if we use a recursive implementation of the splitting technique, (3.8) can be calculated inO((2d −1)n) operations, using O(dn)m e m o r y . By using the same idea as for the matrix-vector multiplication, we can efficiently build the stiffness and mass matrices in (3.4) in the Chebyshev–Legendre case. First, we perform an upper-lower block triangular splitting on every one-dimensional trans- form matrix; a general form of system matrix will become a sum of 2d sub-matrices built from d one-dimensional upper block or lower block matrices. Each submatrix can be calculated by successively applying all the unidirectional downward transforms to an n × n identity matrix, followed by successively applying all the unidirectional upward transforms. The total number of nonzeros in the system matrixαM+S is about O(3dn); this is muchsmaller than the sparsegridmethods based onhierarchical finite elements or wavelets, in which the number of nonzeros is not proportional ton for fixedd. In Figure 3.1, we plot the nonzero patterns of several system matrices with mass matrix (α̸= 0) and without mass matrix (α= 0) in the Chebyshev–Legendre case. 3.4. Iterative and direct solvers. In this subsection we present several op- tions for solving the linear systems from the Chebyshev–Galerkin and Chebyshev– Legendre–Galerkin methods. The first option is to use an iterative method which does not need explicit forma- tion of the system matrix. This is also the only feasible option for the Chebyshev– Galerkin method. Since the system matrix comes from the discretization of an elliptic equation, we can use a preconditioned BICGSTAB for (3.4) in the Chebyshev case and PCG for (3.4) in the Chebyshev–Legendre case. Due to the structure of the Chebyshev sparse grid, it is not an easy matter to construct optimal precondition- ers. So we will consider here only the simple diagonal preconditioner. Thanks to the special basis functions, which areH 1-orthogonal in one dimension, that we use in the Chebyshev–Legendre–Galerkinmethod, the diagonalpreconditioner,althoughnot optimal, does a remarkable job of reducing condition numbers of the system matrix. In Table 3.1, we show the condition numbers of the system matrix of the Chebyshev– Legendre–Galerkin method with and without the diagonal preconditioner. It also Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. EFFICIENT SPECTRAL SPARSE GRID METHODS 3241 0 100 200 300 400 500 600 700 0 100 200 300 400 500 600 700 n=769 nnz=3085 0 100 200 300 400 500 600 700 0 100 200 300 400 500 600 700 n=769 nnz=4657 0 500 1000 1500 2000 2500 0 500 1000 1500 2000 2500 n=2815 nnz=25753 0 500 1000 1500 2000 2500 0 500 1000 1500 2000 2500 n=2815 nnz=28865 0 1000 2000 3000 4000 5000 6000 7000 0 1000 2000 3000 4000 5000 6000 7000 n=7937 nnz=138609 0 1000 2000 3000 4000 5000 6000 7000 0 1000 2000 3000 4000 5000 6000 7000 n=7937 nnz=140929 Fig. 3.1 . The structure of system matrices of the Chebyshev–Legendre–Galerkin sparse grid method. Left column: stiffness matrix. Right column: the sum of the stiffness matrix and the mass matrix. First row: d =2 , q =8 ; second row:d =3 , q =9 ; third row:d =4 , q =1 0. shows that in higher-dimensional cases, the condition number is smaller than that in the lower-dimensional cases with the same number of unknowns. Since the system matrix in (3.4) in the Chebyshev case is not symmetric, we shall not list the condition numbers. Instead, we list in Table 3.2 the iteration numbers and CPU times of the preconditioned BICGSTAB method for the Chebyshev–Galerkin system, and of the PCG method for the Chebyshev–Legendre–Galerkin system. The diagonalpreconditioneris usedinbothcases. Itcanbe seenthatthe convergencerates in both cases deteriorate only slightly as the number of unknowns increases, indicating that both schemes, while notwith optimal computationalcomplexity, areveryefficient in solving the model elliptic equation in high dimensions. We also observe that the Chebyshev–Legendre–Galerkin method with PCG is in general more efficient than Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. 3242 JIE SHEN AND HAIJUN YU Ta b le 3 .1 The condition number of diagonal-preconditioned and unpreconditioned system matrix. nnz0: number of nonzeros of stiffness matrix; cond0: the condition number of stiffness matrix; pcond0: the condition number of stiffness matrix with diagonal preconditioner; nnz1: number of nonzeros of system matrix (α=1 ); cond1: the condition number of system matrix (α=1 ); pcond1: the condition number of system matrix (α=1 ) with diagonal preconditioner. d q n nnz 0 cond0 pcond0 nnz 1 cond1 pcond1 2 3 5 9 1.394 1.230 9 1.330 1.298 4 17 45 5.059 1.979 49 5.008 2.035 5 49 157 13.312 2.742 193 13.248 2.819 6 129 461 56.096 5.863 625 55.992 5.941 7 321 1229 156.359 8.582 1777 156.295 8.670 8 769 3085 746.708 20.594 4657 746.584 20.689 9 1793 7437 2125.222 30.359 11569 2125.186 30.454 10 4097 17421 10883.493 76.538 27697 10883.369 76.639 3 4 7 19 1.487 1.486 19 1.578 1.553 5 31 133 5.285 2.774 133 5.256 2.855 6 111 633 30.951 4.679 641 30.652 4.794 7 351 2457 112.567 9.071 2561 112.335 9.226 8 1023 8337 573.052 17.965 9017 572.201 18.192 9 2815 25753 3266.231 39.210 28865 3262.578 39.552 4 5 9 29 1.825 1.767 29 1.938 1.836 6 49 281 5.506 3.694 281 5.510 3.795 7 209 1809 33.365 7.141 1809 33.153 7.297 8 769 9009 214.031 14.285 9025 212.514 14.519 9 2561 37601 997.260 30.342 37873 995.447 30.715 Ta b le 3 .2 Iteration numbers and CPU times of PCG for the Chebyshev–Legendre–Galerkin method (Ch- LeG) and preconditioned BICGSTAB for the Chebyshev–Galerkin method (ChG). The test solution is u 1 with k =2 , which is defined in section4. The iteration tolerance is10−9. d q n itr#(ChG) CPU (ChG) itr#(ChLeG) CPU (ChLeG) 2 9 1793 28 0.012 35 0.008 10 4097 35 0.042 43 0.042 11 9217 56 0.106 49 0.083 12 20481 62 0.258 46 0.131 13 45057 79 0.729 46 0.220 3 10 7423 33 0.136 40 0.085 11 18943 52 0.453 59 0.290 12 47103 76 1.694 87 1.090 13 114687 122 7.651 111 3.830 14 274431 171 29.533 122 12.070 4 11 23297 26 0.760 27 0.468 12 65537 56 4.402 58 2.380 13 178177 86 22.744 93 13.200 14 471041 173 147.500 138 60.800 5 11 18943 3 0.163 3 0.125 12 61183 10 1.634 10 0.927 13 187903 31 21.431 31 11.100 14 553983 78 207.430 74 98.500 the Chebyshev–Galerkin method with preconditioned BICGSTAB. However, an extra Chebyshev-to-Legendre transform is needed for the Chebyshev–Legendre–Galerkin method. The second option is to use a robust sparse solver which requires the explicit formation of the system matrix. We shall consider the direct sparse solver UMFPack [7, 8] and an aggregation-based implementation of the AMG method [16]. Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. EFFICIENT SPECTRAL SPARSE GRID METHODS 3243 Ta b le 3 .3 CPU time comparison of several linear sparse system solvers for (3.4) in the Chebyshev– Legendre case: PCG, AMG, UMFPack. The iteration tolerance is10−14. (In this table, the biggest level number of one-dimensional grids is bounded by10; i.e.,X q d = ⋃ d⩽|i|1⩽q, |is|≤10,s=1,...,d. X i1 × X i2 ×···×X id). d q n nnz PCG Matrix forming AMG UMF fact UMF solv 2 12 18433 83981 0.403 0.784 0.069 0.081 0.007 13 34817 165901 0.993 1.500 0.153 0.198 0.017 14 63489 309261 2.300 2.740 0.341 0.487 0.035 15 112641 555021 4.720 4.930 0.693 1.210 0.070 16 194561 964621 13.700 8.740 1.300 3.270 0.133 3 11 18943 203689 0.699 1.800 0.155 0.350 0.025 12 47103 536721 2.650 4.760 0.656 1.990 0.051 13 111615 1361505 9.060 12.000 2.300 12.500 0.148 14 252927 3305961 29.500 29.500 7.680 77.700 0.421 15 551935 7659745 107.000 68.000 24.200 474.000 1.220 5 9 1471 25941 0.053 0.241 0.009 0.011 0.002 10 5503 129193 0.242 1.220 0.045 0.107 0.009 11 18943 559793 1.170 5.200 0.342 1.02 0.047 12 61183 2182593 6.080 20.200 1.830 11.700 0.208 13 187903 7835233 31.000 74.200 8.380 154.000 0.949 Ta b le 3 .4 The memory usage of AMG and UMFPack in MByte. d q n nnz AMG memory UMF memory 2 12 18433 83981 1.80 5.7 13 34817 165901 3.49 10.7 14 63489 309261 6.45 19.9 15 112641 555021 11.51 41.1 16 194561 964621 19.95 84.3 3 11 18943 203689 3.20 9.8 12 47103 536721 8.30 34.3 13 111615 1361505 20.69 120.0 14 252927 3305961 49.82 401.0 15 551935 7659745 115.82 1381.8 5 9 1471 25941 0.38 0.9 10 5503 129193 1.84 3.8 11 18943 559793 7.88 18.0 12 61183 2182593 30.56 88.6 13 187903 7835233 108.64 528.6 I nT ab l e3. 3,w ep re s e n tt h en u m e ri c alpe rformanceofseverallinearsystemsolvers on the Chebyshev–Legendre–Galerkin method. We note that the direct sparse solver UMFPack needs significant CPU time and memory for the initial factorization, so it is well suited only if one needs to solve the equation repeatedly, as in a time-dependent problem. For high-dimensional problems, the PCG method is a better choice as the factorization of the system matrix in UMF- Pack becomes too expensive in terms of both memory (see Table 3.4) and CPU time. The AMG method is a better choice only for low-dimensional problems (d =2 ,3) with a single right-hand side. In fact, the CPU time and memory cost of UMFPack factorization are of order O(n 1.5)a n dO(nlogn), respectively, which is not optimal in terms of the number of unknowns. Recently, Xia and Gu [24] proposed a structured multifrontal method for some discretized problems. Under certain conditions, the CPU time and memory Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. 3244 JIE SHEN AND HAIJUN YU costs for factorization are of orderO(nlogn)a n dO(n), respectively. Note that, after the factorization, the CPU time spent in solving the linear system is proportional to the memory usage. (See also [23] for anO(n) cost superfast multifrontal method for a special case.) Dr. Xia has graciously allowed us to make some initial tests using the prerelease version of his SuperMF software. In Figure 3.2, we present a comparison of the CPU time and memory costs with the UMFPack and SuperMF. It is clear that the SuperMFoutperformstheUMFPacksignificantlyandthattheCPUtimeandmemory costs of SuperMF do appear to be of orderO(nlogn)a n dO(n), making the overall Chebyshev–Legendre–Galerkin algorithm quasi-optimal. 10 4 10 5 10 6 10 710 −3 10 −2 10 −1 10 0 10 1 10 2 10 3 number of nonzeros seconds sparse grid CPU time for d=5 UMFPack partition SuperMF partition 0 1 2 3 4 5 6 7 8 x 10 6 0 100 200 300 400 500 600 number of nonzeros MBs sparse grid storage for d=5 UMFPack partition SuperMF partition Fig. 3.2 . The comparison of CPU times and memory usage between the UMFPack and Su- perMF methods at d =5 . The left figure plots the CPU factorization time versus the number of nonzeros. The right figure plots the the memory usage in the factorization process versus the number of nonzeros. 4. Numerical results and discussion. In this section, we present some nu- merical results for solving (3.1). The goal is to examine the convergence behavior of the sparse spectral methods for different classes of functions. We consider the following four exact solutions of (3.1): u1(x)= d∏ i=1 sin ( kπxi +1 2 ) ,u 2(x)= d∑ i=1 [ φk(xi) ∏ j̸=i sin ( πxj +1 2 )] , u3(x)= d∏ i=1 gk(xi),u 4(x)= d∏ i=1 ( hk(xi)−1+ xi 2 ) , where φk(x)= esin(kπx+1 2 ) −1,k =1 ,2,..., gk(x)=( 1 −x2)(1+ x)log(1+ x+10−k),k =1 ,2,..., hk(x)= { 0,x ⩽ 0, xk,x > 0, k =2 ,3,.... Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. EFFICIENT SPECTRAL SPARSE GRID METHODS 3245 The corresponding forcing functionsf are f1(x)= αu1(x)+ dk2π2 4 u1(x), f2(x)= αu2(x)+ d∑ i=1 [( (d−1)π2 4 φk(xi)−φ′′ k(xi) ) ∏ j̸=i sin ( πxj +1 2 )] , f3(x)= αu3(x)+ d∑ i=1 [ −g′′ k(xi) ∏ j̸=i gk(xj) ] , f4(x)= αu4(x)+ u4(x) d∑ i=1 k(k −1)hk−2 hk(xi)−(1+ xi)/2. We recall that the convergence rate of the sparse spectral methods depends on the regularity of solutions in the weighted Korobov spaces [21]. More precisely, let us define the hyperbolic cross space (4.1) HN =s p a n{Πd i=1Lki(xi):Π d i=1 max(1,ki) ≤N} and the weighted Korobov space (4.2) Km(Id)= {v : ∂k xu ∈L2 ωk,k(Id), 0 ≤ki ≤m, i=1 ,2,...,d }, where k =( k1,k2,...,k d)a n dωk,k =Πd i=1(1−x2 i)ki. It is shown in [21] that (4.3) inf vN∈HN ∥v −vN∥L2 ≤N−m|v|Km, where |v|2 Km = ∑ |k|l∞ =m ∥∂k xu∥2 L2 ωm+k,m+k . We note that, for fixedd and N = Nq,a sq →∞ , the hyperbolic cross spaceHN is essentially equivalent to the spaceVq d in (2.12). So the error estimate (4.3) holds with HN replaced byVq d . Therefore, it is clear that for the sparse spectral method to perform well, the solution should have higher regularity in the Korobov space or, in other words, be well represented by the expansion coefficients in the spaceVq d or the hyperbolic cross space HN. In Figure 4.1, we plot the amplitude of Chebyshev expansion coefficients for the four exact solutions in the two-dimensional case. For the sakeof comparison,we alsorecallthe errorestimates for the usual spectral methods (cf., for instance, [21]): (4.4) inf vN∈XN ∥v −vN∥L2 ≤N−m|v|˜Hmω , where (4.5) XN =s p a n{Πd i=1Lki(xi): ki ≤N, i =1 ,2,...,d }, and the weighted Sobolev space (4.6) ˜Hm ω(Id)= { v : ∂k xu ∈L2 ωk,k(Id), d∑ i=1 ki ≤m } , Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. 3246 JIE SHEN AND HAIJUN YU with|v|2 ˜Hm ω = ∑∑d i=1 ki=m ∥∂k xu∥2 L2 ωm+k,m+k . WenotethatCard( HN)= O(N logd−1 N), while Card(XN)= O(Nd). Therefore, the sparse spectral methods will be much bet- ter than the full grid spectral method for functions with similar regularity indexm in both weighted Sobolev and weighted Korobov spaces. Note that we always have K m(Id) ⊂ ˜Hm ω(Id). However, for very smooth functions such as isotropic analytical functions, both the sparse spectral method and the full grid spectral method will converge exponentially fast (with respect to the number of unknowns), so there is not much advantage in using a sparse spectral method. 10 20 30 40 50 60 10 20 30 40 50 60 -35 -30 -25 -20 -15 -10 -5 0 20 40 60 80 100 120 0 20 40 60 80 100 120 -40 -35 -30 -25 -20 -15 -10 -5 0 100 200 300 400 500 0 100 200 300 400 500 -35 -30 -25 -20 -15 -10 -5 0 200 400 600 800 1000 0 200 400 600 800 1000 -35 -30 -25 -20 -15 -10 -5 Fig. 4.1 . The two-dimensional Chebyshev spectral coefficients of the exact solutionsu1(x), u2(x),u 3(x),u 4(x) with k =2 , 2, 3, 3, respectively. The logarithms of the absolute values of the coefficients are plotted. Case 1. With f(x)= f1(x), the exact solution is a tensor product of one- dimensional analytic functions. In this case, both estimates (4.3) and (4.4) are valid for anym> 0. So the sparse spectral method does not hold much advantage over the usual full grid spectral method. This observation is also consistent with the spectrum shown in Figure 4.1. InFigure 4.2, wepresentthe L 2 ωerrorofthe solutionsobtained by the Chebyshev– Legendre–Galerkin method on full grid and sparse grid. The results indicate that the sparse grid method has similar convergence rate as the full grid method in terms of the number of unknowns, while the results with the sparse grid method are sightly better in higher dimensions. Case 2. With f(x)= f 2(x). The exact solution is analytic but anisotropic. Figure 4.3shows that the sparsegrid method is much better than the full grid method. Case 3. f(x)= f3(x) withk = 3. The exact solution is a product of several one- dimensionalfunctions withsingularitynearoneboundary. Figure4.4showsthe results of Chebyshev–Legendre–Galerkin method on full grids and sparse grids. We observe Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. EFFICIENT SPECTRAL SPARSE GRID METHODS 3247 10 0 10 1 10 2 10 3 10 4 10 5 10 6 10 −16 10 −14 10 −12 10 −10 10 −8 10 −6 10 −4 10 −2 10 0 number of grid points L2 error L2 error of solution d=2 full d=3 full d=4 full d=5 full d=1 d=2 sparse d=3 sparse d=4 sparse d=5 sparse Fig. 4.2. Convergence history of the Chebyshev–Legendre–Galerkin method on full grid (solid lines) and sparse grid (dotted lines) for Poisson’s equation with right-hand side function f1(x), k =1 . 10 0 10 1 10 2 10 3 10 4 10 5 10 6 10 7 10 8 10 −16 10 −14 10 −12 10 −10 10 −8 10 −6 10 −4 10 −2 10 0 10 2 number of grid points L2 error L2 error of solution d=2 full d=3 full d=4 full d=5 full d=1 d=2 sparse d=3 sparse d=4 sparse d=5 sparse Fig. 4.3. The numerical results of the Chebyshev–Legendre–Galerkin method on full grid and sparse grid for Poisson’s equation with right-hand side functionf2(x), k =2 . Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. 3248 JIE SHEN AND HAIJUN YU 10 0 10 1 10 2 10 3 10 4 10 5 10 6 10 7 10 −16 10 −14 10 −12 10 −10 10 −8 10 −6 10 −4 10 −2 10 0 number of grid points L2 error L2 error of solution d=2 full d=3 full d=4 full d=5 full d=1 d=2 sparse d=3 sparse d=4 sparse d=5 sparse Fig. 4.4. The Chebyshev–Legendre–Galerkin method on full grid and sparse grid for Poisson’s equation with right-hand side functionf3(x), k =3 . 10 0 10 1 10 2 10 3 10 4 10 5 10 6 10 710 −7 10 −6 10 −5 10 −4 10 −3 10 −2 10 −1 10 0 number of grid points L2 error L2 error of solution d=2 full d=3 full d=1 d=2 sparse d=3 sparse d=4 sparse d=5 sparse Fig. 4.5. The Chebyshev–Legendre–Galerkin method on full grid (solid lines) and sparse grid (dotted lines) for Poisson’s equation with right-hand side functionf4(x), k =3 . Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. EFFICIENT SPECTRAL SPARSE GRID METHODS 3249 that the sparse grid method is also better than the full grid method for this problem. Case 4. f(x)= f4(x) with k = 3. The exact solution is a product of one- dimensional functions inHk−1 2+ϵ(I)( f o ra n yϵ> 0). It is easy to see that the solution belongs toKm(Id)a n d˜Hm ω(Id) with the same indexm = k −1 2 +ϵ. Therefore, this is an ideal case for the sparse spectral method. Figure 4.5 shows that the sparse grid method is much more efficient than full grid method for this problem. 5. Concluding remarks. We presented some efficient algorithms for the imple- mentation of sparse spectral methods on the sparse grid by Smolyak’s construction b a s e do nan e s t e dq u a d r a t u r e ,e . g . ,t h eChebyshev–Gauss–Lobatto quadrature. By using the properties of hierarchical bases, we developed a fast algorithm for the discrete transforms between the values at the sparse grid and the coefficients of expansion in the hierarchical bases. We also proposed two efficient sparse spectral-Galerkin methods for a model el- liptic equation in a high-dimensional cube: (i) The Chebyshev–Galerkin approach leads to a structured but nonsparse stiffness matrix. While it is too expensive to generate this matrix explicitly, the product of the system (stiffness + mass) matrix with a vector can be efficiently performed. Therefore, combined with a precondi- tioned BICGSTAB iterative procedure with a diagonal preconditioner, the sparse Chebyshev–Galerkin method, while not of optimal computational complexity, is easy to implement and very efficient, particularly in the high-dimensional case. (ii) The Chebyshev–Legendre–method leads to a sparse, symmetric and positive definite sys- tem that can be solved by using either a PCG iterative method or a sparse solver. It is remarkable that in this case the system matrix has a much lower number of nonzero elements than low-order sparse grid methods based on finite elements or wavelets. We note that in most cases, the Chebyshev–Legendre–Galerkinmethod is more effi- cient than the Chebyshev–Galerkin method, even though the former requires an extra Legendre-to-Chebyshev transform for each right-hand side function. We investigated the relative efficiency of PCG iterative method and several sparse solvers for the Chebyshev–Legendre–Galerkin method. It was found that the PCG method with the diagonal preconditioner is the easiest to implement, uses the least memory, and is very efficient, even thoughit is not of optimal computational com- plexity. On the other hand, the prerelease version of SuperMF has a theoretical quasi-optimal memory and CPU complexity, which is confirmed by our numerical results, significantly outperforms both UMFPack and AMG, and outperforms PCG in most cases if the initial factorization cost is not taken into account. However, the factorization process in the current version of SuperMF is still not robust and can be quite expensive. We also investigated the accuracy and efficiency of the sparse spectral methods for several typical classes of functions andshowed that, except for a solution which is an isotropic analytic function, the sparse spectral methods are more accurate and efficient in terms of number of unknowns,than the full grid spectral method. This paper is a first step toward developing efficient sparse spectral methods for high-dimensional PDEs. The algorithms developed in this paper are essential for any sparse spectral method in high dimension and enable us to solve some high- dimensionalequationsat areasonablecost. While weconsideredamodel elliptic equa- tion with Dirichlet boundary conditions only as an example, the methods presented in this paper can be easily extended to the same equation with different boundary con- ditions and to more general equations with the Laplacian as the principal differential operator. Copyright © by SIAM. Unauthorized reproduction of this article is prohibited. 3250 JIE SHEN AND HAIJUN YU Acknowledgment. The authors would like to thank Dr. Jianlin Xia for his permission and assistance in using his prerelease version of the SuperMF package. REFERENCES [1] R. Balder and C. Zenger , The solution of multidimensional real Helmholtz equations on sparse grids, SIAM J. Sci. Comput., 17 (1996), pp. 631–646. [2] V. Barthelmann, E. Novak, and K. Ritter , High dimensional polynomial interpolation on sparse grids, Adv. Comput. Math., 12 (2000), pp. 273–288. [3] H.-J. Bungartz , An adaptive Poisson solver using hierarchical bases and sparse grids,i n Iterative Methods in Linear Algebra, R. Beauwens and P. de Groen, eds., North–Holland, Amsterdam, 1992, pp. 293–310. [4] H.-J. Bungartz, A multigrid algorithm for higher order finite elements on sparse grids, Elec- tron. Trans. Numer. Anal., 6 (1997), pp. 63–77. [5] H.-J. Bungartz and M. Griebel , A note on the complexity of solving Poisson’s equation for spaces of bounded mixed derivatives, J. Complexity, 15 (1999), pp. 167–199. [6] H.-J. Bungartz and M. Griebel , Sparse grids, Acta Numer., 13 (2004), pp. 147–269. [7] T. A. Davis, Algorithm 832: UMFPACK, an unsymmetric-pattern multifrontal method,A C M Trans. Math. Software, 30 (2004), pp. 196–199. [8] T. A. Davis, A column pre-ordering strategy for the unsymmetric-pattern multifrontal method, ACM Trans. Math. Software, 30 (2004), pp. 165–195. [9] W. S. Don and D. Gottlieb , The Chebyshev–Legendre method: Implementing Legendre meth- ods on Chebyshev points, SIAM J. Numer. Anal., 31 (1994), pp. 1519–1534. [10] T. Gerstner and M. Griebel , Numerical integration using sparse grids, Numer. Algorithms, 18 (1998), pp. 209–232. [11] V. Gradinaru , Fourier transform on sparse grids: Code design and the time dependent Schr¨odinger equation, Computing, 80 (2007), pp. 1–22. [12] M. Griebel and J. Hamaekers , Sparse grids for the Schr¨odinger equation, M2AN Math. Model. Numer. Anal., 41 (2007), pp. 215–247. [13] D. B. Haidvogel and T. A. Zang , The accurate solution of Poisson’s equation by expansion in Chebyshev polynomials, J. Comput. Phys., 30 (1979), pp. 167–180. [14] K. Hallatschek, Fouriertransformation auf d¨unnen Gittern mit hierarchischen Basen,N u - mer. Math., 63 (1992), pp. 83–97. [15] A. Klimke , Efficient Construction of Hierarchical Polynomial Sparse Grid Interpolants Us- ing the Fast Discrete Cosine Transform, IANS preprint 2006/007, Universit¨at Stuttgart, Stuttgart, Germany, 2006. [16] Y. Notay, An aggregation-based algebraic multigrid method , Electron. Trans. Numer. Anal., 37 (2010), pp. 123–146. [17] C. Schw ab and R. Stevenson , Adaptive wavelet algorithms for elliptic PDE’s on product domains, Math. Comp., 77 (2008), pp. 71–92. [18] J. Shen, Efficient spectral-Galerkin methodI. Direct solvers for second- and fourth-order equa- tions using Legendre polynomials, SIAM J. Sci. Comput., 15 (1994), pp. 1489–1505. [19] J. Shen , Efficient spectral-Galerkin method II. Direct solvers for second- and fourth-order equations using Chebyshev polynomials, SIAM J. Sci. Comput., 16 (1995), pp. 74–87. [20] J. Shen, Efficient Chebyshev-Legendre Galerkin methods for elliptic problems, in Proceedings of ICOSAHOM’95, A. V. Ilin and R. Scott, eds., Houston J. Math., 1996, pp. 233–240. [21] J. Shen and L.-L. W ang , Sparse spectral approximations of high-dimensional problems based on hyperbolic cross, SIAM J. Numer. Anal., 48 (2010), pp. 1087–1109. [22] S. A. Smolyak , Quadrature and interpolation formulas for tensor products of certain classes of functions, Soviet Math. Dokl., 4 (1963), pp. 240–243 (in English); Dokl. Akad. Nauk SSSR, 148 (1963), pp. 1042–1045 (in Russian). [23] J. Xia, S. Chandrasekaran, M. Gu, and X. S. Li , Superfast multifrontal method for large structured linear systems of equations, SIAM J. Matrix Anal. Appl., 31 (2009), pp. 1382– 1411. [24] J. Xia and M. Gu , Robust Structured Multifrontal Factorization and Preconditioning for Dis- cretized PDEs, preprint, 2009; available online at http://www.math.purdue.edu/∼xiaj/ work/mfhssr.pdf.

采集于

查看校方原文 ↗