3
0
mirror of https://github.com/triqs/dft_tools synced 2025-01-13 14:29:01 +01:00
Olivier Parcollet 7aedaef945 arrays : fix matrix = scalar for complex types
Pb :
M() = rhs; // rhs of type RHS
Currenlty does :
M(i,j) = (i==j ? rhs : RHS{})
Changed to
M(i,j) = (i==j ? rhs : RHS{0*rhs})

If RHS is a double, int ... Same result.
If RHS is a matrix, gf, currently the offdiag elements
are default constructed (i.e. of 0 size !).
Which can break operations later (matrix<matrix<double>>)
After change : all elements have the same size !
2014-02-12 21:50:58 +01:00
..
2013-11-18 23:41:32 +01:00
2013-10-21 15:12:53 +02:00
2013-11-18 23:41:32 +01:00