本文简要介绍 python 语言中  numpy.broadcast_shapes  的用法。
- 用法:- numpy.broadcast_shapes(*args)
- 将输入形状广播到单个形状中。 - 在此处了解有关广播的更多信息。 - `*args`: 整数元组或整数
- 要相互广播的形状。 
 
- 元组
- 广播的形状。 
 
- ValueError
- 如果形状不兼容并且无法根据 NumPy 的广播规则进行广播。 
 
 - 参数:- 返回:- 抛出:- 例子:- >>> np.broadcast_shapes((1, 2), (3, 1), (3, 2)) (3, 2)- >>> np.broadcast_shapes((6, 7), (5, 6, 1), (7,), (5, 1, 7)) (5, 6, 7)
相关用法
- Python numpy broadcast_to用法及代码示例
- Python numpy broadcast_arrays用法及代码示例
- Python numpy broadcast用法及代码示例
- Python numpy broadcast.nd用法及代码示例
- Python numpy broadcast.size用法及代码示例
- Python numpy broadcast.reset用法及代码示例
- Python numpy broadcast.numiter用法及代码示例
- Python numpy broadcast.iters用法及代码示例
- Python numpy broadcast.ndim用法及代码示例
- Python numpy broadcast.index用法及代码示例
- Python numpy byte_bounds用法及代码示例
- Python numpy block用法及代码示例
- Python numpy busday_offset用法及代码示例
- Python numpy base_repr用法及代码示例
- Python numpy bartlett用法及代码示例
- Python numpy blackman用法及代码示例
- Python numpy busdaycalendar用法及代码示例
- Python numpy bitwise_xor用法及代码示例
- Python numpy binary_repr用法及代码示例
- Python numpy bitwise_and用法及代码示例
- Python numpy busday_count用法及代码示例
- Python numpy bmat用法及代码示例
- Python numpy bincount用法及代码示例
- Python numpy bitwise_or用法及代码示例
- Python numpy RandomState.standard_exponential用法及代码示例
注:本文由纯净天空筛选整理自numpy.org大神的英文原创作品 numpy.broadcast_shapes。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
