Skip to content

Commit 76ce221

Browse files
mtfishmanlkdvos
andauthored
Apply suggestions from code review
Co-authored-by: Lukas Devos <[email protected]>
1 parent 251559f commit 76ce221

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/factorizations/svd.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function MatrixAlgebraKit.initialize_output(
4444

4545
brows = eachblockaxis(axes(A, 1))
4646
bcols = eachblockaxis(axes(A, 2))
47-
s_axes = Vector{eltype(brows)}(undef, bmn)
47+
s_axes = similar(brows, bmn)
4848

4949
# fill in values for blocks that are present
5050
bIs = collect(eachblockstoredindex(A))
@@ -99,7 +99,7 @@ function MatrixAlgebraKit.initialize_output(
9999
bm, bn = blocksize(A)
100100

101101
brows = eachblockaxis(axes(A, 1))
102-
s_axes = copy(brows)
102+
s_axes = similar(brows)
103103

104104
# fill in values for blocks that are present
105105
bIs = collect(eachblockstoredindex(A))

0 commit comments

Comments
 (0)