svdcmp: float to double accuracy


evgeny
04-25-2005, 01:29 AM
Hi,

I need to adopt NR functions such as svdcmp(), qrdcmp(), tred(2), tqli() and pythag() to run with double accuracy.

What is a simplest way to do this?

evgeny

yinyang
11-17-2005, 04:45 AM
Hi,

don't you just replace float with double? Will it affect something?

Greets
m.

evgeny
06-20-2006, 02:16 AM
I am afraid that this is not so simple procedure:

1) svdcmp() uses exit from itertaions as comparison with zero in if operator

2) this may affected on small singular values and closed pairs of singular values

2) a few operations shoud be done with higher accuracy (double) also in the case of float function version

Evgeny