Rework DenseMatrix assignment
This is meant as a fix for bug #5 (closed).
It
- Enables assignment across different
DenseMatriximplementations, e.g. assignment from aDynamicMatrixto aFieldMatrix(this previously either compiled and segfaulted or did not compile) - Catches invalid
FieldMatrixassignments at compile-time - Retaines the
DenseMatrixAssignerclass in order to remain compatible with user-defined matrix classes
To me it looks 99% good to go. There is only remaining question that I cannot answer on my own:
ShouldFieldMatrix<double, 3, 3> x = 27compile? In other words, should the constructor be marked asexplicitor not? Of course, one can always useFieldMatrix<double, 3, 3> x(27)instead.
I've tested this fix with multiple modules and it doesn't break anything for me.