@@ -768,11 +768,12 @@ def is_sptriangular(A):
768
768
--------
769
769
>>> import numpy as np
770
770
>>> from scipy.sparse import csc_array, eye_array
771
+ >>> from scipy.sparse.linalg import is_sptriangular
771
772
>>> A = csc_array([[3, 0, 0], [1, -1, 0], [2, 0, 1]], dtype=float)
772
- >>> scipy.sparse.linalg. is_sptriangular(A)
773
+ >>> is_sptriangular(A)
773
774
(True, False)
774
- >>> D = eye_array((3,3) , format='csr')
775
- >>> scipy.sparse.linalg. is_sptriangular(D)
775
+ >>> D = eye_array(3 , format='csr')
776
+ >>> is_sptriangular(D)
776
777
(True, True)
777
778
"""
778
779
if not (issparse (A ) and A .format in ("csc" , "csr" , "coo" , "dia" , "dok" , "lil" )):
@@ -841,12 +842,13 @@ def spbandwidth(A):
841
842
Examples
842
843
--------
843
844
>>> import numpy as np
845
+ >>> from scipy.sparse.linalg import spbandwidth
844
846
>>> from scipy.sparse import csc_array, eye_array
845
847
>>> A = csc_array([[3, 0, 0], [1, -1, 0], [2, 0, 1]], dtype=float)
846
- >>> scipy.sparse.linalg. spbandwidth(A)
848
+ >>> spbandwidth(A)
847
849
(2, 0)
848
- >>> D = eye_array((3,3) , format='csr')
849
- >>> scipy.sparse.linalg. spbandwidth(D)
850
+ >>> D = eye_array(3 , format='csr')
851
+ >>> spbandwidth(D)
850
852
(0, 0)
851
853
"""
852
854
if not (issparse (A ) and A .format in ("csc" , "csr" , "coo" , "dia" , "dok" )):
0 commit comments