I. Introduction
There is a myriad of application areas in the field of scientific computing and engineering where numerical solutions to partial differential equations (PDEs) are required to be computed. Numerical methods like the finite difference method (FDM), finite element method (FEM), finite volume method (FVM) and multigrid method are used to approximate the solutions to these PDEs. The key components of these algorithms are the stencil and pointwise operations. Stencils are defined as a linear transformation, \begin{equation*} S(x)_i=\Sigma_j \alpha_j x_{i+j},\tag{1}\end{equation*} where with denoting the number of space di-mensions' denotes the weight and is the multidimensional data array.