What is more, I need to apply the transformation to all elements on a SGVector.
Let me know if you think we should directly use for-loop instead of eigen's unaryExpr with function pointer.