TRIQS/nda 1.3.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches
literals.hpp
Go to the documentation of this file.
1// Copyright (c) 2020--present, The Simons Foundation
2// This file is part of TRIQS/nda and is licensed under the Apache License, Version 2.0.
3// SPDX-License-Identifier: Apache-2.0
4// See LICENSE in the root of this distribution for details.
5
10
11#pragma once
12
13#include "./clef.hpp"
14
15namespace nda::clef::literals {
16
21
22 // Define literal placeholders starting from the end of the allowed index spectrum.
23#define PH(I) \
24 (placeholder<63 - (I)> {})
25
27 constexpr auto i_ = PH(0);
28
30 constexpr auto j_ = PH(1);
31
33 constexpr auto k_ = PH(2);
34
36 constexpr auto l_ = PH(3);
37
39 constexpr auto bl_ = PH(4);
40
42 constexpr auto w_ = PH(5);
43
45 constexpr auto iw_ = PH(6);
46
48 constexpr auto W_ = PH(7);
49
51 constexpr auto iW_ = PH(8);
52
54 constexpr auto t_ = PH(9);
55
57 constexpr auto tau_ = PH(10);
58
59#undef PH
60
62
63} // namespace nda::clef::literals
Includes all relevant headers for the core clef library.
constexpr auto iW_
Placeholder for imaginary bosonic frequencies.
Definition literals.hpp:51
constexpr auto iw_
Placeholder for imaginary fermionic frequencies.
Definition literals.hpp:45
constexpr auto j_
Generic placeholder #2.
Definition literals.hpp:30
constexpr auto tau_
Placeholder for imaginary times.
Definition literals.hpp:57
constexpr auto i_
Generic placeholder #1.
Definition literals.hpp:27
constexpr auto bl_
Placeholder for block indices.
Definition literals.hpp:39
constexpr auto W_
Placeholder for real bosonic frequencies.
Definition literals.hpp:48
constexpr auto w_
Placeholder for real fermionic frequencies.
Definition literals.hpp:42
constexpr auto t_
Placeholder for real times.
Definition literals.hpp:54
constexpr auto k_
Generic placeholder #3.
Definition literals.hpp:33
constexpr auto l_
Generic placeholder #4.
Definition literals.hpp:36