aerosandbox.numpy.logicals
#
Module Contents#
Functions#
|
Clip a value to a range. |
|
Compute the truth value of x1 AND x2 element-wise. |
|
Compute the truth value of x1 OR x2 element-wise. |
|
Compute the truth value of NOT x element-wise. |
|
Test whether all array elements along a given axis evaluate to True. |
|
Test whether any array element along a given axis evaluates to True. |
- aerosandbox.numpy.logicals.clip(x, min, max)[source]#
Clip a value to a range. :param x: Value to clip. :param min: Minimum value to clip to. :param max: Maximum value to clip to.
Returns:
- aerosandbox.numpy.logicals.logical_and(x1, x2)[source]#
Compute the truth value of x1 AND x2 element-wise.
See syntax here: https://numpy.org/doc/stable/reference/generated/numpy.logical_and.html
- aerosandbox.numpy.logicals.logical_or(x1, x2)[source]#
Compute the truth value of x1 OR x2 element-wise.
See syntax here: https://numpy.org/doc/stable/reference/generated/numpy.logical_or.html
- aerosandbox.numpy.logicals.logical_not(x)[source]#
Compute the truth value of NOT x element-wise.
See syntax here: https://numpy.org/doc/stable/reference/generated/numpy.logical_not.html
- aerosandbox.numpy.logicals.all(a)[source]#
Test whether all array elements along a given axis evaluate to True.
See syntax here: https://numpy.org/doc/stable/reference/generated/numpy.all.html
- aerosandbox.numpy.logicals.any(a)[source]#
Test whether any array element along a given axis evaluates to True.
See syntax here: https://numpy.org/doc/stable/reference/generated/numpy.any.html