pce_legendre_test, a MATLAB code which calls pce_legendre(), which sets up the system matrix for a polynomial chaos expansion, using Legendre polynomials with a linear factor, applied to a 2D PDE with a stochastic diffusion coefficient.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
pce_legendre, a MATLAB code which sets up the system matrix for a polynomial chaos expansion, using Legendre polynomials with a linear factor, applied to a 2D PDE with a stochastic diffusion coefficient.
[nxy,bxy,fxy]=pce_legendre_linear_assemble(3,2)
[nxy,bxy,fxy]=pce_legendre_linear_assemble(4,1)
[nxy,bxy,fxy]=pce_legendre_linear_assemble(4,2)
[nxy,bxy,fxy]=pce_legendre_linear_assemble(4,3)
[nxy,bxy,fxy]=pce_legendre_linear_assemble(4,4)