Round to integer less than equal to current value. More...

Functions

AFAPI array floor (const array &in)
 C++ Interface for flooring an array of numbers. More...
 
AFAPI af_err af_floor (af_array *out, const af_array in)
 C Interface for flooring an array of numbers. More...
 
AFAPI af_err af_hypot (af_array *out, const af_array lhs, const af_array rhs, const bool batch)
 C Interface for getting length of hypotenuse of two arrays. More...
 

Detailed Description

Round to integer less than equal to current value.

Note
This function supports real inputs only. Complex inputs are not yet supported.

Function Documentation

AFAPI af_err af_floor ( af_array out,
const af_array  in 
)

C Interface for flooring an array of numbers.

Parameters
[out]outwill contain values rounded to nearest integer less than or equal to in
[in]inis input array
Returns
AF_SUCCESS if the execution completes properly
AFAPI af_err af_hypot ( af_array out,
const af_array  lhs,
const af_array  rhs,
const bool  batch 
)

C Interface for getting length of hypotenuse of two arrays.

Parameters
[out]outwill contain the length of the hypotenuse
[in]lhsis the length of first side
[in]rhsis the length of second side
[in]batchspecifies if operations need to be performed in batch mode
Returns
AF_SUCCESS if the execution completes properly
AFAPI array af::floor ( const array in)

C++ Interface for flooring an array of numbers.

Parameters
[in]inis input array
Returns
values rounded to nearest integer less than or equal to current value
Examples:
image_processing/filters.cpp, machine_learning/bagging.cpp, and pde/swe.cpp.