max
The ‘af.max()’ function in ArrayFire is used to find the maximum value within an array or along a specific dimension. It can also return the indices of the maximum values if requested.
Function
af.max()
Python interface used to find the maximum value within an array or specific dimension.
Detailed Description
The af.max() function performs one of the following operations:
Finds the maximum value in the entire array.
Finds the maximum value along a specified dimension.
Returns both the maximum values and their indices if requested.