Laplacian(dims, dirs=(0, 1), weights=(1, 1), sampling=(1, 1), edge=False, dtype='float64')¶
Apply second-order centered laplacian operator to a multi-dimensional array (at least 2 dimensions are required)
- dims :
Number of samples for each dimension.
- dirs :
Directions along which laplacian is applied.
- weights :
Weight to apply to each direction (real laplacian operator if
- sampling :
dyfor each direction
- edge :
Use reduced order derivative at edges (
True) or ignore them (
- dtype :
Type of elements in input array.
- l2op :
Laplacian linear operator
The Laplacian operator applies a second derivative along two directions of a multi-dimensional array.
For simplicity, given a two dimensional array, the Laplacian is:\[y[i, j] = (x[i+1, j] + x[i-1, j] + x[i, j-1] +x[i, j+1] - 4x[i, j]) / (dx*dy)\]
- dims :