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 f72c9ce commit d5ff1e4Copy full SHA for d5ff1e4
src/fillalgebra.jl
@@ -562,8 +562,12 @@ function _eigvecs_toeplitz(T; sortby = nothing)
562
prefactors = _eigvec_prefactors(T, cm1, c1)
563
for q in axes(M,2)
564
qrev = n+1-q # match the default eigenvalue sorting
565
+ x = qrev/(n+1)
566
+ cs = cispi(x)
567
+ cs1 = copy(cs)
568
for j in 1:cld(n,2)
- M[j, q] = prefactors[j] * sinpi(j*qrev/(n+1))
569
+ M[j, q] = prefactors[j] * imag(cs)
570
+ cs *= cs1
571
end
572
phase = iseven(n+q) ? 1 : -1
573
for j in cld(n,2)+1:n
0 commit comments