Laplacian

C++ API

void Laplacian(Matrix<F> &L, Int n)
void Laplacian(AbstractDistMatrix<F> &L, Int n)

Discrete Laplacian over \([0,1]\) with n grid points

void Laplacian(Matrix<F> &L, Int nx, Int ny)
void Laplacian(AbstractDistMatrix<F> &L, Int nx, Int ny)

Discrete Laplacian over \([0,1]^2\) with \(n_x \times n_y\) grid points

void Laplacian(Matrix<F> &L, Int nx, Int ny, Int nz)
void Laplacian(AbstractDistMatrix<F> &L, Int nx, Int ny, Int nz)

Discrete Laplacian over \([0,1]^3\) with \(n_x \times n_y \times n_z\) grid points

C API

ElError ElLaplacian1D_s(ElMatrix_s L, ElInt n)
ElError ElLaplacian1D_d(ElMatrix_d L, ElInt n)
ElError ElLaplacian1D_c(ElMatrix_c L, ElInt n)
ElError ElLaplacian1D_z(ElMatrix_z L, ElInt n)
ElError ElLaplacian1DDist_s(ElDistMatrix_s L, ElInt n)
ElError ElLaplacian1DDist_d(ElDistMatrix_d L, ElInt n)
ElError ElLaplacian1DDist_c(ElDistMatrix_c L, ElInt n)
ElError ElLaplacian1DDist_z(ElDistMatrix_z L, ElInt n)

Discrete Laplacian over \([0,1]\) with n grid points

ElError ElLaplacian2D_s(ElMatrix_s L, ElInt nx, ElInt ny)
ElError ElLaplacian2D_d(ElMatrix_d L, ElInt nx, ElInt ny)
ElError ElLaplacian2D_c(ElMatrix_c L, ElInt nx, ElInt ny)
ElError ElLaplacian2D_z(ElMatrix_z L, ElInt nx, ElInt ny)
ElError ElLaplacian2DDist_s(ElDistMatrix_s L, ElInt nx, ElInt ny)
ElError ElLaplacian2DDist_d(ElDistMatrix_d L, ElInt nx, ElInt ny)
ElError ElLaplacian2DDist_c(ElDistMatrix_c L, ElInt nx, ElInt ny)
ElError ElLaplacian2DDist_z(ElDistMatrix_z L, ElInt nx, ElInt ny)

Discrete Laplacian over \([0,1]^2\) with \(n_x \times n_y\) grid points

Python API

Laplacian1D(L, nx)
Laplacian2D(L, nx, ny)
Laplacian3D(L, nx, ny, nz)