We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3ade04 commit 4c7ec86Copy full SHA for 4c7ec86
1 file changed
src/std.jl
@@ -363,10 +363,16 @@ function _to_std_string(arg::BinaryOperation{Mult})
363
m_ids = get_indices(matrix)
364
v_ids = get_indices(vector)
365
366
+ matrix_str = if matrix isa KrD
367
+ ""
368
+ else
369
+ _to_std_string(matrix)
370
+ end
371
+
372
if m_ids[1] == v_ids[1]
- return "diag(" * _to_std_string(vector) * ")" * _to_std_string(matrix)
373
+ return "diag(" * _to_std_string(vector) * ")" * matrix_str
374
elseif m_ids[2] == v_ids[1]
- return _to_std_string(matrix) * " diag(" * _to_std_string(vector) * ")"
375
+ return matrix_str * " diag(" * _to_std_string(vector) * ")"
376
end
377
378
0 commit comments