Boost logo

Boost :

Subject: Re: [boost] How do you test complex transformations?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-03-18 14:24:53


On 18/03/2011 18:23, Vicente Botet wrote:

> One technique could be to make the transformation by hand and keep track of
> the input -> output association.
> Another technique consist in re-implementing the algorithm and check that
> both implementations match.

Checking that both implementations match is not really possible if the
range of all inputs is big.

What we do to validate the precision of our math functions in the NT2
project is that we perform random tests and compare the results to that
obtained with a library that we know to be correct.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk