Truncate to nearest integer.
More...
Truncate to nearest integer.
- Note
- This function supports real inputs only. Complex inputs are not yet supported.
C Interface for truncating an array of numbers.
- Parameters
-
| [out] | out | will contain values truncated to nearest integer not greater than input |
| [in] | in | is input array |
- Returns
- AF_SUCCESS if the execution completes properly
| AFAPI array af::trunc |
( |
const array & |
in | ) |
|
C++ Interface for truncating an array of numbers.
- Parameters
-
- Returns
- values truncated to nearest integer not greater than input values