v0.15.0
Loading...
Searching...
No Matches
src
ftensor
src
FTensor
Tensor2_symmetric
Tensor2_symmetric_times_generic.hpp
Go to the documentation of this file.
1
/* Multiplies a Tensor2_symmetric with 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
auto
operator*
(
const
Tensor2_symmetric_Expr<A, T, Dim, i, j>
&
a
,
const
U &d0)
10
{
11
auto
TensorExpr = [&
a
, d0](
const
int
N1,
const
int
N2) {
12
return
a
.operator()(N1, N2) * d0;
13
};
14
return
Tensor2_symmetric_Expr
<
decltype
(TensorExpr),
15
typename
promote<T, U>::V
, Dim,
i
,
j
>(
16
TensorExpr);
17
}
18
19
template
<
class
A,
class
T,
class
U,
int
Dim,
char
i,
char
j>
20
auto
operator*
(
const
U &d0,
const
Tensor2_symmetric_Expr<A, T, Dim, i, j>
&
a
)
21
{
22
auto
TensorExpr = [&
a
, d0](
const
int
N1,
const
int
N2) {
23
return
d0 *
a
.operator()(N1, N2);
24
};
25
return
Tensor2_symmetric_Expr
<
decltype
(TensorExpr),
26
typename
promote<T, U>::V
, Dim,
i
,
j
>(
27
TensorExpr);
28
}
29
}
a
constexpr double a
Definition
approx_sphere.cpp:30
FTensor::Tensor2_symmetric_Expr
Definition
Tensor2_symmetric_Expr.hpp:37
FTensor::promote::V
T1 V
Definition
promote.hpp:17
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
FTensor
Tensors class implemented by Walter Landry.
Definition
FTensor.hpp:51
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
Generated by
Doxygen
1.12.0 and hosted at