Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type Type1
- a::Matrix{Float64} # why not vector of vectors?
- b::Vector{Matrix{Float64}}
- c::Vector{Float64}
- d::Float64
- e::Int64
- end
- type Type2{T}
- a::Matrix{T} # why not vector of vectors?
- b::Vector{Matrix{T}}
- c::Vector{T}
- d::T
- e::Int64
- end
- a = rand(30, 30)
- b = Matrix[rand(10, 10), rand(10, 10)]
- b_ = Matrix{Float64}[rand(10, 10), rand(10, 10)]
- c = rand(30)
- d = 0.9
- e = 3
- Type1(a, b, c, d, e)
- Type2(a, b, c, d, e)
- Type2(a, b_, c, d, e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement