|
TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
|
Member code shared by triqs::gfs::block_gf and triqs::gfs::block_gf_view.
Definition in file _block_gf_view_common.hpp.
Go to the source code of this file.
Classes | |
| class | iterator_impl< is_const > |
| Forward iterator over the blocks of a block Green's function. More... | |
Typedefs | |
| using | const_iterator = iterator_impl<true> |
| Const block iterator type. | |
| using | iterator = iterator_impl<false> |
| Mutable block iterator type. | |
Functions | |
| iterator | begin () |
| Get an iterator to the first block. | |
| block_names_t const & | block_names () const |
| Get the block names. | |
| std::vector< int > | block_sizes () const |
| Get the matrix size of each block. | |
| auto | cbegin () |
| Get a const iterator to the first block. | |
| auto | cend () |
| Get a const iterator past the last block. | |
| data_t & | data () |
| Direct access to the blocks. | |
| iterator | end () |
| Get an iterator past the last block. | |
| gf_struct_t | gf_struct () const |
| Get the block structure. | |
| void | h5_read (h5::group fg, std::string const &subgroup_name, this_t &g) |
| Read a block Green's function from HDF5. | |
| void | h5_write (h5::group fg, std::string const &subgroup_name, this_t const &g) |
| Write a block Green's function to HDF5. | |
| static std::string | hdf5_format () |
| Get the HDF5 format tag of a block Green's function. | |
| const_view_type | operator() () const |
| Make a const view of *this. | |
| template<typename... Args> requires (nda::clef::is_clef_expression<Args...>) | |
| auto | operator() (Args &&...1) & |
| Make a lazy CLEF call expression (lvalue overload). | |
|
template<typename... Args> requires (nda::clef::is_clef_expression<Args...>) | |
| auto | operator() (Args &&...1) && |
| Rvalue overload of the lazy CLEF call (see the lvalue overload). | |
| decltype(auto) | operator() (int n) const |
| Access the n-th block of a one-index block Green's function. | |
| decltype(auto) | operator() (int n1, int n2) const |
| Access block (n1, n2) of a two-index block Green's function (const overload). | |
|
template<typename Arg> requires (nda::clef::is_clef_expression<Arg>) | |
| auto | operator[] (Arg &&arg) && |
| Rvalue overload of the lazy CLEF subscript (see the const lvalue overload). | |
| template<typename Arg> requires (nda::clef::is_clef_expression<Arg>) | |
| auto | operator[] (Arg &&arg) const & |
| Make a lazy CLEF subscript expression (const lvalue overload). | |
| decltype(auto) | operator[] (int n) const |
| Access the n-th block of a one-index block Green's function (const overload). | |
| int | size () const |
| Get the total number of blocks. | |
| int | size1 () const |
| Get the number of blocks along the first index (block2_gf only). | |
| int | size2 () const |
| Get the number of blocks along the second index (block2_gf only). | |
| const_iterator begin | ( | ) |
Get an iterator to the first block.
Get a const iterator to the first block.
Definition at line 416 of file _block_gf_view_common.hpp.
| block_names_t const & block_names | ( | ) | const |
Get the block names.
Definition at line 52 of file _block_gf_view_common.hpp.
| std::vector< int > block_sizes | ( | ) | const |
Get the matrix size of each block.
Only valid for matrix-valued blocks (rank-2 target); requires each block to have a square target shape.
Definition at line 61 of file _block_gf_view_common.hpp.
| data_t const & data | ( | ) |
Direct access to the blocks.
Direct access to the blocks (const overload).
Definition at line 40 of file _block_gf_view_common.hpp.
| const_iterator end | ( | ) |
Get an iterator past the last block.
Get a const iterator past the last block.
Definition at line 422 of file _block_gf_view_common.hpp.
| gf_struct_t gf_struct | ( | ) | const |
Get the block structure.
Will fail if the target shape is non-square, because block_sizes() will fail.
Definition at line 78 of file _block_gf_view_common.hpp.
| friend void h5_read | ( | h5::group | fg, |
| std::string const & | subgroup_name, | ||
| this_t & | g ) |
Read a block Green's function from HDF5.
Read a Green's function from HDF5.
Throws a triqs::runtime_error if the HDF5 format tag does not correspond to the expected block format.
| fg | h5::group to read from. |
| subgroup_name | Name of the subgroup to read. |
| g | Block Green's function to read into. |
Definition at line 304 of file _block_gf_view_common.hpp.
| friend void h5_write | ( | h5::group | fg, |
| std::string const & | subgroup_name, | ||
| this_t const & | g ) |
Write a block Green's function to HDF5.
Write a Green's function to HDF5.
| fg | h5::group to write into. |
| subgroup_name | Name of the subgroup to create. |
| g | Block Green's function to write. |
Definition at line 280 of file _block_gf_view_common.hpp.
|
staticnodiscard |
Get the HDF5 format tag of a block Green's function.
Definition at line 266 of file _block_gf_view_common.hpp.
| view_type operator() | ( | ) | const |
Make a const view of *this.
Make a view of *this if it is non const.
Definition at line 135 of file _block_gf_view_common.hpp.
| auto operator() | ( | Args &&... | 1 | ) | & |
Make a lazy CLEF call expression (lvalue overload).
Const lvalue overload of the lazy CLEF call (see the lvalue overload).
| Args | Types of the lazy CLEF arguments. |
Definition at line 183 of file _block_gf_view_common.hpp.
| decltype(auto) operator() | ( | int | n | ) | const |
Access the n-th block of a one-index block Green's function.
| n | Block index. |
Definition at line 145 of file _block_gf_view_common.hpp.
| decltype(auto) operator() | ( | int | n1, |
| int | n2 ) const |
Access block (n1, n2) of a two-index block Green's function (const overload).
Access block (n1, n2) of a two-index block Green's function.
| n1 | First block index. |
| n2 | Second block index. |
Definition at line 157 of file _block_gf_view_common.hpp.
| auto operator[] | ( | Arg && | arg | ) | const & |
Make a lazy CLEF subscript expression (const lvalue overload).
Lvalue overload of the lazy CLEF subscript (see the const lvalue overload).
| Arg | Type of the lazy CLEF argument. |
| arg | Lazy CLEF argument. |
Definition at line 238 of file _block_gf_view_common.hpp.
| decltype(auto) operator[] | ( | int | n | ) | const |
Access the n-th block of a one-index block Green's function (const overload).
Access the n-th block of a one-index block Green's function.
| n | Block index. |
Definition at line 212 of file _block_gf_view_common.hpp.
| int size | ( | ) | const |
Get the total number of blocks.
Definition at line 108 of file _block_gf_view_common.hpp.
| int size1 | ( | ) | const |
Get the number of blocks along the first index (block2_gf only).
Definition at line 88 of file _block_gf_view_common.hpp.
| int size2 | ( | ) | const |
Get the number of blocks along the second index (block2_gf only).
Definition at line 98 of file _block_gf_view_common.hpp.