当前位置:网站首页>numpy. logical_ or
numpy. logical_ or
2022-06-24 10:18:00 【Wanderer001】
Reference resources numpy.logical_or - cloud + Community - Tencent cloud
numpy.logical_or(x1, x2, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) = <ufunc 'logical_or'>
Compute the truth value of x1 OR x2 element-wise.
| Parameters: | x1, x2 : array_like Logical OR is applied to the elements of x1 and x2. If out : ndarray, None, or tuple of ndarray and None, optional A location into which the result is stored. If provided, it must have a shape that the inputs broadcast to. If not provided or None, a freshly-allocated array is returned. A tuple (possible only as a keyword argument) must have length equal to the number of outputs. where : array_like, optional This condition is broadcast over the input. At locations where the condition is True, the out array will be set to the ufunc result. Elsewhere, the out array will retain its original value. Note that if an uninitialized out array is created via the default **kwargs For other keyword-only arguments, see the ufunc docs. |
|---|---|
| Returns: | y : ndarray or bool Boolean result of the logical OR operation applied to the elements of x1 and x2; the shape is determined by broadcasting. This is a scalar if both x1 and x2 are scalars. |
See also
logical_and, logical_not, logical_xor, bitwise_or
Examples
>>> np.logical_or(True, False)
True
>>> np.logical_or([True, False], [False, False])
array([ True, False])
>>> x = np.arange(5)
>>> np.logical_or(x < 1, x > 3)
array([ True, False, False, False, True])边栏推荐
- 保健品一物一码防窜货营销软件开发
- 微信小程序rich-text图片宽高自适应的方法介绍(rich-text富文本)
- How large and medium-sized enterprises build their own monitoring system
- 2. login and exit function development
- uniapp实现禁止video拖拽快进
- 简单的价格表样式代码
- Status of the thread pool
- SQL sever试题求最晚入职日期
- 解决Deprecated: Methods with the same name as their class will not be constructors in报错方案
- 形状变化loader加载jsjs特效代码
猜你喜欢
随机推荐
SVG+js拖拽滑块圆形进度条
1. project environment construction
小程序学习之获取用户信息(getUserProfile and getUserInfo)
How to customize sharing links in wechat for H5 web pages
一群骷髅在飞canvas动画js特效
为什么 JSX 语法这么香?
What are the characteristics of EDI local deployment and cloud hosting solutions?
p5.js实现的炫酷交互式动画js特效
Network of test and development - Common Service Protocols
Desktop software development framework reward
MYSQL数据高级
线程调度的常用方法
Is there a reliable and low commission futures account opening channel in China? Is it safe to open an account online?
解决微信小程序rich-text富文本标签内部图片宽高自适应的方法
dedecms模板文件讲解以及首页标签替换
leetCode-面试题 16.06: 最小差
leetCode-223: 矩形面积
canvas管道动画js特效
Troubleshooting steps for Oracle pool connection request timeout
利用pandas读取SQL Sever数据表









