"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mpmath/ctx_base.py" between
mpmath-0.19.tar.gz and mpmath-1.0.0.tar.gz

About: mpmath is a Python library for arbitrary-precision floating-point arithmetic.

ctx_base.py  (mpmath-0.19):ctx_base.py  (mpmath-1.0.0)
from operator import gt, lt from operator import gt, lt
from .libmp.backend import xrange from .libmp.backend import xrange
from .functions.functions import SpecialFunctions from .functions.functions import SpecialFunctions
from .functions.rszeta import RSCache from .functions.rszeta import RSCache
from .calculus.quadrature import QuadratureMethods from .calculus.quadrature import QuadratureMethods
from .calculus.inverselaplace import LaplaceTransformInversionMethods
from .calculus.calculus import CalculusMethods from .calculus.calculus import CalculusMethods
from .calculus.optimization import OptimizationMethods from .calculus.optimization import OptimizationMethods
from .calculus.odes import ODEMethods from .calculus.odes import ODEMethods
from .matrices.matrices import MatrixMethods from .matrices.matrices import MatrixMethods
from .matrices.calculus import MatrixCalculusMethods from .matrices.calculus import MatrixCalculusMethods
from .matrices.linalg import LinearAlgebraMethods from .matrices.linalg import LinearAlgebraMethods
from .matrices.eigen import Eigen from .matrices.eigen import Eigen
from .identification import IdentificationMethods from .identification import IdentificationMethods
from .visualization import VisualizationMethods from .visualization import VisualizationMethods
from . import libmp from . import libmp
class Context(object): class Context(object):
pass pass
class StandardBaseContext(Context, class StandardBaseContext(Context,
SpecialFunctions, SpecialFunctions,
RSCache, RSCache,
QuadratureMethods, QuadratureMethods,
LaplaceTransformInversionMethods,
CalculusMethods, CalculusMethods,
MatrixMethods, MatrixMethods,
MatrixCalculusMethods, MatrixCalculusMethods,
LinearAlgebraMethods, LinearAlgebraMethods,
Eigen, Eigen,
IdentificationMethods, IdentificationMethods,
OptimizationMethods, OptimizationMethods,
ODEMethods, ODEMethods,
VisualizationMethods): VisualizationMethods):
NoConvergence = libmp.NoConvergence NoConvergence = libmp.NoConvergence
ComplexResult = libmp.ComplexResult ComplexResult = libmp.ComplexResult
def __init__(ctx): def __init__(ctx):
ctx._aliases = {} ctx._aliases = {}
# Call those that need preinitialization (e.g. for wrappers) # Call those that need preinitialization (e.g. for wrappers)
SpecialFunctions.__init__(ctx) SpecialFunctions.__init__(ctx)
RSCache.__init__(ctx) RSCache.__init__(ctx)
QuadratureMethods.__init__(ctx) QuadratureMethods.__init__(ctx)
LaplaceTransformInversionMethods.__init__(ctx)
CalculusMethods.__init__(ctx) CalculusMethods.__init__(ctx)
MatrixMethods.__init__(ctx) MatrixMethods.__init__(ctx)
def _init_aliases(ctx): def _init_aliases(ctx):
for alias, value in ctx._aliases.items(): for alias, value in ctx._aliases.items():
try: try:
setattr(ctx, alias, getattr(ctx, value)) setattr(ctx, alias, getattr(ctx, value))
except AttributeError: except AttributeError:
pass pass
 End of changes. 3 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)