v0.6.10
Public Member Functions | Private Attributes | List of all members
Tensor1_Expr< A, T, Dim, i > Class Template Reference

#include <src/ftensor/src/FTensor/Tensor1/Tensor1_Expr.hpp>

Public Member Functions

 Tensor1_Expr (A &a)
 
operator() (const int N) const
 
 Tensor1_Expr (A *a)
 
doubleoperator() (const int N)
 
double operator() (const int N) const
 
const A operator= (const Tensor1_Expr< Tensor1, 'i'> &result)
 

Private Attributes

iter
 
A * iter
 

Detailed Description

template<class A, class T, int Dim, char i>
class Tensor1_Expr< A, T, Dim, i >

Definition at line 24 of file Tensor1_Expr.hpp.

Constructor & Destructor Documentation

◆ Tensor1_Expr() [1/2]

template<class A, class T, int Dim, char i>
Tensor1_Expr< A, T, Dim, i >::Tensor1_Expr ( A &  a)

Definition at line 28 of file Tensor1_Expr.hpp.

28 : iter(a) {}

◆ Tensor1_Expr() [2/2]

template<class A, class T, int Dim, char i>
Tensor1_Expr< A, T, Dim, i >::Tensor1_Expr ( A *  a)

Definition at line 17 of file single.cpp.

17 : iter(a) {}

Member Function Documentation

◆ operator()() [1/3]

template<class A, class T, int Dim, char i>
double& Tensor1_Expr< A, T, Dim, i >::operator() ( const int  N)

Definition at line 18 of file single.cpp.

19  {
20  return (*iter)(N);
21  }
const int N
Definition: speed_test.cpp:3

◆ operator()() [2/3]

template<class A, class T, int Dim, char i>
double Tensor1_Expr< A, T, Dim, i >::operator() ( const int  N) const

Definition at line 22 of file single.cpp.

23  {
24  return (*iter)(N);
25  }
const int N
Definition: speed_test.cpp:3

◆ operator()() [3/3]

template<class A, class T, int Dim, char i>
T Tensor1_Expr< A, T, Dim, i >::operator() ( const int  N) const

Definition at line 29 of file Tensor1_Expr.hpp.

30  {
31  return iter(N);
32  }

◆ operator=()

template<class A, class T, int Dim, char i>
const A Tensor1_Expr< A, T, Dim, i >::operator= ( const Tensor1_Expr< Tensor1, 'i'> &  result)

Definition at line 27 of file single.cpp.

28  {
29  cout << "equaling" << endl;
30  iter->data0=result(0);
31  iter->data1=result(1);
32  iter->data2=result(2);
33  return *iter;
34  }

Member Data Documentation

◆ iter [1/2]

template<class A, class T, int Dim, char i>
A* Tensor1_Expr< A, T, Dim, i >::iter
private

Definition at line 15 of file single.cpp.

◆ iter [2/2]

template<class A, class T, int Dim, char i>
A Tensor1_Expr< A, T, Dim, i >::iter
private

Definition at line 26 of file Tensor1_Expr.hpp.


The documentation for this class was generated from the following files: