File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -307,16 +307,16 @@ function to_standard(arg::BinaryOperation{Mult})
307307end
308308
309309function to_std_str (arg:: ir.Mat )
310- if arg. id isa String
311- return arg. id
310+ if arg. id isa ir . Var
311+ return to_std_str ( arg. id)
312312 end
313313
314314 return " mat(" * to_std_str (arg. id) * " )"
315315end
316316
317317function to_std_str (arg:: ir.Vec )
318- if arg. id isa String
319- return arg. id
318+ if arg. id isa ir . Var
319+ return to_std_str ( arg. id)
320320 end
321321
322322 return " vec(" * to_std_str (arg. id) * " )"
@@ -326,8 +326,12 @@ function to_std_str(arg::ir.Scal)
326326 return to_std_str (arg. id)
327327end
328328
329- function to_std_str (arg:: String )
330- return arg
329+ function to_std_str (arg:: ir.Var )
330+ return arg. id
331+ end
332+
333+ function to_std_str (arg:: ir.Const )
334+ return to_std_str (arg. value)
331335end
332336
333337function to_std_str (arg:: Real )
You can’t perform that action at this time.
0 commit comments