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

Memory Issues

Tags: None
(comma "," separated)
forksdude
Registered Member
Posts
1
Karma
0

Memory Issues

Wed Jun 08, 2011 9:34 pm
Hello,

Our research group goal is to calculate circular dichroism (CD) for protiens. Our program is working fine for small protiens, but it is outputing garbage values, or stopping (because of memory issues), when we're inputing big protiens.

We're getting the above problem because we're using the equation as shown in below:

AB = A11-A12*(InvA22)*A21.

As the size of the protien increases, size of AB increases there by causing the problem.

What is the best way to deal this probelm?

Any advice would be greatly appreciated.

Looking forward for your reply!
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Memory Issues

Thu Jun 09, 2011 6:35 am
Could you give us some hints about the average sizes of each involved matrix A* as well as there structure ?

Perhaps your matrices are sparse, i.e., with many zeros, in which case you could use Eigen's SparseMatrix...

You can also rewrite your expression as:

AB = A11;
AB.noalias() -= A12*(InvA22*A21);

to save one temporary of the same size than AB.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar