febid.libraries.rolling.roll.stencil_gs#

stencil_gs()#

Stencil operator. Sums all the neighbors to the current cell. If a neighbor is 0 or out of the bounds, then adds cell’s current value to itself. Arrays must have the same shape. :param grid: operated array :param s: power source array :param w: over-relaxation parameter :param z_index: first array index :param y_index: second array index :param x_index: third array index :return: