@@ -35,8 +35,8 @@ Examples
35
35
36
36
>>> mtx = sp.sparse.bsr_array((3, 4), dtype=np.int8)
37
37
>>> 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) >
40
40
>>> mtx.toarray()
41
41
array([[0, 0, 0, 0],
42
42
[0, 0, 0, 0],
@@ -46,8 +46,8 @@ Examples
46
46
47
47
>>> mtx = sp.sparse.bsr_array((3, 4), blocksize=(3, 2), dtype=np.int8)
48
48
>>> 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) >
51
51
>>> mtx.toarray()
52
52
array([[0, 0, 0, 0],
53
53
[0, 0, 0, 0],
@@ -62,8 +62,8 @@ Examples
62
62
>>> data = np.array([1, 2, 3, 4, 5, 6])
63
63
>>> mtx = sp.sparse.bsr_array((data, (row, col)), shape=(3, 3))
64
64
>>> 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) >
67
67
>>> mtx.toarray()
68
68
array([[1, 0, 2],
69
69
[0, 0, 3],
0 commit comments