[CentOS] random roundoff?
Michael D. Berger
m_d_berger_1900 at yahoo.comSun Apr 24 02:54:12 UTC 2011
- Previous message: [CentOS] Valgrind/Callgrind 3.6.1 does not appear to work on Centos Linux 5.5
- Next message: [CentOS] random roundoff?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On my CentOS 5 box, in a C++ program that does much arithmetic, including numerous matrix multiplications, I have a situation in in which the result depends on the nature of nearby I/O. Thus, with all arithmetic done with type double, and where values are mostly in the range [-1.0e0,+1.0e0] or nearby, I do: cerr << "some stuff" << endl; mat3 = matmult(mat1,mat2); I get a difference of the order 1.0e-15 depending on whether the cerr line does or does not end in "endl" as shown. I am imagining that there is some "randomness" in the roundoff that depends on the I/O situation. Is this credible? Any other suggestions? Thanks for your help, Mike.
- Previous message: [CentOS] Valgrind/Callgrind 3.6.1 does not appear to work on Centos Linux 5.5
- Next message: [CentOS] random roundoff?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list