transformations.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:pybot 作者: spillai 项目源码 文件源码
def concatenate_matrices(*matrices):
    """Return concatenation of series of transformation matrices.

    >>> M = numpy.random.rand(16).reshape((4, 4)) - 0.5
    >>> numpy.allclose(M, concatenate_matrices(M))
    True
    >>> numpy.allclose(numpy.dot(M, M.T), concatenate_matrices(M, M.T))
    True

    """
    M = numpy.identity(4)
    for i in matrices:
        M = numpy.dot(M, i)
    return M
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号