[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [IMP-dev] Vector 3D in a double precision?



Keren Lasker wrote:
> Many times you use XYZDecorator to get the initial Vector3D. And the
> results of the Rotations/Transformations are stored back in particles -
> so the double precision will be lost in the optimization process.

Sure, but the 'noise' introduced by double to single precision rounding
is surely several orders of magnitude less the error bounds on the data,
approximations made in the optimizers (e.g. MD timestep) etc. so you're
not really losing anything here.

> Can one change FloatKey to be really "double" in compilation time using
> a flag ?

Since Float is just a typedef, you only need to change one line of code
if you want to play with it.

	Ben
-- 
                      http://salilab.org/~ben/
"It is a capital mistake to theorize before one has data."
	- Sir Arthur Conan Doyle