v0.14.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FTensor::Tensor2_symmetric_times_Tensor1_0< 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_0< A, B, T, U, Dim, i, j >:
[legend]

Public Member Functions

 Tensor2_symmetric_times_Tensor1_0 (const Tensor2_symmetric_Expr< A, T, Dim, j, i > &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, j, iiterA
 
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_0< A, B, T, U, Dim, i, j >

Definition at line 56 of file Tensor2_symmetric_times_Tensor1.hpp.

Constructor & Destructor Documentation

◆ Tensor2_symmetric_times_Tensor1_0()

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

Definition at line 74 of file Tensor2_symmetric_times_Tensor1.hpp.

77  : iterA(a), iterB(b)
78  {}

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_0< A, B, T, U, Dim, i, j >::eval ( const int  N1,
const Number< 1 > &   
) const
inlineprivate

Definition at line 68 of file Tensor2_symmetric_times_Tensor1.hpp.

69  {
70  return iterA(0, N1) * iterB(0);
71  }

◆ 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_0< A, B, T, U, Dim, i, j >::eval ( const int  N1,
const Number< Current_Dim > &   
) const
inlineprivate

Definition at line 63 of file Tensor2_symmetric_times_Tensor1.hpp.

64  {
65  return iterA(Current_Dim - 1, N1) * iterB(Current_Dim - 1)
66  + eval(N1, Number<Current_Dim - 1>());
67  }

◆ 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_0< A, B, T, U, Dim, i, j >::operator() ( const int  N1) const
inline

Definition at line 79 of file Tensor2_symmetric_times_Tensor1.hpp.

80  {
81  return eval(N1, Number<Dim>());
82  }

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, j, i> FTensor::Tensor2_symmetric_times_Tensor1_0< A, B, T, U, Dim, i, j >::iterA
private

Definition at line 58 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_0< A, B, T, U, Dim, i, j >::iterB
private

Definition at line 59 of file Tensor2_symmetric_times_Tensor1.hpp.


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