Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.9/dist-packages/scipy/sparse/coo.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 'SparseEfficiencyWarning', 

10 'check_reshape_kwargs', 

11 'check_shape', 

12 'coo_matrix', 

13 'coo_matvec', 

14 'coo_tocsr', 

15 'coo_todense', 

16 'downcast_intp_index', 

17 'getdata', 

18 'getdtype', 

19 'isshape', 

20 'isspmatrix_coo', 

21 'operator', 

22 'spmatrix', 

23 'to_native', 

24 'upcast', 

25 'upcast_char', 

26 'warn', 

27] 

28 

29 

30def __dir__(): 

31 return __all__ 

32 

33 

34def __getattr__(name): 

35 return _sub_module_deprecation(sub_package="sparse", module="coo", 

36 private_modules=["_coo"], all=__all__, 

37 attribute=name)