Closed rhshi closed 2 months ago
The following code prints fine in Jupyter:
@variables h[1:9, 1:10]; Symbolics.scalarize(h)
but the following prints some buggy double subscript Latex:
@variables h[1:10, 1:10]; Symbolics.scalarize(h)
What might be happening is that when indexing row 10 it is printing the following:
h_1_{0}ˏ_1 & h_1_{0}ˏ_2 & h_1_{0}ˏ_3 & h_1_{0}ˏ_4 & h_1_{0}ˏ_5 & h_1_{0}ˏ_6 & h_1_{0}ˏ_7 & h_1_{0}ˏ_8 & h_1_{0}ˏ_9 & h_1_{0}ˏ_{1 0}
The following code prints fine in Jupyter:
@variables h[1:9, 1:10]; Symbolics.scalarize(h)
but the following prints some buggy double subscript Latex:
@variables h[1:10, 1:10]; Symbolics.scalarize(h)
What might be happening is that when indexing row 10 it is printing the following:
h_1_{0}ˏ_1 & h_1_{0}ˏ_2 & h_1_{0}ˏ_3 & h_1_{0}ˏ_4 & h_1_{0}ˏ_5 & h_1_{0}ˏ_6 & h_1_{0}ˏ_7 & h_1_{0}ˏ_8 & h_1_{0}ˏ_9 & h_1_{0}ˏ_{1 0}