Fix for issue #105

  modified:   pytriqs/dft/test/sumklda_basic.py
Cythonize the ctqmc_hyb solver

Got rid of the boost python wrapper. Had to add a small cython boost
wrapper. Tests pass.

  modified:   applications/impurity_solvers/ctqmc_hyb/CMakeLists.txt
  modified:   applications/impurity_solvers/ctqmc_hyb/Configuration.cpp
  modified:   applications/impurity_solvers/ctqmc_hyb/Configuration.hpp
  modified:   applications/impurity_solvers/ctqmc_hyb/MC.cpp
  modified:   applications/impurity_solvers/ctqmc_hyb/MC.hpp
  modified:   pytriqs/solvers/ctqmc_hyb/CMakeLists.txt
  typechange: pytriqs/solvers/ctqmc_hyb/__init__.py
  renamed:    pytriqs/solvers/ctqmc_hyb/solver.py -> pytriqs/solvers/ctqmc_hyb/ctqmc_solver.pyx
  new file:   pytriqs/pxd/boost.pxd
  new file:   triqs/python_tools/boost_object.hpp
  deleted:    applications/impurity_solvers/ctqmc_hyb/QMC_wrap.cpp
appl/ctqmc_hyb : fix this->f in DetManip

- a qualification this->f in the derived class
was missing.
- detected using clang 3.2
Fix as_gf_block in pyx files

  modified:   pytriqs/base/gf/local/imfreq.pyx
  modified:   pytriqs/base/gf/local/imtime.pyx
  modified:   pytriqs/base/gf/local/legendre.pyx
Fix issue in legendre_matsubara

Removed parenthesis.

  modified:   triqs/gf/local/legendre_matsubara.cpp
Add a cython proxy for c++ views

Added a small proxy for c++ views. It has a default
constructor which constructs a view on the default non_view
type. The equal sign has a value meaning (rebind) for this
proxy and the << is used to fill a view. This allows to have
a non-ambiguous transfer to cython.

  modified:   pytriqs/CMakeLists.txt
  modified:   pytriqs/base/gf/local/imfreq.pxd
  modified:   pytriqs/base/gf/local/imfreq.pyx
  modified:   pytriqs/base/gf/local/imtime.pxd
  modified:   pytriqs/base/gf/local/imtime.pyx
  modified:   pytriqs/base/gf/local/legendre.pxd
  modified:   pytriqs/base/gf/local/legendre.pyx
  modified:   pytriqs/base/gf/local/tail.pxd
  modified:   pytriqs/base/gf/local/tail.pyx
  modified:   pytriqs/pxd/arrays.pxd
  modified:   triqs/arrays/array.hpp
  modified:   triqs/arrays/matrix.hpp
  modified:   triqs/arrays/vector.hpp
  modified:   triqs/gf/block.hpp
  modified:   triqs/gf/gf.hpp
  modified:   triqs/gf/legendre.hpp
  modified:   triqs/gf/local/tail.hpp
  modified:   triqs/utility/value_view.hpp
  modified:   triqs/utility/view_tools.hpp
  new file:   triqs/python_tools/array_interface.hpp
  new file:   triqs/python_tools/cython_proxy.hpp
Remove gf.pxd link

  deleted:    pytriqs/pxd/gf.pxd
Rename IteratorOnPythonSequences

  renamed:    triqs/python_tools/IteratorOnPythonSequences.hpp -> triqs/python_tools/iterator_python_sequence.hpp
Remove old Green's functions from ctqmc_hyb solver

At this stage the old Green's functions are not in the solver
anymore. The ctqmc_solver.pyx still has the old GF so that tests
are easy to pass and check. Some cleaning in the code.

  modified:   applications/impurity_solvers/ctqmc_hyb/CMakeLists.txt
  modified:   applications/impurity_solvers/ctqmc_hyb/Configuration.cpp
  modified:   applications/impurity_solvers/ctqmc_hyb/Configuration.hpp
  modified:   applications/impurity_solvers/ctqmc_hyb/DynamicTrace.hpp
  modified:   applications/impurity_solvers/ctqmc_hyb/Hloc.cpp
  modified:   applications/impurity_solvers/ctqmc_hyb/Hloc.hpp
  modified:   applications/impurity_solvers/ctqmc_hyb/MC.cpp
  modified:   applications/impurity_solvers/ctqmc_hyb/MC.hpp
  modified:   applications/impurity_solvers/ctqmc_hyb/Matsubara_generators.hpp
  modified:   applications/impurity_solvers/ctqmc_hyb/Measures_F.hpp
  modified:   applications/impurity_solvers/ctqmc_hyb/Measures_G.hpp
  modified:   applications/impurity_solvers/ctqmc_hyb/Measures_Legendre.cpp
  modified:   applications/impurity_solvers/ctqmc_hyb/Measures_Legendre.hpp
  modified:   applications/impurity_solvers/ctqmc_hyb/Measures_OpAv.hpp
  modified:   applications/impurity_solvers/ctqmc_hyb/Measures_OpCorr.cpp
  modified:   applications/impurity_solvers/ctqmc_hyb/Measures_OpCorr.hpp
  modified:   applications/impurity_solvers/ctqmc_hyb/Move_Global.hpp
  modified:   applications/impurity_solvers/ctqmc_hyb/Move_Insert_Remove_Cdag_C_Delta.hpp
  modified:   applications/impurity_solvers/ctqmc_hyb/Move_Insert_Remove_Cdag_C_Delta_SegmentPicture.hpp
  modified:   applications/impurity_solvers/ctqmc_hyb/Move_Move_CC_Delta.hpp
  modified:   applications/impurity_solvers/ctqmc_hyb/Time_Ordered_Operator_List.hpp
  modified:   applications/impurity_solvers/ctqmc_hyb/TraceSlice.hpp
  modified:   applications/impurity_solvers/ctqmc_hyb/TraceSliceStack.hpp
  modified:   applications/impurity_solvers/ctqmc_hyb/gf_binner_and_eval.hpp
  modified:   pytriqs/solvers/ctqmc_hyb/ctqmc_solver.pyx
  deleted:    applications/impurity_solvers/ctqmc_hyb/Measures_Legendre_allseries.cpp
  deleted:    applications/impurity_solvers/ctqmc_hyb/Measures_Legendre_allseries.hpp
