v0.14.0
minus_Ddg.hpp
Go to the documentation of this file.
1 /* Unary minus operator. */
2 
3 #pragma once
4 
5 namespace FTensor
6 {
7  template <class A, class T, int Dim01, int Dim23, char i, char j, char k,
8  char l>
9  class minus_Ddg
10  {
11  public:
13 
14  public:
15  T operator()(const int N1, const int N2, const int N3, const int N4) const
16  {
17  return -iterA(N1, N2, N3, N4);
18  }
20  };
21 
22  template <class A, class T, int Dim01, int Dim23, char i, char j, char k,
23  char l>
24  Ddg_Expr<minus_Ddg<A, T, Dim01, Dim23, i, j, k, l>, T, Dim01, Dim23, i, j, k,
25  l>
27  {
30  }
31 }
FTensor
JSON compatible output.
Definition: Christof_constructor.hpp:6
FTensor::minus_Ddg::iterA
Ddg_Expr< A, T, Dim01, Dim23, i, j, k, l > iterA
Definition: minus_Ddg.hpp:12
A
constexpr AssemblyType A
Definition: operators_tests.cpp:30
FTensor::Ddg_Expr
Definition: Ddg_Expr.hpp:28
FTensor::minus_Ddg
Definition: minus_Ddg.hpp:9
a
constexpr double a
Definition: approx_sphere.cpp:30
i
FTensor::Index< 'i', SPACE_DIM > i
Definition: hcurl_divergence_operator_2d.cpp:27
FTensor::operator-
Ddg_Expr< Ddg_minus_Ddg< A, B, T, U, Dim01, Dim23, i, j, k, l >, typename promote< T, U >::V, Dim01, Dim23, i, j, k, l > operator-(const Ddg_Expr< A, T, Dim01, Dim23, i, j, k, l > &a, const Ddg_Expr< B, U, Dim01, Dim23, i, j, k, l > &b)
Definition: Ddg_minus_Ddg.hpp:33
j
FTensor::Index< 'j', 3 > j
Definition: matrix_function.cpp:19
k
FTensor::Index< 'k', 3 > k
Definition: matrix_function.cpp:20
FTensor::minus_Ddg::minus_Ddg
minus_Ddg(const Ddg_Expr< A, T, Dim01, Dim23, i, j, k, l > &a)
Definition: minus_Ddg.hpp:19
l
FTensor::Index< 'l', 3 > l
Definition: matrix_function.cpp:21
FTensor::minus_Ddg::operator()
T operator()(const int N1, const int N2, const int N3, const int N4) const
Definition: minus_Ddg.hpp:15