From 6a140d2950493a82931328c4b568e59fa1c69e39 Mon Sep 17 00:00:00 2001 From: Michel Ferrero Date: Wed, 16 Oct 2013 17:36:19 +0200 Subject: [PATCH] Update documentation Changelog and some updates were done. --- doc/changelog.rst | 11 ++- doc/contents.rst | 2 +- doc/reference/c++/learn/first_mc.rst | 64 ------------------ doc/reference/c++/learn/intro.rst | 24 ------- doc/reference/c++/learn/m_vs_beta.png | Bin 5290 -> 0 bytes .../c++/using_the_lib/triqs_library.rst | 33 ++++----- 6 files changed, 24 insertions(+), 110 deletions(-) delete mode 100644 doc/reference/c++/learn/first_mc.rst delete mode 100644 doc/reference/c++/learn/intro.rst delete mode 100644 doc/reference/c++/learn/m_vs_beta.png diff --git a/doc/changelog.rst b/doc/changelog.rst index 1a455f22..bca0fe5d 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -6,10 +6,15 @@ Changelog This document describes the main changes in TRIQS. -master (latest commit on github) --------------------------------- +version 1.1.0 +------------- -* The tails now have fixed size avoid mpi problems +* New constructors for the gf [api change] +* Fix for gf expression templates +* The gf tails now have fixed size to avoid mpi problems +* Fixes in gf expression templates +* New python random generator interface +* Fixes for issues #11, #18, #25 version 1.0.0 ------------- diff --git a/doc/contents.rst b/doc/contents.rst index b0290d8a..1ff07972 100644 --- a/doc/contents.rst +++ b/doc/contents.rst @@ -3,7 +3,7 @@ Table of contents ================= .. toctree:: - :maxdepth: 2 + :maxdepth: 5 index install diff --git a/doc/reference/c++/learn/first_mc.rst b/doc/reference/c++/learn/first_mc.rst deleted file mode 100644 index f09a586b..00000000 --- a/doc/reference/c++/learn/first_mc.rst +++ /dev/null @@ -1,64 +0,0 @@ - -A first external code -===================== - -.. highlight:: c - -As a first exercise you can try to write a Monte Carlo code for an Ising chain -in a magnetic field. Your goal is to write this code as an external project and -to use the Monte Carlo class provided by TRIQS. - -Take some time to read the :ref:`Monte Carlo ` chapter, but don't -read the complete example at the end of the chapter because it is precisely -what you need to do here. You can check your implementation later. - -.. _isingex: - -Ising chain in magnetic field ------------------------------ - -Here's the Hamiltonian for the problem of Ising spins in a magnetic field - -.. math:: - - \mathcal{H} = -J \sum_{i=1}^N \sigma_i \sigma_{i+1} - h \sum_{i=1}^N \sigma_i. - -The goal is to find the magnetization per spin :math:`m` of the system for -:math:`J = -1.0`, a magnetic field :math:`h = 0.5` as a function of -the inverse temperature :math:`\beta`. You can see how the results -change with the length of the chain :math:`N`. - -Implementation hints --------------------- - -Here are a couple of implementation hints that you might want to follow. - -* In most Monte Carlo programs there is a *configuration* which is modified - along the simulation. Take enough time to think how this configuration - can be efficiently described and implement it in a separate file, say - :file:`configuration.hpp`. In this example, the configuration is a - collection of spins that can e.g. be described by a vector of integers. - +1 would be a spin up and -1 a spin down. If you're worried with memory - space, you could use a vector of booleans (true for up spins, false for - down spins). - -* More to come... - - -Solution --------- - -In the limit :math:`N \rightarrow \infty`, the solution for the magnetization -is - -.. math:: - - m = \frac{\sinh(\beta h) + \frac{\sinh(\beta h)\cosh(\beta h)}{\sqrt{\sinh^2(\beta h) + e^{-4\beta J}}}} - {\cosh(\beta h) + \sqrt{\sinh^2(\beta h) + e^{-4\beta J}}}. - -Here's a plot of :math:`m` versus :math:`\beta` for different values of :math:`N`: - -.. image:: m_vs_beta.png - :width: 700 - :align: center - diff --git a/doc/reference/c++/learn/intro.rst b/doc/reference/c++/learn/intro.rst deleted file mode 100644 index c82809f0..00000000 --- a/doc/reference/c++/learn/intro.rst +++ /dev/null @@ -1,24 +0,0 @@ - -Developing a project with TRIQS -=============================== - -Welcome to this tutorial! The goal of these notes is to give a practical -introduction to the development of a code that uses the TRIQS headers and -libraries. Rather than being completely general this tutorial will guide you -through the development of a simple CT-INT impurity solver. - -At first, we will see how to write a code that uses TRIQS but that is not meant -to become part of TRIQS. This is especially relevant when you write a pure C++ -code for your personal use. You will learn how to write a Monte Carlo -simulation with a simple example. - -The next step will be to *pythonize* your code. This is very convenient to -change parameters or do simple pre-simulation calculations. It is also -the way most of TRIQS applications are done. - - -.. toctree:: - :maxdepth: 2 - - triqs_library - first_mc diff --git a/doc/reference/c++/learn/m_vs_beta.png b/doc/reference/c++/learn/m_vs_beta.png deleted file mode 100644 index aa60a2bd2efa35d528aedc56bd9a0f0ee5cc420d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5290 zcmZvA2{=@J^#9!J4wtdaSVy+86EY~W&)C9iODds^rP3lxL=o5WN+>0S(3G;3kg23_ zy+V>wktK|xQfer~Yn$KI`@aAG^ZcIQeeQF=_nhxJ=X<{Ae9rma=bm+Q*(M~gK>&xt z2|3u?xZ`jjg2Mr0Fb~E7MYP{ygua`Thb@=O#W+kRbA3Q@IE0JhxHt|6rQx1F#nBJF z=b{uGLPHTQm4T$=a5MzRMY!?Y-kTdYVyd*U9!zh;h7AS=2F}jT2M!#FkB`sK&#$Yi zLs9hk^XDHwe#DlT(bvDgxllFmX=dll7?;Z#N#x#dspfFF{WxqjTp;$0S4vmfl)n2n zoh~gMin)Trb)R`Lg2)VTwB}{68P=vun*8Qh(nb^(XGDEp2%Ek7>MY|sq z&v0j$_q$uTE!}8MESJXQQkt5Y*lf11udjlF!qux+EiEmZo11IlC^il!X5e5$_lPe1 zUgTF$LJ_4!F2D1QN%nb>H?g*R!0wX6b$^1@PGEX<@~nAD_D^1M{=P^oQ2*;Va{i2+=>7| zKfgAW*>@0mOreyA*AO_sUBMo?SlD9Isk;k;#KQ(k2@uH34Q!_DIiPm0(y z3uhuZ@-%bAd9?aNX={v0%<4c_^U_y7HxcIZ>n(yXTuGtGDthl%q{sq*qD*FtWrJSb zR9mofQc!c|#qrH~zm^ZJtiJQHZinHK@%|>i*ofK8jyd_R)vqS`Tlb}K!fxV|k2-}2 zmM-k#bgZtfq30%ER4MJHP6Wh7TK2Wihv)k;_q89qYRXjwtt>1?#RSK-ha*oFv7;VU z-;J{x++^M=Ee8R?GlwTk`eoRq+cHO24>R!)|7e|EX$-piUH{%;R}P?Plq8cB#u2*n z@JgIdwRO~^Un9$!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