-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readdlm does not support Complex #21935
Comments
Same for _
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.6.1-pre.0 (2017-06-19 13:06 UTC)
_/ |\__'_|_|_|\__'_| | Commit dcf39a1 (64 days old release-0.6)
|__/ | x86_64-apple-darwin15.6.0
julia> writedlm("tmp", randn(2, 2) + randn(2, 2)*im)
shell> cat tmp
0.7743929262024812 - 0.3434835979330062im 0.33958454399005045 + 0.28680652862126105im
0.6928954470238671 + 1.597743784536779im -0.04481314483176969 + 0.48528071828620334im
julia> readdlm("tmp")
2×6 Array{Any,2}:
0.774393 "-" "0.3434835979330062im" 0.339585 "+" "0.28680652862126105im"
0.692895 "+" "1.597743784536779im" -0.0448131 "+" "0.48528071828620334im" |
|
It's in the stdlib which exists in this repo though? |
Yeah, until we move things into separate repos, this is still the right place for these issues. |
Fair enough. In this case, it isn't even clear if |
@ViralBShah IMO, if Base exposes the capability of writing a complex array to a file using 'writedlm', it should also expose some way to read it. |
That is fair enough. I would argue that |
#24713 adds |
This is in 0.6-rc1 (and earlier):
I would expect it to return an
Array{Complex{Int},2}
.PS A quick work around is
eval.(parse.(readcsv("/tmp/comp.csv")))
The text was updated successfully, but these errors were encountered: