v0.14.0
Tensor3_antisymmetric_mod_Tensor1.hpp
Go to the documentation of this file.
1 /* Multiplies a Tensor3_antisymmetric and a Tensor1, yielding a
2  Riemann. */
3 
4 #pragma once
5 
6 namespace FTensor
7 {
8  /* A(j,k,l)*B(i) */
9 
10  template <class A, class B, class T, class U, int Dim, char i, char j,
11  char k, char l>
13  {
16 
17  public:
18  typename promote<T, U>::V
19  operator()(const int N1, const int N2, const int N3, const int N4) const
20  {
21  return iterA(N2, N3, N4) * iterB(N1);
22  }
23 
27  : iterA(a), iterB(b)
28  {}
29  };
30 
31  template <class A, class B, class T, class U, int Dim, char i, char j,
32  char k, char l>
33  Riemann_Expr<Tensor3_antisymmetric_mod_Tensor1<A, B, T, U, Dim, i, j, k, l>,
34  typename promote<T, U>::V, Dim, i, j, k, l>
37  {
38  using TensorExpr
41  TensorExpr(a, b));
42  }
43 
44  /* B(i)*A(j,k,l) */
45 
46  template <class A, class B, class T, class U, int Dim, char i, char j,
47  char k, char l>
48  Riemann_Expr<Tensor3_antisymmetric_mod_Tensor1<A, B, T, U, Dim, i, j, k, l>,
49  typename promote<T, U>::V, Dim, i, j, k, l>
52  {
53  using TensorExpr
56  TensorExpr(a, b));
57  }
58 }
FTensor
JSON compatible output.
Definition: Christof_constructor.hpp:6
FTensor::Tensor3_antisymmetric_mod_Tensor1::iterB
Tensor1_Expr< B, U, Dim, i > iterB
Definition: Tensor3_antisymmetric_mod_Tensor1.hpp:15
FTensor::operator%
Riemann_Expr< Ddg_mod_Ddg< A, B, T, U, Dim, i, j, k, l >, typename promote< T, U >::V, Dim, i, j, k, l > operator%(const Ddg_Expr< A, T, Dim, Dim, i, j, k, l > &a, const Ddg_Expr< B, U, Dim, Dim, i, l, k, j > &b)
Definition: Ddg_mod_Ddg.hpp:33
FTensor::Tensor3_antisymmetric_mod_Tensor1::Tensor3_antisymmetric_mod_Tensor1
Tensor3_antisymmetric_mod_Tensor1(const Tensor3_antisymmetric_Expr< A, T, Dim, Dim, j, k, l > &a, const Tensor1_Expr< B, U, Dim, i > &b)
Definition: Tensor3_antisymmetric_mod_Tensor1.hpp:24
A
constexpr AssemblyType A
Definition: operators_tests.cpp:30
FTensor::Tensor3_antisymmetric_Expr< A, T, Dim, Dim, j, k, l >
FTensor::Tensor3_antisymmetric_mod_Tensor1
Definition: Tensor3_antisymmetric_mod_Tensor1.hpp:12
FTensor::Tensor3_antisymmetric_mod_Tensor1::iterA
Tensor3_antisymmetric_Expr< A, T, Dim, Dim, j, k, l > iterA
Definition: Tensor3_antisymmetric_mod_Tensor1.hpp:14
FTensor::Tensor1_Expr< B, U, Dim, i >
a
constexpr double a
Definition: approx_sphere.cpp:30
FTensor::Riemann_Expr
Definition: Riemann_Expr.hpp:15
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::Tensor3_antisymmetric_mod_Tensor1::operator()
promote< T, U >::V operator()(const int N1, const int N2, const int N3, const int N4) const
Definition: Tensor3_antisymmetric_mod_Tensor1.hpp:19
k
FTensor::Index< 'k', 3 > k
Definition: matrix_function.cpp:20
EshelbianPlasticity::U
@ U
Definition: EshelbianContact.cpp:197
l
FTensor::Index< 'l', 3 > l
Definition: matrix_function.cpp:21