Registered Member
|
Hello,
to make writing unit tests easier, I'd like a function which checks whether two matrices (say data and ref) are equal or not. It looked simple at first, just do
However, I could not get a working function which does that, with both Matrix and DiagonalWrapper as inputs. For instance, the following template would not match a DiagonalWrapper input
and changing MatrixBase for EigenBase make the array() method vanish. I think I could specialize the function for these combinations, but I guess there is a better, more generic way. Here follow some attempts of my.
I'd gladly welcome any hint, as well as some advice on a good template meta-programming book. As you might have guessed, I could make use of it Cheers. |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]