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

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

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

Public Member Functions

operator() (const int N) const
 
 Tensor3_contracted_12 (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_12< A, T, Dim >

Definition at line 10 of file Tensor3_contracted.hpp.

Constructor & Destructor Documentation

◆ Tensor3_contracted_12()

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

Definition at line 24 of file Tensor3_contracted.hpp.

24 : iterA(a) {}

Member Function Documentation

◆ eval() [1/2]

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

Definition at line 20 of file Tensor3_contracted.hpp.

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

◆ eval() [2/2]

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

Definition at line 15 of file Tensor3_contracted.hpp.

16  {
17  return iterA(N, Current_Dim - 1, Current_Dim - 1)
18  + eval(N, Number<Current_Dim - 1>());
19  }

◆ operator()()

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

Definition at line 23 of file Tensor3_contracted.hpp.

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

Member Data Documentation

◆ iterA

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

Definition at line 12 of file Tensor3_contracted.hpp.


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