0

I use my own data type in Eigen lib by template,and I realize +-*/ overload , but Eigen use std::ceil() function, I don't know how to overload this. thanks for every suggestion.

just tell me How to realize this method or some other ways to solve this problem.

liu Yi
  • 1
  • Just replace the name "swap" with "ceil" – 273K Dec 02 '22 at 14:12
  • 1
    It seems that Eigen calls `ceil` after adding `using std::ceil;`. If you define `ceil` for your custom type in the same namespace, Eigen should be able to use it. – Daniel Langr Dec 02 '22 at 14:12

0 Answers0