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

Public Member Functions

 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

A * iter
 

Detailed Description

template<class A, char i>
class Tensor1_Expr< A, i >

Definition at line 13 of file single.cpp.

Constructor & Destructor Documentation

◆ Tensor1_Expr()

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

Definition at line 17 of file single.cpp.

17 : iter(a) {}

Member Function Documentation

◆ operator()() [1/2]

template<class A, char i>
double& Tensor1_Expr< A, 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/2]

template<class A, char i>
double Tensor1_Expr< A, 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=()

template<class A, char i>
const A Tensor1_Expr< A, 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

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

Definition at line 15 of file single.cpp.


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