Calculate the absolute value.
More...
Calculate the absolute value.
◆ abs()
C++ Interface to calculate the absolute value.
- Parameters
-
- Returns
- absolute value
- Examples:
- getting_started/convolve.cpp, getting_started/vectorize.cpp, graphics/fractal.cpp, graphics/surface.cpp, image_processing/adaptive_thresholding.cpp, image_processing/brain_segmentation.cpp, image_processing/image_demo.cpp, machine_learning/bagging.cpp, machine_learning/kmeans.cpp, machine_learning/knn.cpp, machine_learning/logistic_regression.cpp, machine_learning/perceptron.cpp, machine_learning/rbm.cpp, and machine_learning/softmax_regression.cpp.
◆ af_abs()
C Interface to calculate the absolute value.
- Parameters
-
| [out] | out | absolute value |
| [in] | in | input array |
- Returns
- AF_SUCCESS, if function returns successfully, else an af_err code is given