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-2023 Simons Foundation
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0.txt
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15// Authors: Nils Wentzell
16
22#pragma once
23
24#include "./clef.hpp"
25
26namespace nda::clef::literals {
27
33 // Define literal placeholders starting from the end of the allowed index spectrum.
34#define PH(I) \
35 (placeholder<63 - (I)> {})
36
38 constexpr auto i_ = PH(0);
39
41 constexpr auto j_ = PH(1);
42
44 constexpr auto k_ = PH(2);
45
47 constexpr auto l_ = PH(3);
48
50 constexpr auto bl_ = PH(4);
51
53 constexpr auto w_ = PH(5);
54
56 constexpr auto iw_ = PH(6);
57
59 constexpr auto W_ = PH(7);
60
62 constexpr auto iW_ = PH(8);
63
65 constexpr auto t_ = PH(9);
66
68 constexpr auto tau_ = PH(10);
69
70#undef PH
71
74} // namespace nda::clef::literals
Includes all relevant headers for the core clef library.
constexpr auto iW_
Placeholder for imaginary bosonic frequencies.
Definition literals.hpp:62
constexpr auto iw_
Placeholder for imaginary fermionic frequencies.
Definition literals.hpp:56
constexpr auto j_
Generic placeholder #2.
Definition literals.hpp:41
constexpr auto tau_
Placeholder for imaginary times.
Definition literals.hpp:68
constexpr auto i_
Generic placeholder #1.
Definition literals.hpp:38
constexpr auto bl_
Placeholder for block indices.
Definition literals.hpp:50
constexpr auto W_
Placeholder for real bosonic frequencies.
Definition literals.hpp:59
constexpr auto w_
Placeholder for real fermionic frequencies.
Definition literals.hpp:53
constexpr auto t_
Placeholder for real times.
Definition literals.hpp:65
constexpr auto k_
Generic placeholder #3.
Definition literals.hpp:44
constexpr auto l_
Generic placeholder #4.
Definition literals.hpp:47