v0.14.0
src
ftensor
src
FTensor
Tensor2
conj_Tensor2.hpp
Go to the documentation of this file.
1
/* complex conjugate operator. */
2
3
#pragma once
4
5
namespace
FTensor
6
{
7
template
<
class
A,
class
T,
int
Dim0,
int
Dim1,
char
i,
char
j>
8
class
conj_Tensor2
9
{
10
const
Tensor2_Expr<A, T, Dim0, Dim1, i, j>
iterA
;
11
12
public
:
13
T
operator()
(
const
int
N1,
const
int
N2)
const
14
{
15
return
conj
(
iterA
(N1, N2));
16
}
17
18
conj_Tensor2
(
const
Tensor2_Expr<A, T, Dim0, Dim1, i, j>
&
a
) :
iterA
(
a
) {}
19
};
20
21
template
<
class
A,
class
T,
int
Dim0,
int
Dim1,
char
i,
char
j>
22
Tensor2_Expr<conj_Tensor2<A, T, Dim0, Dim1, i, j>, T, Dim0, Dim1,
i
,
j
>
23
conj
(
const
Tensor2_Expr<A, T, Dim0, Dim1, i, j>
&
a
)
24
{
25
using
TensorExpr =
conj_Tensor2<A, T, Dim0, Dim1, i, j>
;
26
return
Tensor2_Expr<TensorExpr, T, Dim0, Dim1, i, j>
(TensorExpr(
a
));
27
}
28
}
FTensor
JSON compatible output.
Definition:
Christof_constructor.hpp:6
FTensor::conj_Tensor2::conj_Tensor2
conj_Tensor2(const Tensor2_Expr< A, T, Dim0, Dim1, i, j > &a)
Definition:
conj_Tensor2.hpp:18
FTensor::conj_Tensor2::operator()
T operator()(const int N1, const int N2) const
Definition:
conj_Tensor2.hpp:13
FTensor::Tensor2_Expr
Definition:
Tensor2_Expr.hpp:26
FTensor::conj_Tensor2
Definition:
conj_Tensor2.hpp:8
a
constexpr double a
Definition:
approx_sphere.cpp:30
FTensor::conj
Tensor2_Expr< conj_Tensor2< A, T, Dim0, Dim1, i, j >, T, Dim0, Dim1, i, j > conj(const Tensor2_Expr< A, T, Dim0, Dim1, i, j > &a)
Definition:
conj_Tensor2.hpp:23
FTensor::conj_Tensor2::iterA
const Tensor2_Expr< A, T, Dim0, Dim1, i, j > iterA
Definition:
conj_Tensor2.hpp:10
i
FTensor::Index< 'i', SPACE_DIM > i
Definition:
hcurl_divergence_operator_2d.cpp:27
j
FTensor::Index< 'j', 3 > j
Definition:
matrix_function.cpp:19
Generated by
Doxygen
1.8.17 and hosted at