v0.14.0
src
ftensor
src
FTensor
Tensor2_symmetric
minus_Tensor2_symmetric.hpp
Go to the documentation of this file.
1
/* Unary minus operator. */
2
3
#pragma once
4
5
namespace
FTensor
6
{
7
template
<
class
A,
class
T,
int
Dim,
char
i,
char
j>
8
class
minus_Tensor2_symmetric
9
{
10
public
:
11
Tensor2_symmetric_Expr<A, T, Dim, i, j>
iterA
;
12
13
public
:
14
T
operator()
(
const
int
N1,
const
int
N2)
const
{
return
-
iterA
(N1, N2); }
15
minus_Tensor2_symmetric
(
const
Tensor2_symmetric_Expr<A, T, Dim, i, j>
&
a
)
16
:
iterA
(
a
)
17
{}
18
};
19
20
template
<
class
A,
class
T,
int
Dim,
char
i,
char
j>
21
Tensor2_symmetric_Expr<minus_Tensor2_symmetric<A, T, Dim, i, j>, T, Dim,
i
,
j
>
22
operator-
(
const
Tensor2_symmetric_Expr<A, T, Dim, i, j>
&
a
)
23
{
24
using
TensorExpr =
minus_Tensor2_symmetric<A, T, Dim, i, j>
;
25
return
Tensor2_symmetric_Expr<TensorExpr, T, Dim, i, j>
(TensorExpr(
a
));
26
}
27
}
FTensor
JSON compatible output.
Definition:
Christof_constructor.hpp:6
FTensor::Tensor2_symmetric_Expr
Definition:
Tensor2_symmetric_Expr.hpp:36
FTensor::minus_Tensor2_symmetric
Definition:
minus_Tensor2_symmetric.hpp:8
a
constexpr double a
Definition:
approx_sphere.cpp:30
FTensor::minus_Tensor2_symmetric::minus_Tensor2_symmetric
minus_Tensor2_symmetric(const Tensor2_symmetric_Expr< A, T, Dim, i, j > &a)
Definition:
minus_Tensor2_symmetric.hpp:15
FTensor::minus_Tensor2_symmetric::iterA
Tensor2_symmetric_Expr< A, T, Dim, i, j > iterA
Definition:
minus_Tensor2_symmetric.hpp:11
i
FTensor::Index< 'i', SPACE_DIM > i
Definition:
hcurl_divergence_operator_2d.cpp:27
FTensor::minus_Tensor2_symmetric::operator()
T operator()(const int N1, const int N2) const
Definition:
minus_Tensor2_symmetric.hpp:14
FTensor::operator-
Ddg_Expr< Ddg_minus_Ddg< A, B, T, U, Dim01, Dim23, i, j, k, l >, typename promote< T, U >::V, Dim01, Dim23, i, j, k, l > operator-(const Ddg_Expr< A, T, Dim01, Dim23, i, j, k, l > &a, const Ddg_Expr< B, U, Dim01, Dim23, i, j, k, l > &b)
Definition:
Ddg_minus_Ddg.hpp:33
j
FTensor::Index< 'j', 3 > j
Definition:
matrix_function.cpp:19
Generated by
Doxygen
1.8.17 and hosted at