Post · 2 min read· pp. 870–871

aerosandbox.numpy.logicals

Functions

clip(x, min, max)Clip a value to a range.
logical_and(x1, x2)Compute the truth value of x1 AND x2 element-wise.
logical_or(x1, x2)Compute the truth value of x1 OR x2 element-wise.
logical_not(x)Compute the truth value of NOT x element-wise.
all(a)Test whether all array elements along a given axis evaluate to True.
any(a)Test whether any array element along a given axis evaluates to True.

Module Contents

aerosandbox.numpy.logicals.clip(x, min, max) : 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.

code
Returns:

aerosandbox.numpy.logicals.logical_and(x1, x2) : Compute the truth value of x1 AND x2 element-wise.

code
See syntax here: <https://numpy.org/doc/stable/reference/generated/numpy.logical_and.html>

aerosandbox.numpy.logicals.logical_or(x1, x2) : Compute the truth value of x1 OR x2 element-wise.

code
See syntax here: <https://numpy.org/doc/stable/reference/generated/numpy.logical_or.html>

aerosandbox.numpy.logicals.logical_not(x) : Compute the truth value of NOT x element-wise.

code
See syntax here: <https://numpy.org/doc/stable/reference/generated/numpy.logical_not.html>

aerosandbox.numpy.logicals.all(a) : Test whether all array elements along a given axis evaluate to True.

code
See syntax here: <https://numpy.org/doc/stable/reference/generated/numpy.all.html>

aerosandbox.numpy.logicals.any(a) : Test whether any array element along a given axis evaluates to True.

code
See syntax here: <https://numpy.org/doc/stable/reference/generated/numpy.any.html>