![]() Registered Member ![]()
|
I am a bit of a newb at this so please bear with me. I am transposing and multiplying matrices that are 40k rows and 785 columns in size and I get a bad_alloc error. I don't think it is a problem with memory on my system since it gets up to 80% memory usage and that is it at its peak. I am using Visual Studio to debug and when the exception is thrown the call stack is
Can people help me or point me in the right direction? Thank you for your time. |
![]() Moderator ![]()
|
I believe you're running out of memory.
btw, the eval is not needed here, and you can even save one more temporary with noalias: delta1.noalias() = a1.transpose()*d2; |
![]() Registered Member ![]()
|
Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]