Registered Member
|
When writing functions with Eigen types, I am currently doing either one of the following styles: pass as reference or return by value.
Now we can call these functions like:
I prefer doing return by value for output. I get the desired result with the above function, but when I want to do inplace transformation by writing like (3), the performance is quite worse than (1). Is it possible to achieve the same performance of in_place_function with function ? If yes how should we then write function? |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]