Guest User

Untitled

a guest
Jan 18th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. stage1 = [1 1 1 1;1 0 0 1;1 0 0 1; 1 1 1 1]
  2. #stage2 one_side=9
  3. empty2 = zeros(Int8,4,4)
  4. line2_1= hcat(stage1,stage1,stage1,stage1)
  5. line2_2= hcat(stage1,empty2,empty2,stage1)
  6. stage2 = vcat(line2_1,line2_2,line2_2,line2_1)#16
  7. #stage3
  8. empty3 = zeros(Int8,16,16)
  9. line3_1= hcat(stage2,stage2,stage2,stage2)
  10. line3_2= hcat(stage2,empty3,empty3,stage2)
  11. stage3 = vcat(line3_1,line3_2,line3_2,line3_1)#64
  12. #stage4
  13. empty4 = zeros(Int8,64,64)
  14. line4_1= hcat(stage3,stage3,stage3,stage3)
  15. line4_2= hcat(stage3,empty4,empty4,stage3)
  16. stage4 = vcat(line4_1,line4_2,line4_2,line4_1)#256
  17. #stage5
  18. empty5 = zeros(Int8,256,256)
  19. line5_1= hcat(stage4,stage4,stage4,stage4)
  20. line5_2= hcat(stage4,empty5,empty5,stage4)
  21. stage5 = vcat(line5_1,line5_2,line5_2,line5_1)#1024
  22. #stage6
  23. empty6 = zeros(Int8,1024,1024)
  24. line6_1= hcat(stage5,stage5,stage5,stage5)
  25. line6_2= hcat(stage5,empty6,empty6,stage5)
  26. stage6 = vcat(line6_1,line6_2,line6_2,line6_1)#4096
  27. #stage7
  28. empty7 = zeros(Int8,4096,4096)
  29. line7_1= hcat(stage6,stage6,stage6,stage6)
  30. line7_2= hcat(stage6,empty7,empty7,stage6)
  31. stage7 = vcat(line7_1,line7_2,line7_2,line7_1)
  32. ###
  33. empty8 = zeros(Int8,16384,16384)
  34. line8_1= hcat(stage7,stage7,stage7,stage7)
  35. line8_2= hcat(stage7,empty8,empty8,stage7)
  36. stage8 = vcat(line8_1,line8_2,line8_2,line8_1)
  37. ############
  38. stage = copy(stage8)
  39.  
  40. OutOfMemoryError()
  41.  
  42. Stacktrace:
  43. [1] Type at .boot.jl:396 [inlined]
  44. [2] Type at .boot.jl:404 [inlined]
  45. [3] similar at .array.jl:332 [inlined]
  46. [4] similar at .abstractarray.jl:575 [inlined]
  47. [5] _typed_hcat(::Type{Int64}, ::NTuple{4,Array{Int64,2}}) at .abstractarray.jl:1254
  48. [6] typed_hcat(::Type{Int64}, ::Array{Int64,2}, ::Array{Int64,2}, ::Array{Int64,2}, ::Vararg{Array{Int64,2},N} where N) at .abstractarray.jl:1235
  49. [7] hcat(::Array{Int64,2}, ::Array{Int64,2}, ::Array{Int64,2}, ::Vararg{Array{Int64,2},N} where N) at C:cygwinhomeAdministratorbuildbotworkerpackage_win64buildusrsharejuliastdlibv1.0SparseArrayssrcsparsevector.jl:1066
  50. [8] top-level scope at In[9]:35
  51.  
  52. Windows64
  53. 容量は8GB
  54. CORE i5
Add Comment
Please, Sign In to add comment