Skip to content

Commit 68fd2c7

Browse files
committed
bug: fix issue in laplacian missing to pass kind
1 parent 49b0f3b commit 68fd2c7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pylops/basicoperators/laplacian.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,6 @@ def _calc_l2op(
126126
l2op *= weights[0]
127127
for ax, samp, weight in zip(axes[1:], sampling[1:], weights[1:]):
128128
l2op += weight * SecondDerivative(
129-
dims, axis=ax, sampling=samp, edge=edge, dtype=dtype
129+
dims, axis=ax, sampling=samp, edge=edge, kind=kind, dtype=dtype
130130
)
131131
return l2op

pylops/basicoperators/secondderivative.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class SecondDerivative(LinearOperator):
6464
direction of a multi-dimensional array.
6565
6666
For simplicity, given a one dimensional array, the second-order centered
67-
first derivative is:
67+
second derivative is:
6868
6969
.. math::
7070
y[i] = (x[i+1] - 2x[i] + x[i-1]) / \Delta x^2

0 commit comments

Comments
 (0)