New answers tagged

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 ...
Henrik Schumacher's user avatar
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 ...
Cesareo's user avatar
  • 3,798
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 ...
Eric Brown's user avatar
  • 4,406
0 votes

Subtracting second columns of two matrices

Using Transpose and MapAt: ...
E. Chan-López's user avatar
1 vote

Subtracting second columns of two matrices

...
eldo's user avatar
  • 48k
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: ...
Sjoerd Smit's user avatar
  • 21.9k
0 votes

Counting the population of integers

Another possibility: ...
user1066's user avatar
  • 15.6k
1 vote

Counting the population of integers

...
eldo's user avatar
  • 48k
1 vote

How to find all the positions of max value of a list efficiently?

Using PositionIndex: (introduced 9th July 2014) ...
Syed's user avatar
  • 41.6k
1 vote

How to find all the positions of max value of a list efficiently?

Since V 13.2 we have PositionLargest and PositionSmallest ...
eldo's user avatar
  • 48k
1 vote

Better way to test that a matrix is upper-triangular?

Since V 12.0 we have UpperTriangularMatrixQ: ...
eldo's user avatar
  • 48k
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 ...
Xminer's user avatar
  • 1,214
0 votes

How to most responsively manipulate time intervals in ParametricPlot?

Increased PlotPoints avoid distortions: ...
eldo's user avatar
  • 48k
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. ...
flinty's user avatar
  • 23.7k
1 vote

Combining list elements

...
eldo's user avatar
  • 48k
1 vote

Grouping consecutive elements at specified positions

Question 1: ...
eldo's user avatar
  • 48k
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 "...
Silvia's user avatar
  • 27.4k

Top 50 recent answers are included