def simple_matrix_print(matrix):
 return ('[%s]' % '\n '.join((('[%s]' % ' '.join((('% 1.4f' % v) for v in row))) for row in matrix)))

def simple_matrix_print ( matrix ) : return ( '[%s]' % '\n ' . join ( ( ( '[%s]' % ' ' . join ( ( ( '% 1.4f' % v ) for v in row ) ) ) for row in matrix ) ) )
simple string to display a floating point matrix this should give the same output on multiple systems .