TRIQS/triqs_modest 3.3.0
Brillouin zone summation
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
14#ifdef __clang__
15#define C2PY_IGNORE __attribute__((annotate("c2py_ignore")))
16#else
17#define C2PY_IGNORE
18#endif
19//#include <c2py/user_api.hpp>
20
21namespace stdv = std::views;
22namespace stdr = std::ranges;
23using namespace std::literals;
24
25namespace triqs {
26
27 // To be cleaned
28 using fmt::format;
29 using gfs::block2_gf;
30 using gfs::block_gf;
31 using gfs::gf;
32 using gfs::gf_struct_t;
34 using gfs::matrix_valued;
35 using itertools::enumerate;
36 using itertools::zip; // OR STD ?
37
38 using cmat_t = nda::matrix<dcomplex>;
39 using cmat_vt = nda::matrix_view<dcomplex>;
40 static constexpr auto r_all = nda::range::all;
41
42} // 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:40
nda::matrix_view< dcomplex > cmat_vt
Definition defs.hpp:39
nda::matrix< dcomplex > cmat_t
Definition defs.hpp:38