slight code cleanup for echo_matrix

This commit is contained in:
Adrian Mariano 2021-01-01 21:15:56 -05:00
parent 0f55fb512e
commit eb5de51533

View file

@ -514,8 +514,8 @@ function echo_matrix(M,description,sig=4,eps=1e-9) =
horiz_line = chr(8213),
matstr = matrix_strings(M,sig=sig,eps=eps),
separator = str_join(repeat(horiz_line,10)),
dummy1=echo(str(separator," ",is_def(description) ? description : "")),
dummy2=[for(row=matstr) echo(row)]
dummy=echo(str(separator," ",is_def(description) ? description : ""))
[for(row=matstr) echo(row)]
)
echo(separator);
@ -525,5 +525,4 @@ module echo_matrix(M,description,sig=4,eps=1e-9)
}
// vim: expandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap