@@ -142,7 +142,7 @@ cdef strassen_window_multiply_c(MatrixWindow C, MatrixWindow A,
142142 T1.set_to_diff(B11, T0)
143143
144144 # 9 P5 = S1*T1 in C01
145- P5 = C.matrix_window(0 , B_sub_ncols, A_sub_nrows, B_sub_ncols)
145+ P5 = C.matrix_window(0 , B_sub_ncols, A_sub_nrows, B_sub_ncols)
146146 if have_cutoff:
147147 P5.set_to_prod(S1, T1)
148148 else :
@@ -153,7 +153,7 @@ cdef strassen_window_multiply_c(MatrixWindow C, MatrixWindow A,
153153 S3.set_to_diff(A01, S1)
154154
155155 # 11 P2 = S3*B11 in C00
156- P2 = C.matrix_window(0 , 0 , A_sub_nrows, B_sub_ncols)
156+ P2 = C.matrix_window(0 , 0 , A_sub_nrows, B_sub_ncols)
157157 if have_cutoff:
158158 P2.set_to_prod(S3, B11)
159159 else :
@@ -167,49 +167,49 @@ cdef strassen_window_multiply_c(MatrixWindow C, MatrixWindow A,
167167 strassen_window_multiply_c(P0, A00, B00, cutoff)
168168
169169 # 13 U1 = P0+P5 in C01
170- U1 = C.matrix_window(0 , B_sub_ncols, A_sub_nrows, B_sub_ncols)
170+ U1 = C.matrix_window(0 , B_sub_ncols, A_sub_nrows, B_sub_ncols)
171171 U1.set_to_sum(P0, P5)
172172
173173 # 14 U2 = U1+P6 in C10
174- U2 = C.matrix_window(A_sub_nrows, 0 , A_sub_nrows, B_sub_ncols)
174+ U2 = C.matrix_window(A_sub_nrows, 0 , A_sub_nrows, B_sub_ncols)
175175 U2.set_to_sum(U1, P6)
176176
177177 # 15 U3 = U1+P4 in C01
178- U3 = C.matrix_window(0 , B_sub_ncols, A_sub_nrows, B_sub_ncols)
178+ U3 = C.matrix_window(0 , B_sub_ncols, A_sub_nrows, B_sub_ncols)
179179 U3.set_to_sum(U1, P4)
180180
181181 # 16 U6 = U2+P4 in C11 (final)
182182 U6 = C.matrix_window(A_sub_nrows, B_sub_ncols, A_sub_nrows, B_sub_ncols)
183183 U6.set_to_sum(U2, P4)
184184
185185 # 17 U4 = U3+P2 in C01 (final)
186- U4 = C.matrix_window(0 , B_sub_ncols, A_sub_nrows, B_sub_ncols)
186+ U4 = C.matrix_window(0 , B_sub_ncols, A_sub_nrows, B_sub_ncols)
187187 U4.set_to_sum(U3, P2)
188188
189189 # 18 T3 = T1-B10 in Y
190190 T3 = Y
191191 T3.set_to_diff(T1, B10)
192192
193193 # 19 P3 = A11*T3 in C00
194- P3 = C.matrix_window(0 , 0 , A_sub_nrows, B_sub_ncols)
194+ P3 = C.matrix_window(0 , 0 , A_sub_nrows, B_sub_ncols)
195195 if have_cutoff:
196196 P3.set_to_prod(A11, T3)
197197 else :
198198 strassen_window_multiply_c(P3, A11, T3, cutoff)
199199
200200 # 20 U5 = U2-P3 in C10 (final)
201- U5 = C.matrix_window(A_sub_nrows, 0 , A_sub_nrows, B_sub_ncols)
201+ U5 = C.matrix_window(A_sub_nrows, 0 , A_sub_nrows, B_sub_ncols)
202202 U5.set_to_diff(U2, P3)
203203
204204 # 21 P1 = A01*B10 in C00
205- P1 = C.matrix_window(0 , 0 , A_sub_nrows, B_sub_ncols)
205+ P1 = C.matrix_window(0 , 0 , A_sub_nrows, B_sub_ncols)
206206 if have_cutoff:
207207 P1.set_to_prod(A01, B10)
208208 else :
209209 strassen_window_multiply_c(P1, A01, B10, cutoff)
210210
211211 # 22 U0 = P0+P1 in C00 (final)
212- U0 = C.matrix_window(0 , 0 , A_sub_nrows, B_sub_ncols)
212+ U0 = C.matrix_window(0 , 0 , A_sub_nrows, B_sub_ncols)
213213 U0.set_to_sum(P0, P1)
214214
215215 # Now deal with the leftover row and/or column (if they exist).
0 commit comments