__init__.py 3.81 KB
Newer Older
1
from .version import __version__
Martin Reinecke's avatar
Martin Reinecke committed
2
3

from . import dobj
Martin Reinecke's avatar
Martin Reinecke committed
4
5
6
7
8
9
10
11
12
13
14
15

from .domains.domain import Domain
from .domains.structured_domain import StructuredDomain
from .domains.unstructured_domain import UnstructuredDomain
from .domains.rg_space import RGSpace
from .domains.lm_space import LMSpace
from .domains.gl_space import GLSpace
from .domains.hp_space import HPSpace
from .domains.power_space import PowerSpace
from .domains.dof_space import DOFSpace
from .domains.log_rg_space import LogRGSpace

16
from .domain_tuple import DomainTuple
Martin Reinecke's avatar
Martin Reinecke committed
17
from .multi_domain import MultiDomain
18
from .field import Field
Martin Reinecke's avatar
Martin Reinecke committed
19
from .multi_field import MultiField
Philipp Arras's avatar
Fixups  
Philipp Arras committed
20

Martin Reinecke's avatar
Martin Reinecke committed
21
from .operators.operator import Operator
22
from .operators.central_zero_padder import CentralZeroPadder
Martin Reinecke's avatar
Martin Reinecke committed
23
from .operators.diagonal_operator import DiagonalOperator
Martin Reinecke's avatar
cleanup  
Martin Reinecke committed
24
from .operators.distributors import DOFDistributor, PowerDistributor
Martin Reinecke's avatar
Martin Reinecke committed
25
26
27
from .operators.domain_distributor import DomainDistributor
from .operators.endomorphic_operator import EndomorphicOperator
from .operators.exp_transform import ExpTransform
Martin Reinecke's avatar
Martin Reinecke committed
28
29
30
from .operators.harmonic_operators import (
    FFTOperator, HartleyOperator, SHTOperator, HarmonicTransformOperator,
    HarmonicSmoothingOperator)
Martin Reinecke's avatar
Martin Reinecke committed
31
from .operators.field_zero_padder import FieldZeroPadder
Martin Reinecke's avatar
Martin Reinecke committed
32
33
34
35
36
from .operators.inversion_enabler import InversionEnabler
from .operators.laplace_operator import LaplaceOperator
from .operators.linear_operator import LinearOperator
from .operators.mask_operator import MaskOperator
from .operators.qht_operator import QHTOperator
37
from .operators.regridding_operator import RegriddingOperator
Martin Reinecke's avatar
Martin Reinecke committed
38
39
40
41
42
43
from .operators.sampling_enabler import SamplingEnabler
from .operators.sandwich_operator import SandwichOperator
from .operators.scaling_operator import ScalingOperator
from .operators.slope_operator import SlopeOperator
from .operators.smoothness_operator import SmoothnessOperator
from .operators.symmetrizing_operator import SymmetrizingOperator
Martin Reinecke's avatar
Martin Reinecke committed
44
from .operators.block_diagonal_operator import BlockDiagonalOperator
Martin Reinecke's avatar
Martin Reinecke committed
45
46
47
from .operators.simple_linear_operators import (
    VdotOperator, SumReductionOperator, ConjugationOperator, Realizer,
    FieldAdapter, GeometryRemover, NullOperator)
Martin Reinecke's avatar
Martin Reinecke committed
48
49
50
from .operators.energy_operators import (
    EnergyOperator, GaussianEnergy, PoissonianEnergy, BernoulliEnergy,
    Hamiltonian, SampledKullbachLeiblerDivergence)
Martin Reinecke's avatar
Martin Reinecke committed
51

Martin Reinecke's avatar
Martin Reinecke committed
52
from .probing import probe_with_posterior_samples, probe_diagonal, \
53
    StatCalculator
Martin Reinecke's avatar
Martin Reinecke committed
54
55
56

from .minimization.line_search import LineSearch
from .minimization.line_search_strong_wolfe import LineSearchStrongWolfe
Martin Reinecke's avatar
Martin Reinecke committed
57
58
from .minimization.iteration_controllers import (
    IterationController, GradientNormController, DeltaEnergyController)
Martin Reinecke's avatar
Martin Reinecke committed
59
60
61
from .minimization.minimizer import Minimizer
from .minimization.conjugate_gradient import ConjugateGradient
from .minimization.nonlinear_cg import NonlinearCG
62
63
from .minimization.descent_minimizers import (
    DescentMinimizer, SteepestDescent, VL_BFGS, L_BFGS, RelaxedNewton)
Martin Reinecke's avatar
Martin Reinecke committed
64
65
from .minimization.scipy_minimizer import (ScipyMinimizer, NewtonCG, L_BFGS_B,
                                           ScipyCG)
Martin Reinecke's avatar
Martin Reinecke committed
66
67
68
from .minimization.energy import Energy
from .minimization.quadratic_energy import QuadraticEnergy
from .minimization.line_energy import LineEnergy
Martin Reinecke's avatar
Martin Reinecke committed
69
from .minimization.energy_adapter import EnergyAdapter
Martin Reinecke's avatar
Martin Reinecke committed
70

Martin Reinecke's avatar
Martin Reinecke committed
71
from .sugar import *
Martin Reinecke's avatar
Martin Reinecke committed
72
from .plotting.plot import plot, plot_finish
Philipp Arras's avatar
Fixups  
Philipp Arras committed
73

Martin Reinecke's avatar
Martin Reinecke committed
74
from .library.amplitude_model import AmplitudeModel
Martin Reinecke's avatar
Martin Reinecke committed
75
from .library.inverse_gamma_model import InverseGammaModel
Martin Reinecke's avatar
Martin Reinecke committed
76
from .library.los_response import LOSResponse
Martin Reinecke's avatar
merge  
Martin Reinecke committed
77

Philipp Arras's avatar
Fixup  
Philipp Arras committed
78
from .library.wiener_filter_curvature import WienerFilterCurvature
79
from .library.correlated_fields import CorrelatedField, MfCorrelatedField
Martin Reinecke's avatar
Martin Reinecke committed
80

Philipp Arras's avatar
Move it  
Philipp Arras committed
81
from . import extra
82

Martin Reinecke's avatar
Martin Reinecke committed
83
from .utilities import memo, frozendict
Martin Reinecke's avatar
Martin Reinecke committed
84

Martin Reinecke's avatar
Martin Reinecke committed
85
86
from .logger import logger

Martin Reinecke's avatar
Martin Reinecke committed
87
from .linearization import Linearization
88

89
# We deliberately don't set __all__ here, because we don't want people to do a
Philipp Arras's avatar
Philipp Arras committed
90
# "from nifty5 import *"; that would swamp the global namespace.