powered by
This function generates periodic boundaries by mirroring at side and top. The resulting array is four times larger than the incoming array.
buildperiodic(x)
2D quadratic array.
Returns a 2D array, which is four times larger than the incoming array.
# NOT RUN { x <- matrix(1:12, nrow = 4) out <- buildperiodic(x = x) out # }
Run the code above in your browser using DataLab