mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-19 16:01:20 +02:00
slight code cleanup for echo_matrix
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user