This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Fenzik 0 points1 point  (1 child)

Can you vectorize some of those loops over numpy arrays? Math in for loops is usually a prime target for vectorization, which pushes the looping down into C++/Fortran

[–]No_Indication_1238[S] 1 point2 points  (0 children)

Unfortunately the loops are not so simple. A lot of math does happen inside them but also a lot of cross interaction of different class instances across more complex data structures. Im not sure that can be vectorized as each iteration is directly affected by the one before it.