__init__.py 4.48 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
17
from .multi_domain import MultiDomain
18
from .field import Field
19
from .multi_field import MultiField
Philipp Arras's avatar
Philipp Arras committed
20

Martin Reinecke's avatar
Martin Reinecke committed
21
from .operators.operator import Operator
Philipp Arras's avatar
Philipp Arras committed
22
from .operators.adder import Adder
Martin Reinecke's avatar
Martin Reinecke committed
23
from .operators.diagonal_operator import DiagonalOperator
Martin Reinecke's avatar
Martin Reinecke committed
24
from .operators.distributors import DOFDistributor, PowerDistributor
Philipp Arras's avatar
Philipp Arras committed
25
from .operators.domain_tuple_field_inserter import DomainTupleFieldInserter
26
from .operators.contraction_operator import ContractionOperator
27
from .operators.linear_interpolation import LinearInterpolator
Martin Reinecke's avatar
Martin Reinecke committed
28 29
from .operators.endomorphic_operator import EndomorphicOperator
from .operators.exp_transform import ExpTransform
Martin Reinecke's avatar
Martin Reinecke committed
30 31 32
from .operators.harmonic_operators import (
    FFTOperator, HartleyOperator, SHTOperator, HarmonicTransformOperator,
    HarmonicSmoothingOperator)
Martin Reinecke's avatar
Martin Reinecke committed
33
from .operators.field_zero_padder import FieldZeroPadder
Martin Reinecke's avatar
Martin Reinecke committed
34 35 36 37
from .operators.inversion_enabler import InversionEnabler
from .operators.linear_operator import LinearOperator
from .operators.mask_operator import MaskOperator
from .operators.qht_operator import QHTOperator
38
from .operators.regridding_operator import RegriddingOperator
Martin Reinecke's avatar
Martin Reinecke committed
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.symmetrizing_operator import SymmetrizingOperator
44
from .operators.block_diagonal_operator import BlockDiagonalOperator
45
from .operators.outer_product_operator import OuterProduct
Martin Reinecke's avatar
Martin Reinecke committed
46
from .operators.simple_linear_operators import (
47
    VdotOperator, ConjugationOperator, Realizer,
48
    FieldAdapter, ducktape, GeometryRemover, NullOperator)
Philipp Arras's avatar
Philipp Arras committed
49
from .operators.value_inserter import ValueInserter
Martin Reinecke's avatar
Martin Reinecke committed
50
from .operators.energy_operators import (
Martin Reinecke's avatar
Martin Reinecke committed
51
    EnergyOperator, GaussianEnergy, PoissonianEnergy, InverseGammaLikelihood,
Martin Reinecke's avatar
Martin Reinecke committed
52
    BernoulliEnergy, StandardHamiltonian, AveragedEnergy)
53
from .operators.convolution_operators import FuncConvolutionOperator
Martin Reinecke's avatar
Martin Reinecke committed
54

55
from .probing import probe_with_posterior_samples, probe_diagonal, \
56
    StatCalculator
Martin Reinecke's avatar
Martin Reinecke committed
57 58

from .minimization.line_search import LineSearch
Martin Reinecke's avatar
Martin Reinecke committed
59
from .minimization.iteration_controllers import (
60 61
    IterationController, GradientNormController, DeltaEnergyController,
    GradInfNormController)
Martin Reinecke's avatar
Martin Reinecke committed
62 63 64
from .minimization.minimizer import Minimizer
from .minimization.conjugate_gradient import ConjugateGradient
from .minimization.nonlinear_cg import NonlinearCG
65
from .minimization.descent_minimizers import (
66 67
    DescentMinimizer, SteepestDescent, VL_BFGS, L_BFGS, RelaxedNewton,
    NewtonCG)
Martin Reinecke's avatar
Martin Reinecke committed
68
from .minimization.scipy_minimizer import L_BFGS_B
Martin Reinecke's avatar
Martin Reinecke committed
69 70
from .minimization.energy import Energy
from .minimization.quadratic_energy import QuadraticEnergy
Martin Reinecke's avatar
Martin Reinecke committed
71
from .minimization.energy_adapter import EnergyAdapter
72
from .minimization.metric_gaussian_kl import MetricGaussianKL
Martin Reinecke's avatar
Martin Reinecke committed
73

Martin Reinecke's avatar
Martin Reinecke committed
74
from .sugar import *
Martin Reinecke's avatar
Martin Reinecke committed
75
from .plot import Plot
Philipp Arras's avatar
Philipp Arras committed
76

Martin Reinecke's avatar
Martin Reinecke committed
77 78
from .library.smooth_linear_amplitude import (
    SLAmplitude, LinearSLAmplitude, CepstrumOperator)
Philipp Arras's avatar
Philipp Arras committed
79
from .library.inverse_gamma_operator import InverseGammaOperator
Martin Reinecke's avatar
Martin Reinecke committed
80
from .library.los_response import LOSResponse
Philipp Arras's avatar
Philipp Arras committed
81 82
from .library.dynamic_operator import (dynamic_operator,
                                       dynamic_lightcone_operator)
83
from .library.light_cone_operator import LightConeOperator
Martin Reinecke's avatar
Martin Reinecke committed
84

Philipp Arras's avatar
Philipp Arras committed
85
from .library.wiener_filter_curvature import WienerFilterCurvature
86
from .library.correlated_fields import CorrelatedField, MfCorrelatedField
87
from .library.adjust_variances import (make_adjust_variances_hamiltonian,
Martin Reinecke's avatar
Martin Reinecke committed
88
                                       do_adjust_variances)
Philipp Arras's avatar
Philipp Arras committed
89
from .library.nfft import NFFT
Philipp Arras's avatar
Philipp Arras committed
90
from .library.gridder import GridderMaker
Martin Reinecke's avatar
Martin Reinecke committed
91

Philipp Arras's avatar
Philipp Arras committed
92
from . import extra
93

94
from .utilities import memo, frozendict
Martin Reinecke's avatar
Martin Reinecke committed
95

96 97
from .logger import logger

Martin Reinecke's avatar
Martin Reinecke committed
98
from .linearization import Linearization
99

Martin Reinecke's avatar
Martin Reinecke committed
100 101
from . import internal_config
_scheme = internal_config.parallelization_scheme()
Martin Reinecke's avatar
Martin Reinecke committed
102 103 104
if _scheme == "Samples":
    from .minimization.metric_gaussian_kl_mpi import MetricGaussianKL_MPI

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