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

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

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

Public Member Functions

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

Definition at line 48 of file Tensor3_contracted.hpp.

Constructor & Destructor Documentation

◆ Tensor3_contracted_01()

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

Definition at line 62 of file Tensor3_contracted.hpp.

62 : iterA(a) {}

Member Function Documentation

◆ eval() [1/2]

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

Definition at line 58 of file Tensor3_contracted.hpp.

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

◆ eval() [2/2]

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

Definition at line 53 of file Tensor3_contracted.hpp.

54  {
55  return iterA(Current_Dim - 1, Current_Dim - 1, N)
56  + eval(N, Number<Current_Dim - 1>());
57  }

◆ operator()()

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

Definition at line 61 of file Tensor3_contracted.hpp.

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

Member Data Documentation

◆ iterA

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

Definition at line 50 of file Tensor3_contracted.hpp.


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