max#
- bamengine.ops.max(a, axis=None)[source]#
Return maximum value of array elements.
- Parameters:
- Returns:
Maximum value (scalar if axis=None, array otherwise).
- Return type:
Examples
>>> import bamengine.ops as ops >>> prices = np.array([100, 110, 90, 105]) >>> max_price = ops.max(prices) >>> # max_price: 110
Notes
This is an aggregation function (reduces array to single value). For element-wise maximum of two arrays, use
maximum().