Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/scipy/sparse/sparsetools.py: 70%
10 statements
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-12 06:31 +0000
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-12 06:31 +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.
5import warnings
6from . import _sparsetools
9__all__ = [ # noqa: F822
10 'bsr_diagonal',
11 'bsr_eldiv_bsr',
12 'bsr_elmul_bsr',
13 'bsr_ge_bsr',
14 'bsr_gt_bsr',
15 'bsr_le_bsr',
16 'bsr_lt_bsr',
17 'bsr_matmat',
18 'bsr_matvec',
19 'bsr_matvecs',
20 'bsr_maximum_bsr',
21 'bsr_minimum_bsr',
22 'bsr_minus_bsr',
23 'bsr_ne_bsr',
24 'bsr_plus_bsr',
25 'bsr_scale_columns',
26 'bsr_scale_rows',
27 'bsr_sort_indices',
28 'bsr_tocsr',
29 'bsr_transpose',
30 'coo_matvec',
31 'coo_tocsr',
32 'coo_todense',
33 'cs_graph_components',
34 'csc_diagonal',
35 'csc_eldiv_csc',
36 'csc_elmul_csc',
37 'csc_ge_csc',
38 'csc_gt_csc',
39 'csc_le_csc',
40 'csc_lt_csc',
41 'csc_matmat',
42 'csc_matmat_maxnnz',
43 'csc_matvec',
44 'csc_matvecs',
45 'csc_maximum_csc',
46 'csc_minimum_csc',
47 'csc_minus_csc',
48 'csc_ne_csc',
49 'csc_plus_csc',
50 'csc_tocsr',
51 'csr_column_index1',
52 'csr_column_index2',
53 'csr_count_blocks',
54 'csr_diagonal',
55 'csr_eldiv_csr',
56 'csr_eliminate_zeros',
57 'csr_elmul_csr',
58 'csr_ge_csr',
59 'csr_gt_csr',
60 'csr_has_canonical_format',
61 'csr_has_sorted_indices',
62 'csr_hstack',
63 'csr_le_csr',
64 'csr_lt_csr',
65 'csr_matmat',
66 'csr_matmat_maxnnz',
67 'csr_matvec',
68 'csr_matvecs',
69 'csr_maximum_csr',
70 'csr_minimum_csr',
71 'csr_minus_csr',
72 'csr_ne_csr',
73 'csr_plus_csr',
74 'csr_row_index',
75 'csr_row_slice',
76 'csr_sample_offsets',
77 'csr_sample_values',
78 'csr_scale_columns',
79 'csr_scale_rows',
80 'csr_sort_indices',
81 'csr_sum_duplicates',
82 'csr_tobsr',
83 'csr_tocsc',
84 'csr_todense',
85 'dia_matvec',
86 'expandptr',
87 'get_csr_submatrix',
88 'test_throw_error',
89]
92def __dir__():
93 return __all__
96def __getattr__(name):
97 if name not in __all__:
98 raise AttributeError(
99 "scipy.sparse.sparsetools is deprecated and has no attribute "
100 f"{name}. Try looking in scipy.sparse instead.")
102 warnings.warn(f"Please use `{name}` from the `scipy.sparse` namespace, "
103 "the `scipy.sparse.sparsetools` namespace is deprecated.",
104 category=DeprecationWarning, stacklevel=2)
106 return getattr(_sparsetools, name)