From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2007-02-16 02:22:22


"Dave Steffen" <dgsteffen_at_[hidden]> wrote in message
news:17875.16684.187236.745721_at_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