Using Julia v1.6.7, I obtain
julia> using LinearAlgebra, FillArrays
julia> for (dv, ev) in ((Fill(2,3), Fill(6,2)), (Zeros(2), Zeros(1)))
display(Tridiagonal(ev, dv, ev))
end
3×3 Tridiagonal{Int64, Fill{Int64, 1, Tuple{Base.OneTo{Int64}}}}:
2 6 ⋅
6 2 6
⋅ 6 2
140507853782720×140507853782720 Tridiagonal{Int64, Fill{Int64, 1, Tuple{Base.OneTo{Int64}}}}:
1 22 ⋅ ⋅ ⋅ ⋅ … ⋅ ⋅ ⋅ ⋅
1 1 22 ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅
⋅ 1 1 22 ⋅ ⋅ ⋅ ⋅ ⋅ ⋅
⋅ ⋅ #undef 1 22 ⋅ ⋅ ⋅ ⋅ ⋅
⋅ ⋅ ⋅ #undef 1 22 ⋅ ⋅ ⋅ ⋅
⋅ ⋅ ⋅ ⋅ #undef 1 … ⋅ ⋅ ⋅ ⋅
⋅ ⋅ ⋅ ⋅ ⋅ #undef ⋅ ⋅ ⋅ ⋅
⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅
⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅
⋮ ⋮ ⋱
⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅
⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅
⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅
⋅ ⋅ ⋅ ⋅ ⋅ ⋅ … #undef ⋅ ⋅ ⋅
⋅ ⋅ ⋅ ⋅ ⋅ ⋅ 1 #undef ⋅ ⋅
⋅ ⋅ ⋅ ⋅ ⋅ ⋅ #undef 1 #undef ⋅
⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ #undef 1 #undef
⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ #undef 1
Where’s that second result coming from? This seems fixed on recent versions of Julia. Both the values and the type are incorrect.