This is the basic C++ program of C++ armadillo library which shows how to get the distance of each element of matrix to the next largest representable floating point number. It can be carried out by the help of inbuilt function "eps"in armadillo library. It takes one parameter i.e input matrix name.
Obtain the positive distance of the absolute value of each element of X to the next largest representable floating point number
Comments