v0.14.0
src
ftensor
src
FTensor
Tensor2_symmetric
Tensor2_symmetric_divide_generic.hpp
Go to the documentation of this file.
1
/* Divides a Tensor2_symmetric by a generic, 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
Tensor2_symmetric_divide_generic
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
iterA
(N1, N2) /
d
;
18
}
19
20
Tensor2_symmetric_divide_generic
(
21
const
Tensor2_symmetric_Expr<A, T, Dim, i, j>
&
a
,
const
U
&d0)
22
:
iterA
(
a
),
d
(d0)
23
{}
24
};
25
26
template
<
class
A,
class
T,
class
U,
int
Dim,
char
i,
char
j>
27
Tensor2_symmetric_Expr<Tensor2_symmetric_divide_generic<A, T, U, Dim, i, j>,
28
typename
promote<T, U>::V
, Dim,
i
,
j
>
29
operator/
(
const
Tensor2_symmetric_Expr<A, T, Dim, i, j>
&
a
,
const
U
&d0)
30
{
31
using
TensorExpr =
Tensor2_symmetric_divide_generic<A, T, U, Dim, i, j>
;
32
return
Tensor2_symmetric_Expr<TensorExpr, typename promote<T, U>::V
, Dim,
33
i
,
j
>(TensorExpr(
a
, d0));
34
}
35
}
FTensor::Tensor2_symmetric_divide_generic::d
U d
Definition:
Tensor2_symmetric_divide_generic.hpp:12
FTensor
JSON compatible output.
Definition:
Christof_constructor.hpp:6
FTensor::Tensor2_symmetric_Expr
Definition:
Tensor2_symmetric_Expr.hpp:36
FTensor::Tensor2_symmetric_divide_generic::operator()
promote< T, U >::V operator()(const int N1, const int N2) const
Definition:
Tensor2_symmetric_divide_generic.hpp:15
FTensor::operator/
auto operator/(const Ddg_Expr< A, T, Dim01, Dim23, i, j, k, l > &a, const U &d0)
Definition:
Ddg_times_generic.hpp:36
a
constexpr double a
Definition:
approx_sphere.cpp:30
FTensor::promote::V
T1 V
Definition:
promote.hpp:17
FTensor::Tensor2_symmetric_divide_generic
Definition:
Tensor2_symmetric_divide_generic.hpp:9
i
FTensor::Index< 'i', SPACE_DIM > i
Definition:
hcurl_divergence_operator_2d.cpp:27
FTensor::Tensor2_symmetric_divide_generic::Tensor2_symmetric_divide_generic
Tensor2_symmetric_divide_generic(const Tensor2_symmetric_Expr< A, T, Dim, i, j > &a, const U &d0)
Definition:
Tensor2_symmetric_divide_generic.hpp:20
j
FTensor::Index< 'j', 3 > j
Definition:
matrix_function.cpp:19
FTensor::Tensor2_symmetric_divide_generic::iterA
Tensor2_symmetric_Expr< A, T, Dim, i, j > iterA
Definition:
Tensor2_symmetric_divide_generic.hpp:11
EshelbianPlasticity::U
@ U
Definition:
EshelbianContact.cpp:197
Generated by
Doxygen
1.8.17 and hosted at