We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccf399b commit b38a06fCopy full SHA for b38a06f
1 file changed
src/stdstr.jl
@@ -138,9 +138,9 @@ end
138
139
function to_std_str(arg::ir.PartialSum)
140
if arg.dim == 1
141
- return "vec(1)ᵀ" * to_std_str(arg.arg)
+ return "vec(1)ᵀ" * parenthesize(to_std_str, arg.arg)
142
elseif arg.dim == 2
143
- return to_std_str(arg.arg) * "vec(1)"
+ return parenthesize(to_std_str, arg.arg) * "vec(1)"
144
end
145
146
throw(RuntimeError("Encountered a sum over an unsupported index"))
0 commit comments