Skip to content

Commit 7b9037f

Browse files
authored
Update butterflylu.jl
1 parent 3686d11 commit 7b9037f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/butterflylu.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ struct 🦋workspace{T}
2626
out::Vector{T}
2727
n::Int
2828
function 🦋workspace(A, b, ::Val{SEED} = Val(888)) where {SEED}
29-
len = size(A, 1)
30-
out = similar(b, N)
31-
if (M % 4 != 0)
29+
n = size(A, 1)
30+
out = similar(b, n)
31+
if (n % 4 != 0)
3232
A = pad!(A)
33-
xn = 4 - M % 4
33+
xn = 4 - n % 4
3434
b = [b; rand(xn)]
3535
end
3636
U, V = (similar(A), similar(A))

0 commit comments

Comments
 (0)