Skip to main content
12-Amethyst
May 16, 2020
Question

Mathcad is lagging due to large size of matrix

  • May 16, 2020
  • 3 replies
  • 4514 views

Is there a way to fix this? I have a single-very large size of matrix(10 pages) and when I do anything within this matrix, it will start lagging.

3 replies

23-Emerald V
May 16, 2020

@yoohooos wrote:

Is there a way to fix this? I have a single-very large size of matrix(10 pages) and when I do anything within this matrix, it will start lagging.


I'm afraid that the only way I know is to

  • expand the matrix to the size you want when you create it (to get the rest of your document spacing correct),
  • reduce it something quite small (eg, 5 rows),
  • do all your editing, recalc, etc, and then
  • expand it again

 

As you've noticed, the Mathcad Prime drawing algorithm tends to get rather glacial once the worksheet starts getting lengthy.

 

I've tried turning calculations off, switching to draft mode and reducing the zoom.   The last one helps a bit, but is somewhat limited by your screen size, resolution and eyesight!

 

Stuart

19-Tanzanite
May 16, 2020

What's the size of the matrix (in terms of number of rows and columns)?  Is it sparse (i.e. does it have lots of zeros with relatively few non-zeros)?  What do you want to do with it - add/multiply it, invert it, find its determinant ...etc., just display it? 

 

Alan

25-Diamond I
May 16, 2020

You may try to "hide" that huge matrix in a collapsed area.
Or do you mean working speed gets down when you edit that matrix itself?

yoohooos12-AmethystAuthor
12-Amethyst
May 16, 2020

When I edit the matrix itself, the program starts lagging. This is only happens when I edit it, after I finished editing and hide them, no further problems were found. Thank you!!

25-Diamond I
May 16, 2020

So it looks like the math region you try to edit (the matrix) is too large for Prime to handle in a smooth way.

Any chance to define a couple of smaller matrices first and then building the large matrix using "stack" and/or "augment"?
Would be a workaround that shouldn't be necessary if Prime were properly and neatly programmed, but, alas - we can't change Prime, we only can change the way we use it.