[eigen] Generic functions

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]

Hi again,

Is it possible to create a function that operates over any matrix type without being a template function?

For example, a function that accepts MatrixXd, Matrix3d, VectorXd, and others , and performs some operation, like the sum of all elements.?

I think this is not possible because almost every Eigen base class is a template depending on the derived class, right?


Cristóvão Sousa

Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/