Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.9/dist-packages/scipy/sparse/construct.py: 83%

6 statements  

« prev     ^ index     » next       coverage.py v7.4.1, created at 2024-02-14 06:37 +0000

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 

5from scipy._lib.deprecation import _sub_module_deprecation 

6 

7 

8__all__ = [ # noqa: F822 

9 'block_diag', 

10 'bmat', 

11 'bsr_matrix', 

12 'check_random_state', 

13 'coo_matrix', 

14 'csc_matrix', 

15 'csr_hstack', 

16 'csr_matrix', 

17 'dia_matrix', 

18 'diags', 

19 'eye', 

20 'get_index_dtype', 

21 'hstack', 

22 'identity', 

23 'isscalarlike', 

24 'issparse', 

25 'kron', 

26 'kronsum', 

27 'numbers', 

28 'rand', 

29 'random', 

30 'rng_integers', 

31 'spdiags', 

32 'upcast', 

33 'vstack', 

34] 

35 

36 

37def __dir__(): 

38 return __all__ 

39 

40 

41def __getattr__(name): 

42 return _sub_module_deprecation(sub_package="sparse", module="construct", 

43 private_modules=["_construct"], all=__all__, 

44 attribute=name)