提交 4da2c59e authored 作者: Razvan Pascanu's avatar Razvan Pascanu

Documentation of the matrix_dot macro.

上级 776ea7c2
...@@ -275,6 +275,12 @@ def local_log_pow(node): ...@@ -275,6 +275,12 @@ def local_log_pow(node):
def matrix_dot(*args): def matrix_dot(*args):
""" Shorthand for product between several dots
Given :math:`N` matrices :math:`A_0, A_1, .., A_N`, ``matrix_dot`` will
generate the matrix product between all in the given order, namely
:math:`A_0 \cdot A_1 \cdot A_2 \cdot .. \cdot A_N`.
"""
rval = args[0] rval = args[0]
for a in args[1:]: for a in args[1:]:
rval = theano.tensor.dot(rval, a) rval = theano.tensor.dot(rval, a)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论