Hi all. I am new to Julia and not familiar on troubleshooting my code in this language. I have constructed a block matrix constructed of smaller block matrices - a diagonal one and then an off diagonal one. The construction follows from a function I did, and if I diagonalize this matrix, it returns the respective eigenvalues from it. The matrix has a dimensionality 4N x 4N where N comes from another function - this is a little irrelevant, since I have proven it all works.
Well, when I try to get multiple arrays of eigenvalues following from the variables I feed into the function, I get the following errors:
InexactError: Float64(-8987.992438638395 - 0.008932123138978246im)
Stacktrace:
[1] Real at .\complex.jl:37 [inlined]
[2] convert at .\number.jl:7 [inlined]
[3] setindex! at .\array.jl:849 [inlined]
[4] macro expansion at .\multidimensional.jl:802 [inlined]
[5] macro expansion at .\cartesian.jl:64 [inlined]
[6] macro expansion at .\multidimensional.jl:797 [inlined]
[7] _unsafe_setindex!(::IndexLinear, ::Array{Float64,2}, ::Array{Complex{Float64},1}, ::Int64, ::Base.Slice{Base.OneTo{Int64}}) at .\multidimensional.jl:789
[8] _setindex! at .\multidimensional.jl:785 [inlined]
[9] setindex!(::Array{Float64,2}, ::Array{Complex{Float64},1}, ::Int64, ::Function) at .\abstractarray.jl:1153
[10] top-level scope at .\In[38]:4
[11] include_string(::Function, ::Module, ::String, ::String) at .\loading.jl:1091
Coming from a python background I find it hard to check where my errors are located at. Can someone help me recognize this error and where to find some additional information about it?