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

10 'SparseEfficiencyWarning', 

11 'check_shape', 

12 'csr_column_index1', 

13 'csr_column_index2', 

14 'csr_row_index', 

15 'csr_row_slice', 

16 'csr_sample_offsets', 

17 'csr_sample_values', 

18 'csr_todense', 

19 'downcast_intp_index', 

20 'get_csr_submatrix', 

21 'get_sum_dtype', 

22 'getdtype', 

23 'is_pydata_spmatrix', 

24 'isdense', 

25 'isintlike', 

26 'isscalarlike', 

27 'isshape', 

28 'operator', 

29 'to_native', 

30 'upcast', 

31 'upcast_char', 

32 'warn', 

33] 

34 

35 

36def __dir__(): 

37 return __all__ 

38 

39 

40def __getattr__(name): 

41 return _sub_module_deprecation(sub_package="sparse", module="compressed", 

42 private_modules=["_compressed"], all=__all__, 

43 attribute=name)