TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
factories.hpp
#include "./block_gf.hpp"
#include "../../utility/exceptions.hpp"
#include <initializer_list>
#include <string>
#include <utility>
#include <vector>

Detailed Description

Provides the free factory functions for block Green's functions.

Definition in file factories.hpp.

Go to the source code of this file.

Functions

template<typename V, typename T, typename L>
block2_gf< V, T, L > triqs::gfs::make_block2_gf (int n, int p, gf< V, T, L > const &g)
 Make a triqs::gfs::block2_gf of n x p copies of a Green's function.
template<typename V, typename T, typename L>
block2_gf< V, T, L > triqs::gfs::make_block2_gf (std::vector< std::string > const &block_names1, std::vector< std::string > const &block_names2, std::vector< std::vector< gf< V, T, L > > > vv)
 Make a triqs::gfs::block2_gf from two lists of block names and a matrix of Green's functions.
template<typename Gf>
block2_gf_const_view_of< Gf > triqs::gfs::make_block2_gf_const_view (std::vector< std::string > block_names1, std::vector< std::string > block_names2, std::vector< std::vector< Gf > > &&v)
 Rvalue overload of make_block2_gf_const_view from two lists of block names and a matrix of views.
template<typename Gf>
block2_gf_const_view_of< Gf > triqs::gfs::make_block2_gf_const_view (std::vector< std::string > block_names1, std::vector< std::string > block_names2, std::vector< std::vector< Gf > > &v)
 Make a triqs::gfs::block2_gf_const_view from two lists of block names and a matrix of views.
template<typename Gf>
block2_gf_const_view_of< Gf > triqs::gfs::make_block2_gf_const_view (std::vector< std::vector< Gf > > &&v)
 Rvalue overload of make_block2_gf_const_view from a matrix of views.
template<typename Gf>
block2_gf_const_view_of< Gf > triqs::gfs::make_block2_gf_const_view (std::vector< std::vector< Gf > > &v)
 Make a triqs::gfs::block2_gf_const_view from a matrix of views (block names default to "0", "1", ...).
template<typename Gf>
block2_gf_view_of< Gf > triqs::gfs::make_block2_gf_view (std::vector< std::string > block_names1, std::vector< std::string > block_names2, std::vector< std::vector< Gf > > &&v)
 Rvalue overload of make_block2_gf_view from two lists of block names and a matrix of views.
template<typename Gf>
block2_gf_view_of< Gf > triqs::gfs::make_block2_gf_view (std::vector< std::string > block_names1, std::vector< std::string > block_names2, std::vector< std::vector< Gf > > &v)
 Make a triqs::gfs::block2_gf_view from two lists of block names and a matrix of views.
template<typename Gf>
block2_gf_view_of< Gf > triqs::gfs::make_block2_gf_view (std::vector< std::vector< Gf > > &&v)
 Rvalue overload of make_block2_gf_view from a matrix of views.
template<typename Gf>
block2_gf_view_of< Gf > triqs::gfs::make_block2_gf_view (std::vector< std::vector< Gf > > &v)
 Make a triqs::gfs::block2_gf_view from a matrix of views (block names default to "0", "1", ...).
template<typename V, typename T, typename L>
block_gf< V, T, L > triqs::gfs::make_block_gf (int n, gf< V, T, L > const &g)
 Make a triqs::gfs::block_gf of n copies of a Green's function (block names default to "0", "1", ...).
template<typename V, typename T, typename L>
block_gf< V, T, L > triqs::gfs::make_block_gf (std::initializer_list< gf< V, T, L > > const &v)
 Make a triqs::gfs::block_gf from an initializer list of Green's functions (block names default to "0", ...).
template<typename V, typename T, typename L>
block_gf< V, T, L > triqs::gfs::make_block_gf (std::vector< gf< V, T, L > > v)
 Make a triqs::gfs::block_gf from a vector of Green's functions (block names default to "0", "1", ...).
template<typename V, typename T, typename L>
block_gf< V, T, L > triqs::gfs::make_block_gf (std::vector< std::string > b, std::initializer_list< gf< V, T, L > > const &v)
 Make a triqs::gfs::block_gf from block names and an initializer list of Green's functions.
template<typename V, typename T, typename L>
block_gf< V, T, L > triqs::gfs::make_block_gf (std::vector< std::string > const &b, gf< V, T, L > const &g)
 Make a triqs::gfs::block_gf from block names and one Green's function copied into every block.
template<typename V, typename T, typename L>
block_gf< V, T, L > triqs::gfs::make_block_gf (std::vector< std::string > const &b, std::vector< gf< V, T, L > > v)
 Make a triqs::gfs::block_gf from block names and a vector of Green's functions.
template<typename G0, typename... G>
block_gf_const_view_of< G0 > triqs::gfs::make_block_gf_const_view (G0 &&g0, G &&...g)
 Make a triqs::gfs::block_gf_const_view from a list of Green's function views (block names default to "0", ...).
template<typename Gf>
block_gf_const_view_of< Gf > triqs::gfs::make_block_gf_const_view (std::vector< Gf > &&v)
 Rvalue overload of make_block_gf_const_view from a vector of views.
template<typename Gf>
block_gf_const_view_of< Gf > triqs::gfs::make_block_gf_const_view (std::vector< Gf > &v)
 Make a triqs::gfs::block_gf_const_view from a vector of views (block names default to "0", "1", ...).
template<typename Gf>
block_gf_const_view_of< Gf > triqs::gfs::make_block_gf_const_view (std::vector< std::string > b, std::vector< Gf > &&v)
 Rvalue overload of make_block_gf_const_view from block names and a vector of views.
template<typename Gf>
block_gf_const_view_of< Gf > triqs::gfs::make_block_gf_const_view (std::vector< std::string > b, std::vector< Gf > &v)
 Make a triqs::gfs::block_gf_const_view from block names and a vector of views.
template<typename G0, typename... G>
block_gf_view_of< G0 > triqs::gfs::make_block_gf_view (G0 &&g0, G &&...g)
 Make a triqs::gfs::block_gf_view from a list of Green's function views (block names default to "0", "1", ...).
template<typename Gf>
block_gf_view_of< Gf > triqs::gfs::make_block_gf_view (std::vector< Gf > &&v)
 Rvalue overload of make_block_gf_view from a vector of views.
template<typename Gf>
block_gf_view_of< Gf > triqs::gfs::make_block_gf_view (std::vector< Gf > &v)
 Make a triqs::gfs::block_gf_view from a vector of views (block names default to "0", "1", ...).
template<typename Gf>
block_gf_view_of< Gf > triqs::gfs::make_block_gf_view (std::vector< std::string > b, std::vector< Gf > &&v)
 Rvalue overload of make_block_gf_view from block names and a vector of views.
template<typename Gf>
block_gf_view_of< Gf > triqs::gfs::make_block_gf_view (std::vector< std::string > b, std::vector< Gf > &v)
 Make a triqs::gfs::block_gf_view from block names and a vector of views.