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

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

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

Public Member Functions

 Tensor2_symmetric_times_Tensor1_1 (const Tensor2_symmetric_Expr< A, T, Dim, i, j > &a, const Tensor1_Expr< B, U, Dim, j > &b)
 
promote< T, U >::V operator() (const int N1) const
 

Private Member Functions

template<int Current_Dim>
promote< T, U >::V eval (const int N1, const Number< Current_Dim > &) const
 
promote< T, U >::V eval (const int N1, const Number< 1 > &) const
 

Private Attributes

Tensor2_symmetric_Expr< A, T, Dim, i, jiterA
 
Tensor1_Expr< B, U, Dim, jiterB
 

Detailed Description

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

Definition at line 12 of file Tensor2_symmetric_times_Tensor1.hpp.

Constructor & Destructor Documentation

◆ Tensor2_symmetric_times_Tensor1_1()

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

Definition at line 30 of file Tensor2_symmetric_times_Tensor1.hpp.

33  : iterA(a), iterB(b)
34  {}

Member Function Documentation

◆ eval() [1/2]

template<class A , class B , class T , class U , int Dim, char i, char j>
promote<T, U>::V FTensor::Tensor2_symmetric_times_Tensor1_1< A, B, T, U, Dim, i, j >::eval ( const int  N1,
const Number< 1 > &   
) const
inlineprivate

Definition at line 24 of file Tensor2_symmetric_times_Tensor1.hpp.

25  {
26  return iterA(N1, 0) * iterB(0);
27  }

◆ eval() [2/2]

template<class A , class B , class T , class U , int Dim, char i, char j>
template<int Current_Dim>
promote<T, U>::V FTensor::Tensor2_symmetric_times_Tensor1_1< A, B, T, U, Dim, i, j >::eval ( const int  N1,
const Number< Current_Dim > &   
) const
inlineprivate

Definition at line 19 of file Tensor2_symmetric_times_Tensor1.hpp.

20  {
21  return iterA(N1, Current_Dim - 1) * iterB(Current_Dim - 1)
22  + eval(N1, Number<Current_Dim - 1>());
23  }

◆ operator()()

template<class A , class B , class T , class U , int Dim, char i, char j>
promote<T, U>::V FTensor::Tensor2_symmetric_times_Tensor1_1< A, B, T, U, Dim, i, j >::operator() ( const int  N1) const
inline

Definition at line 35 of file Tensor2_symmetric_times_Tensor1.hpp.

36  {
37  return eval(N1, Number<Dim>());
38  }

Member Data Documentation

◆ iterA

template<class A , class B , class T , class U , int Dim, char i, char j>
Tensor2_symmetric_Expr<A, T, Dim, i, j> FTensor::Tensor2_symmetric_times_Tensor1_1< A, B, T, U, Dim, i, j >::iterA
private

Definition at line 14 of file Tensor2_symmetric_times_Tensor1.hpp.

◆ iterB

template<class A , class B , class T , class U , int Dim, char i, char j>
Tensor1_Expr<B, U, Dim, j> FTensor::Tensor2_symmetric_times_Tensor1_1< A, B, T, U, Dim, i, j >::iterB
private

Definition at line 15 of file Tensor2_symmetric_times_Tensor1.hpp.


The documentation for this class was generated from the following file:
FTensor::Tensor2_symmetric_times_Tensor1_1::eval
promote< T, U >::V eval(const int N1, const Number< Current_Dim > &) const
Definition: Tensor2_symmetric_times_Tensor1.hpp:19
a
constexpr double a
Definition: approx_sphere.cpp:30
FTensor::Tensor2_symmetric_times_Tensor1_1::iterA
Tensor2_symmetric_Expr< A, T, Dim, i, j > iterA
Definition: Tensor2_symmetric_times_Tensor1.hpp:14
FTensor::Tensor2_symmetric_times_Tensor1_1::iterB
Tensor1_Expr< B, U, Dim, j > iterB
Definition: Tensor2_symmetric_times_Tensor1.hpp:15