Skip to content

Commit 3686d11

Browse files
authored
typo
1 parent a657582 commit 3686d11

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,7 +26,7 @@ struct 🦋workspace{T}
2626
out::Vector{T}
2727
n::Int
2828
function 🦋workspace(A, b, ::Val{SEED} = Val(888)) where {SEED}
29-
N = size(A, 1)
29+
len = size(A, 1)
3030
out = similar(b, N)
3131
if (M % 4 != 0)
3232
A = pad!(A)
@@ -36,20 +36,20 @@ struct 🦋workspace{T}
3636
U, V = (similar(A), similar(A))
3737
ws = 🦋generate_random!(A)
3838
materializeUV(U, V, ws)
39-
new{eltype(A)}(A, b, ws, U, V, out, N)
39+
new{eltype(A)}(A, b, ws, U, V, out, n)
4040
end
4141
end
4242

4343
function 🦋solve!(workspace::🦋workspace, thread)
44-
(;A, b, ws, U, V, out, N) = workspace
44+
(;A, b, ws, U, V, out, n) = workspace
4545
🦋mul!(A, ws)
4646
F = RecursiveFactorization.lu!(A, Val(false), thread)
4747

4848
mul!(b, U', b)
4949
ldiv!(b, UnitLowerTriangular(F.factors), b, thread)
5050
ldiv!(b, UpperTriangular(F.factors), b, thread)
5151
mul!(b, V, b)
52-
out .= @view b[1:N]
52+
out .= @view b[1:n]
5353
out
5454
end
5555

0 commit comments

Comments
 (0)