@@ -21,7 +21,7 @@ class Laplacian(LinearOperator):
2121 ----------
2222 dims : :obj:`tuple`
2323 Number of samples for each dimension.
24- axes : :obj:`int `, optional
24+ axes : :obj:`tuple `, optional
2525 .. versionadded:: 2.0.0
2626
2727 Axes along which the Laplacian is applied.
@@ -37,6 +37,10 @@ class Laplacian(LinearOperator):
3737 Derivative kind (``forward``, ``centered``, or ``backward``)
3838 dtype : :obj:`str`, optional
3939 Type of elements in input array.
40+ name : :obj:`str`, optional
41+ .. versionadded:: 2.0.0
42+
43+ Name of operator (to be used by :func:`pylops.utils.describe.describe`)
4044
4145 Attributes
4246 ----------
@@ -54,7 +58,7 @@ class Laplacian(LinearOperator):
5458 Raises
5559 ------
5660 ValueError
57- If ``axes``. ``weights``, and ``sampling`` do not have the same size
61+ If ``axes``, ``weights``, and ``sampling`` do not have the same size
5862
5963 Notes
6064 -----
@@ -122,6 +126,6 @@ def _calc_l2op(
122126 l2op *= weights [0 ]
123127 for ax , samp , weight in zip (axes [1 :], sampling [1 :], weights [1 :]):
124128 l2op += weight * SecondDerivative (
125- dims , axis = ax , sampling = samp , edge = edge , dtype = dtype
129+ dims , axis = ax , sampling = samp , edge = edge , kind = kind , dtype = dtype
126130 )
127131 return l2op
0 commit comments