flinalg.py 677 B

1234567891011121314151617181920212223
  1. # This file is not meant for public use and will be removed in SciPy v2.0.0.
  2. import warnings
  3. from . import _flinalg_py
  4. __all__ = ['get_flinalg_funcs', 'has_column_major_storage'] # noqa: F822
  5. def __dir__():
  6. return __all__
  7. def __getattr__(name):
  8. if name not in __all__:
  9. raise AttributeError(
  10. "scipy.linalg.flinalg is deprecated and has no attribute "
  11. f"{name}. Try looking in scipy.linalg instead.")
  12. warnings.warn("The `scipy.linalg.flinalg` namespace is deprecated and "
  13. "will be removed in SciPy v2.0.0.",
  14. category=DeprecationWarning, stacklevel=2)
  15. return getattr(_flinalg_py, name)