@@ -206,7 +206,6 @@ macro MMatrix(ex)
206
206
exprs = [:($ f ($ j1, $ j2)) for j1 in rng1, j2 in rng2]
207
207
208
208
return quote
209
- $ (Expr (:meta , :inline ))
210
209
$ (esc (f_expr))
211
210
$ (esc (Expr (:call , Expr (:curly , :MMatrix , length (rng1), length (rng2)), Expr (:tuple , exprs... ))))
212
211
end
@@ -227,20 +226,17 @@ macro MMatrix(ex)
227
226
exprs = [:($ f ($ j1, $ j2)) for j1 in rng1, j2 in rng2]
228
227
229
228
return quote
230
- $ (Expr (:meta , :inline ))
231
229
$ (esc (f_expr))
232
230
$ (esc (Expr (:call , Expr (:curly , :MMatrix , length (rng1), length (rng2), T), Expr (:tuple , exprs... ))))
233
231
end
234
232
elseif isa (ex, Expr) && ex. head == :call
235
233
if ex. args[1 ] == :zeros || ex. args[1 ] == :ones || ex. args[1 ] == :rand || ex. args[1 ] == :randn
236
234
if length (ex. args) == 3
237
235
return quote
238
- $ (Expr (:meta , :inline ))
239
236
$ (ex. args[1 ])(MMatrix{$ (esc (ex. args[2 ])),$ (esc (ex. args[3 ]))})
240
237
end
241
238
elseif length (ex. args) == 4
242
239
return quote
243
- $ (Expr (:meta , :inline ))
244
240
$ (ex. args[1 ])(MMatrix{$ (esc (ex. args[3 ])), $ (esc (ex. args[4 ])), $ (esc (ex. args[2 ]))})
245
241
end
246
242
else
@@ -249,7 +245,6 @@ macro MMatrix(ex)
249
245
elseif ex. args[1 ] == :fill
250
246
if length (ex. args) == 4
251
247
return quote
252
- $ (Expr (:meta , :inline ))
253
248
$ (esc (ex. args[1 ]))($ (esc (ex. args[2 ])), MMatrix{$ (esc (ex. args[3 ])), $ (esc (ex. args[4 ]))})
254
249
end
255
250
else
@@ -258,13 +253,11 @@ macro MMatrix(ex)
258
253
elseif ex. args[1 ] == :eye
259
254
if length (ex. args) == 2
260
255
return quote
261
- $ (Expr (:meta , :inline ))
262
256
eye (MMatrix{$ (esc (ex. args[2 ]))})
263
257
end
264
258
elseif length (ex. args) == 3
265
259
# We need a branch, depending if the first argument is a type or a size.
266
260
return quote
267
- $ (Expr (:meta , :inline ))
268
261
if isa ($ (esc (ex. args[2 ])), DataType)
269
262
eye (MMatrix{$ (esc (ex. args[3 ])), $ (esc (ex. args[3 ])), $ (esc (ex. args[2 ]))})
270
263
else
@@ -273,7 +266,6 @@ macro MMatrix(ex)
273
266
end
274
267
elseif length (ex. args) == 4
275
268
return quote
276
- $ (Expr (:meta , :inline ))
277
269
eye (MMatrix{$ (esc (ex. args[3 ])), $ (esc (ex. args[4 ])), $ (esc (ex. args[2 ]))})
278
270
end
279
271
else
0 commit comments