diff --git a/cmd/root.go b/cmd/root.go index 8afa38e..1769bf6 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -134,9 +134,9 @@ func outputMatrix(matrix mat.Matrix) { // for matlab and python formats, %#v outputs as matrix and %v is // oneline, but for standard format, it's the opposite, so we xor if (matlabFmt || pythonFmt) != oneline { - fmt.Printf("%#v\n", out) + fmt.Printf("%#.6v\n", out) } else { - fmt.Printf("%v\n", out) + fmt.Printf("%.6v\n", out) } }