@@ -51,12 +51,12 @@ def setUp(self):
5151 info ['number' ] = 148 # info['python_type'](np.exp(5))
5252
5353 # The dense array of the corresponding type
54- python_array = np .array ([1 , 2 , 5 , 0 , 4 , 1 ]). astype (
55- info ['python_type' ])
54+ python_array = np .array ([1 , 2 , 5 , 0 , 4 ,
55+ 1 ]). astype ( info ['python_type' ])
5656
5757 # The dense array 2D of the corresponding type
58- python_array_2d = np .array ([[1 , 2 , 5 ], [ 0 , 4 , 1 ]]). astype (
59- info ['python_type' ])
58+ python_array_2d = np .array ([[1 , 2 , 5 ],
59+ [ 0 , 4 , 1 ]]). astype ( info ['python_type' ])
6060
6161 # The list of dense array of the corresponding type
6262 python_array_list_1d = [
@@ -67,8 +67,8 @@ def setUp(self):
6767
6868 python_array2d_list_1d = [
6969 np .array ([[1 , 2 , 5 ], [0 , 4 , 1 ]]).astype (info ['python_type' ]),
70- np .array ([[1 , 2 , 9 ], [1 , 2 , 5 ], [ 0 , 4 , 1 ]]). astype (
71- info ['python_type' ]),
70+ np .array ([[1 , 2 , 9 ], [1 , 2 , 5 ],
71+ [ 0 , 4 , 1 ]]). astype ( info ['python_type' ]),
7272 np .array ([[0 ]]).astype (info ['python_type' ])
7373 ]
7474
@@ -82,22 +82,20 @@ def setUp(self):
8282 python_array2d_list_2d = [[
8383 np .array ([[1 , 2 , 5 ], [0 , 4 , 1 ]]).astype (info ['python_type' ]),
8484 ], [
85- np .array ([[1 , 2 , 9 ], [1 , 2 , 5 ], [ 0 , 4 , 1 ]]). astype (
86- info ['python_type' ]),
85+ np .array ([[1 , 2 , 9 ], [1 , 2 , 5 ],
86+ [ 0 , 4 , 1 ]]). astype ( info ['python_type' ]),
8787 np .array ([[0 ]]).astype (info ['python_type' ])
8888 ], []]
8989
9090 # The sparse array of the corresponding type
91- python_sparse_array = csr_matrix ((np .array ([1.5 , 2 , 3 , 1 ]),
92- np .array ([3 , 5 , 7 , 9 ]),
93- np .array ([0 , 4 ]))).astype (
94- info ['python_type' ])
91+ python_sparse_array = csr_matrix (
92+ (np .array ([1.5 , 2 , 3 , 1 ]), np .array ([3 , 5 , 7 , 9 ]),
93+ np .array ([0 , 4 ]))).astype (info ['python_type' ])
9594
9695 # The sparse array 2D of the corresponding type
97- python_sparse_array_2d = csr_matrix ((np .array ([1.5 , 2 , 3 , 1 ]),
98- np .array ([3 , 5 , 7 , 4 ]),
99- np .array ([0 , 3 , 4 ]))).astype (
100- info ['python_type' ])
96+ python_sparse_array_2d = csr_matrix (
97+ (np .array ([1.5 , 2 , 3 , 1 ]), np .array ([3 , 5 , 7 , 4 ]),
98+ np .array ([0 , 3 , 4 ]))).astype (info ['python_type' ])
10199
102100 python_sparse_array_list_1d = [
103101 csr_matrix ((np .array ([1.5 , 2 , 3 , 1 ]), np .array ([3 , 5 , 7 , 9 ]),
0 commit comments