3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-26 06:14:14 +01:00
dft_tools/test/pytriqs/base
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 Fix #112 and put back g +=/-= matrix for imfreq 2014-09-06 19:07:34 +02:00
dos.output.h5 First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
dos.py lattice : python wrapper 2014-05-29 22:25:22 +02:00
gf_base_op.output.h5 gf : clean test output 2014-05-29 22:25:22 +02:00
gf_base_op.py gf : new wrapper 2014-05-11 21:47:52 +02:00
gf_bcast.py First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
gf_init.output.h5 Change tail implementation with fixed array size 2013-09-12 15:21:56 +02:00
gf_init.py First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
gf_inplace_112.output Fix #112 and put back g +=/-= matrix for imfreq 2014-09-06 19:07:34 +02:00
gf_inplace_112.py Fix #112 and put back g +=/-= matrix for imfreq 2014-09-06 19:07:34 +02:00
h5_example.output.h5 First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
h5_example.py First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
hdf5_io.output.h5 First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
hdf5_io.py First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
operator_python_test.output Add python test for operators 2014-06-06 10:44:50 +02:00
operator_python_test.py Add python test for operators 2014-06-06 10:44:50 +02:00
pade.output.h5 First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
pade.py First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
test_example.output First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
test_example.py First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00