aerosandbox.numpy.conditionals
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. |
Module Contents
aerosandbox.numpy.conditionals.where(condition, value_if_true, value_if_false) : Return elements chosen from x or y depending on condition.
code
See syntax here: <https://numpy.org/doc/stable/reference/generated/numpy.where.html>aerosandbox.numpy.conditionals.maximum(x1, x2) : Element-wise maximum of two arrays.
code
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) : Element-wise minimum of two arrays.
code
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>