Skip to content

Commit 5a46825

Browse files
fixes
1 parent 1959b28 commit 5a46825

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/butterflylu.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ function 🦋generate_random!(A, ::Val{SEED} = Val(888)) where {SEED}
2020
(uv,)
2121
end
2222

23-
function 🦋workspace(A, U::Adjoint{T, Matrix{T}}, V::Matrix{T}, ::Val{SEED} = Val(888)) where {T, SEED}
23+
function 🦋workspace(A, B::Matrix{T}, U::Adjoint{T, Matrix{T}}, V::Matrix{T}, ::Val{SEED} = Val(888)) where {T, SEED}
2424
A = pad!(A)
2525
B = similar(A)
26-
ws = 🦋generate_random!(B)
26+
ws = 🦋generate_random!(copyto!(B, A))
2727
🦋mul!(copyto!(B, A), ws)
2828
U, V = materializeUV(B, ws)
2929
F = RecursiveFactorization.lu!(B, Val(false))

0 commit comments

Comments
 (0)