I\'m trying to write a small program using MTL, but I\'m getting the mentioned error when I try to make a MTL Matrix a member of a class.
#include
Because when you declare
mtl::dense2D Ke;
you're only supposed to declare it, not create it yet. This is the constructor's job in C++:
class myClass { public: myClass() // constructor : Ke(6, 6) // here we use the constructor initializer { } private: mtl::dense2D Ke; // declaration };