gpumatrix
gpumatrix copied to clipboard
.unaryExpr function
I need to apply a function to the whole matrix/vector, e.g. to all the coefficients of the matrix/vector. In eigen there is a unaryExpr function, you pass a reference to your function you want to apply. See example