This forum has been archived. All content is frozen. Please use KDE Discuss instead.

JacobiSVD crashing

Tags: None
(comma "," separated)
User avatar
dzenanz
Registered Member
Posts
35
Karma
0
OS

JacobiSVD crashing

Fri Aug 03, 2012 11:13 am
I am trying to do some least squares fitting using JacobiSVD, but it is crashing for larger input matrices. It works without crashing for 3362x32 matrix, but it crashes for 53762x122 matrix (~50 thousand rows and hundred columns).

The crash is happening in conditional_aligned_new_auto(), file core/Util/Memory.h, line 416. Exception is bad_alloc, but memory used by the process is only 122MB (on a 12GB machine).

Can anyone shed light on this? Bad alloc makes no sense, as some numerical overflow/underflow/total_loss_of_precision would.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: JacobiSVD crashing  Topic is solved

Sun Aug 05, 2012 8:04 am
Which version are you using? I fixed such an issue one or two months ago. Also make sure you compute the "thin" SVD, and not the full U which is 53762x53762=21GB for double!
User avatar
dzenanz
Registered Member
Posts
35
Karma
0
OS

Re: JacobiSVD crashing

Mon Aug 06, 2012 7:46 am
I was computing full U and V. It works with thin.

Thank you.


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]