numojo.routines.logic.truth¶
Truth value testing (numojo.routines.logic.truth)
This module implements the truth value testing functions, such as all and any, for both NDArray and Matrix.
Functions¶
all¶
Overload 1¶
Test whether all array elements evaluate to True.
Parameters:
dtype(DType)
Args:
A(Matrix): Matrix.
Returns:
Scalar
Overload 2¶
Test whether all array elements evaluate to True along axis.
Parameters:
dtype(DType)
Args:
A(Matrix)axis(Int)
Returns:
Matrix
Raises
Overload 3¶
If all True.
Args:
array(NDArray): A NDArray.
Returns:
Scalar
Raises
any¶
Overload 1¶
If any True.
Args:
array(NDArray): A NDArray.
Returns:
Scalar
Raises
Overload 2¶
Test whether any array elements evaluate to True.
Parameters:
dtype(DType)
Args:
A(Matrix): Matrix.
Returns:
Scalar
Overload 3¶
Test whether any array elements evaluate to True along axis.
Parameters:
dtype(DType)
Args:
A(Matrix)axis(Int)
Returns:
Matrix
Raises