#NEWLINE# def concatenate_matrices( * matrices ) : #NEWLINE# #INDENT# 'Return concatenation of series of transformation matrices.\n\n    >>> M = numpy.random.rand(16).reshape((4, 4)) - 0.5\n    >>> numpy.allclose(M, concatenate_matrices(M))\n    True\n    >>> numpy.allclose(numpy.dot(M, M.T), concatenate_matrices(M, M.T))\n    True\n\n    ' #NEWLINE# M = numpy . identity ( 4 ) #NEWLINE# for i in matrices : #NEWLINE# #INDENT# M = numpy . dot ( matrices , i ) #NEWLINE# #UNINDENT# return M