3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 05:43:40 +01:00

Fix #85 : narrowing conversion

This commit is contained in:
Olivier Parcollet 2014-06-12 22:44:34 +02:00
parent 8cf7465114
commit 0727bddeee

View File

@ -736,7 +736,7 @@ namespace gfs {
template <typename Variable, typename Opt, typename T> template <typename Variable, typename Opt, typename T>
gf<Variable, matrix_valued, Opt> L_G_R(matrix<T> l, gf<Variable, matrix_valued, Opt> g, matrix<T> r) { gf<Variable, matrix_valued, Opt> L_G_R(matrix<T> l, gf<Variable, matrix_valued, Opt> g, matrix<T> r) {
auto res = gf<Variable, matrix_valued, Opt>{g.mesh(), {first_dim(l), second_dim(r)}}; auto res = gf<Variable, matrix_valued, Opt>{g.mesh(), {int(first_dim(l)), int(second_dim(r))}};
res.data() = _gf_data_mul_LR(l, g.data(), r); res.data() = _gf_data_mul_LR(l, g.data(), r);
res.singularity() = l * g.singularity() * r; res.singularity() = l * g.singularity() * r;
return res; return res;