提交 0a1468ed authored 作者: Frederic's avatar Frederic

Added comment

上级 c7fea1a1
...@@ -831,6 +831,8 @@ det = Det() ...@@ -831,6 +831,8 @@ det = Det()
def trace(X): def trace(X):
""" """
Returns the sum of diagonal elements of matrix X. Returns the sum of diagonal elements of matrix X.
:note: work on GPU since 0.6rc4.
""" """
return extract_diag(X).sum() return extract_diag(X).sum()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论