3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-26 06:14:14 +01:00
dft_tools/pytriqs/gf/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
..
__init__.py gf : new wrapper 2014-05-11 21:47:52 +02:00
_gf_common.py gf : new wrapper 2014-05-11 21:47:52 +02:00
_gf_imfreq.py gf : new wrapper 2014-05-11 21:47:52 +02:00
_gf_imtime.py gf : new wrapper 2014-05-11 21:47:52 +02:00
_gf_legendre.py forgot one file 2014-05-22 21:08:08 +02:00
_gf_plot.py More prettification: can not --> cannot 2014-07-16 23:30:05 +02:00
_gf_refreq.py gf : new wrapper 2014-05-11 21:47:52 +02:00
_gf_retime.py gf : new wrapper 2014-05-11 21:47:52 +02:00
block_gf.py gf : new wrapper 2014-05-11 21:47:52 +02:00
CMakeLists.txt Add missing file in installation of gf 2014-06-05 14:07:44 +02:00
descriptor_base.py gf : new wrapper 2014-05-11 21:47:52 +02:00
descriptors.py gf : new wrapper 2014-05-11 21:47:52 +02:00
gf_desc.py Fix #112 and put back g +=/-= matrix for imfreq 2014-09-06 19:07:34 +02:00
inverse.py First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
lazy_expressions.py First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
tools.py gf : new wrapper 2014-05-11 21:47:52 +02:00