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

transposeInPlace() crash

Tags: None
(comma "," separated)
mehrdadh
Registered Member
Posts
26
Karma
0

transposeInPlace() crash

Mon Jan 31, 2011 3:32 am
Hi,

I have a matrix of 48000 rows by 1700 columns (everything is rowMajor)

when I do MYMATRIX.transposeInPlace() it crashes.

Why could this happen ? is this because its too big ?

Best,
Mehrdad
mehrdadh
Registered Member
Posts
26
Karma
0

Re: transposeInPlace() crash

Mon Jan 31, 2011 3:51 am
I forgot to mention that I used the latest development branch under windows 32 bit, and this function has worked ok for smaller matrices.
User avatar
bjacob
Registered Member
Posts
658
Karma
3

Re: transposeInPlace() crash

Tue Feb 01, 2011 12:50 pm
I recommend that you compile with exceptions enabled and put a try { ... } catch around that. If the reason for your crash is that memory allocation failes, that way you'll be able to catch it.


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: transposeInPlace() crash

Tue Feb 01, 2011 2:53 pm
that might likely be the case because currently for rectangular matrices transposeInplace is just a shortcut for m = m.transpose().eval() and so it creates a temporary, and in your case a very big one! Implementing a true inplace transpose for rectangular objects is doable but very tricky!


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft