atomica.function_parser.vector_min¶
- atomica.function_parser.vector_min(*args)[source]¶
Repeated elementwise minimum
Repeatedly call np.minimum so that both scalars and arrays are supported as well as >2 items.
All arrays provided (if any) must be the same size
Example
>>> vector_min([1,2],0,[-1,1]) array([-1, 0])
- Parameters:
args – Scalars or arrays to take minimum over
- Returns:
Result of calling np.minimum repeatedly - Scalar if all inputs are scalar - np.array if any input is an array