aerosandbox.numpy.logicals#

Module Contents#

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.

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