Search Results
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 |
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.
3
votes
2
answers
187
views
Time-efficient manipulation (zeroing) of expression
I have huge matrices in the form of
mtx1 = {{24+24 FF[6,9] GG[5,10]+24 FF[7,8] GG[5,10]+24 FF[5,10] GG[6,9]+24 FF[6,9] GG[6,9]+24 FF[7,8] GG[6,9]+24 FF[5,10] GG[7,8]+24 FF[6,9] GG[7,8]+24 FF[7,8] GG[ …
2
votes
2
answers
188
views
Efficient Search for reverse element in List of Lists
I have a big list AllCycles with contains lists of non-repeating integers (and the first element is always the smallest). I want a function findReversePairs to find all pairs of Reverse lists.
For ex …
4
votes
2
answers
224
views
Time-efficient creation of matrix
I have expressions like
xx1=FF[1, 1] GG[1, 1] + FF[1, 1] GG[2, 2] + FF[2, 2] GG[2, 2]
xx2=2*FF[1, 2] GG[1, 1] + FF[1, 1] GG[1, 2] + FF[2, 2] GG[2, 2]
and I want to transform it to special matrices
…
6
votes
5
answers
678
views
Check whether array has only constant entries?
I have an array arr with n entries. Now I want to check whether
arr[[1]]==arr[[2]]&&arr[[2]]==arr[[3]]&&...arr[[n-1]]==arr[[n]]
Of course I could use a for-loop, like
arr = {0, 1, 0, 0};
IsConst …
2
votes
1
answer
205
views
Does ParallelTable work with Co-Processors?
I have programs which can not use CUDA (graphic cards), but can run perfectly in parallel using ParallelTable (mainly symbolic transformations). Now I wonder, whether ParallelTable works with co-proce …
1
vote
2
answers
142
views
Fast symbolic manipulation of expression with undefined function
I have an expression which consists of terms with undefined function calls a[n]:
example = 1 - c^2 + c a[1] a[2] + 1/2 c^2 a[1]^2 a[2]^2 + c a[1] a[3]
Now I want to transform each term with individ …
4
votes
1
answer
186
views
Speed-up calculation of Area of Polygons
I have a complicated polygon in the 2d plane, that is an RegionIntersection of RegionUnion of triangles.
Finally, I want to calculate it's Area. Unfortunatly, the Area is really slow. I am not sure w …
7
votes
2
answers
231
views
Efficient Search for specific Terms in symbolic Expression
I have a large symbolic expression with six variables a,b,c,d,e,f per term, roughly like this:
expr=a^2 b c d^2 + 1/2 a b (b + I d) e^3 - 1/8 I a (c + 1/2 I (c + I d))^2 (I b + 1/2 (c + I d)) e f
I …