atomica.function_parser.vector_max

atomica.function_parser.vector_max(*args)[source]

Repeated elementwise maximum

Repeatedly call np.maximum 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_max([1,2],5,[10,1])
array([10,  5])
Parameters

args – Scalars or arrays to take maximum over

Returns

Result of calling np.maximum repeatedly - Scalar if all inputs are scalar - np.array if any input is an array