3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-01 19:53:45 +01:00
dft_tools/test/triqs/clef/function.output
Olivier Parcollet 2c542647fd clef : new version using lvalues and moving rvalues
- change : all objects are by default
  stored now by reference, not by copy any more.
  Unless the trait force_copy_in_expr is true.
- rvalue refs are moved into the tree
- simplifies a lot the writing of lazy method, objects.
- added a macro for methods
- tests ok. Further check needed to control absence of copies...
- improved documentation
2013-09-08 15:04:12 +02:00

13 lines
292 B
Plaintext

((x_ >> (2*x_ +1) )(10)) ---> 21
(f2(2,3)) ---> 5
(f2(2,3)) ---> 8
(ff2(2,3)) ---> 8
(f1(3)) ---> 36
(g2(2,3)) ---> 13
(ff8(2,3)) ---> 5
(f3(3)) ---> 36
lazy function : (_1) --> (((2 * _1) + 1) + 1)
(tql::eval( h, y_=1) (10)) ---> 22
(h) ---> lazy function : (_1) --> (((2 * _1) + _2) + 1)
7