Skip to content

Commit

Permalink
Update NDArray.java (#1113)
Browse files Browse the repository at this point in the history
Fix documentation of minimum of two NDArrays to read minimum, not maximum.
  • Loading branch information
ElchananHaas authored Jul 19, 2021
1 parent ad6b11f commit 00ac45c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/main/java/ai/djl/ndarray/NDArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -1740,7 +1740,7 @@ default boolean allClose(NDArray other, double rtol, double atol, boolean equalN
NDArray minimum(Number n);

/**
* Returns the maximum of this {@code NDArray} and the other {@code NDArray} element-wise.
* Returns the minimum of this {@code NDArray} and the other {@code NDArray} element-wise.
*
* <p>The shapes of this {@code NDArray} and the other {@code NDArray} must be broadcastable.
*
Expand All @@ -1762,7 +1762,7 @@ default boolean allClose(NDArray other, double rtol, double atol, boolean equalN
* </pre>
*
* @param other the {@code NDArray} to be compared
* @return the maximum of this {@code NDArray} and the other {@code NDArray} element-wise
* @return the minimum of this {@code NDArray} and the other {@code NDArray} element-wise
*/
NDArray minimum(NDArray other);

Expand Down

0 comments on commit 00ac45c

Please sign in to comment.