Skip to main content

Questions tagged [memory]

Questions about RAM usage, including optimizing memory use, avoiding and fixing leaks and releasing unused memory.

0votes
0answers
34views

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: ...
PaulCommentary's user avatar
0votes
0answers
106views

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 ...
Willian Natori's user avatar
4votes
0answers
126views

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 ...
Anton's user avatar
  • 1,624
12votes
3answers
2kviews

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? ...
Leszek's user avatar
2votes
1answer
77views

Memory management / How to set OpenCLMemory a new value

According to the official documentation, we have only OpenCLMemoryAllocateOpenCLMemoryLoad both of them return a new pointer ...
Kirill Vasin's user avatar
0votes
0answers
56views

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, ...
internet's user avatar
0votes
0answers
44views

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 ...
infinitezero's user avatar
1vote
1answer
126views

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: ...
florin's user avatar
  • 2,252
0votes
0answers
76views

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 ...
Lavr's user avatar
8votes
1answer
316views

How to export videos in a higher resolution?

...
CasperYC's user avatar
0votes
0answers
96views

Ising Model Simulation Increase Efficiency

I implemented a 2d simulation of Ising Model for zero external magnetic field. Below you can find the function I wrote to calculate the energy (periodic conditions) ...
QPhi4's user avatar
0votes
0answers
68views

Memory-Efficient FFT of Sparse Array

I have to take the Fourier transform of quite a large 2D array (2^15 by 2^15, but I'll use 2^10 as an example here). My array is mostly zeros, and since Fourier can ...
az123p's user avatar
0votes
0answers
68views

How can I solve the issue of insufficient memory when dealing with large tuples?

How can I solve the issue of insufficient memory when dealing with large tuples? For example,consider the following example: Tuples[{1, 2, 3}, 25]
internet's user avatar
5votes
1answer
216views

3D FEM Memory Problem with Hexahedral Elements & V14 & Apple Silicon

After using MM V12 for a long time on a MacBook Pro 2011, which just lost 8GB or RAM from 16GB, I am trying V14 on a MacMini M2pro with 32GB. I had previously coded a coupled 3D EM problem involving a ...
Greenasnz's user avatar
8votes
2answers
191views

Memory leak of coordinate transformation functions with symbolic evaluation

Some functions like ToPolarCoordinates seems not to manage memory usage properly. As is compared to Norm: ...
Ming's user avatar
  • 295

153050per page
close