New answers tagged performance-tuning
1
vote
Is there a non-allocating way to modify elements of single-reference packed arrays?
After I wrote the C code below, it came to my mind that the first thing you should do in your Mathematica session is to set
$HistoryLength = 0;
Otherwise, at least ...
4
votes
Accepted
Optimizing an ODE fitting algorithm with interpolated data
Another way to do the fitting.
1 - We will using a custom-made second order interpolation as giving in f[t]. A dummy extra data point was introduced to facilitate ...
3
votes
Optimizing an ODE fitting algorithm with interpolated data
This problem has 4 parameters, and only 6 x 3 = 18 data points. I suspect that this problem is only weakly determined, if you consider the "Rule of 10" which states that you should have 10 ...
0
votes
1
vote
1
vote
Counting the population of integers
This has a lot of answers already, but here's an obvious (to me) solution that hasn't been mentioned:
...
0
votes
1
vote
1
vote
How to find all the positions of max value of a list efficiently?
Using PositionIndex: (introduced 9th July 2014)
...
1
vote
How to find all the positions of max value of a list efficiently?
Since V 13.2 we have PositionLargest and PositionSmallest
...
1
vote
Better way to test that a matrix is upper-triangular?
Since V 12.0 we have UpperTriangularMatrixQ:
...
1
vote
Optimization of a Markov сhain with symbolic transition rate
I don't know what you want to do honestly.
if you want everything to be symbolic,how about using characteristic function?
Consider a conditional random walk.
Let's say that if the value of i is ...
0
votes
How to most responsively manipulate time intervals in ParametricPlot?
Increased PlotPoints avoid distortions:
...
5
votes
Is there a faster way to compose a large number of random Gaussians?
The 3D Case takes just a few seconds using OpenCL. It was a real pain getting OpenCLLink to work. I also improved the alpha blending.
...
1
vote
1
vote
7
votes
Is there a faster way to compose a large number of random Gaussians?
Basically the idea is to draw in vector form, then exploit FrontEnd's ability to Rasterize the result.
First we make the base primitive corresponding to a "...
Top 50 recent answers are included
Related Tags
performance-tuning × 2909list-manipulation × 534
matrix × 233
compile × 192
parallelization × 162
numerical-integration × 161
plotting × 149
mathematical-optimization × 131
differential-equations × 126
equation-solving × 125
programming × 109
linear-algebra × 105
numerics × 103
functions × 98
memory × 92
graphs-and-networks × 86
code-review × 78
sparse-arrays × 72
function-construction × 71
image-processing × 67
calculus-and-analysis × 66
probability-or-statistics × 63
graphics × 56
random × 54
combinatorics × 49