Boost logo

Boost Users :

From: dhruva (dhruvakm_at_[hidden])
Date: 2007-12-03 23:49:42


Hi,

On 12/1/07, nisha kannookadan <nishak44_at_[hidden]> wrote:
> > "diff " would work if you could get the same formats and precisions.
>
> What is "diff" ?

>From my understanding:

If you can write the results of your computation into a file, write
the output from MATLAB and then from your C++ program. Make sure you
have follow the same order in writing the data to a file (with same
formatting like spaces/newlines...)
Use a program like GNU diff/kdiff3/windiff on the two output files you
have to find the differences between them. Ideally, you should not see
any difference. If you do notice a difference, check if the difference
is negligible (you have to decide the precision you are expecting).

The idea behind this is:
A drive to improve performance _must_ not degrade the correctness of
the solution.

-dky

-- 
Contents reflect my personal views only!

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net