My type is:
immutable TUnit
Node::Int16
a::Float64
b::Float64
c::Float64
inf::Float64
sup::Float64
ton::Int16
toff::Int16
storia0::Int16
pt0::Float64
rampa_up::Float64
rampa_dwn::Float64
rampa_up_str::Float64
rampa_dwn_str::Float64
SUC_C::Float64
tau_max::Int16
*pt_l::Float64*
storia0UP::Float64
storia0DW::Float64
u0::Float64
ton0::Float64
toff0::Float64
end
Then I have:
TUnitS = Array(TUnit,size(generators,1))
for j in 1:size(generators,1)
TUnitS[j] = TUnit(generators[j,1:end]...)
end
Now, pt_l is a matrix of float numbers, and so I get
*ERROR: `TUnit` has no method matching TUnit(::Float64, ::Float64,
::Float64, ::Float64, ::Float64, ::Float64, ::Float64, ::Float64,
::Float64, ::Float64, ::Float64, ::Float64, ::Float64, ::Float64,
::Float64, ::Float64, ::Float64, ::Float64, ::Float64, ::Float64,
::Float64, ::Float64, ::Float64, ::Float64, ::Float64, ::Int64, ::Int16,
::Int16)*
How can I declare it properly?