C++ code much faster than Julia how can I optimize it?

A small hint for getting help: post code inline here between code fences ```

Like:

julia_code(here)

So indentation and highlighting is nice. Your code can be about half as long too, you will get more help if its easier to edit and fits in a comment here (and runs as a MWE).

See also:

4 Likes