klyn.math.NDArray.max
method
public max() as Object:
Description

Returns the maximum value of the array.

Returns

The first element having the maximum value.

Throws
  • ValueException if the array is empty or its numeric type is not ordered.
Example
a = NDArray<Int>.fromList([3, 1, 4])
print(a.max())  # 4