New answers tagged map
3
The reason for the difference in speed is that omDNScalc is not a packed array. This is a faster way to compute it that constructs a packed array:
omDNScalc = omm0@cfct3Dr;
With that change, the times are comparable and fast.
Alternative: I had to experiment a little to figure out you don't sum over the whole array omDNS (that is, idiff etc. are not ...
answered Dec 19 '20 at 20:02
Michael E2
188k1414 gold badges252252 silver badges586586 bronze badges
Top 50 recent answers are included
Related Tags
map × 329list-manipulation × 129
plotting × 29
functions × 28
functional-style × 21
associations × 20
pure-function × 17
function-construction × 16
table × 15
performance-tuning × 14
parallelization × 14
matrix × 13
replacement × 9
iterators × 9
graphics × 8
dataset × 8
string-manipulation × 7
array × 7
syntax × 6
filtering × 5
slot × 5
equation-solving × 4
bugs × 4
mathematical-optimization × 4
import × 4