Looking at the n_targetsfor-loop, it appears that each k can be solved independently from other k's. Given this, it seems like there is a good opportunity to run each k in parallel from other ks. Combining this with the usage of Cython ( https://github.com/hacarus/spm-image/issues/35 ) and releasing the GIL, it should be possible for this to be embarrassingly parallel.
Looking at the
n_targets
for
-loop, it appears that eachk
can be solved independently from otherk
's. Given this, it seems like there is a good opportunity to run eachk
in parallel from otherk
s. Combining this with the usage of Cython ( https://github.com/hacarus/spm-image/issues/35 ) and releasing the GIL, it should be possible for this to be embarrassingly parallel.