We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f64ad4a commit e98d1d0Copy full SHA for e98d1d0
1 file changed
src/std.jl
@@ -515,30 +515,6 @@ function to_ir(arg::Power)
515
return ir.Power(to_ir(arg.base), arg.exponent)
516
end
517
518
-function parenthesize_std(arg)
519
- return _to_std_string(arg)
520
-end
521
-
522
-function parenthesize_std(arg::Real)
523
- if arg < 0
524
- return "(" * _to_std_string(arg) * ")"
525
- end
526
527
528
529
530
-function parenthesize_std(arg::BinaryOperation{Op}) where {Op<:AdditiveOperation}
531
532
533
534
-function parenthesize_std(arg::BinaryOperation{Mult})
535
- if is_elementwise_multiplication(arg.arg1, arg.arg2)
536
537
538
539
540
541
542
function is_trace(arg)
543
terms = collect_factors(arg)
544
0 commit comments