mtex-toolbox / mtex

MTEX is a free Matlab toolbox for quantitative texture analysis. Homepage:
http://mtex-toolbox.github.io/
GNU General Public License v2.0
278 stars 183 forks source link

Tall arrays with calcVariantGraph and clusterVariantGraph? #1828

Closed nyyssont closed 9 months ago

nyyssont commented 1 year ago

Is your feature request related to a problem? Please describe.

Computers with smaller amounts of memory struggle with the variant graph algorithm. I get emails from users who get errors like this:

image

There simply is not enough memory in certain machines to perform operations with large matrices, even when they are sparse.

Describe the solution you'd like

Is there any way to work with the large sparse matrices so that they are partially stored on the hard drive, in case there is not enough memory in Matlab. Like with tall arrays?

Propose a Syntax

This could be an option you set for the whole parentGrainReconstructor job class, like:

job.useTallArrays = true;
nyyssont commented 1 year ago

Well, the specific issue above was resolved by unchecking the box in the preferences related to virtual memory:

image

Maybe virtual memory can be used in all cases such as this? Perhaps someone more familiar with these kinds of issues could comment?