TRIQS / triqs

a Toolbox for Research on Interacting Quantum Systems
https://triqs.github.io
GNU General Public License v3.0
135 stars 71 forks source link

Support numpy.ndarray + triqs.Gf.gf operations #931

Open HugoStrand opened 7 months ago

HugoStrand commented 7 months ago

As discussed today on the Triqs meeting:

Generalize the mathematical operations now supported between 'numpy.ndarray.shape = [n,m]' (matrix) + triqs.gf.Gf to any 'triqs.gf.Gf.target_shape' matching the 'numpy.ndarray.shape'.