当前位置:网站首页>numpy. logical_ and()
numpy. logical_ and()
2022-06-24 10:18:00 【Wanderer001】
Reference resources numpy.logical_and() - cloud + Community - Tencent cloud
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])边栏推荐
- [input method] so far, there are so many Chinese character input methods!
- 学习使用php实现无限极评论和无限极转二级评论解决方案
- 记录一下MySql update会锁定哪些范围的数据
- leetCode-929: 独特的电子邮件地址
- 学习整理在php中使用KindEditor富文本编辑器
- Cicflowmeter source code analysis and modification to meet requirements
- 牛客-TOP101-BM29
- What are the characteristics of EDI local deployment and cloud hosting solutions?
- 包装类型的缓存机制
- 24. 图像拼接大作业
猜你喜欢

自定义kindeditor编辑器的工具栏,items即去除不必要的工具栏或者保留部分工具栏

Tutorial (5.0) 08 Fortinet security architecture integration and fortixdr * fortiedr * Fortinet network security expert NSE 5

Cicflowmeter source code analysis and modification to meet requirements

形状变化loader加载jsjs特效代码

Yolov6: the fast and accurate target detection framework is open source

Impdp leading schema message ora-31625 exception handling

解决Deprecated: Methods with the same name as their class will not be constructors in报错方案

6. package management business development

SVG+js拖拽滑块圆形进度条

Wechat applet learning to achieve list rendering and conditional rendering
随机推荐
SVG+js拖拽滑块圆形进度条
2022-06-23:给定一个非负数组,任意选择数字,使累加和最大且为7的倍数,返回最大累加和。 n比较大,10的5次方。 来自美团。3.26笔试。
消息队列的作用
Leetcode interview question 01.05: primary editing
百度网盘下载一直请求中问题解决
p5.js实现的炫酷交互式动画js特效
使用swiper左右轮播切换时,Swiper Animate的动画失效,怎么解决?
416 binary tree (first, middle and last order traversal iteration method)
415-二叉树(144. 二叉树的前序遍历、145. 二叉树的后序遍历、94. 二叉树的中序遍历)
canvas掉落的小球重力js特效动画
leetCode-面试题 16.06: 最小差
Safety and food security for teachers and students of the trapped Yingxi middle school
Uniapp develops a wechat applet to display the map function, and click it to open Gaode or Tencent map.
Leetcode-1089: replication zero
Queue queue
2021-08-17
Get the QR code of wechat applet with parameters - and share the source code of modifying the QR code logo
机器学习——主成分分析(PCA)
2. login and exit function development
学习使用php对字符串中的特殊符号进行过滤的方法