0
votes
0answers
71 views

Generate particals in a cube zone: Need code optimizion [closed]

Problem description: Generation different sizes of particals in a cubic zone, of course, that particals must throw one by one in the zone and cannot intersect each other; the particals' coordinates ...
1
vote
1answer
60 views

A code deal with Lists operation ---Needs optimizion

I have written some code to deal with lists, But the speed of the code is slow, Could Someone help me to speed up it? Probably could rewrite it with Functional Programming! Give me some ideas! The ...
1
vote
0answers
108 views

How to tweak the following purely numerical code

I am using the following numerical function in my program and I would like to speed it up. ...
2
votes
1answer
84 views

Performance on Binomial Deviate is slow

I hope I won't get spanked for reposting. This is related to a previous question discussed here: Performance on Multinomial Deviate is slow. but this version is simpler because it is a binomial ...
0
votes
0answers
144 views

Code performance problem

Could anyone help me with the attached code? How would you speed up my attached code in some degree? Your comments are highly welcome. ...
1
vote
2answers
343 views

Collatz Tool Box — any speed ups possible?

I have created a tool box for experimenting with the Collatz conjecture. Info here: Wolfram MathWorld and here: Wikipedia The patterns I have found allow us to make the conjecture jump through some ...
6
votes
2answers
709 views

Elegant way to handle columns operations

Inspired by this question from @sjdh and by my recurrent use of columns operations in database sets, I was looking for one way to make columns operations more symetric, so I can handle with matrix and ...
3
votes
3answers
520 views

Speed optimization

I have a part of a program that I have to repeatedly call many times (about 2000 to 10000 times) ...
13
votes
9answers
549 views

Thread over list in different levels

I have these two lists, both with the same length in the first dimension: ...
15
votes
0answers
576 views

Fast Spherical Harmonics radiative transfer

This is a rather specific question and I apologize for spamming you with some lengthy code. But it could be interesting for some reader and maybe you can help out, so please bear with me. I am using ...
7
votes
4answers
547 views

Loop optimization

I wrote this to generate a 6D distribution of particles. ...