当前位置:网站首页>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])边栏推荐
- How does home office manage the data center network infrastructure?
- How to customize sharing links in wechat for H5 web pages
- 引擎国产化适配&重构笔记
- 植物生长h5动画js特效
- Internet of things? Come and see Arduino on the cloud
- leetCode-498: 对角线遍历
- How to improve the efficiency of network infrastructure troubleshooting and bid farewell to data blackouts?
- Nvisual digital infrastructure operation management software platform
- How to manage massive network infrastructure?
- Producer / consumer model
猜你喜欢

线程的 sleep() 方法与 wait() 方法的区别

TP5 using post to receive array data times variable type error: solution to array error

415 binary tree (144. preorder traversal of binary tree, 145. postorder traversal of binary tree, 94. inorder traversal of binary tree)

Floating point notation (summarized from cs61c and CMU CSAPP)

Leetcode - 498: traversée diagonale

Queue queue

大中型企业如何构建自己的监控体系

线程的六种状态

物联网?快来看 Arduino 上云啦

Uniapp develops wechat official account, and the drop-down box selects the first one in the list by default
随机推荐
静态链接库和动态链接库的区别
美国电子烟巨头 Juul 遭遇灭顶之灾,所有产品强制下架
413 binary tree Foundation
How to customize sharing links in wechat for H5 web pages
线程池的状态
使用swiper左右轮播切换时,Swiper Animate的动画失效,怎么解决?
Using pandas to read SQL server data table
解决Deprecated: Methods with the same name as their class will not be constructors in报错方案
canvas管道动画js特效
leetCode-面试题 01.05: 一次编辑
El table Click to add row style
numpy.linspace()
植物生长h5动画js特效
tf.errors
整理接口性能优化技巧,干掉慢代码
SSM整合
包装类型与基本类型的区别
How large and medium-sized enterprises build their own monitoring system
Uniapp develops a wechat applet to display the map function, and click it to open Gaode or Tencent map.
PHP encapsulates a file upload class (supports single file and multiple file uploads)