I'm Brand new in Julia. I've been looking around some documentation like [1], [2], [3]. Generally, I found it usefull, but I see some lack of organization in them. They all have the approach of "learning by examples" but any of them have a structured way to approach the remarkable features of the language.
Well, my problem is that I'm trying to build a defined type with some variables. Among them, at least one variable is an n-dimensional array where the dimensions are variables inside that defined type. To start, I cannot even define a fixed dimension tensor in the "struct".
Type Geometry
dimension::UInt
coordinates::Array{Float64}(10,2)
end
Says that:
expected Type, got Array.
and, for example:
Type Geometry
dimension::UInt
coordinates=Array{Float64}(10,2)
end
Says that:
"assignation" in Type definition is reserved.
Another approach would be define a "pointer" in the Type and then reshape that pointer, something like:
Type Geometry
dimension::UInt
coordinates::Float64
end
mesh=Geometry(10,0)
reshape(mesh.coordinates,(10,3))
Says that you cannot reshape an scalar.
So, my two questions are:
There's any way to build this dynamic dimension defined type in julia?
And even more important: do you have any recommended, organized and structured bibliography for julia like we've Metcalf. Fortran 95/2003 explained for fortran?
Thank you all.