3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-26 14:23:38 +01:00
dft_tools/triqs/arrays/impl
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
..
assignment.hpp arrays : fix matrix = scalar for complex types 2014-02-12 21:50:58 +01:00
common.hpp arrays: clean cache, add traits ... 2013-11-18 23:41:32 +01:00
exceptions.hpp First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
flags.hpp implement array_const_view 2013-10-21 15:12:53 +02:00
indexmap_storage_pair.hpp arrays: to_python now raise exception when array is empty 2014-02-04 15:04:40 +01:00
iterator_adapter.hpp First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
make_const.hpp First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
traits.hpp arrays: clean cache, add traits ... 2013-11-18 23:41:32 +01:00