Registered Member
|
There is a 3 year old thread about whether these functions are implemented in eigen. I wanted to know if anyone has done this in the mean time?
|
Registered Member
|
I'm afraid nothing has been done (as far as I know).
|
Registered Member
|
So the easiest way to get the rounded value of the coefficients of an array is to loop through them and use the ceil from math.h?
|
Registered Member
|
An alternative is to use .unaryExpr(), as in:
I think you need to specify the types to select the correct overload of the floor function, unfortunately. |
Registered Member
|
I did this. It worked Dont know about efficiency though
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]