v0.14.0
src
ftensor
src
FTensor
Tensor2_symmetric
generic_minus_Tensor2_symmetric.hpp
Go to the documentation of this file.
1
/* Subtracts a generic from a Tensor2_symmetric, yielding a
2
Tensor2_symmetric. */
3
4
#pragma once
5
6
namespace
FTensor
7
{
8
template
<
class
A,
class
T,
class
U,
int
Dim,
char
i,
char
j>
9
class
generic_minus_Tensor2_symmetric
10
{
11
Tensor2_symmetric_Expr<A, T, Dim, i, j>
iterA
;
12
U
d
;
13
14
public
:
15
typename
promote<T, U>::V
operator()
(
const
int
N1,
const
int
N2)
const
16
{
17
return
d
-
iterA
(N1, N2);
18
}
19
generic_minus_Tensor2_symmetric
(
20
const
Tensor2_symmetric_Expr<A, T, Dim, i, j>
&
a
,
const
U
&d0)
21
:
iterA
(
a
),
d
(d0)
22
{}
23
};
24
25
template
<
class
A,
class
T,
class
U,
int
Dim,
char
i,
char
j>
26
Tensor2_symmetric_Expr<generic_minus_Tensor2_symmetric<A, T, U, Dim, i, j>,
27
typename
promote<T, U>::V
, Dim,
i
,
j
>
28
operator-
(
const
U
&d0,
const
Tensor2_symmetric_Expr<A, T, Dim, i, j>
&
a
)
29
{
30
using
TensorExpr =
generic_minus_Tensor2_symmetric<A, T, U, Dim, i, j>
;
31
return
Tensor2_symmetric_Expr<TensorExpr, typename promote<T, U>::V
, Dim,
32
i
,
j
>(TensorExpr(
a
, d0));
33
}
34
}
FTensor
JSON compatible output.
Definition:
Christof_constructor.hpp:6
FTensor::generic_minus_Tensor2_symmetric::generic_minus_Tensor2_symmetric
generic_minus_Tensor2_symmetric(const Tensor2_symmetric_Expr< A, T, Dim, i, j > &a, const U &d0)
Definition:
generic_minus_Tensor2_symmetric.hpp:19
FTensor::Tensor2_symmetric_Expr
Definition:
Tensor2_symmetric_Expr.hpp:36
a
constexpr double a
Definition:
approx_sphere.cpp:30
FTensor::generic_minus_Tensor2_symmetric::operator()
promote< T, U >::V operator()(const int N1, const int N2) const
Definition:
generic_minus_Tensor2_symmetric.hpp:15
FTensor::promote::V
T1 V
Definition:
promote.hpp:17
FTensor::generic_minus_Tensor2_symmetric
Definition:
generic_minus_Tensor2_symmetric.hpp:9
i
FTensor::Index< 'i', SPACE_DIM > i
Definition:
hcurl_divergence_operator_2d.cpp:27
FTensor::generic_minus_Tensor2_symmetric::d
U d
Definition:
generic_minus_Tensor2_symmetric.hpp:12
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
FTensor::generic_minus_Tensor2_symmetric::iterA
Tensor2_symmetric_Expr< A, T, Dim, i, j > iterA
Definition:
generic_minus_Tensor2_symmetric.hpp:11
EshelbianPlasticity::U
@ U
Definition:
EshelbianContact.cpp:197
Generated by
Doxygen
1.8.17 and hosted at