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
Implement a macro that does the following automatically:
functionmyfun!(out1, out2, args...)
# do some stuffreturn out1, out2
endfunctionwhatalloc(::typeof(myfun!), args...)
# ... cf docsreturn alc1, alc2
end# generate the following function with a macro: functionmyfun(args...)
alc1, alc2 =whatalloc(myfun!, args...)
out1 =zeros(alc1...)
out2 =zeros(alc2...)
returnmyfun!(out1, out2, args...)
end
The text was updated successfully, but these errors were encountered:
Implement a macro that does the following automatically:
The text was updated successfully, but these errors were encountered: