Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. type Type1
  2. a::Matrix{Float64} # why not vector of vectors?
  3. b::Vector{Matrix{Float64}}
  4. c::Vector{Float64}
  5. d::Float64
  6. e::Int64
  7. end
  8.  
  9. type Type2{T}
  10. a::Matrix{T} # why not vector of vectors?
  11. b::Vector{Matrix{T}}
  12. c::Vector{T}
  13. d::T
  14. e::Int64
  15. end
  16.  
  17. a = rand(30, 30)
  18. b = Matrix[rand(10, 10), rand(10, 10)]
  19. b_ = Matrix{Float64}[rand(10, 10), rand(10, 10)]
  20. c = rand(30)
  21. d = 0.9
  22. e = 3
  23.  
  24. Type1(a, b, c, d, e)
  25. Type2(a, b, c, d, e)
  26. Type2(a, b_, c, d, e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement