Last active
January 25, 2019 11:42
-
-
Save singularitti/12697507f4d3d3010b94249dc080c0b2 to your computer and use it in GitHub Desktop.
Show all elements of a `Vector` #Julia #IO
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
# Referenced from | |
# https://stackoverflow.com/questions/49304329/how-to-show-all-elements-of-vectors-and-matrices-in-julia | |
function showall(io, x, limit = true) | |
println(io, summary(x), ":") | |
Base.print_matrix(IOContext(io, :limit => limit), x) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment