findmin() is an inbuilt function in julia which is used to return the minimum element of the specified collection along with its index. If there are multiple minimal 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 minimum elements with their corresponding index.