Skip to content

Commit

Permalink
Avoid Array(Float64, ...) in favour Array{Float64}(...)
Browse files Browse the repository at this point in the history
as the latter has been deprecated in JuliaLang/julia#19989.
  • Loading branch information
martinholters committed Jan 16, 2017
1 parent a10603e commit 9053a75
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ACME.jl
Original file line number Diff line number Diff line change
Expand Up @@ -563,11 +563,11 @@ function run!(model::DiscreteModel, u::AbstractMatrix{Float64})
if size(u, 1) nu(model)
throw(DimensionMismatch("input matrix has $(size(u,1)) rows, but model requires $(nu(model)) inputs"))
end
y = Array(Float64, ny(model), size(u)[2])
ucur = Array(Float64, nu(model))
p = Array(Float64, np(model))
ycur = Array(Float64, ny(model))
xnew = Array(Float64, nx(model))
y = Array{Float64,2}(ny(model), size(u)[2])
ucur = Array{Float64,1}(nu(model))
p = Array{Float64,1}(np(model))
ycur = Array{Float64,1}(ny(model))
xnew = Array{Float64,1}(nx(model))
@showprogress 1 "Running model: " for n = 1:size(u)[2]
# copy!(p, model.dq * model.x + model.eq * u[:,n])
copy!(ucur, 1, u, (n-1)*nu(model)+1, nu(model))
Expand Down

0 comments on commit 9053a75

Please sign in to comment.