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

6 statements  

« prev     ^ index     » next       coverage.py v7.4.4, created at 2024-03-22 06:44 +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 'asmatrix', 

10 'check_reshape_kwargs', 

11 'check_shape', 

12 'downcast_intp_index', 

13 'get_index_dtype', 

14 'get_sum_dtype', 

15 'getdata', 

16 'getdtype', 

17 'is_pydata_spmatrix', 

18 'isdense', 

19 'isintlike', 

20 'ismatrix', 

21 'isscalarlike', 

22 'issequence', 

23 'isshape', 

24 'matrix', 

25 'operator', 

26 'prod', 

27 'supported_dtypes', 

28 'sys', 

29 'to_native', 

30 'upcast', 

31 'upcast_char', 

32 'upcast_scalar', 

33 'validateaxis', 

34] 

35 

36 

37def __dir__(): 

38 return __all__ 

39 

40 

41def __getattr__(name): 

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

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

44 attribute=name)