Skip to content

Commit 649ef09

Browse files
committed
typo in householder
1 parent 75e404e commit 649ef09

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/hessenberg.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ is the first element of the output vector of H*x.
3838
else
3939
τ = T(0)
4040
x .= 0
41-
β = real(T)(0)
41+
β = real(T)(abs(α))
4242
end
4343
return τ, β
4444
end
@@ -111,7 +111,6 @@ end
111111
#Generate elementary reflector H(i) to annihilate A(i+2:n,i)
112112
τ_s,α = householder!(A[i+1:n,i],n-i)
113113
η[i] = α
114-
115114
mul!(W[i+1:n,i], A[i+1:n,i+1:n], A[i+1:n,i], 1, 0)
116115
if i>1
117116
mul!(W[1:i-1,i], adjoint(W[i+1:n,1:i-1]), A[i+1:n,i])

0 commit comments

Comments
 (0)