Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,4 @@ A list of video tutorials to learn more about PyLops:
* Alex Rakowski, alex-rakowski
* David Sollberger, solldavid
* Gustavo Coelho, guaacoelho
* Shaowen Wang, GeophyAI
3 changes: 2 additions & 1 deletion docs/source/credits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ Contributors
* `Fedor Goncharov <https://github.com/fedor-goncharov>`_, fedor-goncharov
* `Alex Rakowski <https://github.com/alex-rakowski>`_, alex-rakowski
* `David Sollberger <https://github.com/solldavid>`_, solldavid
* `Gustavo Coelho <https://github.com/guaacoelho>`_, guaacoelho
* `Gustavo Coelho <https://github.com/guaacoelho>`_, guaacoelho
* `Shaowen Wang <https://github.com/GeophyAI>`_, GeophyAI
4 changes: 2 additions & 2 deletions docs/source/gpu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -473,11 +473,11 @@ Signal processing:
* - :class:`pylops.signalprocessing.ChirpRadon2D`
- |:white_check_mark:|
- |:white_check_mark:|
- |:red_circle:|
- |:white_check_mark:|
* - :class:`pylops.signalprocessing.ChirpRadon3D`
- |:white_check_mark:|
- |:white_check_mark:|
- |:red_circle:|
- |:white_check_mark:|
* - :class:`pylops.signalprocessing.Sliding1D`
- |:white_check_mark:|
- |:white_check_mark:|
Expand Down
4 changes: 2 additions & 2 deletions pylops/signalprocessing/_chirpradon2d.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pylops.utils.backend import get_array_module
from pylops.utils.backend import get_array_module, inplace_set
from pylops.utils.typing import NDArray


Expand Down Expand Up @@ -62,7 +62,7 @@ def _chirp_radon_2d(

# perform transform
h = ncp.zeros((2 * nx, nt)).astype(cdtype)
h[0:nx, :] = ncp.fft.fftn(data, axes=(1,)) * K
h = inplace_set(ncp.fft.fftn(data, axes=(1,)) * K, h, (slice(0, nx), slice(None)))
g = ncp.fft.ifftn(
ncp.fft.fftn(h, axes=(0,)) * ncp.fft.fftn(K0, axes=(0,)), axes=(0,)
)
Expand Down
9 changes: 6 additions & 3 deletions pylops/signalprocessing/_chirpradon3d.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np

from pylops.utils.backend import get_array_module
from pylops.utils.backend import get_array_module, inplace_set
from pylops.utils.typing import NDArray

try:
Expand Down Expand Up @@ -88,8 +88,11 @@ def _chirp_radon_3d(

# perform transform
h = ncp.zeros((2 * ny, 2 * nx, nt)).astype(cdtype)
h[0:ny, 0:nx, :] = ncp.fft.fftn(data, axes=(2,)) * K1 * K2

h = inplace_set(
ncp.fft.fftn(data, axes=(2,)) * K1 * K2,
h,
(slice(0, ny), slice(0, nx), slice(None)),
)
g = ncp.fft.ifftn(
ncp.fft.fftn(h, axes=(1,)) * ncp.fft.fftn(K01, axes=(1,)), axes=(1,)
)
Expand Down