v0.14.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FTensor::Tensor2_symmetric_carat_Tensor2_symmetric< A, B, T, U, Dim, i, j, k, l > Class Template Reference

#include <src/ftensor/src/FTensor/Tensor2_symmetric/Tensor2_symmetric_carat_Tensor2_symmetric.hpp>

Collaboration diagram for FTensor::Tensor2_symmetric_carat_Tensor2_symmetric< A, B, T, U, Dim, i, j, k, l >:
[legend]

Public Member Functions

 Tensor2_symmetric_carat_Tensor2_symmetric (const Tensor2_symmetric_Expr< A, T, Dim, i, k > &a, const Tensor2_symmetric_Expr< B, U, Dim, j, l > &b)
 
promote< T, U >::V operator() (const int N1, const int N2, const int N3, const int N4) const
 

Private Member Functions

promote< T, U >::V eval (const int N1, const int N2, const int N3, const int N4) const
 

Private Attributes

const Tensor2_symmetric_Expr< A, T, Dim, i, kiterA
 
const Tensor2_symmetric_Expr< B, T, Dim, j, literB
 

Detailed Description

template<class A, class B, class T, class U, int Dim, char i, char j, char k, char l>
class FTensor::Tensor2_symmetric_carat_Tensor2_symmetric< A, B, T, U, Dim, i, j, k, l >

Definition at line 12 of file Tensor2_symmetric_carat_Tensor2_symmetric.hpp.

Constructor & Destructor Documentation

◆ Tensor2_symmetric_carat_Tensor2_symmetric()

template<class A , class B , class T , class U , int Dim, char i, char j, char k, char l>
FTensor::Tensor2_symmetric_carat_Tensor2_symmetric< A, B, T, U, Dim, i, j, k, l >::Tensor2_symmetric_carat_Tensor2_symmetric ( const Tensor2_symmetric_Expr< A, T, Dim, i, k > &  a,
const Tensor2_symmetric_Expr< B, U, Dim, j, l > &  b 
)
inline

Definition at line 26 of file Tensor2_symmetric_carat_Tensor2_symmetric.hpp.

29  : iterA(a), iterB(b) {}

Member Function Documentation

◆ eval()

template<class A , class B , class T , class U , int Dim, char i, char j, char k, char l>
promote<T, U>::V FTensor::Tensor2_symmetric_carat_Tensor2_symmetric< A, B, T, U, Dim, i, j, k, l >::eval ( const int  N1,
const int  N2,
const int  N3,
const int  N4 
) const
inlineprivate

Definition at line 16 of file Tensor2_symmetric_carat_Tensor2_symmetric.hpp.

17  {
18  auto small_eval = [&](auto n1, auto n2, auto n3, auto n4) {
19  return iterA(n1, n3) * iterB(n2, n4);
20  };
21  return small_eval(N1, N2, N3, N4) + small_eval(N2, N1, N3, N4) +
22  small_eval(N1, N2, N4, N3) + small_eval(N2, N1, N4, N3);
23  }

◆ operator()()

template<class A , class B , class T , class U , int Dim, char i, char j, char k, char l>
promote<T, U>::V FTensor::Tensor2_symmetric_carat_Tensor2_symmetric< A, B, T, U, Dim, i, j, k, l >::operator() ( const int  N1,
const int  N2,
const int  N3,
const int  N4 
) const
inline

Definition at line 30 of file Tensor2_symmetric_carat_Tensor2_symmetric.hpp.

31  {
32  return eval(N1, N2, N3, N4);
33  }

Member Data Documentation

◆ iterA

template<class A , class B , class T , class U , int Dim, char i, char j, char k, char l>
const Tensor2_symmetric_Expr<A, T, Dim, i, k> FTensor::Tensor2_symmetric_carat_Tensor2_symmetric< A, B, T, U, Dim, i, j, k, l >::iterA
private

◆ iterB

template<class A , class B , class T , class U , int Dim, char i, char j, char k, char l>
const Tensor2_symmetric_Expr<B, T, Dim, j, l> FTensor::Tensor2_symmetric_carat_Tensor2_symmetric< A, B, T, U, Dim, i, j, k, l >::iterB
private

The documentation for this class was generated from the following file:
FTensor::Tensor2_symmetric_carat_Tensor2_symmetric::eval
promote< T, U >::V eval(const int N1, const int N2, const int N3, const int N4) const
Definition: Tensor2_symmetric_carat_Tensor2_symmetric.hpp:16
a
constexpr double a
Definition: approx_sphere.cpp:30
FTensor::Tensor2_symmetric_carat_Tensor2_symmetric::iterB
const Tensor2_symmetric_Expr< B, T, Dim, j, l > iterB
Definition: Tensor2_symmetric_carat_Tensor2_symmetric.hpp:14
FTensor::Tensor2_symmetric_carat_Tensor2_symmetric::iterA
const Tensor2_symmetric_Expr< A, T, Dim, i, k > iterA
Definition: Tensor2_symmetric_carat_Tensor2_symmetric.hpp:13