v0.14.0
src
ftensor
src
FTensor
Tensor3_antisymmetric
Tensor3_antisymmetric_times_generic.hpp
Go to the documentation of this file.
1
/* Multiplies a Tensor3_antisymmetric with a generic, yielding a
2
Tensor3_antisymmetric. */
3
4
#pragma once
5
6
namespace
FTensor
7
{
8
/* A(i,j,k)*generic */
9
10
template
<
class
A
,
class
T,
class
U
,
int
Dim0,
int
Dim12,
char
i
,
char
j
,
11
char
k
>
12
class
Tensor3_antisymmetric_times_generic
13
{
14
Tensor3_antisymmetric_Expr<A, T, Dim0, Dim12, i, j, k>
iterA
;
15
U
d
;
16
17
public
:
18
typename
promote<T, U>::V
19
operator()
(
const
int
N1,
const
int
N2,
const
int
N3)
const
20
{
21
return
iterA
(N1, N2, N3) *
d
;
22
}
23
24
Tensor3_antisymmetric_times_generic
(
25
const
Tensor3_antisymmetric_Expr<A, T, Dim0, Dim12, i, j, k>
&
a
,
26
const
U
&d0)
27
:
iterA
(
a
),
d
(d0)
28
{}
29
};
30
31
template
<
class
A
,
class
T,
class
U
,
int
Dim0,
int
Dim12,
char
i
,
char
j
,
32
char
k
>
33
Tensor3_antisymmetric_Expr<
34
Tensor3_antisymmetric_times_generic<A, T, U, Dim0, Dim12, i, j, k>,
35
typename
promote<T, U>::V
, Dim0, Dim12,
i
,
j
,
k
>
36
operator*
(
const
Tensor3_antisymmetric_Expr<A, T, Dim0, Dim12, i, j, k>
&
a
,
37
const
U
&d0)
38
{
39
using
TensorExpr
40
=
Tensor3_antisymmetric_times_generic<A, T, U, Dim0, Dim12, i, j, k>
;
41
return
Tensor3_antisymmetric_Expr<TensorExpr, typename promote<T, U>::V
,
42
Dim0, Dim12,
i
,
j
,
k
>(TensorExpr(
a
, d0));
43
}
44
45
/* generic*A(i,j,k) */
46
47
template
<
class
A
,
class
T,
class
U
,
int
Dim0,
int
Dim12,
char
i
,
char
j
,
48
char
k
>
49
Tensor3_antisymmetric_Expr<
50
Tensor3_antisymmetric_times_generic<A, T, U, Dim0, Dim12, i, j, k>,
51
typename
promote<T, U>::V
, Dim0, Dim12,
i
,
j
,
k
>
52
operator*
(
const
U
&d0,
53
const
Tensor3_antisymmetric_Expr<A, T, Dim0, Dim12, i, j, k>
&
a
)
54
{
55
using
TensorExpr
56
=
Tensor3_antisymmetric_times_generic<A, T, U, Dim0, Dim12, i, j, k>
;
57
return
Tensor3_antisymmetric_Expr<TensorExpr, typename promote<T, U>::V
,
58
Dim0, Dim12,
i
,
j
,
k
>(TensorExpr(
a
, d0));
59
}
60
}
FTensor
JSON compatible output.
Definition:
Christof_constructor.hpp:6
FTensor::operator*
promote< T, U >::V operator*(const Ddg_Expr< A, T, Dim, Dim, i, j, k, l > &a, const Ddg_Expr< B, U, Dim, Dim, i, k, j, l > &b)
Definition:
Ddg_times_Ddg.hpp:79
FTensor::Tensor3_antisymmetric_times_generic::operator()
promote< T, U >::V operator()(const int N1, const int N2, const int N3) const
Definition:
Tensor3_antisymmetric_times_generic.hpp:19
A
constexpr AssemblyType A
Definition:
operators_tests.cpp:30
FTensor::Tensor3_antisymmetric_times_generic::iterA
Tensor3_antisymmetric_Expr< A, T, Dim0, Dim12, i, j, k > iterA
Definition:
Tensor3_antisymmetric_times_generic.hpp:14
FTensor::Tensor3_antisymmetric_Expr
Definition:
Tensor3_antisymmetric_Expr.hpp:18
FTensor::Tensor3_antisymmetric_times_generic::d
U d
Definition:
Tensor3_antisymmetric_times_generic.hpp:15
a
constexpr double a
Definition:
approx_sphere.cpp:30
FTensor::promote::V
T1 V
Definition:
promote.hpp:17
i
FTensor::Index< 'i', SPACE_DIM > i
Definition:
hcurl_divergence_operator_2d.cpp:27
FTensor::Tensor3_antisymmetric_times_generic
Definition:
Tensor3_antisymmetric_times_generic.hpp:12
FTensor::Tensor3_antisymmetric_times_generic::Tensor3_antisymmetric_times_generic
Tensor3_antisymmetric_times_generic(const Tensor3_antisymmetric_Expr< A, T, Dim0, Dim12, i, j, k > &a, const U &d0)
Definition:
Tensor3_antisymmetric_times_generic.hpp:24
j
FTensor::Index< 'j', 3 > j
Definition:
matrix_function.cpp:19
k
FTensor::Index< 'k', 3 > k
Definition:
matrix_function.cpp:20
EshelbianPlasticity::U
@ U
Definition:
EshelbianContact.cpp:197
Generated by
Doxygen
1.8.17 and hosted at