You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Comment by spencerlyon2 Friday Jul 31, 2015 at 02:19 GMT
Could be fixed by changing
functionsqueeze_trail(x::Array)
sz =size(x)
squeezers = Int[]
n =length(sz)
for i=n:-1:1if sz[i] ==1push!(squeezers, i)
elsebreakendendsqueeze(x, tuple(squeezers...))
end
to
functionsqueeze_trail(x::Array)
sz =size(x)
squeezers = Int[]
n =length(sz)
for i=n:-1:1if sz[i] ==1push!(squeezers, i)
elsebreakendend
out =squeeze(x, tuple(squeezers...))
length(out) ==1? out[1] : out
end
but I think with some design work we can do a better job at finding a type-stable version of funeval (because as of right now it is very type unstable...)
Issue by spencerlyon2
Friday Jul 31, 2015 at 02:16 GMT
Originally opened as QuantEcon/CompEcon.jl#10
Test case:
REPL example:
The text was updated successfully, but these errors were encountered: