Optimization tips for my julia code. Can I make it even faster and/or memory efficient?

I am sorry, discourse told me, that I shouldn’t write so many posts in sequence and it’s better to edit previous. I didn’t write the changed code, left it as an exercise :slight_smile: To optimize it you should use the same ideas - less allocations, less unnecessary runs through this huge matrix.

Of course if there will be any problems, I can show the solution.

1 Like