Following the discussion on More control over writedlm formatting I understood that the tool to save numeric matrices was wrtiedlm
. I have a bunch of small Matrix{Float64}
s (some times just 1x2
, sometimes ~500x3
, never more) that I need to save.
In DelimitedFiles’s documentation it’s mentioned that “the source can be a text file, stream or byte array”.
My question is: since I’m saving floats (and not integers), in order to increase accuracy or decrease format-dependent rounding, should I be saving my matrices as a “byte array” instead of a “text file”? And if so, how exactly? All I know of is:
writedlm("tmp.csv", rand(3))
I’ll just close with that after some experimentation, the numbers saved had a whopping 18 digits to them, so I think I’m good…