Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add no_prealloc #4

Merged
merged 4 commits into from Feb 25, 2020
Merged

add no_prealloc #4

merged 4 commits into from Feb 25, 2020

Conversation

oxinabox
Copy link
Owner

Closes #3

@baggepinnen
Copy link

I tried the following

AutoPreallocation.@no_prealloc Xi = Γi \  Zi

but it gave me

UndefVarError: Xi not defined
#n4sid#63(::Bool, ::Int64, ::Nothing, ::typeof(n4sid), ::Array{Float64,1}, ::Array{Float64,1}, ::Int64) at subspace.jl:105
n4sid(::Array{Float64,1}, ::Array{Float64,1}, ::Int64) at subspace.jl:53
top-level scope at autoprealloc.jl:4

If I do

Xi = AutoPreallocation.@no_prealloc(Γi \  Zi)

then it works!

README.md Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Opt out of pre-allocation
2 participants