special_matrices.py 749 B

12345678910111213141516171819202122
  1. # This file is not meant for public use and will be removed in SciPy v2.0.0.
  2. # Use the `scipy.linalg` namespace for importing the functions
  3. # included below.
  4. from scipy._lib.deprecation import _sub_module_deprecation
  5. __all__ = [ # noqa: F822
  6. 'toeplitz', 'circulant', 'hankel',
  7. 'hadamard', 'leslie', 'block_diag', 'companion',
  8. 'helmert', 'hilbert', 'invhilbert', 'pascal', 'invpascal', 'dft',
  9. 'fiedler', 'fiedler_companion', 'convolution_matrix'
  10. ]
  11. def __dir__():
  12. return __all__
  13. def __getattr__(name):
  14. return _sub_module_deprecation(sub_package="linalg", module="special_matrices",
  15. private_modules=["_special_matrices"], all=__all__,
  16. attribute=name)