How to save an NxNxN array (or Matrix) into a file in Julia (or Python)? -
i'm working on jupyter notebook , using julia
i'm trying save 3x3x3 array textfile when include in notebook, array 3x3x3 array too.
any suggestions? in advance.
you use jld.jl (julia data) package:
pkg.add("jld") using jld r = rand(3, 3, 3) save("data.jld", "data", r) load("data.jld")["data"]
the advantage of jld package preserves exact type information of each variable.
Comments
Post a Comment