TRIQS/nda 1.3.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches
math.hpp
Go to the documentation of this file.
1// Copyright (c) 2020-2024 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: Thomas Hahn, Olivier Parcollet, Nils Wentzell
16
21
22#pragma once
23
24#include "../clef.hpp"
25
26#include <cmath>
27#include <complex>
28
29namespace nda::clef {
30
35
36#define CLEF_MAKE_STD_FNT_LAZY(name) \
37 using std::name; \
38 \
39 CLEF_MAKE_FNT_LAZY(name)
40
41 // FIXME use vim generation
42 CLEF_MAKE_STD_FNT_LAZY(cos)
43 CLEF_MAKE_STD_FNT_LAZY(sin)
44 CLEF_MAKE_STD_FNT_LAZY(tan)
45 CLEF_MAKE_STD_FNT_LAZY(cosh)
46 CLEF_MAKE_STD_FNT_LAZY(sinh)
47 CLEF_MAKE_STD_FNT_LAZY(tanh)
48 CLEF_MAKE_STD_FNT_LAZY(acos)
49 CLEF_MAKE_STD_FNT_LAZY(asin)
50 CLEF_MAKE_STD_FNT_LAZY(atan)
51 CLEF_MAKE_STD_FNT_LAZY(exp)
52 CLEF_MAKE_STD_FNT_LAZY(log)
53 CLEF_MAKE_STD_FNT_LAZY(sqrt)
54 CLEF_MAKE_STD_FNT_LAZY(abs)
55 CLEF_MAKE_STD_FNT_LAZY(floor)
56 CLEF_MAKE_STD_FNT_LAZY(pow)
57 CLEF_MAKE_STD_FNT_LAZY(conj)
58
60
61} // namespace nda::clef
Includes all relevant headers for the core clef library.
auto floor(A &&...__a)
Lazy version of std::floor.
Definition math.hpp:55
auto sin(A &&...__a)
Lazy version of std::sin.
Definition math.hpp:43
auto conj(A &&...__a)
Lazy version of std::conj.
Definition math.hpp:57
auto abs(A &&...__a)
Lazy version of std::abs.
Definition math.hpp:54
auto tan(A &&...__a)
Lazy version of std::tan.
Definition math.hpp:44
auto log(A &&...__a)
Lazy version of std::log.
Definition math.hpp:52
auto sinh(A &&...__a)
Lazy version of std::sinh.
Definition math.hpp:46
auto sqrt(A &&...__a)
Lazy version of std::sqrt.
Definition math.hpp:53
auto atan(A &&...__a)
Lazy version of std::atan.
Definition math.hpp:50
auto exp(A &&...__a)
Lazy version of std::exp.
Definition math.hpp:51
auto pow(A &&...__a)
Lazy version of std::pow.
Definition math.hpp:56
auto cos(A &&...__a)
Lazy version of std::cos.
Definition math.hpp:42
auto tanh(A &&...__a)
Lazy version of std::tanh.
Definition math.hpp:47
auto asin(A &&...__a)
Lazy version of std::asin.
Definition math.hpp:49
auto cosh(A &&...__a)
Lazy version of std::cosh.
Definition math.hpp:45
auto acos(A &&...__a)
Lazy version of std::acos.
Definition math.hpp:48