construct.py 812 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # This file is not meant for public use and will be removed in SciPy v2.0.0.
  2. # Use the `scipy.sparse` namespace for importing the functions
  3. # included below.
  4. from scipy._lib.deprecation import _sub_module_deprecation
  5. __all__ = [ # noqa: F822
  6. 'block_diag',
  7. 'bmat',
  8. 'bsr_matrix',
  9. 'coo_matrix',
  10. 'csc_matrix',
  11. 'csr_matrix',
  12. 'dia_matrix',
  13. 'diags',
  14. 'eye',
  15. 'get_index_dtype',
  16. 'hstack',
  17. 'identity',
  18. 'issparse',
  19. 'kron',
  20. 'kronsum',
  21. 'rand',
  22. 'random',
  23. 'spdiags',
  24. 'vstack',
  25. ]
  26. def __dir__():
  27. return __all__
  28. def __getattr__(name):
  29. return _sub_module_deprecation(sub_package="sparse", module="construct",
  30. private_modules=["_construct"], all=__all__,
  31. attribute=name)