Rename ctqmc_hyb files

Just cleaning up the ctqmc_hyb directory. Looks better...

  modified:   pytriqs/solvers/ctqmc_hyb/ctqmc_solver.pyx
  modified:   CMakeLists.txt
  renamed:    Configuration.cpp -> configuration.cpp
  renamed:    Configuration.hpp -> configuration.hpp
  renamed:    MC.cpp -> ctqmc.cpp
  renamed:    MC.hpp -> ctqmc.hpp
  renamed:    myConstIteratorVector.hpp -> ctqmc_utils.hpp
  renamed:    detManip.hpp -> det_manip_hyb.hpp
  renamed:    DynamicTrace.cpp -> dynamic_trace.cpp
  renamed:    DynamicTrace.hpp -> dynamic_trace.hpp
  renamed:    gf_binner_and_eval.hpp -> gf_binner.hpp
  renamed:    Hloc.cpp -> hloc.cpp
  renamed:    Hloc.hpp -> hloc.hpp
  renamed:    Measures_OpAv.hpp -> measure_average.hpp
  renamed:    Measures_OpCorr.cpp -> measure_correlator.cpp
  renamed:    Measures_OpCorr.hpp -> measure_correlator.hpp
  renamed:    Measures_F.hpp -> measure_f.hpp
  renamed:    Measures_G.hpp -> measure_g.hpp
  renamed:    Measures_Legendre.cpp -> measure_legendre.cpp
  renamed:    Measures_Legendre.hpp -> measure_legendre.hpp
  renamed:    Measures_Z.hpp -> measure_z.hpp
  renamed:    Move_Global.hpp -> move_global.hpp
  renamed:    Move_Insert_Remove_Cdag_C_Delta.hpp -> move_insert.hpp
  renamed:    Move_Insert_Remove_Cdag_C_Delta_SegmentPicture.hpp -> move_insert_segment.hpp
  renamed:    Move_Move_CC_Delta.hpp -> move_shift.hpp
  renamed:    SmallMatrix.hpp -> small_matrix.hpp
  renamed:    TimeEvolution.hpp -> time_evolution.hpp
  renamed:    Time_Ordered_Operator_List.hpp -> time_ordered_list.hpp
  renamed:    TraceSlice.hpp -> trace_slice.hpp
  renamed:    TraceSliceStack.hpp -> trace_slice_stack.hpp
  deleted:    util.hpp
  deleted:    Matsubara_generators.hpp
  deleted:    Move_AuxiliaryFunctions.hpp
Fix issues in gf and add enforce_discontinuity

  modified:   pytriqs/base/gf/local/functions.pxd
  modified:   pytriqs/base/gf/local/gf.pyx
  modified:   pytriqs/base/gf/local/lazy_expressions.py
  modified:   pytriqs/base/gf/local/legendre.pxd
  modified:   pytriqs/base/gf/local/legendre.pyx
  modified:   triqs/gf/local/functions.cpp
  modified:   triqs/gf/local/functions.hpp
Turn to new gf in python part of ctqmc_hyb

For now the bethe test works. For cdmft one needs to go
correct some other python parts (sumk).

  modified:   pytriqs/solvers/ctqmc_hyb/ctqmc_solver.pyx
  modified:   pytriqs/solvers/ctqmc_hyb/models.py
  modified:   pytriqs/solvers/ctqmc_hyb/test/cdmft_4_sites.py
  modified:   pytriqs/solvers/ctqmc_hyb/test/single_site_bethe.py
Forbid *= for triqs::arrays::matrix

  modified:   triqs/arrays/matrix.hpp
Fix h5 read and write for domains and meshes

  modified:   triqs/gf/domains/discrete.hpp
  modified:   triqs/gf/domains/legendre.hpp
  modified:   triqs/gf/meshes/discrete.hpp
Fixes in gf_generic.py

  modified:   pytriqs/base/gf/local/gf_generic.py
Fixes in python tails

  modified:   pytriqs/base/gf/local/tail.pxd
  modified:   pytriqs/base/gf/local/tail.pyx
Fixes in c++ tails

  modified:   triqs/gf/local/tail.hpp
Put new GF in sumk_discrete

  modified:   pytriqs/base/sumk/sumk_discrete.py
Adapt ctqmc tests to new GF

  modified:   pytriqs/solvers/ctqmc_hyb/models.py
  modified:   pytriqs/solvers/ctqmc_hyb/test/cdmft_4_sites.output.h5
  modified:   pytriqs/solvers/ctqmc_hyb/test/cdmft_4_sites.py
  modified:   pytriqs/solvers/ctqmc_hyb/test/single_site_bethe.output.h5
  modified:   pytriqs/solvers/ctqmc_hyb/test/single_site_bethe.py
Implement __call__ for tails

  modified:   pytriqs/base/gf/local/tail.pyx