当前位置:网站首页>numpy.logical_and()
numpy.logical_and()
2022-06-24 09:40:00 【Wanderer001】
参考 numpy.logical_and() - 云+社区 - 腾讯云
numpy.logical_and(x1, x2, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) = <ufunc 'logical_and'>
Compute the truth value of x1 AND x2 element-wise.
| Parameters: | x1, x2 : array_like Input arrays. 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_or, logical_not, logical_xor, bitwise_and
Examples
>>> np.logical_and(True, False)
False
>>> np.logical_and([True, False], [False, False])
array([False, False])
>>> x = np.arange(5)
>>> np.logical_and(x>1, x<4)
array([False, False, True, True, False])边栏推荐
- JS proxy mode
- NVIDIA's CVPR 2022 oral is on fire! 2D images become realistic 3D objects in seconds! Here comes the virtual jazz band!
- Top issue tpami 2022! Behavior recognition based on different data modes: a recent review
- Five heart matchmaker
- Error reading CSV (TSV) file
- 416 binary tree (first, middle and last order traversal iteration method)
- Groovy obtains Jenkins credentials through withcredentials
- canvas无限扫描js特效代码
- 2021-08-17
- dedecms模板文件讲解以及首页标签替换
猜你喜欢

Mise en œuvre du rendu de liste et du rendu conditionnel pour l'apprentissage des applets Wechat.

Cicflowmeter source code analysis and modification to meet requirements

Getting user information for applet learning (getuserprofile and getUserInfo)

Analysis of 43 cases of MATLAB neural network: Chapter 32 time series prediction of wavelet neural network - short-term traffic flow prediction

时尚的弹出模态登录注册窗口

二叉树第一部分

居家办公如何管理数据中心网络基础设施?

nVisual数字基础设施运营管理软件平台

YOLOv6:又快又准的目标检测框架开源啦

美国电子烟巨头 Juul 遭遇灭顶之灾,所有产品强制下架
随机推荐
GIS实战应用案例100篇(十四)-ArcGIS属性连接和使用Excel的问题
PostgreSQL DBA quick start - source compilation and installation
411-栈和队列(20. 有效的括号、1047. 删除字符串中的所有相邻重复项、150. 逆波兰表达式求值、239. 滑动窗口最大值、347. 前 K 个高频元素)
indexedDB本地存储,首页优化
买的长期理财产品,可以转短吗?
Baidu AI template for knowledge understanding
415-二叉树(144. 二叉树的前序遍历、145. 二叉树的后序遍历、94. 二叉树的中序遍历)
2021-08-17
How does home office manage the data center network infrastructure?
416-二叉树(前中后序遍历—迭代法)
Canvas draw picture
物联网?快来看 Arduino 上云啦
MYSQL数据高级
JS proxy mode
利用pandas读取SQL Sever数据表
NVIDIA's CVPR 2022 oral is on fire! 2D images become realistic 3D objects in seconds! Here comes the virtual jazz band!
Analysis of 43 cases of MATLAB neural network: Chapter 32 time series prediction of wavelet neural network - short-term traffic flow prediction
有关二叉树 的基本操作
MySQL data advanced
SQL Sever关于like操作符(包括字段数据自动填充空格问题)