Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 9603

Questions on optimizing Mathematica code for higher performance. This may mean faster execution, lower memory usage or both. Not to be confused with mathematical optimization.

5 votes
2 answers
1k views

Quickly reducing the number of decimal digits for a set of real numbers

How can I quickly convert a number with $n$ decimal points to a number of with $m$ decimal points? Round works, however, it is slower than I would like. This example rounds a set of $100$ real numbe …
RM1618's user avatar
  • 742
8 votes
1 answer
130 views

Why does Rescale performance vary significantly based on the real number values in a list?

I have a list of the form: testList = Table[{Flatten[RandomReal[{-200, 200}, {1, 2}], 1], RandomReal[{-200, 200}, {69, 2}]}, {i, 1, 100}]; And I would like to perform the following rescaling operat …
RM1618's user avatar
  • 742
6 votes
2 answers
265 views

Parallelizing or optimizing a script for calculating the size of all pairwise intersections ...

I need to speed up or parallelize an operation that looks essentially like this: comparisonSetsA = Round[Table[RandomReal[1., {100, 2}], {k, 1, 100}], 0.05]; comparisonSetsB = Round[Table[RandomReal[ …
RM1618's user avatar
  • 742