
"Dave Steffen" <dgsteffen@numerica.us> wrote in message news:17875.16684.187236.745721@yttrium.numerica.us...
Glenn Schrader writes:
Comparing matrices and vectors is a topic that I have had to deal with.
Yeah - big issue for us too.
An important issue here is that there are different ways of comparing that are appropriate for different cases. It really depends on the computation that produced the vector or matrix.
Yup. [ ... examples of different ways to compare matrices snipped ... ] And yup to all of those.
Even worse, we occasionally have even more interesting mathematical beasties --- "states" (e.g. vector + covariance matrix) and probability distributions --- to compare.
What I'm poking at right now is a generic way to
A) teach mathematical objects how to compare themselves in various ways
and
B) have that work smoothly with the Boost Test stuff.
Please look at the boost::test::predicate_result class for creating the "Boost.Test friendly" predicate. It allows to provide specific details of predicate failure. Gennadiy