aerosandbox.numpy.conditionals¶
Functions¶
Module Contents¶
- 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