We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69afdd6 commit 61fb6cdCopy full SHA for 61fb6cd
src/utils.jl
@@ -153,3 +153,18 @@ function jacobian(m,x)
153
end
154
J'
155
156
+
157
+"""
158
+ @jit ...
159
160
+The `@jit` annotation can be applied to any code, and the code will be compiled
161
+for performance.
162
163
+ @jit f(x) = @jit(x) + @jit(x)
164
165
+Note that compilation happens regardless of the `@jit` macro, so it should only
166
+be used for aesthetic purposes, or by recovering Python users.
167
168
+macro jit(ex)
169
+ esc(ex)
170
+end
0 commit comments