Skip to content

Commit

Permalink
minor: add explicit and clinear to JaxOperator
Browse files Browse the repository at this point in the history
  • Loading branch information
mrava87 committed Jun 24, 2024
1 parent 72c30d1 commit f5205ab
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 3 deletions.
41 changes: 39 additions & 2 deletions docs/source/gpu.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _gpu:

GPU and TPU Support
===================
GPU / TPU Support
=================

Overview
--------
Expand Down Expand Up @@ -238,6 +238,43 @@ Signal processing:
- |:white_check_mark:|
- |:white_check_mark:|
- |:white_check_mark:|
* - :class:`pylops.signalprocessing.DWT`
- |:white_check_mark:|
- |:red_circle:|
- |:red_circle:|
* - :class:`pylops.signalprocessing.DWT2D`
- |:white_check_mark:|
- |:red_circle:|
- |:red_circle:|
* - :class:`pylops.signalprocessing.DCT`
- |:white_check_mark:|
- |:red_circle:|
- |:red_circle:|
* - :class:`pylops.signalprocessing.Seislet`
- |:white_check_mark:|
- |:red_circle:|
- |:red_circle:|
* - :class:`pylops.signalprocessing.Radon2D`
- |:white_check_mark:|
- |:red_circle:|
- |:red_circle:|
* - :class:`pylops.signalprocessing.Radon3D`
- |:white_check_mark:|
- |:red_circle:|
- |:red_circle:|
* - :class:`pylops.signalprocessing.ChirpRadon2D`
- |:white_check_mark:|
- |:white_check_mark:|
- |:red_circle:|
* - :class:`pylops.signalprocessing.ChirpRadon3D`
- |:white_check_mark:|
- |:white_check_mark:|
- |:red_circle:|
* - :class:`pylops.signalprocessing.Sliding1D`
- |:white_check_mark:|
- |:white_check_mark:|
- |:white_check_mark:|



.. warning::
Expand Down
10 changes: 9 additions & 1 deletion pylops/jaxoperator.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@

class JaxOperator(LinearOperator):
def __init__(self, Op: LinearOperator) -> None:
super().__init__(dtype=Op.dtype, dims=Op.dims, dimsd=Op.dimsd, name=Op.name)
super().__init__(
dtype=Op.dtype,
dims=Op.dims,
dimsd=Op.dimsd,
clinear=Op.clinear,
explicit=Op.explicit,
forceflat=Op.forceflat,
name=Op.name,
)
self._matvec = jax.jit(Op._matvec)
self._rmatvec = jax.jit(Op._rmatvec)

Expand Down

0 comments on commit f5205ab

Please sign in to comment.