当前位置:网站首页>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])边栏推荐
- 411 stack and queue (20. valid parentheses, 1047. delete all adjacent duplicates in the string, 150. inverse Polish expression evaluation, 239. sliding window maximum, 347. the first k high-frequency
- 数组无缝滚动demo
- How to standardize data center infrastructure management process
- Endgame P.O.O
- Troubleshooting steps for Oracle pool connection request timeout
- Thinkphp5 clear the cache cache, temp cache and log cache under runtime
- 如何规范化数据中心基础设施管理流程
- JCIM|药物发现中基于AI的蛋白质结构预测:影响和挑战
- TP5 using post to receive array data times variable type error: solution to array error
- 415-二叉树(144. 二叉树的前序遍历、145. 二叉树的后序遍历、94. 二叉树的中序遍历)
猜你喜欢

CVPR 2022 Oral | 英伟达提出自适应token的高效视觉Transformer网络A-ViT,不重要的token可以提前停止计算

Floating point notation (summarized from cs61c and CMU CSAPP)

2021-08-17

简单的价格表样式代码

p5.js实现的炫酷交互式动画js特效

Producer / consumer model

How to solve multi-channel customer communication problems in independent stations? This cross-border e-commerce plug-in must be known!

Binary tree part I

NVIDIA's CVPR 2022 oral is on fire! 2D images become realistic 3D objects in seconds! Here comes the virtual jazz band!

CVPR 2022 oral | NVIDIA proposes an efficient visual transformer network a-vit with adaptive token. The calculation of unimportant tokens can be stopped in advance
随机推荐
CVPR 2022 Oral | 英伟达提出自适应token的高效视觉Transformer网络A-ViT,不重要的token可以提前停止计算
Regular matching mobile number
Three ways to use applicationcontextinitializer
Amendment to VPP implementation policy routing
Producer / consumer model
Desktop software development framework reward
CICFlowMeter源码分析以及为满足需求而进行的修改
About thinkphp5, use the model save() to update the data prompt method not exist:think\db\query- & gt; Error reporting solution
保健品一物一码防窜货营销软件开发
买的长期理财产品,可以转短吗?
SQL Sever关于like操作符(包括字段数据自动填充空格问题)
TP5 using post to receive array data times variable type error: solution to array error
顶刊TPAMI 2022!基于不同数据模态的行为识别:最新综述
Queue queue
oracle池式连接请求超时问题排查步骤
[Eureka source code analysis]
413 binary tree Foundation
ByteDance Interviewer: talk about the principle of audio and video synchronization. Can audio and video be absolutely synchronized?
Geogebra instance clock
Mise en œuvre du rendu de liste et du rendu conditionnel pour l'apprentissage des applets Wechat.