matrix.any()

numpy.matrix.any

matrix.any(axis=None, out=None) [source]

Test whether any array element along a given axis evaluates to True.

Refer to numpy.any for full documentation.

Parameters:

axis : int, optional

Axis along which logical OR is performed

out : ndarray, optional

Output to existing array instead of creating new one, must have same shape as expected output

Returns:

any : bool, ndarray

Returns a single bool if axis is None; otherwise, returns ndarray

© 2008–2017 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.matrix.any.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部