xgi-org / xgi

CompleX Group Interactions (XGI) is a Python package for higher-order networks.
https://xgi.readthedocs.io
Other
187 stars 31 forks source link

Improve efficiency of synchronization code #167

Open saad1282 opened 2 years ago

saad1282 commented 2 years ago

In the review of PR #159, there were concerns about efficiency of the forloops. In the future, it will be good to convert this to matrix multiplication. For the pairwise case, it will be r1 = A.dot(np.exp(1j*theta)). For the triangle case, it will be r2 = np.exp(-1j*theta).dot(B).dot(np.exp(2j*theta)). It takes a long time to create these A and B matrices. So, if we find a faster way of creating these, the code could be faster.

nwlandry commented 1 week ago

Deadline of Feb. 18, 2025.