Converts a matrix to string for printing in files
function matrixToString input Real A[:, :]; output String s; end matrixToString;