Skip to content

Commit 9902010

Browse files
committed
remove unnecessary @view
1 parent 722610d commit 9902010

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tensors/indexmanipulations.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ function _add_transform_multi!(tdst, tsrc, p,
641641
buffer_src = StridedView(buffer2, (blocksize, cols), (1, blocksize), 0)
642642
for (i, structure_src) in enumerate(structures_src)
643643
subblock_src = StridedView(tsrc.data, structure_src...)
644-
copyto!(@view(buffer_src[:, i]), subblock_src)
644+
copyto!(buffer_src[:, i], subblock_src)
645645
end
646646

647647
# Resummation into a second buffer using BLAS
@@ -651,7 +651,7 @@ function _add_transform_multi!(tdst, tsrc, p,
651651
# Filling up the output
652652
for (i, structure_dst) in enumerate(structures_dst)
653653
subblock_dst = StridedView(tdst.data, structure_dst...)
654-
bufblock_dst = sreshape(@view(buffer_dst[:, i]), sz_src)
654+
bufblock_dst = sreshape(buffer_dst[:, i], sz_src)
655655
TO.tensoradd!(subblock_dst, bufblock_dst, p, false, One(), β, backend...)
656656
end
657657

0 commit comments

Comments
 (0)