linalg/fmt
src/linalg/fmt.tur
pretty-printing and string conversion for mat and vec
defn
mat->str
(mat->str [m] :cstr)
convert matrix to string
defn
mat-print
(mat-print [m] :void)
print matrix to stdout
defn
mat-print-prec
(mat-print-prec [m prec] :void)
print matrix to stdout with precision control
defn
vec->str
(vec->str [v] :cstr)
convert vector to string
defn
vec-print
(vec-print [v] :void)
print vector to stdout
defn
vec-print-prec
(vec-print-prec [v prec] :void)
print vector to stdout with precision control
Internal definitions
fmt--float->str-- Private helper: format a float with given precisionfmt--str-free-- Private helper: free a string allocated by fmt--float->strfmt--mat-col-width-- Private helper: compute max width needed for a columnfmt--mat-row->str-- Private helper: format a matrix rowmat->str-prec-- convert matrix to string with precision controlvec->str-prec-- convert vector to string with precision control