当前位置:网站首页>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])边栏推荐
- How to solve multi-channel customer communication problems in independent stations? This cross-border e-commerce plug-in must be known!
- 411-栈和队列(20. 有效的括号、1047. 删除字符串中的所有相邻重复项、150. 逆波兰表达式求值、239. 滑动窗口最大值、347. 前 K 个高频元素)
- Latex formula and table recognition
- SQL Sever关于like操作符(包括字段数据自动填充空格问题)
- Practical analysis: implementation principle of APP scanning code landing (app+ detailed logic on the web side) with source code
- port 22: Connection refused
- LeetCode: 377. Combined sum IV
- SQL statistics of users logged in for N consecutive days
- 上升的气泡canvas破碎动画js特效
- How to standardize data center infrastructure management process
猜你喜欢

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

oracle池式连接请求超时问题排查步骤

canvas 绘制图片

Jcim | AI based protein structure prediction in drug discovery: impacts and challenges

SQL Sever关于like操作符(包括字段数据自动填充空格问题)

美国电子烟巨头 Juul 遭遇灭顶之灾,所有产品强制下架

微信小程序學習之 實現列錶渲染和條件渲染.

如何提高网络基础设施排障效率,告别数据断档?

Cookie encryption 4 RPC method determines cookie encryption

About thinkphp5, use the model save() to update the data prompt method not exist:think\db\query- & gt; Error reporting solution
随机推荐
操作符详解
Go language development environment setup +goland configuration under the latest Windows
416-二叉树(前中后序遍历—迭代法)
How to manage massive network infrastructure?
SQL statistics of users logged in for N consecutive days
SQL-统计连续N天登陆的用户
Network of test and development - Common Service Protocols
Baidu AI template for knowledge understanding
美国电子烟巨头 Juul 遭遇灭顶之灾,所有产品强制下架
买的长期理财产品,可以转短吗?
Nvisual digital infrastructure operation management software platform
Prct-1400: failed to execute getcrshome resolution
Queue queue
Symbol. Iterator iterator
Programming questions (continuously updated)
p5.js实现的炫酷交互式动画js特效
canvas管道动画js特效
415 binary tree (144. preorder traversal of binary tree, 145. postorder traversal of binary tree, 94. inorder traversal of binary tree)
PostgreSQL
2021-08-17