3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-01 11:43:47 +01:00
dft_tools/triqs/gfs/local
Olivier Parcollet 7cf7d09c77 Fix #112 and put back g +=/-= matrix for imfreq
- The issue comes from the fact that the default generated
  += and co by the Python API is the one for immutable types, like int.
- Indeed, in python, for an int :
  x=1
  id(x)
  140266967205832
  x+=1
  id(x)
  140266967205808
- For a mutable type, like a gf, it is necessary to
  add explicitly the xxx_inplace_add functions.
- Added :
   - the generation of the inplace_xxx functions
   - a method in class_ in the wrapper generator that
     deduce all += operator from the + operators.
   - this assumes that the +=, ... are defined in C++.
   - The generation of such operators are optional, with option
     with_inplace_operators in the arithmetic flag.
- Also, added the overload g += M and g -= M for
  g : GfImfreq, M a complex matrix.
  Mainly for legacy Python codes.
2014-09-06 19:07:34 +02:00
..
CMakeLists.txt [API BREAK] rename directory gf -> gfs 2013-07-29 11:53:02 +02:00
fit_tail.cpp Attempt to fix gelss call in fit_tail. 2014-03-19 14:01:26 +01:00
fit_tail.hpp Remove Cython & prepare wrapper for applis. 2014-05-30 19:34:13 +02:00
fourier_base.cpp [API BREAK] rename directory gf -> gfs 2013-07-29 11:53:02 +02:00
fourier_base.hpp [API BREAK] rename directory gf -> gfs 2013-07-29 11:53:02 +02:00
fourier_matsubara.cpp Fix bug with full bins in Fourier transforms 2014-07-01 18:04:30 +02:00
fourier_matsubara.hpp fourier. Add one overload to make_gf_from_fourier API. 2014-07-03 19:50:16 +02:00
fourier_real.cpp work on doc for gf, and details. 2013-12-30 22:32:16 +01:00
fourier_real.hpp gf. Clean Fourier 2013-10-23 18:46:55 +02:00
functions.cpp Fix in off-diagonal elements of density() 2014-03-08 13:46:31 +01:00
functions.hpp Added density for scalar_valued gf (and test thereof) 2014-01-20 17:55:07 +01:00
legendre_matsubara.cpp gf. Clean Fourier 2013-10-23 18:46:55 +02:00
legendre_matsubara.hpp gf. Clean Fourier 2013-10-23 18:46:55 +02:00
no_tail.hpp gf : add indices, name in C++ 2014-05-11 21:47:51 +02:00
pade.cpp [API BREAK] rename directory gf -> gfs 2013-07-29 11:53:02 +02:00
pade.hpp [API BREAK] rename directory gf -> gfs 2013-07-29 11:53:02 +02:00
tail.hpp Fix #112 and put back g +=/-= matrix for imfreq 2014-09-06 19:07:34 +02:00