I am writing a class wrapper for a linear algebra class - eigen for now - because I do not want to expose my code to the internals of the library (or its design) and was wondering if there is a way to write an interface without destroying the internal optimazations (eigen uses expression templates).
I already found two threads but both seem not to keep these optimizations. Both use template specialization. Here are the threads:
This optimization is not the most critical thing but any advice would be appreciated.