We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 251559f commit 76ce221Copy full SHA for 76ce221
src/factorizations/svd.jl
@@ -44,7 +44,7 @@ function MatrixAlgebraKit.initialize_output(
44
45
brows = eachblockaxis(axes(A, 1))
46
bcols = eachblockaxis(axes(A, 2))
47
- s_axes = Vector{eltype(brows)}(undef, bmn)
+ s_axes = similar(brows, bmn)
48
49
# fill in values for blocks that are present
50
bIs = collect(eachblockstoredindex(A))
@@ -99,7 +99,7 @@ function MatrixAlgebraKit.initialize_output(
99
bm, bn = blocksize(A)
100
101
102
- s_axes = copy(brows)
+ s_axes = similar(brows)
103
104
105
0 commit comments