Revision history [back]

Starting from the NumPy official documentation, the behavior of the function is the following:

numpy.any(a, axis=None, out=None, keepdims=novalue)

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

Also, in that case, you gave to this function just the array, so in Python the function is called with some default parameters, so axis= None, out=None and keepdims=novalue. Just the first one is interesting for you, so:

The default (axis = None) is to perform a logical OR over all the dimensions of the input array

So I suppose that if just one element of the array is positive, this function return true, you have just to check each element of the array/Mat

Starting from the NumPy official documentation, the behavior of the function is the following:

numpy.any(a, axis=None, out=None, keepdims=novalue)keepdims=novalue)
Test whether any array element along a given axis evaluates to True. 
True. 

Also, in that case, you gave to this function just the array, so in Python the function is called with some default parameters, so axis= None, out=None and keepdims=novalue. Just the first one is interesting for you, so:

The default (axis = None) is to perform a logical OR over all the dimensions of the input array

So I suppose that if just one element of the array is positive, this function return true, you have just to check each element of the array/Mat

Starting from the From NumPy official documentation, the behavior of the function is the following:

numpy.any(a, axis=None, out=None, keepdims=novalue)

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


Also, in that case, you gave to this function just the array, so in Python the function is called with some default parameters, so axis= None, out=None and keepdims=novalue. Just the first one is interesting for you, so:

The default (axis = None) is to perform a logical OR over all the dimensions of the input array

So I suppose that if just one element of the array is positive, this function return true, you have just to check each element of the array/Mat

From NumPy official documentation, the behavior of the function is the following:

numpy.any(a, axis=None, out=None, keepdims=novalue)

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


Also, in that case, you gave give to this thie function just the input array, so in Python the function is called with some default parameters, so parameters: axis= None, out=None and keepdims=novalue. Just the first one is interesting for you, so:

The default (axis = None) is to perform a logical OR over all the dimensions of the input array

So I suppose that if just one element of the array is positive, this function return true, true: you have just to check each element of the array/Mat

From NumPy official documentation, the behavior of the function is the following:

numpy.any(a, axis=None, out=None, keepdims=novalue)

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


Also, in that case, you give to thie function just the input array, so in Python the function is called with some default parameters: axis= None, out=None and keepdims=novalue. Just the first one is interesting for you, so:

The default (axis = None) is to perform a logical OR over all the dimensions of the input array

So I suppose that if just one element of the array is positive, this function return true: you have just to check each element of the array/Matarray/Mat to find if at least one element is positive, so it return true, otherwise false.

From NumPy official documentation, the behavior of the function is the following:

numpy.any(a, axis=None, out=None, keepdims=novalue)

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


Also, in that case, you give to thie function just the input array, so in Python the function is called with some default parameters: axis= None, out=None and keepdims=novalue. Just the first one is interesting for you, so:

The default (axis = None) is to perform a logical OR over all the dimensions of the input array

So I suppose that if just one element of the array is positive, this function return true: you have just to check each element of the array/Mat to find if at least one element is positive, so it return true, otherwise false.

From NumPy official documentation, the behavior of the function is the following:

numpy.any(a, axis=None, out=None, keepdims=novalue)

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


Also, in that case, you give to thie function just the input array, so in Python the function is called with some default parameters: axis= None, out=None and keepdims=novalue. Just the first one is interesting for you, so:

The default (axis = None) is to perform a logical OR over all the dimensions of the input array

So I suppose that if just one element of the array is positive, this function return true: you have just to check each element of the array/Mat to find if at least one element is positive, positive (greter than 0, because 0 is false), so it return true, otherwise false.