Round to nearest integer.
More...
Round to nearest integer.
- Note
- This function supports real inputs only. Complex inputs are not yet supported.
C Interface for rounding an array of numbers.
- Parameters
-
| [out] | out | will contain values rounded to nearest integer |
| [in] | in | is input array |
- Returns
- AF_SUCCESS if the execution completes properly
- Note
- The values are rounded to nearest integer
C Interface for finding the sign of the input.
- Parameters
-
| [out] | out | will contain the sign of each element of the input arrays |
| [in] | in | is input array |
- Returns
- AF_SUCCESS if the execution completes properly
- Note
- output is 1 for negative numbers and 0 for positive numbers
| AFAPI array af::round |
( |
const array & |
in | ) |
|
C++ Interface for rounding an array of numbers.
- Parameters
-
- Returns
- values rounded to nearest integer
- Note
- The values are rounded to nearest integer
- Examples:
- machine_learning/rbm.cpp.