Suppose I want to create a multidimensional array whose dimensions / size is measured in the array. I want to do something like this:
dims = [2,5,6]
It is unacceptable. In the above case, you should use:
arr = Array(Float64, dims[1], dims[2], dims[3] )
I do not know the length of the dims ahead of time, so the above solution does not work for me. Is there a hurricane workaround beyond using some nasty sprintfs and eval?
Thanks!
source share