mx.nd.rint¶
Description¶
Returns element-wise rounded value to the nearest integer of the input.
Note
For input
n.5rintreturnsnwhileroundreturnsn+1. - For input-n.5bothrintandroundreturns-n-1.
Example:
rint([-1.5, 1.5, -1.9, 1.9, 2.1]) = [-2., 1., -2., 2., 2.]
The storage type of ``rint`` output depends upon the input storage type:
- rint(default) = default
- rint(row_sparse) = row_sparse
- rint(csr) = csr
Arguments¶
Argument |
Description |
|---|---|
|
NDArray-or-Symbol. The input array. |
Value¶
out The result mx.ndarray
Link to Source Code: http://github.com/apache/incubator-mxnet/blob/1.6.0/src/operator/tensor/elemwise_unary_op_basic.cc#L799
