Common value for RCOND in xGESLY, xGELSD, etc?

Open discussion regarding features, bugs, issues, vendors, etc.

Common value for RCOND in xGESLY, xGELSD, etc?

Postby jgpallero » Thu Aug 19, 2010 10:32 am

Can anyone tell me a general value for using in DGELSY and DGELSD routines? I suppose that the value depends on the type of problem and real data, but I suppose too that for most problems a common value can be used. For example, in GNU Octave, for solving a least squares problem via DGELSD, a RCOND value of -1 is set ( ... This imply that via DLALSD the actual RCOND value will be the machine epsilon via DLAMCH('Epsilon') ( Could be epsilon a good value for common problems?
Posts: 24
Joined: Thu Jul 29, 2010 2:29 pm
Location: Madrid, Spain

Re: Common value for RCOND in xGESLY, xGELSD, etc?

Postby Julien Langou » Thu Aug 19, 2010 10:43 am

RCOND = -1 is good enough. If your data is only approximate and you know the quality of your approximation, say the first 3 digits of my data is correct then all other digits are just placeholders and are meaningless, then it would make sense to set RCOND to 1e-3. By default, RCOND=-1 uses the machine precision. So, in double precision, it assumes all 16 digit of your initial data are relevant for you. It's kind of hard to summarize this in three sentences ... I hope this gives you some clues. Julien. (There are also people that tune RCOND to find a "gap" in the singular values.)
Julien Langou
Posts: 827
Joined: Thu Dec 09, 2004 12:32 pm
Location: Denver, CO, USA

Return to User Discussion

Who is online

Users browsing this forum: Google [Bot] and 6 guests