v0.14.0
Tensor3_antisymmetric_or_Tensor3_antisymmetric.hpp
Go to the documentation of this file.
1 /* Adds two Tensor3_antisymmetrics together to make a Dg. */
2 
3 #pragma once
4 
5 namespace FTensor
6 {
7  /* A(i,j,k) + B(k,j,i) */
8 
9  template <class A, class B, class T, class U, int Dim, char i, char j, char k>
11  {
14 
15  public:
16  typename promote<T, U>::V
17  operator()(const int N1, const int N2, const int N3) const
18  {
19  return iterA(N1, N3, N2) + iterB(N2, N3, N1);
20  }
21 
25  : iterA(a), iterB(b)
26  {}
27  };
28 
29  template <class A, class B, class T, class U, int Dim, char i, char j, char k>
30  Dg_Expr<
31  Tensor3_antisymmetric_or_Tensor3_antisymmetric<A, B, T, U, Dim, i, j, k>,
32  typename promote<T, U>::V, Dim, Dim, i, k, j>
35  {
36  using TensorExpr
38  k>;
40  TensorExpr(a, b));
41  }
42 }
FTensor
JSON compatible output.
Definition: Christof_constructor.hpp:6
A
constexpr AssemblyType A
Definition: operators_tests.cpp:30
FTensor::Tensor3_antisymmetric_Expr< A, T, Dim, Dim, i, j, k >
FTensor::operator||
Ddg_Expr< Ddg_or_Ddg< A, B, T, U, Dim, i, j, k, l >, typename promote< T, U >::V, Dim, Dim, i, k, j, 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_or_Ddg.hpp:33
a
constexpr double a
Definition: approx_sphere.cpp:30
FTensor::Tensor3_antisymmetric_or_Tensor3_antisymmetric::operator()
promote< T, U >::V operator()(const int N1, const int N2, const int N3) const
Definition: Tensor3_antisymmetric_or_Tensor3_antisymmetric.hpp:17
FTensor::promote::V
T1 V
Definition: promote.hpp:17
FTensor::Tensor3_antisymmetric_or_Tensor3_antisymmetric::iterB
Tensor3_antisymmetric_Expr< B, U, Dim, Dim, k, j, i > iterB
Definition: Tensor3_antisymmetric_or_Tensor3_antisymmetric.hpp:13
i
FTensor::Index< 'i', SPACE_DIM > i
Definition: hcurl_divergence_operator_2d.cpp:27
FTensor::Tensor3_antisymmetric_or_Tensor3_antisymmetric::Tensor3_antisymmetric_or_Tensor3_antisymmetric
Tensor3_antisymmetric_or_Tensor3_antisymmetric(const Tensor3_antisymmetric_Expr< A, T, Dim, Dim, i, j, k > &a, const Tensor3_antisymmetric_Expr< B, U, Dim, Dim, k, j, i > &b)
Definition: Tensor3_antisymmetric_or_Tensor3_antisymmetric.hpp:22
FTensor::Dg_Expr
Definition: Dg_Expr.hpp:25
j
FTensor::Index< 'j', 3 > j
Definition: matrix_function.cpp:19
FTensor::Tensor3_antisymmetric_or_Tensor3_antisymmetric::iterA
Tensor3_antisymmetric_Expr< A, T, Dim, Dim, i, j, k > iterA
Definition: Tensor3_antisymmetric_or_Tensor3_antisymmetric.hpp:12
FTensor::Tensor3_antisymmetric_or_Tensor3_antisymmetric
Definition: Tensor3_antisymmetric_or_Tensor3_antisymmetric.hpp:10
k
FTensor::Index< 'k', 3 > k
Definition: matrix_function.cpp:20
EshelbianPlasticity::U
@ U
Definition: EshelbianContact.cpp:197