提交 49add2d8 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Merge pull request #759 from goodfeli/add_square

added a "tensor.square" alias to "tensor.sqr" to maintain similarity to
......@@ -2657,6 +2657,10 @@ def sqr(a):
"""square of a"""
#alias to sqr, included to maintain similarity with numpy interface
square = sqr
@_scal_elemwise_with_nfunc('sqrt', 1, 1)
def sqrt(a):
"""square root of a"""
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论