提交 74d78256 authored 作者: Ricardo Vieira's avatar Ricardo Vieira 提交者: Ricardo Vieira

Clarify behavior of Elemwise second

上级 0b558d8e
......@@ -765,7 +765,12 @@ where = switch
@scalar_elemwise
def second(a, b):
"""Create a matrix by filling the shape of a with b"""
"""Create a matrix by filling the broadcasted shapes of a and b with the values of b
Equivalent to `np.broadcast_arrays(a, b)[1]`
Equivalent to `np.array(a).fill(b)` when b is a scalar value.
"""
fill = second
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论