当前位置:网站首页>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])边栏推荐
- Go language development environment setup +goland configuration under the latest Windows
- 上升的气泡canvas破碎动画js特效
- 415-二叉树(144. 二叉树的前序遍历、145. 二叉树的后序遍历、94. 二叉树的中序遍历)
- Groovy obtains Jenkins credentials through withcredentials
- Thinkphp5 multi language switching project practice
- 桌面软件开发框架大赏
- 416-二叉树(前中后序遍历—迭代法)
- Array seamless scrolling demo
- canvas管道动画js特效
- JS proxy mode
猜你喜欢

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

Development of anti fleeing marketing software for health products

Groovy obtains Jenkins credentials through withcredentials

Troubleshooting steps for Oracle pool connection request timeout

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

机器学习——主成分分析(PCA)

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

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

如何管理海量的网络基础设施?

How does home office manage the data center network infrastructure?
随机推荐
PostgreSQL
415-二叉树(144. 二叉树的前序遍历、145. 二叉树的后序遍历、94. 二叉树的中序遍历)
413-二叉树基础
Nvisual digital infrastructure operation management software platform
时尚的弹出模态登录注册窗口
Why is JSX syntax so popular?
SQL sever试题求最晚入职日期
el-table点击添加行样式
2021-08-17
Impdp leading schema message ora-31625 exception handling
413 binary tree Foundation
Amendment to VPP implementation policy routing
Phpstrom code formatting settings
Desktop software development framework reward
PostgreSQL DBA快速入门-通过源码编译安装
[input method] so far, there are so many Chinese character input methods!
如何提高网络基础设施排障效率,告别数据断档?
植物生长h5动画js特效
PostgreSQL DBA quick start - source compilation and installation
Symbol. Iterator iterator