|
1 | | -# isort: skip_file |
2 | | -from .LinearOperator import LinearOperator |
3 | | -from .basicoperators import Regression |
4 | | -from .basicoperators import LinearRegression |
5 | | -from .basicoperators import MatrixMult |
6 | | -from .basicoperators import Identity |
7 | | -from .basicoperators import Zero |
8 | | -from .basicoperators import Diagonal |
9 | | -from .basicoperators import Flip |
10 | | -from .basicoperators import Symmetrize |
11 | | -from .basicoperators import Spread |
12 | | -from .basicoperators import Transpose |
13 | | -from .basicoperators import Roll |
14 | | -from .basicoperators import Pad |
15 | | -from .basicoperators import Sum |
16 | | -from .basicoperators import FunctionOperator |
17 | | -from .basicoperators import MemoizeOperator |
| 1 | +""" |
| 2 | +PyLops |
| 3 | +====== |
18 | 4 |
|
19 | | -from .basicoperators import VStack |
20 | | -from .basicoperators import HStack |
21 | | -from .basicoperators import Block |
22 | | -from .basicoperators import BlockDiag |
23 | | -from .basicoperators import Kronecker |
24 | | -from .basicoperators import Real |
25 | | -from .basicoperators import Imag |
26 | | -from .basicoperators import Conj |
| 5 | +Linear operators and inverse problems are at the core of many of the most used |
| 6 | +algorithms in signal processing, image processing, and remote sensing. |
| 7 | +When dealing with small-scale problems, the Python numerical scientific |
| 8 | +libraries `numpy <http://www.numpy.org>`_ |
| 9 | +and `scipy <http://www.scipy.org/scipylib/index.html>`_ allow to perform most |
| 10 | +of the underlying matrix operations (e.g., computation of matrix-vector |
| 11 | +products and manipulation of matrices) in a simple and expressive way. |
27 | 12 |
|
28 | | -from .basicoperators import CausalIntegration |
29 | | -from .basicoperators import FirstDerivative |
30 | | -from .basicoperators import SecondDerivative |
31 | | -from .basicoperators import Laplacian |
32 | | -from .basicoperators import Gradient |
33 | | -from .basicoperators import FirstDirectionalDerivative |
34 | | -from .basicoperators import SecondDirectionalDerivative |
35 | | -from .basicoperators import Restriction |
36 | | -from .basicoperators import Smoothing1D |
37 | | -from .basicoperators import Smoothing2D |
| 13 | +Many useful operators, however, do not lend themselves to an explicit matrix |
| 14 | +representation when used to solve large-scale problems. PyLops operators, |
| 15 | +on the other hand, still represent a matrix and can be treated in a similar |
| 16 | +way, but do not rely on the explicit creation of a dense (or sparse) matrix |
| 17 | +itself. Conversely, the forward and adjoint operators are represented by small |
| 18 | +pieces of codes that mimic the effect of the matrix on a vector or |
| 19 | +another matrix. |
38 | 20 |
|
39 | | -from .avo.poststack import PoststackLinearModelling |
40 | | -from .avo.prestack import PrestackWaveletModelling, PrestackLinearModelling |
| 21 | +Luckily, many iterative methods (e.g. cg, lsqr) do not need to know the |
| 22 | +individual entries of a matrix to solve a linear system. Such solvers only |
| 23 | +require the computation of forward and adjoint matrix-vector products as |
| 24 | +done for any of the PyLops operators. |
41 | 25 |
|
42 | | -from .optimization.solver import cg, cgls |
43 | | -from .optimization.leastsquares import NormalEquationsInversion, RegularizedInversion |
44 | | -from .optimization.leastsquares import PreconditionedInversion |
45 | | -from .optimization.sparsity import IRLS, OMP, ISTA, FISTA, SPGL1, SplitBregman |
| 26 | +PyLops provides |
| 27 | + 1. A general construct for creating Linear Operators |
| 28 | + 2. An extensive set of commonly used linear operators |
| 29 | + 3. A set of least-squares and sparse solvers for linear operators. |
46 | 30 |
|
47 | | -from .utils.seismicevents import makeaxis, linear2d, parabolic2d |
48 | | -from .utils.tapers import hanningtaper, cosinetaper, taper2d, taper3d |
49 | | -from .utils.wavelets import ricker, gaussian |
50 | | -from .utils.utils import Report |
51 | | -from .utils.deps import * |
| 31 | +Available subpackages |
| 32 | +--------------------- |
| 33 | +basicoperators |
| 34 | + Basic Linear Operators |
| 35 | +signalprocessing |
| 36 | + Linear Operators for Signal Processing operations |
| 37 | +avo |
| 38 | + Linear Operators for Seismic Reservoir Characterization |
| 39 | +waveeqprocessing |
| 40 | + Linear Operators for Wave Equation oriented processing |
| 41 | +optimization |
| 42 | + Solvers |
| 43 | +utils |
| 44 | + Utility routines |
| 45 | +
|
| 46 | +""" |
52 | 47 |
|
53 | | -from . import avo |
54 | | -from . import basicoperators |
55 | | -from . import optimization |
56 | | -from . import signalprocessing |
57 | | -from . import utils |
58 | | -from . import waveeqprocessing |
| 48 | +from .LinearOperator import LinearOperator |
| 49 | +from .basicoperators import * |
| 50 | + |
| 51 | +from . import ( |
| 52 | + avo, |
| 53 | + basicoperators, |
| 54 | + optimization, |
| 55 | + signalprocessing, |
| 56 | + utils, |
| 57 | + waveeqprocessing, |
| 58 | +) |
| 59 | +from .avo.poststack import * |
| 60 | +from .avo.prestack import * |
| 61 | +from .optimization.solver import * |
| 62 | +from .optimization.leastsquares import * |
| 63 | +from .optimization.sparsity import * |
| 64 | +from .utils.seismicevents import * |
| 65 | +from .utils.tapers import * |
| 66 | +from .utils.utils import Report |
| 67 | +from .utils.wavelets import * |
59 | 68 |
|
60 | 69 | try: |
61 | 70 | from .version import version as __version__ |
|
0 commit comments