Last active
November 27, 2018 07:52
-
-
Save ultimatile/cd28b02b318949336543a4957bb95d14 to your computer and use it in GitHub Desktop.
script to extract an eigenvector from HΦ output binary data in Julia 1.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
io = open("zvo_eigenvec_0_rank_0.dat") | |
Lanczos = read(io, Int32) | |
Hilbert = read(io, Int64) | |
discard = read(io, ComplexF64) | |
#1st component is useless 0+0*im | |
evec = zeros(ComplexF64, Hilbert) | |
for i in 1:Hilbert | |
evec[i] = read(io, ComplexF64) | |
end | |
println(Lanczos) | |
println(Hilbert) | |
println(evec) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment