jcmgray / cotengra

Hyper optimized contraction trees for large tensor networks and einsums
https://cotengra.readthedocs.io
Apache License 2.0
178 stars 32 forks source link

`test_resistance_centrality ` fails on aarch64 #33

Open ggardet opened 6 months ago

ggardet commented 6 months ago

test_resistance_centrality fails on aarch64 with:

[   91s] =================================== FAILURES ===================================
[   91s] __________________________ test_resistance_centrality __________________________
[   91s] [gw2] linux -- Python 3.9.18 /usr/bin/python3.9
[   91s] 
[   91s]     def test_resistance_centrality():
[   91s]         inputs, output, _, size_dict = ctg.utils.lattice_equation([3, 3])
[   91s]         hg = ctg.HyperGraph(inputs, output, size_dict)
[   91s]         cents = hg.resistance_centrality()
[   91s] >       assert cents[0] == 0.0
[   91s] E       assert 6.178632484870434e-16 == 0.0
[   91s] 
[   91s] tests/test_hypergraph.py:17: AssertionError
ggardet commented 6 months ago

I think it should be fixed with https://github.com/jcmgray/cotengra/commit/43270038e60cd93e79b2c0d14e06074dfadb3ecd#diff-0dc964be60160ec49413a84e24be48ae7f05f252f61b6a7799bd1620b57e04bd