Questions tagged [memory]
Questions about RAM usage, including optimizing memory use, avoiding and fixing leaks and releasing unused memory.
460 questions
2
votes
0
answers
52
views
How can I reduce RAM usage when using ParallelMap with large data?
I’m using ParallelMap on a very large dataset (millions of elements), but it quickly consumes all available RAM.
For example:
...
3
votes
1
answer
157
views
Why MemoryInUse[] do not give same value as what system monitor gives?
According to help
So the question is, should not then the above command return similar value to what the operating system shows that Mathematica is using?
In windows this will be using the task ...
2
votes
1
answer
130
views
Generate only certain number of graphs because of limited RAM
I am using the code provided in the answer for this other question. It is shown below:
...
1
vote
2
answers
497
views
Solve or NSolve can't get a solution for a system of 16 equations
I am helping out with a light-matter interaction project and find myself stuck while attempting to obtain the elements of a density matrix. I am using the AtomicDensityMatrix package to generate the ...
3
votes
0
answers
94
views
Performance of single row extraction from a Tabular
I acknowledge that Tabular is still experimental and an step in the right direction but I am surprised at how slow it is to extract a single row of data even with ...
0
votes
0
answers
50
views
What is best (and simplest) practice for using CloudEvaluate to remotely evaluate an expression that runs out of memory locally?
I have an 8 GB M1 Macbook. In a notebook, I make a function call (the function uses other functions defined in the notebook) and get the message:
...
0
votes
0
answers
140
views
Mathematica do not perform two simple summations in a row
I am finding an analytical expression for a 27 x 27 matrix. The code of the intermediate elements is given below
...
3
votes
0
answers
193
views
How do I restart kernel programmatically?
Due to memory buildup issues, I need to re-start kernel, keeping/reloading one variable and continue calculation.
Say, I have a variable tst={1,2,3} and I want to ...
12
votes
3
answers
2k
views
Why FindRoot needs 10 GB of memory to solve this nonlinear equation?
Can anybody explain to me why the following code fails to execute due to insufficient memory error,
and whether there is any way to overcome this problem?
...
2
votes
1
answer
144
views
Memory management / How to set OpenCLMemory a new value
According to the official documentation, we have only
OpenCLMemoryAllocate
OpenCLMemoryLoad
both of them return a new pointer ...
0
votes
0
answers
85
views
Is the data generated by Compress unique?
Is the data generated by the Compress function in Mathematica unique? I’m considering using it to identify duplicates because it reduces memory usage significantly, ...
0
votes
0
answers
63
views
Parallelization with Do and ParallelSubmit
I have quite a large expression that I need to integrate. My ansatz was to Expand the expression (easiest case results in ~5.5 million terms) and parallelize the ...
1
vote
1
answer
175
views
Does Mathematica have a function which yields the degree of a polynomial with respect to one variable? [closed]
Since Mathematica seems not to have a function yielding the degree of a polynomial with respect to one variable, I wrote one:
...
0
votes
0
answers
108
views
Mixed Integer Quadratic Program (MIQP): Kernel crashes during computation
I am solving an optimal placement problem using MIQP (Mixed Integer Quadratic Program, using the QuadraticOptimization function WM version 14). The objective ...
8
votes
1
answer
463
views