3
0
mirror of https://github.com/triqs/dft_tools synced 2025-01-12 05:58:18 +01:00
dft_tools/triqs
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
..
arrays Fix #119 2014-09-04 11:55:32 +02:00
clef update for xcode 5.1.1 2014-06-11 16:23:48 +02:00
det_manip Work on compilation speed. 2014-05-02 20:49:19 +02:00
gfs Fix #112 and put back g +=/-= matrix for imfreq 2014-09-06 19:07:34 +02:00
h5 More prettification: can not --> cannot 2014-07-16 23:30:05 +02:00
lattice Fix #119 2014-09-04 11:55:32 +02:00
mc_tools Change implementation of random_generator & python wrapper. 2014-05-29 22:25:22 +02:00
operators Add many_body_operator header in triqs 2014-05-22 23:58:07 +02:00
parameters Fix #112 and put back g +=/-= matrix for imfreq 2014-09-06 19:07:34 +02:00
python_tools Add date+time in C++ exceptions in wrapper 2014-07-23 15:47:19 +02:00
statistics statistics : fix get_value_type detection 2014-04-17 13:48:54 +02:00
utility Add date+time in C++ exceptions in wrapper 2014-07-23 15:47:19 +02:00
arrays.hpp arrays : rm linalg/determinant and inverse (links) 2013-08-27 13:43:57 +02:00
clef.hpp First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
CMakeLists.txt Fix compilation of py_converter. 2014-05-20 22:24:30 +02:00
det_manip.hpp add header helper files 2013-11-18 23:41:32 +01:00
gfs.hpp gf. Clean Fourier 2013-10-23 18:46:55 +02:00
h5.hpp hdf5 : clean up 2014-06-22 13:57:47 +02:00
mc_tools.hpp add header helper files 2013-11-18 23:41:32 +01:00
parameters.hpp First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
statistics.hpp Statistical tools documentation. 2014-04-17 13:39:51 +02:00
version.hpp.in Work on documentation 2013-09-17 14:55:55 +02:00