Skip to content

Instantly share code, notes, and snippets.

@Ismael-VC
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ismael-VC/9143938 to your computer and use it in GitHub Desktop.
Save Ismael-VC/9143938 to your computer and use it in GitHub Desktop.
caras de un cubo?
ismaelvc@toybox ~> julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" to list help topics
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.3.0-prerelease+1672 (2014-02-22 04:00 UTC)
_/ |\__'_|_|_|\__'_| | Commit b2fea25* (0 days old master)
|__/ | i686-pc-linux-gnu
julia> reshape(1:54, 3, 3, 6)
3x3x6 Array{Int32,3}:
[:, :, 1] =
1 4 7
2 5 8
3 6 9
[:, :, 2] =
10 13 16
11 14 17
12 15 18
[:, :, 3] =
19 22 25
20 23 26
21 24 27
[:, :, 4] =
28 31 34
29 32 35
30 33 36
[:, :, 5] =
37 40 43
38 41 44
39 42 45
[:, :, 6] =
46 49 52
47 50 53
48 51 54
julia>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment