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

#include <src/ftensor/src/FTensor/Tensor3/Tensor3_contracted.hpp>

Collaboration diagram for FTensor::Tensor3_contracted_02< A, T, Dim >:
[legend]

Public Member Functions

operator() (const int N) const
 
 Tensor3_contracted_02 (const A &a)
 

Private Member Functions

template<int Current_Dim>
eval (const int N, const Number< Current_Dim > &) const
 
eval (const int N, const Number< 1 > &) const
 

Private Attributes

A iterA
 

Detailed Description

template<class A, class T, int Dim>
class FTensor::Tensor3_contracted_02< A, T, Dim >

Definition at line 29 of file Tensor3_contracted.hpp.

Constructor & Destructor Documentation

◆ Tensor3_contracted_02()

template<class A , class T , int Dim>
FTensor::Tensor3_contracted_02< A, T, Dim >::Tensor3_contracted_02 ( const A a)
inline

Definition at line 43 of file Tensor3_contracted.hpp.

43 : iterA(a) {}

Member Function Documentation

◆ eval() [1/2]

template<class A , class T , int Dim>
T FTensor::Tensor3_contracted_02< A, T, Dim >::eval ( const int  N,
const Number< 1 > &   
) const
inlineprivate

Definition at line 39 of file Tensor3_contracted.hpp.

39 { return iterA(0, N, 0); }

◆ eval() [2/2]

template<class A , class T , int Dim>
template<int Current_Dim>
T FTensor::Tensor3_contracted_02< A, T, Dim >::eval ( const int  N,
const Number< Current_Dim > &   
) const
inlineprivate

Definition at line 34 of file Tensor3_contracted.hpp.

35  {
36  return iterA(Current_Dim - 1, N, Current_Dim - 1)
37  + eval(N, Number<Current_Dim - 1>());
38  }

◆ operator()()

template<class A , class T , int Dim>
T FTensor::Tensor3_contracted_02< A, T, Dim >::operator() ( const int  N) const
inline

Definition at line 42 of file Tensor3_contracted.hpp.

42 { return eval(N, Number<Dim>()); }

Member Data Documentation

◆ iterA

template<class A , class T , int Dim>
A FTensor::Tensor3_contracted_02< A, T, Dim >::iterA
private

Definition at line 31 of file Tensor3_contracted.hpp.


The documentation for this class was generated from the following file:
FTensor::Tensor3_contracted_02::eval
T eval(const int N, const Number< Current_Dim > &) const
Definition: Tensor3_contracted.hpp:34
a
constexpr double a
Definition: approx_sphere.cpp:30
FTensor::Tensor3_contracted_02::iterA
A iterA
Definition: Tensor3_contracted.hpp:31
N
const int N
Definition: speed_test.cpp:3