Skip to content

Commit 8c8664f

Browse files
committed
Fix doctests
1 parent 34efc4d commit 8c8664f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

advanced/scipy_sparse/bsr_array.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ Examples
3535

3636
>>> mtx = sp.sparse.bsr_array((3, 4), dtype=np.int8)
3737
>>> mtx
38-
<3x4 sparse array of type '<... 'numpy.int8'>'
39-
with 0 stored elements (blocksize = 1x1) in Block Sparse Row format>
38+
<Block Sparse Row sparse array of dtype 'int8'
39+
with 0 stored elements (blocksize=1x1) and shape (3, 4)>
4040
>>> mtx.toarray()
4141
array([[0, 0, 0, 0],
4242
[0, 0, 0, 0],
@@ -46,8 +46,8 @@ Examples
4646

4747
>>> mtx = sp.sparse.bsr_array((3, 4), blocksize=(3, 2), dtype=np.int8)
4848
>>> mtx
49-
<3x4 sparse array of type '<... 'numpy.int8'>'
50-
with 0 stored elements (blocksize = 3x2) in Block Sparse Row format>
49+
<Block Sparse Row sparse array of dtype 'int8'
50+
with 0 stored elements (blocksize=3x2) and shape (3, 4)>
5151
>>> mtx.toarray()
5252
array([[0, 0, 0, 0],
5353
[0, 0, 0, 0],
@@ -62,8 +62,8 @@ Examples
6262
>>> data = np.array([1, 2, 3, 4, 5, 6])
6363
>>> mtx = sp.sparse.bsr_array((data, (row, col)), shape=(3, 3))
6464
>>> mtx
65-
<3x3 sparse array of type '<... 'numpy.int64'>'
66-
with 6 stored elements (blocksize = 1x1) in Block Sparse Row format>
65+
<Block Sparse Row sparse array of dtype 'int64'
66+
with 6 stored elements (blocksize=1x1) and shape (3, 3)>
6767
>>> mtx.toarray()
6868
array([[1, 0, 2],
6969
[0, 0, 3],

0 commit comments

Comments
 (0)