2014-10-17 18:15:19 +02:00
|
|
|
Manipulation of determinants for Continuous-Time Monte-Carlo algorithms
|
|
|
|
=======================================================================
|
2013-12-18 15:50:18 +01:00
|
|
|
|
|
|
|
.. highlight:: c
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
|
|
|
|
TRIQS comes with a class called det_manip to easily perform operations on a special type of matrices
|
|
|
|
(see :doc:`here <../../reference/c++/det_manip/contents>`).
|
|
|
|
This library, among others, allows to easily add or remove lines or columns to the matrix, to calculate the determinant and the inverse.
|
|
|
|
Here are a couple of simple examples showing the basic use of this class.
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-12-18 13:30:17 +01:00
|
|
|
Creation of an empty det_manip class
|
|
|
|
-------------------------------------
|
2013-07-17 19:24:07 +02:00
|
|
|
|
2014-05-31 19:12:21 +02:00
|
|
|
.. triqs_example:: ./det_manip_tutorial_0.cpp
|
2013-12-18 13:30:17 +01:00
|
|
|
Creation of a non empty det_manip class
|
|
|
|
----------------------------------------
|
|
|
|
|
2014-05-31 19:12:21 +02:00
|
|
|
.. triqs_example:: ./det_manip_tutorial_1.cpp
|
2013-12-18 13:30:17 +01:00
|
|
|
Get informations about a det_manip class
|
|
|
|
-----------------------------------------
|
|
|
|
|
2014-05-31 19:12:21 +02:00
|
|
|
.. triqs_example:: ./det_manip_tutorial_2.cpp
|
2013-12-18 13:30:17 +01:00
|
|
|
Add a line and a column
|
|
|
|
-------------------------
|
|
|
|
|
2014-05-31 19:12:21 +02:00
|
|
|
.. triqs_example:: ./det_manip_tutorial_3.cpp
|
2013-12-18 13:30:17 +01:00
|
|
|
Remove a line and a column
|
|
|
|
---------------------------
|
|
|
|
|
2014-05-31 19:12:21 +02:00
|
|
|
.. triqs_example:: ./det_manip_tutorial_4.cpp
|
2013-12-18 13:30:17 +01:00
|
|
|
Add two lines and two columns
|
|
|
|
------------------------------
|
|
|
|
|
2014-05-31 19:12:21 +02:00
|
|
|
.. triqs_example:: ./det_manip_tutorial_5.cpp
|
2013-12-18 13:30:17 +01:00
|
|
|
Remove two lines and two columns
|
|
|
|
--------------------------------
|
|
|
|
|
2014-05-31 19:12:21 +02:00
|
|
|
.. triqs_example:: ./det_manip_tutorial_6.cpp
|
2013-08-01 14:13:21 +02:00
|
|
|
Learn more in the full reference, see :ref:`det_manip`
|
2013-07-17 19:24:07 +02:00
|
|
|
|
|
|
|
|