gpumatrix icon indicating copy to clipboard operation
gpumatrix copied to clipboard

.unaryExpr function

Open kukosek opened this issue 4 years ago • 0 comments

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

kukosek avatar Mar 14 '21 19:03 kukosek