@@ -244,19 +244,19 @@ function At_mul_B!(y::AbstractVector, A::BlockMap, x::AbstractVector)
244
244
@boundscheck (n == length (y) && m == length (x)) || throw (DimensionMismatch (" At_mul_B!" ))
245
245
maps, rows, xinds, yinds = A. maps, A. rows, A. rowranges, A. colranges
246
246
mapind = 0
247
- # first block row (rowind = 1), fill all of y
247
+ # first block row (rowind = 1) of A, meaning first block column of A' , fill all of y
248
248
@views @inbounds begin
249
249
xcol = x[xinds[1 ]]
250
250
for colind in 1 : rows[1 ]
251
251
mapind += 1
252
- A_mul_B! (y[yinds[colind ]], transpose (maps[mapind]), xcol)
252
+ A_mul_B! (y[yinds[mapind ]], transpose (maps[mapind]), xcol)
253
253
end
254
- # subsequent block rows, add results to corresponding parts of y
254
+ # subsequent block rows of A , add results to corresponding parts of y
255
255
for rowind in 2 : length (rows)
256
256
xcol = x[xinds[rowind]]
257
257
for colind in 1 : rows[rowind]
258
258
mapind += 1
259
- mul! (y[yinds[colind ]], transpose (maps[mapind]), xcol, true , true )
259
+ mul! (y[yinds[mapind ]], transpose (maps[mapind]), xcol, true , true )
260
260
end
261
261
end
262
262
end
@@ -268,19 +268,19 @@ function Ac_mul_B!(y::AbstractVector, A::BlockMap, x::AbstractVector)
268
268
@boundscheck (n == length (y) && m == length (x)) || throw (DimensionMismatch (" At_mul_B!" ))
269
269
maps, rows, xinds, yinds = A. maps, A. rows, A. rowranges, A. colranges
270
270
mapind = 0
271
- # first block row (rowind = 1), fill all of y
271
+ # first block row (rowind = 1) of A , fill all of y
272
272
@views @inbounds begin
273
273
xcol = x[xinds[1 ]]
274
274
for colind in 1 : rows[1 ]
275
275
mapind += 1
276
- A_mul_B! (y[yinds[colind ]], adjoint (maps[mapind]), xcol)
276
+ A_mul_B! (y[yinds[mapind ]], adjoint (maps[mapind]), xcol)
277
277
end
278
- # subsequent block rows, add results to corresponding parts of y
278
+ # subsequent block rows of A , add results to corresponding parts of y
279
279
for rowind in 2 : length (rows)
280
280
xcol = x[xinds[rowind]]
281
281
for colind in 1 : rows[rowind]
282
282
mapind += 1
283
- mul! (y[yinds[colind ]], adjoint (maps[mapind]), xcol, true , true )
283
+ mul! (y[yinds[mapind ]], adjoint (maps[mapind]), xcol, true , true )
284
284
end
285
285
end
286
286
end
0 commit comments