Suppose I need to declare (but not initialize the values of) five 10x10 arrays, named, say, A1
-A5
. Fortran has a nice syntax for this kind of multiple array declaration:
REAL(8), DIMENSION(10,10) :: A1, A2, A3, A4, A5
However, the only method in Julia I am aware of is much uglier:
A1 = Array(Float64, 10, 10)
A2 = Array(Float64, 10, 10)
A3 = Array(Float64, 10, 10)
A4 = Array(Float64, 10, 10)
A5 = Array(Float64, 10, 10)
Is there any more concise way to declare multiple arrays of the same dimension in Julia?