TRIQS/triqs_modest 3.3.0
Modular Electronic Structure Toolkit
Loading...
Searching...
No Matches
defs.hpp
Go to the documentation of this file.
1// Copyright (c) 2025--present, The Simons Foundation
2// This file is part of TRIQS/modest and is licensed under the terms of GPLv3 or later.
3// SPDX-License-Identifier: GPL-3.0-or-later
4// See LICENSE in the root of this distribution for details.
5
6#pragma once
7#include <cassert>
8#include <fmt/core.h>
9#include <tl/to.hpp>
10#include <nda/nda.hpp>
11#include <triqs/gfs.hpp>
12#include "./range_supp.hpp"
13
14namespace stdv = std::views;
15namespace stdr = std::ranges;
16using namespace std::literals;
17
18namespace triqs {
19
20 // To be cleaned
21 using fmt::format;
22 using gfs::block2_gf;
23 using gfs::block_gf;
24 using gfs::gf;
25 using gfs::gf_struct_t;
27 using gfs::matrix_valued;
28 using itertools::enumerate;
29 using itertools::zip; // OR STD ?
30
31 using cmat_t = nda::matrix<dcomplex>;
32 using cmat_vt = nda::matrix_view<dcomplex>;
33 static constexpr auto r_all = nda::range::all;
34
35} // namespace triqs
block2_gf< Mesh, matrix_valued > make_block2_gf(Mesh const &mesh, gf_struct2_t const &gf_s)
Definition gf_supp.hpp:41
static constexpr auto r_all
Definition defs.hpp:33
nda::matrix_view< dcomplex > cmat_vt
Definition defs.hpp:32
nda::matrix< dcomplex > cmat_t
Definition defs.hpp:31