linesearch.py 535 B

123456789101112131415161718
  1. # This file is not meant for public use and will be removed in SciPy v2.0.0.
  2. # Use the `scipy.optimize` namespace for importing the functions
  3. # included below.
  4. from scipy._lib.deprecation import _sub_module_deprecation
  5. __all__ = ["line_search"] # noqa: F822
  6. def __dir__():
  7. return __all__
  8. def __getattr__(name):
  9. return _sub_module_deprecation(sub_package="optimize", module="linesearch",
  10. private_modules=["_linesearch"], all=__all__,
  11. attribute=name)