@@ -282,11 +282,9 @@ function _tp_matmul_first!(result, a::AbstractMatrix, b, α::Number, β::Number)
282282 d_rest = length (b)÷ d_first
283283 bp = parent (b)
284284 rp = parent (result)
285- @uviews bp rp begin # avoid allocations on reshape
286- br = reshape (bp, (d_first, d_rest))
287- result_r = reshape (rp, (size (a, 1 ), d_rest))
288- mul! (result_r, a, br, α, β)
289- end
285+ @views br = reshape (bp, (d_first, d_rest))
286+ @views result_r = reshape (rp, (size (a, 1 ), d_rest))
287+ mul! (result_r, a, br, α, β)
290288 result
291289end
292290
@@ -295,11 +293,9 @@ function _tp_matmul_last!(result, a::AbstractMatrix, b, α::Number, β::Number)
295293 d_rest = length (b)÷ d_last
296294 bp = parent (b)
297295 rp = parent (result)
298- @uviews a bp rp begin # avoid allocations on reshape
299- br = reshape (bp, (d_rest, d_last))
300- result_r = reshape (rp, (d_rest, size (a, 1 )))
301- mul! (result_r, br, transpose (a), α, β)
302- end
296+ @views br = reshape (bp, (d_rest, d_last))
297+ @views result_r = reshape (rp, (d_rest, size (a, 1 )))
298+ mul! (result_r, br, transpose (a), α, β)
303299 result
304300end
305301
0 commit comments