aerosandbox.numpy.conditionals#

Module Contents#

Functions#

where(condition, value_if_true, value_if_false)

Return elements chosen from x or y depending on condition.

maximum(x1, x2)

Element-wise maximum of two arrays.

minimum(x1, x2)

Element-wise minimum of two arrays.

aerosandbox.numpy.conditionals.where(condition, value_if_true, value_if_false)[source]#

Return elements chosen from x or y depending on condition.

See syntax here: https://numpy.org/doc/stable/reference/generated/numpy.where.html

aerosandbox.numpy.conditionals.maximum(x1, x2)[source]#

Element-wise maximum of two arrays.

Note: not differentiable at the crossover point, will cause issues if you try to optimize across a crossover.

See syntax here: https://numpy.org/doc/stable/reference/generated/numpy.maximum.html

aerosandbox.numpy.conditionals.minimum(x1, x2)[source]#

Element-wise minimum of two arrays.

Note: not differentiable at the crossover point, will cause issues if you try to optimize across a crossover.

See syntax here: https://numpy.org/doc/stable/reference/generated/numpy.minimum.html