findmax() is an inbuilt function in julia which is used to return the maximum element of the specified collection along with its index. If there are multiple maximal elements are present in the collection, then the first one will be returned. If there is any data element is NaN, this element is returned.
- itr: Specified collection of elements.
- A: Specified array.
- dims: Specified dimension.
Returns: It returns the maximum elements with their corresponding index.